﻿/* تنظیمات پایه و متغیرهای رنگی */
:root {
    --primary-color: #0f4c81;
    /* سرمه‌ای دانشگاهی شیک */
    --primary-hover: #0a355c;
    --accent-color: #f59e0b;
    /* رنگ طلایی/کهربایی برای اکسنت */
    --dark-color: #1e293b;
    --muted-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --footer-bg: #0f172a;
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--dark-color);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

/* هدر افقی */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--muted-color);
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
    position: relative;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
    }

/* دکمه همبرگری موبایل */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .mobile-toggle span {
        width: 25px;
        height: 3px;
        background: var(--dark-color);
        border-radius: 2px;
    }

/* بنر هیرو افقی تمام عرض */
/* ===================================================
   استایل سنتر و تنظیم‌شده هیرو بنر
   =================================================== */
.hero-banner {
    position: relative;
    background: radial-gradient(circle at 50% 10%, #1e293b 0%, #090d16 100%);
    color: #ffffff;
    padding: 100px 20px 110px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(9, 13, 22, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-glow-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(37, 99, 235, 0.22);
    top: -50px;
    right: 25%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(147, 51, 234, 0.18);
    bottom: -80px;
    left: 25%;
}

/* کانتینر اصلی که ۱۰۰٪ وسط قرار می‌گیرد */
.hero-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* تراز کامل عناصر در مرکز */
    text-align: center;
    width: 100%;
}

/* بج بالای عنوان */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #60a5fa;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 22px;
}

/* عنوان و گرادیانت */
.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 16px;
    color: #ffffff;
    text-align: center;
}

.gradient-brand-text {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16.5px;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 36px;
    text-align: center;
}

/* فرم سرچ سنتر شده */
.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 6px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    transition: all 0.25s ease;
}

    .hero-search-form:focus-within {
        border-color: #3b82f6;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 18px 40px rgba(0, 0, 0, 0.32);
    }

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

/* جایگذاری آیکون در سمت راست برای متون فارسی (RTL) */
.search-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    padding: 12px 46px 12px 14px; /* پدینگ راست برای جلوگیری از تداخل با آیکون */
}

    .hero-search-input::placeholder {
        color: #94a3b8;
    }

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 14.5px;
    font-family: inherit;
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .hero-search-btn:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

/* موبایل */
@media (max-width: 768px) {
    .hero-banner {
        padding: 70px 16px 80px;
    }

    .hero-title {
        font-size: 27px;
    }

    .hero-desc {
        font-size: 14.5px;
    }

    .hero-search-form {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .hero-search-btn {
        width: 100%;
        justify-content: center;
    }
}


/* سکشن اسلایدرها */
.slider-section {
    padding: 4.5rem 1.5rem;
}

.bg-alt {
    background-color: #f1f5f9;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.section-subtitle {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.slider-navigation {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--dark-color);
    transition: all 0.2s ease;
}

    .nav-arrow:hover {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

/* کارت مقاله */
.swiper-slide {
    height: auto;
    display: flex;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

    .card-img-wrap img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.article-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 76, 129, 0.85);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    color: var(--dark-color);
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

    .read-more:hover {
        color: var(--accent-color);
    }

.swiper-pagination {
    position: relative !important;
    margin-top: 1.5rem;
}

/* فوتر پیشرفته */
.site-footer {
    background-color: var(--footer-bg);
    color: #94a3b8;
    padding: 4rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

    .social-links a {
        width: 36px;
        height: 36px;
        background: #1e293b;
        color: #fff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: bold;
    }

        .social-links a:hover {
            background: var(--accent-color);
        }

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 35px;
        height: 2px;
        background-color: var(--accent-color);
    }

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    font-size: 0.9rem;
}

    .footer-links a:hover {
        color: #ffffff;
        padding-right: 5px;
    }

.newsletter-desc {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.2rem;
}

    .newsletter-form input {
        flex: 1;
        padding: 0.7rem 1rem;
        border: 1px solid #334155;
        background: #1e293b;
        color: #fff;
        border-radius: 0 8px 8px 0;
        font-family: inherit;
        font-size: 0.85rem;
        outline: none;
    }

    .newsletter-form button {
        background: var(--primary-color);
        color: #fff;
        border: none;
        padding: 0.7rem 1.2rem;
        border-radius: 8px 0 0 8px;
        cursor: pointer;
        font-family: inherit;
        font-weight: 600;
    }

        .newsletter-form button:hover {
            background: var(--primary-hover);
        }

.contact-info p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ریسپانسیو (Responsive Media Queries) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

        .main-nav.active {
            display: block;
        }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-search-box {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 0.5rem;
    }

        .hero-search-box input {
            border-radius: 8px;
            padding: 0.8rem;
        }

        .hero-search-box button {
            border-radius: 8px;
        }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}


