/* تنظیمات پایه و متغیرهای رنگی */
:root {
    --bg-color: #fcfcfa;
    --card-bg: #ffffff;
    --text-primary: #272a28;
    --text-secondary: #626864;
    --accent-color: #2c3e35;
    --light-gray: #f2f3f0;
    --border-color: #e4e7e1;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
    --font-family: 'Vazirmatn', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* انیمیشن ورود صفحات */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* هدر و ناوبری */
.main-header {
    padding-top: 35px;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 50px;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.search-btn {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* بخش هیرو */
.hero-content {
    margin-top: 10px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-content .tagline {
    font-size: 0.95rem;
    color: #838a84;
    margin-top: 4px;
}

.divider {
    margin: 25px 0;
    color: #a8b0a9;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    margin: 20px auto 60px;
}

.hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

/* شبکه کارت‌ها */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* استایل کارت‌ها */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    gap: 22px;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #d2d7cd;
}

.card-img {
    width: 125px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.card-body .author, 
.card-body .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.bullet-list {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-right: 18px;
    margin-bottom: 20px;
}

.bullet-list li {
    margin-bottom: 6px;
}

.btn-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 10px;
}

/* پلیر پادکست */
.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-gray);
    padding: 12px 16px;
    border-radius: 30px;
    margin: 18px 0 25px;
}

.play-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.05);
    background-color: #1d2a23;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: #d8dcd5;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 35%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
}

.time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* بخش نقل قول */
.quote-section {
    background-color: #1e2621;
    color: #f0f2ee;
    text-align: center;
    padding: 55px 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
}

.quote-text {
    font-size: 1.2rem;
    line-height: 2;
    font-weight: 300;
}

.quote-author {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #9cb0a2;
}

/* کارت‌های ساده و بخش می‌آموزم */
.card-simple {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card-simple h3 {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 28px;
    font-weight: 600;
}

.topics-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    text-align: center;
}

.topic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.topic-icon-box {
    width: 54px;
    height: 54px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.topic-item:hover .topic-icon-box {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.topic-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* فهرست آخرین پست‌ها */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    transition: var(--transition);
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--transition);
}

.post-item:hover .post-info h4 {
    color: var(--accent-color);
}

.post-info .date {
    font-size: 0.75rem;
    color: #8c928d;
}

.post-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.center-link {
    justify-content: center;
}

/* بنر تصویر مسیر */
.banner-section {
    position: relative;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 70px;
    box-shadow: var(--shadow-soft);
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 25, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.banner-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.banner-overlay p {
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 550px;
    color: #e0e6e1;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

/* فوتر */
.main-footer {
    background-color: #171d19;
    color: #d1d7d2;
    padding-top: 45px;
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 35px;
}

.newsletter-text h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 500;
    color: #ffffff;
}

.newsletter-text p {
    font-size: 0.85rem;
    color: #929d94;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
    width: 240px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: #798c7d;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    background-color: #43584a;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #556e5d;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    font-size: 0.8rem;
    color: #818c83;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-links a {
    color: #9faaa1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* تنظیمات واکنش‌گرا (موبایل) */
@media (max-width: 820px) {
    .grid-two-columns {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }

    .card.flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bullet-list {
        text-align: right;
    }

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* ==========================================
   ۱. متغیرها و تنظیمات پایه (تم اصلی)
   ========================================== */
:root {
    --bg-color: #f7f6f2;          /* پس‌زمینه کرم/مینیمال */
    --card-bg: #ffffff;           /* پس‌زمینه کارت‌ها */
    --text-primary: #2d312e;      /* رنگ متن اصلی */
    --text-secondary: #636b65;    /* رنگ متن ثانویه */
    --accent-color: #2b3a30;      /* رنگ زیتونی/سبز تیره لوگو و عناوین */
    --accent-light: #526356;     
    --border-color: #e2e0d8;      /* رنگ خطوط و کادرها */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   ۲. هدر و نوار مسیریابی (Navbar)
   ========================================== */
.main-header {
    padding-top: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.search-btn {
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-color);
}

/* ==========================================
   ۳. بخش هیرو (Hero Section)
   ========================================== */
.path-hero {
    text-align: center;
    padding-bottom: 20px;
}

.path-hero h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    color: #8c9b90;
}

.intro-text {
    max-width: 580px;
    margin: 20px auto 30px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.hero-image-container {
    margin-bottom: 60px;
}

.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* ==========================================
   ۴. تایم‌لاین (Timeline Section)
   ========================================== */
.timeline-container {
    position: relative;
    padding: 20px 0 60px;
}

/* خط عمودی مرکزی */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
    position: relative;
    width: 100%;
}

/* زوج کردن آیتم‌ها برای چیدمان زیگزاگی */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content, .timeline-image {
    width: 44%;
}

.timeline-image img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.02);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.phase-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9aa89d;
    text-transform: uppercase;
    display: block;
}

.phase-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    transition: var(--transition);
}

