/* assets/css/articles_custom_styles.css */


/* --- Global Variables --- */
:root {
--primary-color: #5d5dff;
--secondary-color: #3f3f74;
--accent-color: #ff9933;
--success-color: #4CAF50;
--info-color: #2196F3;
--warning-color: #ffc107;
--danger-color: #f44336;
--text-dark: #34495e;
--text-light: #7f8c8d;
--bg-light: #f4f7f6;
--bg-card: #ffffff;
--border-color: #e0e6ed;
--border-radius: 12px;
--shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
--transition-speed: 0.3s ease;
}

/* --- Universal Reset --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/* --- Body Base Styles --- */
body {
font-family: 'Vazirmatn', sans-serif;
line-height: 1.6;
color: var(--text-dark);
direction: rtl;
background-color: var(--bg-light);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* --- Page Wrapper --- */
.page-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}

/* --- General Link Styles --- */
a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-speed);
}

a:hover {
color: var(--secondary-color);
text-decoration: underline;
}

/* --- General Headings Styles --- */
h1, h2, h3, h4, h5, h6 {
color: var(--secondary-color);
font-weight: 700;
margin-bottom: 0.5em;
}

p{
color: var(--text-dark);
line-height: 1.8;
margin-bottom: 1em;
}

/* --- Styles for above-the-fold elements (e.g., header, main container) --- */
.site-logo {
height: 40px;
width: auto;
max-width:100%;
vertical-align: middle;
}

/* General page styling specific to articles.php */
.articles-page-main {
     background-color: var(--bg-light); /* Light background for content */
     padding-top: 100px; /* Space for fixed navbar */
     min-height: calc(100vh - 100px); /* Ensure content takes up most of the screen */
    }
    
.articles-page-title {
     color: var(--secondary-color); /* Dark purple-blue for titles */
     font-weight: 800;
     margin-bottom: 3rem !important; /* Extra space below title */
     position: relative;
     padding-bottom: 10px;
    }
    
.articles-page-title::after {
     content: '';
     position: absolute;
     left: 50%;
     bottom: 0;
     transform: translateX(-50%);
     width: 80px;
     height: 5px;
     background-color: var(--primary-color); /* Vibrant blue/purple underline */
     border-radius: 5px;
    }
    
.articles-page-title .article-icon {
     color: var(--accent-color); /* Bright orange icon */
     margin-left: 10px;
    }
    
/* Custom styling for Article Cards */
.article-card.custom-card-style {
     border: none;
     border-radius: var(--border-radius);
     overflow: hidden;
     transition: all 0.3s ease-in-out;
     background: linear-gradient(145deg, #ffffff, #f0f2f5); /* Light gradient background */
     box-shadow: var(--shadow-light);
    }
    
.article-card.custom-card-style:hover {
     transform: translateY(-8px);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
.article-card-img {
     height: 200px; /* Fixed height for article images */
     object-fit: cover;
     border-bottom: 2px solid var(--primary-color); /* Purple border below image */
    }
    
.article-card-title {
     color: var(--secondary-color); /* Dark purple-blue for card titles */
     font-weight: 700;
     font-size: 1.35rem;
     margin-top: 0.5rem;
     line-height: 1.4;
    }
    
.article-summary {
     color: var(--text-light); /* Lighter text for summary */
     font-size: 0.95rem;
     line-height: 1.7;
     margin-bottom: 1rem;
     flex-grow: 1; /* Allow summary to take up available space */
    }
.article-meta span {
         color: var(--text-light);
         font-size: 0.85rem;
        }
        
.article-meta i {
         color: var(--primary-color); /* Primary color for icons */
         margin-left: 5px;
        }
        
.article-status .badge {
         font-size: 0.8rem;
         padding: 0.4em 0.7em;
         border-radius: 0.3rem;
        }
        
/* Card Footer Actions */
.article-actions {
         padding-top: 1rem;
         border-top: 1px dashed var(--border-color); /* Dashed border for action separation */
        }
        
.read-more-btn {
         border-color: var(--primary-color) !important;
         color: var(--primary-color) !important;
         transition: all 0.3s ease;
        }
        
.read-more-btn:hover {
         background-color: var(--primary-color) !important;
         color: white !important;
         box-shadow: 0 4px 12px rgba(93, 93, 255, 0.2);
        }
        
.action-btn {
         font-size: 0.8rem;
         padding: 0.4rem 0.8rem;
         margin-right: 5px; /* Spacing between action buttons */
        }
        
/* Pagination Styling */
.custom-pagination .page-item .page-link {
         color: var(--primary-color);
         border: 1px solid var(--border-color);
         margin: 0 5px;
         border-radius: var(--border-radius) / 2; /* Make them pill-shaped */
         transition: all 0.3s ease;
        }
        
.custom-pagination .page-item .page-link:hover {
         background-color: var(--primary-color);
         color: white;
         border-color: var(--primary-color);
        }
        
.custom-pagination .page-item.active .page-link {
         background-color: var(--primary-color);
         border-color: var(--primary-color);
         color: white;
         box-shadow: 0 4px 15px rgba(93, 93, 255, 0.3);
        }
        
.custom-pagination .page-item:first-child .page-link,
.custom-pagination .page-item:last-child .page-link {
         border-radius: var(--border-radius) / 2; /* Ensure ends are rounded */
        }
        
/* Responsive adjustments */
@media (max-width: 768px) {
.articles-page-main {
         padding-top: 80px;}
.article-card-img {
            height: 180px;
        }
        .article-card-title {
            font-size: 1.2rem;
        }
        .read-more-btn {
            width: 100%;
            text-align: center;
            margin-bottom: 10px;
        }
        .article-actions {
            flex-wrap: wrap; /* Allow action buttons to wrap on smaller screens */
            justify-content: center !important; /* Center buttons when wrapped */
        }
        .action-btn {
            margin: 5px; /* Adjust spacing when wrapped */
        }
    }
    
    @media (max-width: 576px) {
        .articles-page-main {
            padding-top: 70px;
        }
        .article-card-img {
            height: 160px;
        }
        .article-card-title {
            font-size: 1.1rem;
        }
        .article-summary {
            font-size: 0.9rem;
        }
    }
    /* assets/css/articles_custom_styles.css - اضافه کردن یا بررسی این استایل‌ها */

/* Styles for the custom primary button (if needed to override Bootstrap) */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Styles for the custom outline button */
.btn-outline-light {
    color: white !important;
    border-color: white !important;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--secondary-color) !important;
    border-color: white !important;
}

/* Ensure navbar links are white */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85); /* Slightly transparent white */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white; /* Pure white on hover/active */
}

/* تنظیمات برای عنوان مقالات در صفحه لیست مقالات */
.article-card .card-title {
    font-size: 1.25rem; /* یا هر سایز دیگری که مناسب می‌دانید */
    font-weight: bold;
    margin-bottom: 0.5rem;
}