/* menu -begin */
/* ===================================================
   1. حالت دسکتاپ (Hover با پل نامرئی جهت جلوگیری از بسته شدن)
   =================================================== */
.mobile-nav-header,
.mobile-nav-footer,
.nav-overlay {
    display: none;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.25s ease;
}

/* پل نامرئی (نامرئی نگه داشتن فاصله تا منو بسته نشود) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

/* منوی بازشونده دسکتاپ با تم شیشه‌ای مدرن */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px;
    list-style: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

/* هاور دسکتاپ */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-item.dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background: #f1f5f9;
        color: #2563eb;
        padding-right: 18px;
    }

/* ===================================================
   2. حالت موبایل و تبلت (Side-Nav کشویی از سمت راست)
   =================================================== */
@media (max-width: 991px) {
    /* دکمه همبرگری */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 32px;
        height: 28px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

        .mobile-toggle span {
            width: 100%;
            height: 3px;
            background-color: #0f172a;
            border-radius: 4px;
            transition: 0.3s ease;
        }

    /* بک‌دراپ تاریک */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1040;
    }

        .nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    /* سایدبار موبایل از راست */
    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -310px; /* مخفی در سمت راست */
        width: 290px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -8px 0 30px rgba(15, 23, 42, 0.15);
        padding: 24px 20px;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
    }

        .main-nav.open {
            right: 0; /* باز شدن به داخل صفحه */
        }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 18px;
    }

    .mobile-nav-title {
        font-weight: 800;
        color: #0f172a;
        font-size: 15px;
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 26px;
        color: #64748b;
        cursor: pointer;
        line-height: 1;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 14.5px;
        font-weight: 600;
        color: #334155;
        text-decoration: none;
        transition: background 0.2s ease;
    }

        .nav-link:hover, .nav-link.active {
            background-color: #f8fafc;
            color: #2563eb;
        }

    /* رفتار آکاردئونی زیرمنو در موبایل */
    .dropdown-menu {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: 1px solid #f1f5f9;
        background: #f8fafc;
        border-radius: 12px;
        margin-top: 6px;
        padding: 6px;
    }

        .dropdown-menu::before {
            display: none;
        }

    /* وقتی روی دسته‌بندی کلیک شد */
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease;
    }

    .nav-item.dropdown.show .dropdown-icon {
        transform: rotate(180deg);
    }

    .mobile-nav-footer {
        display: block;
        margin-top: auto;
        padding-top: 20px;
    }

    .header-actions {
        display: none; /* در موبایل داخل سایدبار رفته است */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* menu -end */



/* article - list - begin */
/* کانتینر اصلی */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* بنر هدر صفحه مقالات */
.archive-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    text-align: center;
    margin-bottom: 40px;
}

.badge-sub {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.archive-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.archive-desc {
    color: #94a3b8;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* چیدمان گرید: دقیقاً ۴ ستون در هر سطر در دسکتاپ */
.articles-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* کارت مقاله مدرن شیشه‌ای / کارتی */
.article-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }

/* تصویر کارت با نسبت استاندارد 16:9 */
.card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

    .card-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.article-card:hover .card-thumb img {
    transform: scale(1.06);
}

.card-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

/* بدنه کارت */
.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 10px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* حداکثر ۲ سطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

    .card-title a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s;
    }

        .card-title a:hover {
            color: #2563eb;
        }

.card-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* حداکثر ۳ سطر خلاصه */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* فوتر کارت و دکمه مطالعه */
.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

    .read-more-link:hover {
        gap: 10px;
    }

/* ریسپانسیو برای مانیتورهای کوچک‌تر، تبلت و موبایل */
@media (max-width: 1200px) {
    .articles-grid-4 {
        grid-template-columns: repeat(3, 1fr); /* ۳ ستون در لپ‌تاپ‌های کوچک */
    }
}