.btn-link:hover {
    gap: 12px;
    color: var(--accent-light);
}

/* آیکون دایره‌ای بین خط زمانی */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.1rem;
    box-shadow: 0 0 0 6px var(--bg-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

/* ==========================================
   ۵. بخش نقل قول پایانی (Quote Footer)
   ========================================== */
.timeline-footer-quote {
    text-align: center;
    padding: 50px 0 80px;
}

.timeline-footer-quote i {
    font-size: 1.8rem;
    color: #a8b5ab;
    margin-bottom: 15px;
}

.timeline-footer-quote p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 2;
}

/* ==========================================
   ۶. فوتر (Footer & Newsletter)
   ========================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    background-color: var(--bg-color);
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.newsletter-text h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.newsletter-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-main);
    width: 260px;
    background: var(--card-bg);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* ==========================================
   ۷. انیمیشن‌ها و واکنش‌گرایی (Responsive)
   ========================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: column-reverse !important;
        align-items: flex-start;
        padding-right: 45px;
    }

    .timeline-content, .timeline-image {
        width: 100%;
        margin-bottom: 15px;
    }

    .timeline-dot {
        left: 20px;
        top: 20px;
        transform: translateX(-50%);
    }

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        flex: 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* تغییر رنگ کل فوتر و اجزای پایینی به سبز دقیق تم سایت */
.main-footer {
    background-color: #2c3e35; /* رنگ سبز اصلی و برند سایت */
    color: #ffffff;
    width: 100%;
    margin-top: 0;
    border-top: none;
}

/* تغییر رنگ متن‌ها و عناوین داخل فوتر */
.main-footer h3,
.main-footer p,
.main-footer .copyright,
.main-footer a {
    color: #ffffff !important;
}

/* ورودی ایمیل */
.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* هماهنگ‌سازی دکمه عضویت خبرنامه */
.newsletter-form button {
    background-color: #ffffff;
    color: #2c3e35;
    font-weight: 600;
}

