/* ========== صفحه مجله ========== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* مسیریابی */
.blog-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-link:hover {
    color: #0052D4;
}

.breadcrumb-sep {
    color: #cbd5e1;
    font-size: 10px;
}

.breadcrumb-current {
    color: #0052D4;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* عنوان صفحه */
.blog-header {
    margin-bottom: 28px;
}

.blog-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

body.dark .blog-title {
    color: #f1f5f9;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #0052D4, #4364F7);
    border-radius: 3px;
}

/* مقاله اصلی (بزرگ) */
.featured-article {
    margin-bottom: 32px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

body.dark .featured-card {
    background: #1e293b;
    border-color: #334155;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.4;
}

body.dark .featured-title {
    color: #f1f5f9;
}

.featured-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 22px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.meta-info i {
    color: #0052D4;
    margin-left: 4px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0052D4;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* بخش /* پربازدیدترین مقالات */
.trending-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
}

body.dark .trending-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.trending-header i {
    font-size: 28px;
    color: #0052D4;
}

.trending-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

body.dark .trending-header h2 {
    color: #f1f5f9;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 16px;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

body.dark .trending-item {
    background: #0f172a;
}

.trending-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trending-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.trending-item:hover .trending-image img {
    transform: scale(1.05);
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

body.dark .trending-title {
    color: #e2e8f0;
}

.trending-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.trending-meta i {
    color: #0052D4;
    margin-left: 4px;
}

.slider-date i {
    color: #0052D4;
    margin-left: 4px;
}
    .articles-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

.article-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

body.dark .article-card {
    background: #1e293b;
    border-color: #334155;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    line-height: 1.4;
}

body.dark .article-title {
    color: #f1f5f9;
}

.article-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
}

.article-meta i {
    color: #0052D4;
    margin-left: 4px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0052D4;
    font-weight: 600;
    font-size: 12px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 550px) {
    .article-card {
        flex-direction: column;
    }

    .article-image {
        width: 100%;
        height: 180px;
    }
}

/* اسلایدر مقالات (اسکرول افقی) */
.articles-slider-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark .section-header h2 {
    color: #f1f5f9;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.articles-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 4px;
}

.articles-slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    min-width: 260px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

body.dark .slider-card {
    background: #1e293b;
    border-color: #334155;
}

.slider-card:hover {
    transform: translateY(-4px);
}

.slider-image {
    height: 140px;
    overflow: hidden;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    padding: 12px;
}

.slider-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

body.dark .slider-title {
    color: #f1f5f9;
}

.slider-date {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* لود بیشتر */
.load-more {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    background: transparent;
    border: 2px solid #0052D4;
    padding: 12px 32px;
    border-radius: 50px;
    color: #0052D4;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #0052D4, #4364F7);
    color: white;
    gap: 12px;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-container {
        padding: 16px 12px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-title {
        font-size: 18px;
    }

    .trending-item {
        padding: 10px;
    }

    .video-card {
        flex-direction: column;
        text-align: center;
    }
}

body.dark .blog-title,
body.dark .trending-header h2,
body.dark .section-header h2 {
    color: #f1f5f9;
}
.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: #0052D4;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}