/* =====================================
   Extra Content Sections - General
===================================== */

/* Red background section example */
.redbackground {
    width: 100%;
    background-color: #007BFF; /* آبی */
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* =====================================
   Extra Sections (Video, Text, FAQ)
===================================== */

.extra-section,
.fullwithpanel {
    width: 100%;                  /* فول عرض واقعی */
    padding: 60px 20px;
    background-color: #007BFF;    /* آبی */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;           /* متن وسط چین */
    color: #000;                  /* متن مشکی */
    border-radius: 30px;
}

/* محدودکننده عرض محتوا */
.extra-inner,
.video-section-inner {
    max-width: 900px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* =====================================
   Titles
===================================== */

.extra-section h3,
.video-section-title,
.extra-title,
.faq-title {
    color: #FFA500; /* نارنجی */
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* =====================================
   Paragraphs
===================================== */

.extra-section p,
.extra-paragraph {
    color: #000; /* مشکی */
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =====================================
   Video Section
===================================== */

.video-responsive {
    position: relative;
    width: 100%;
    max-width: 800px;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    margin: 0 auto;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* =====================================
   FAQ Section
===================================== */

.faq-section-wrapper .extra-inner {
    background-color: #0056b3; /* تیره‌تر برای تمایز */
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ داخلی */
.faq-section-wrapper details,
.faq-section-wrapper .faq-item,
.faq-section-wrapper .accordion-item {
    background-color: #007BFF;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px 20px;
    color: #ffffff;
    font-family: system-ui;
}

.faq-section-wrapper summary {
    font-weight: 600;
    font-size:150;
    font-family: system-ui;
    cursor: pointer;
}

/* =====================================
   Responsive
===================================== */

@media (max-width: 1024px) {
    .extra-section h3,
    .video-section-title,
    .extra-title,
    .faq-title {
        font-size: 17px;
    }

    .extra-section p,
    .extra-paragraph {
        font-size: 12px;
        font-family: system-ui;
    }
}

@media (max-width: 768px) {
    .extra-section {
        padding: 40px 15px;
    }

    .extra-section h3,
    .video-section-title,
    .extra-title,
    .faq-title {
        font-size: 16px;
    }

    .extra-section p,
    .extra-paragraph {
        font-size: 12px;
    }

    .video-responsive {
        max-width: 100%;
    }

    .faq-section-wrapper .extra-inner {
        padding: 20px;
    }
}










/* =====================================
   FAQ Section - Customized Style
===================================== */

/* کل بخش FAQ */
.faq-section-wrapper .extra-inner {
    background-color: #ffffff;   /* پس زمینه سفید */
    padding: 35px 25px;
    border-radius: 25px;        /* گوشه‌های گرد */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* سایه ملایم */
    max-width: 900px;
    margin: 0 auto;             /* وسط چین کل بخش */
    text-align: center;          /* متن وسط چین */
    font-family: system-ui, sans-serif;
}

/* تیتر کل بخش FAQ */
.faq-section-wrapper .faq-title {
    font-size: 22px;             /* کوچکتر */
    font-weight: 600;
    color: #333333;              /* رنگ تیره خاکستری */
    margin-bottom: 25px;
}

/* هر آیتم FAQ */
.faq-section-wrapper details,
.faq-section-wrapper .faq-item,
.faq-section-wrapper .accordion-item {
    background-color: #f9f9f9;   /* پس زمینه روشن برای هر آیتم */
    border-radius: 20px;         /* گردتر کردن گوشه‌ها */
    margin-bottom: 15px;
    padding: 15px 20px;
    font-size: 14px;             /* فونت کوچکتر */
    line-height: 1.5;
    cursor: pointer;
    text-align: center;          /* متن وسط چین */
    border: none;                /* خط جداکننده برداشته شد */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* سایه ملایم */
}

/* تیتر هر آیتم (summary) */
.faq-section-wrapper summary {
    font-weight: 500;
    font-size: 16px;
    outline: none;
}

/* محتوای پاسخ */
.faq-section-wrapper details p {
    margin-top: 8px;
    font-size: 14px;            /* فونت کوچکتر */
    text-align: center;          /* متن وسط چین */
}

/* وقتی آیتم باز است */
.faq-section-wrapper details[open] {
    background-color: #f1f1f1;  /* رنگ ملایم‌تر وقتی باز است */
}

/* =====================================
   Responsive
===================================== */
@media (max-width: 1024px) {
    .faq-section-wrapper .faq-title {
        font-size: 20px;
    }
    .faq-section-wrapper details,
    .faq-section-wrapper .faq-item {
        font-size: 13px;
        padding: 13px 18px;
    }
}

@media (max-width: 768px) {
    .faq-section-wrapper .extra-inner {
        padding: 20px 15px;
    }
    .faq-section-wrapper .faq-title {
        font-size: 18px;
    }
    .faq-section-wrapper details,
    .faq-section-wrapper .faq-item {
        font-size: 12px;
        padding: 12px 15px;
    }
}





/* ================================
   Post Navigation – Clean & Modern
================================ */
.post-navigation .nav-links {
    display: flex;
    justify-content: center;     /* وسط چین افقی */
    align-items: stretch;
    gap: 16px;                   /* فاصله قابل تنظیم بین دکمه‌ها */
    padding: 0 20px;             /* فاصله از راست و چپ کادر */
}






.post-navigation {
    margin: 20px 20px;
    padding: 20px ;
    background-color: #DBF3FF;   /* آبی خیلی ملایم */
    border-radius: 50px;
}

/* لینک‌های قبلی / بعدی */
.post-navigation .nav-links a {
    display: block;
    padding: 14px 18px 20px 20px;
    background-color: #ffffff;
    border-radius: 14px;
    color: blue;              /* آبی اصلی */
    font-size: 12px;
    font-weight: 400;
    height:70px;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* فاصله بین قبلی و بعدی */
.post-navigation .nav-links > div {
    margin-bottom: 12px;
    max-width: 500px;
}

/* هاور */
.post-navigation .nav-links a:hover {
    background-color: #007BFF;
    color: #ffffff;
}

/* آیکون‌ها */
.post-navigation .ast-post-nav svg {
    width: 15px;
    height: 15px;
    margin: 0 6px;
    vertical-align: middle;
}

/* عنوان پست کوچک‌تر */
.post-navigation p {
    margin: 8px 0 0;
    font-size: 11px;
    color: black;
}

/* موبایل */
@media (max-width: 768px) {
    .post-navigation {
        padding: 16px 5px;
    }

    .post-navigation .nav-links a {
        font-size: 12px;
    }
}





/* آیتم منوی دارای زیرمنو */
.main-header-menu .menu-item-has-children {
    position: relative;
}

/* لینک منو – متن وسط‌چین + فضا برای فلش */
.main-header-menu .menu-item-has-children > a {
    text-align: center;
    padding-left: 40px;   /* جا برای دکمه فلش */
}

/* دکمه فلش (Toggle) */
.main-header-menu .menu-item-has-children > .ast-menu-toggle {
    position: absolute;
    left: 8px;            /* انتقال فلش به کنار */
    top: 50%;
    transform: translateX(-20%);
    background: transparent;
    padding: 0;
}

/* جلوگیری از تداخل آیکن */
.main-header-menu .ast-menu-toggle svg {
    width: 14px;
    height: 14px;
}










/* هدر اصلی */
.ast-header,
.ast-header .ast-main-header-bar,
.ast-header .ast-builder-grid-row-container {
    background-color: #1e73be !important; /* رنگ پس‌زمینه */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important; /* سایه */
    transition: all 0.3s ease !important;
    z-index: 999 !important;
}

/* هدر چسبنده (Sticky) */
.ast-header.ast-header-sticky,
.ast-header.ast-header-sticky .ast-main-header-bar {
    background-color: #155d9f !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
}



/* برای اسلایدر شخصی سایت*/
/* اسلایدر دیروز با تگ */
.yesterday-post-slider {
    padding: 20px 0;
}

.yesterday-post-slider .swiper-slide {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yesterday-post-slider .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.yesterday-post-slider .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.yesterday-post-slider .swiper-slide h2 {
    font-size: 20px;
    margin: 10px 0 5px;
}

.yesterday-post-slider .swiper-slide p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* دکمه ناوبری */
.swiper-button-next,
.swiper-button-prev {
    color: #E7AD1A;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .yesterday-post-slider .swiper-slide h2 {
        font-size: 18px;
    }
    .yesterday-post-slider .swiper-slide p {
        font-size: 13px;
    }
}

.yesterday-slider-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #1e73be; /* رنگ دلخواه */
}