.newsletter-form button:hover {
    background-color: #f0f0f0;
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-links a {
    color: #ffffff !important;
}

.social-links a:hover {
    opacity: 0.8;
}

/* ==========================================
   ۱. تنظیمات پایه و متغیرهای رنگی (تم اصلی)
   ========================================== */
:root {
    --bg-color: #fcfcfa;
    --card-bg: #ffffff;
    --text-primary: #272a28;
    --text-secondary: #626864;
    --accent-color: #2c3e35;      /* سبز زیتونی برند */
    --accent-light: #43584a;
    --light-gray: #f2f3f0;
    --border-color: #e4e7e1;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
    --font-family: 'Vazirmatn', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* انیمیشن ورود صفحات */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* ==========================================
   ۲. هدر و ناوبری (Navbar)
   ========================================== */
.main-header {
    padding-top: 35px;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.brand-logo {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-color);
    font-weight: 500;
}

.search-btn {
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ==========================================
   ۳. بخش هیرو (Hero)
   ========================================== */
.hero-content {
    margin-top: 10px;
}

.hero-content h1, .path-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-content .tagline, .intro-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.intro-text {
    max-width: 580px;
    margin: 20px auto 30px;
    line-height: 1.9;
}

.divider {
    margin: 25px 0;
    color: #a8b0a9;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    margin: 20px auto 50px;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* ==========================================
   ۴. شبکه کارت‌ها و محتوای اصلی (خانه)
   ========================================== */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    gap: 22px;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #d2d7cd;
}

.card-img {
    width: 125px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.card-body .author, 
.card-body .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.bullet-list {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-right: 18px;
    margin-bottom: 20px;
}

.bullet-list li {
    margin-bottom: 6px;
}

.btn-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 10px;
    color: var(--accent-light);
}

/* پلیر پادکست */
.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-gray);
    padding: 12px 16px;
    border-radius: 30px;
    margin: 18px 0 25px;
}

.play-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.05);
    background-color: var(--accent-light);
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: #d8dcd5;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    width: 35%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
}

.time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* بخش نقل قول */
.quote-section {
    background-color: #1e2621;
    color: #f0f2ee;
    text-align: center;
    padding: 55px 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
}

.quote-text {
    font-size: 1.2rem;
    line-height: 2;
    font-weight: 300;
}

.quote-author {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #9cb0a2;
}

/* کارت‌های ساده و موضوعات */
.card-simple {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card-simple h3 {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 28px;
    font-weight: 600;
}

.topics-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    text-align: center;
}

.topic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.topic-icon-box {
    width: 54px;
    height: 54px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.topic-item:hover .topic-icon-box {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.topic-item h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* پست‌های اخیر */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    transition: var(--transition);
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-info h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--transition);
}

.post-item:hover .post-info h4 {
    color: var(--accent-color);
}

.post-info .date {
    font-size: 0.75rem;
    color: #8c928d;
}

.post-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.center-link {
    justify-content: center;
}

/* بنر تصویر مسیر */
.banner-section {
    position: relative;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 70px;
    box-shadow: var(--shadow-soft);
}

.banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 30, 25, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 24px;
    backdrop-filter: blur(2px);
}

.banner-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.banner-overlay p {
    font-size: 0.92rem;
    margin-bottom: 20px;
    font-weight: 300;
    max-width: 550px;
    color: #e0e6e1;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline:hover {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

/* ==========================================
   ۵. بخش پشت صحنه مسیر (Timeline / Path Page)
   ========================================== */
.timeline-container {
    position: relative;
    padding: 20px 0 60px;
    margin-top: 40px; /* ایجاد فاصله از عکس بالای صفحه */
}

/* خط عمودی تایم‌لاین */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* هم‌اندازه شدن کارت و تصویر */
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content, .timeline-image {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.02);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    justify-content: space-between;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.phase-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8fa093;
    display: block;
}

.phase-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1rem;
    box-shadow: 0 0 0 6px var(--bg-color);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

/* ==========================================
   ۶. فوتر یکپارچه (Unified Footer)
   ========================================== */
.main-footer {
    background-color: var(--accent-color); /* سبز برند سایت */
    color: #ffffff;
    padding-top: 45px;
    margin-top: 60px;
    width: 100%;
}

.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 35px;
}

.newsletter-text h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ffffff;
}

.newsletter-text p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
    width: 250px;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-form input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
}

.newsletter-form button {
    background-color: #ffffff;
    color: var(--accent-color);
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #f0f0f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #ffffff;
}

/* ==========================================
   ۷. تنظیمات واکنش‌گرا (Mobile Responsive)
   ========================================== */
@media (max-width: 820px) {
    .grid-two-columns {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }

    .card.flex-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bullet-list {
        text-align: right;
    }

    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: column-reverse !important;
        align-items: flex-start;
        padding-right: 45px;
    }

    .timeline-content, .timeline-image {
        width: 100%;
        margin-bottom: 15px;
    }

    .timeline-dot {
        left: 20px;
        top: 20px;
        transform: translateX(-50%);
    }

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}/* ==========================================
   استایل اختصاصی صفحه خواندنی‌ها (Readings)
   ========================================== */