@media (max-width: 900px) {
    .articles-grid-4 {
        grid-template-columns: repeat(2, 1fr); /* ۲ ستون در تبلت */
    }
}

@media (max-width: 600px) {
    .articles-grid-4 {
        grid-template-columns: 1fr; /* ۱ ستون در موبایل */
    }
}

.no-articles-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #64748b;
}

/* article - end */


/* about -begin */
/* ===================================================
   صفحه درباره ما (About Us)
   =================================================== */
.about-page {
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* هیرو سکشن */
.about-hero {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.about-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16.5px;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto;
}

/* باکس‌های آماری شناور */
.stats-section {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
    }

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 6px;
    font-family: inherit;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

/* ماموریت و چشم انداز */
.mission-section {
    padding: 70px 0 50px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease;
}

    .glass-card:hover {
        border-color: #cbd5e1;
    }

.card-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .card-icon-wrap.blue {
        background: #eff6ff;
        color: #2563eb;
    }

    .card-icon-wrap.purple {
        background: #faf5ff;
        color: #9333ea;
    }

.glass-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.glass-card p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.85;
    margin: 0;
}

/* بخش ارزش‌های ۴تایی */
.values-section {
    padding: 50px 0 70px;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 45px;
}

.sub-heading {
    display: block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title-wrap h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.value-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
}

    .value-item:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    }

.value-icon {
    font-size: 34px;
    margin-bottom: 16px;
}

.value-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* بنر CTA پایانی */
.cta-section {
    padding: 20px 0 80px;
}

.cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 44px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.cta-text h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-text p {
    color: #94a3b8;
    font-size: 14.5px;
    margin: 0;
}

.btn-cta-primary {
    background: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

    .btn-cta-primary:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
    }

/* ریسپانسیو */
@media (max-width: 991px) {
    .hero-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* about -end */


/* category article list  - begin */

/* ===================================================
   استایل‌های مدرن صفحه دسته بندی (Category Archive)
   =================================================== */
.category-page {
    background-color: #f8fafc;
    min-height: 85vh;
    padding-bottom: 70px;
}

/* هدر تیره و گرادیانت پرمیوم */
.cat-hero-header {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cat-hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.cat-hero-inner {
    position: relative;
    z-index: 2;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cat-hero-title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.cat-hero-desc {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

.counter-highlight {
    color: #38bdf8;
    font-weight: 800;
    font-size: 18px;
}

/* بدنه و گرید مقالات */
.cat-main-wrap {
    margin-top: 15px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* کارت مقاله */
.cat-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

    .cat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }

/* فریم عکس کارت با نسبت استاندارد */
.cat-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* نسبت 16:9 */
    background: #f1f5f9;
    overflow: hidden;
}

.thumb-cover-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

    .thumb-cover-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.cat-card:hover .thumb-cover-link img {
    transform: scale(1.05);
}

.cat-card-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    pointer-events: none;
}

/* متون و بدنه کارت */
.cat-card-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 54px;
}

    .cat-card-title a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s;
    }

        .cat-card-title a:hover {
            color: #2563eb;
        }

.cat-card-desc {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.cat-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

    .read-more-btn:hover {
        gap: 10px;
    }

/* صفحه‌بندی مدرن (Pagination) */
.cat-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.cat-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .page-nav-link:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #0f172a;
    }

.page-nav-item.active .page-nav-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* وضعیت خالی */
.cat-empty-state {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    padding: 60px 20px;
    max-width: 550px;
    margin: 40px auto;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: #f8fafc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cat-empty-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.cat-empty-state p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

.btn-back-home {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

    .btn-back-home:hover {
        background: #1d4ed8;
    }

/* ریسپانسیو */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }

    .cat-hero-title {
        font-size: 25px;
    }
}

/* category article list  - end */


/* search page - show result - begin */
/* ===================================================
   استایل‌های مدرن صفحه جستجو (Search Page)
   =================================================== */
.search-page {
    background-color: #f8fafc;
    min-height: 85vh;
    padding-bottom: 70px;
}

.search-hero-header {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 0 55px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.search-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.search-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
}

