:root {
    --primary-color: #0c127a;
    --accent-color: #ed1c24;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-top-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* ===== آخرین مطالب (Sidebar) ===== */
.latest-box {
    background: var(--bg-light);
    padding: 25px;
    
}

.latest-item {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    margin-bottom: 20px;
    transition: 0.3s;
}

.latest-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-content {
    margin-right: 15px;
}

.latest-content h6 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.5;
}

.latest-content span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== مطالب ویژه (Featured) ===== */
.featured-card {
    background: #fff;
    
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.featured-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

/* ===== شبکه مقالات (Blog Grid) ===== */
.blog-grid {
    padding: 60px 0;
    background: var(--bg-light);
}

.blog-card {
    background: #fff;
   
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.4s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.blog-thumb {
    height: 200px;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-category {
    background: rgba(12, 18, 122, 0.1);
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

.blog-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.7rem;
}

.blog-title a {
    color: #222;
    text-decoration: none;
}

.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.blog-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* ===== صفحه‌بندی (Pagination) ===== */
.custom-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 40px;
}

.custom-pagination li {
    margin: 0 5px;
}

.custom-pagination a, .custom-pagination span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.custom-pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}