/* عنوان و توضیحات بالای صفحه */
.page-intro {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* نوار فیلتر و مرتب‌سازی */
.articles-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.sort-dropdown select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: var(--card-bg);
    outline: none;
}

/* شبکه‌بندی کارت‌های مقاله */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* استایل کارت مقاله */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-img-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-cat {
    font-size: 0.75rem;
    color: #8a968d;
    margin-bottom: 8px;
    font-weight: 500;
}

.article-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-title a {
    color: var(--text-primary);
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-snippet {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #8c928d;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.read-time {
    color: var(--accent-color);
    font-weight: 500;
}

/* پاسخگویی در موبایل */
@media (max-width: 768px) {
    .articles-filter-bar {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .category-tabs {
        justify-content: center;
    }
}

/* ==========================================
   استایل اختصاصی و مدرن بخش نقل‌قول
   ========================================== */
.readings-quote-section {
    position: relative;
    max-width: 650px;
    margin: 60px auto 40px auto;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,247,245,0.6));
    border-radius: 16px;
    border: 1px solid rgba(228, 231, 225, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.readings-quote-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

/* علامت گیومه بزرگ تزئینی */
.readings-quote-section .quote-symbol {
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-color, #2c3e35);
    opacity: 0.25;
    font-family: Georgia, serif;
    margin-bottom: -15px;
    user-select: none;
}

/* متن اصلی نقل‌قول */
.readings-quote-section .quote-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary, #272a28);
    line-height: 1.9;
    letter-spacing: -0.2px;
    margin: 10px 0 20px 0;
    position: relative;
    z-index: 1;
}


/* ==========================================
   استایل بخش صفحه‌بندی (Pagination)
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    /* جهت چیدمان اعداد را چپ‌به‌راست می‌کنیم تا ترتیب ۱ تا ۸ درست بماند */
    direction: ltr; 
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    /* جهت متن اعداد داخل دکمه */
    direction: rtl; 
}

.page-link:hover {
    background-color: #e2e8e4;
    color: #111111;
}

.page-link.active {
    background-color: #4a6b5d; /* یا رنگ اصلی تم شما */
    color: #ffffff;
    font-weight: 700;
}

.page-dots {
    color: #888888;
    padding: 0 4px;
    font-weight: bold;
}

/* اصلاح فلش‌های دکمه‌های بعدی و قبلی */
.prev-page,
.next-page {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================
   استایل بزرگ‌تر و مدرن باکس مرتب‌سازی (Sort Dropdown)
   ========================================== */
.sort-dropdown {
    position: relative;
    min-width: 160px;
}

.sort-dropdown select {
    width: 100%;
    padding: 12px 40px 12px 18px; /* پدینگ بیشتر برای بزرگ‌تر شدن */
    font-family: var(--font-family);
    font-size: 0.95rem; /* فونت بزرگ‌تر و خواناتر */
    font-weight: 500;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1.5px solid var(--border-color, #e4e7e1);
    border-radius: 12px; /* انحنای مدرن و جذاب */
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    
    /* حذف استایل پیش‌فرض مرورگرها */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* افزودن آیکون فلش سفارشی در سمت راست */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%20c3e35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* افکت هنگام هور (رفتار موس روی باکس) */
.sort-dropdown select:hover {
    border-color: var(--accent-color, #2c3e35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* افکت هنگام فوکوس و باز شدن منو */
.sort-dropdown select:focus {
    border-color: var(--accent-color, #2c3e35);
    box-shadow: 0 0 0 3px rgba(44, 62, 53, 0.12);
}

/* استایل گزینه‌های داخل منو */
.sort-dropdown select option {
    padding: 10px;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-primary);
}