.gradient-query {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-hero-desc {
    color: #94a3b8;
    font-size: 15px;
    margin: 0 0 25px;
}

.counter-highlight {
    color: #38bdf8;
    font-weight: 800;
}

/* فرم سرچ داخل هدر صفحه */
.search-page-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 6px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    transition: all 0.25s ease;
}

    .search-page-form:focus-within {
        border-color: #3b82f6;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 18px 40px rgba(0, 0, 0, 0.32);
    }

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-page-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.search-page-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    padding: 12px 46px 12px 14px;
}

    .search-page-input::placeholder {
        color: #94a3b8;
    }

.search-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    outline: none;
    font-weight: 700;
    font-size: 14.5px;
    font-family: inherit;
    padding: 12px 26px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .search-page-btn:hover {
        background: #1d4ed8;
    }

/* گرید کارت‌های جستجو */
.search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.search-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

    .search-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
        border-color: #cbd5e1;
    }

.search-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #f1f5f9;
    overflow: hidden;
}

    .search-card-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.search-card:hover .search-card-thumb img {
    transform: scale(1.05);
}

.search-card-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.search-card-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-card-meta {
    color: #94a3b8;
    font-size: 12.5px;
    margin-bottom: 10px;
}

.search-card-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 54px;
}

    .search-card-title a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s;
    }

        .search-card-title a:hover {
            color: #2563eb;
        }

.search-card-desc {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.search-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* صفحه‌بندی */
.search-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.search-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* وضعیت خالی */
.search-empty-state {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    padding: 60px 20px;
    max-width: 550px;
    margin: 40px auto;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-hero-title {
        font-size: 24px;
    }

    .search-page-form {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .search-input-wrap {
        width: 100%;
    }

    .search-page-btn {
        width: 100%;
        justify-content: center;
    }
}
/* search page - show result - end */


/* swiper - begin */
/* ===================================================
   اسلایدر مقالات ژورنیکس (Swiper Slider Modern)
   =================================================== */
.slider-section {
    padding: 70px 0 80px;
    background: #ffffff;
    position: relative;
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

/* دکمه‌های جهت چپ و راست */
.slider-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

    .nav-arrow:hover:not(.swiper-button-disabled) {
        background: #0f172a;
        color: #ffffff;
        border-color: #0f172a;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    }

    .nav-arrow.swiper-button-disabled {
        opacity: 0.35;
        cursor: not-allowed;
        background: #f8fafc;
        border-color: #e2e8f0;
        box-shadow: none;
        transform: none;
    }

/* ساختار Swiper و جلوگیری از سرریز */
.swiper-recent-1 {
    width: 100%;
    overflow: hidden;
    padding: 10px 4px 45px 4px !important;
}

    .swiper-recent-1 .swiper-slide {
        height: auto !important;
        display: flex;
        box-sizing: border-box;
    }

/* کارت مقاله */
.article-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: all 0.3s ease;
}

    .article-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
        border-color: #cbd5e1;
    }

.card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* نسبت استاندارد 16:9 */
    background: #f1f5f9;
    overflow: hidden;
}

    .card-img-wrap img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

.article-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    text-decoration: none;
    z-index: 2;
    transition: background 0.2s;
}

    .card-tag:hover {
        background: #2563eb;
        color: #ffffff;
    }

.article-card .card-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    margin-bottom: 10px;
}

.card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.card-title {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 52px;
}

    .card-title a {
        color: #0f172a;
        text-decoration: none;
        transition: color 0.2s;
    }

        .card-title a:hover {
            color: #2563eb;
        }

.card-excerpt {
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: gap 0.2s ease;
}

    .read-more:hover {
        gap: 9px;
        color: #1d4ed8;
    }

/* بولت‌های پیجینیشن */
.pagination-1 {
    bottom: 10px !important;
}

    .pagination-1 .swiper-pagination-bullet {
        background: #cbd5e1;
        opacity: 1;
        width: 8px;
        height: 8px;
        transition: all 0.25s ease;
    }

    .pagination-1 .swiper-pagination-bullet-active {
        background: #2563eb;
        width: 24px;
        border-radius: 6px;
    }

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-navigation {
        display: none; /* در موبایل بولت‌ها کار هدایت را انجام می‌دهند */
    }
}
