/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

:root {
    --main-color: #306ef7;
    --second-color: #003da8;
    --primary-blue: #0b45d1;
    --light-blue: #3a7df5;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-gray: #f4f5f9;
    --stat-green: #1a9675;
}

body {
    font-family: 'Morabba', sans-serif !important;
}


/* Morabba ExtraBold */
@font-face {
    font-family: 'Morabba';
    src: url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Bold.woff2') format('woff2'),
        url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Bold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Morabba Black */
@font-face {
    font-family: 'Morabba';
    src: url('../vendor/fonts/farsi-fonts-fa-num/Morabba-ExtraBold.woff2') format('woff2'),
        url('../vendor/fonts/farsi-fonts-fa-num/Morabba-ExtraBold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Morabba Black */
@font-face {
    font-family: 'Morabba';
    src: url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Medium.woff2') format('woff2'),
        url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Morabba';
    src: url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Medium.woff2') format('woff2'),
        url('../vendor/fonts/farsi-fonts-fa-num/Morabba-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* B Homa */
@font-face {
    font-family: 'BHoma';
    src: url('../vendor/fonts/farsi-fonts-fa-num/BHoma.ttf') format('ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* B Yekan */
@font-face {
    font-family: 'BYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/B Yekan.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



/* Iran Yekan Light */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* Iran Yekan Regular */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Iran Yekan Medium */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* Iran Yekan Bold */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Iran Yekan ExtraBold */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

/* Iran Yekan Black */
@font-face {
    font-family: 'IranYekan';
    src: url('../vendor/fonts/farsi-fonts-fa-num/iran-yekan-cd-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}


/* --- تنظیمات ریسپانسیو --- */

/* تبلت‌ها و لپتاپ‌های کوچک */
@media (max-width: 1024px) {
    .sepidar-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 ستون */
    }


    /* موبایل‌های بزرگ */
    @media (max-width: 768px) {
        .sepidar-main-wrapper {
            padding: 15px;
            /* کاهش پدینگ در موبایل */
        }

        .sepidar-cards-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            /* 2 ستون در موبایل */
            gap: 10px;
        }

        .chapter-item {
            flex-direction: column !important;
        }
    }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
    .sepidar-cards-grid {
        grid-template-columns: 1fr !important;
        /* 1 ستون در سایز خیلی کوچک */
    }

    .chapter-item {
        flex-direction: column !important;
    }
}

.content-wrapper {
    max-width: 1500px;
    /* حداکثر عرض ۱۵۰۰ پیکسل */
    width: 100%;
    /* برای رسپانسیو بودن در سایزهای کوچکتر */
    margin: 0 auto;
    /* قرار دادن کانتینر در وسط صفحه */

    /* پیشنهاد: کمی فاصله داخلی (padding) اضافه کنید تا در موبایل به لبه‌ها نچسبد */
    padding-left: 15px;
    padding-right: 15px;
}


.light-style .menu .app-brand.demo {
    height: 64px;
}

.dark-style .menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    width: 30px;
    height: 30px;
}

.app-brand-logo.demo svg {
    width: 1.7rem;
    height: 1.7rem;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.45px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
    display: block !important;
}

.demo-inline-spacing>* {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

:root {
    --main-color: #306ef7;
    --second-color: #1a4fbd;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    z-index: 1040;
}

.logo-head {
    max-width: 250px;
    /* تنظیم سایز بر اساس نیاز */
}

/* --- استایل لینک های منو --- */
.custom-nav-link {
    font-weight: 800 !important;
    color: #444 !important;
    font-size: 15px;
    padding: 10px 15px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
}

.nav-arrow {
    color: var(--main-color);
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.custom-nav-link:hover,
.custom-dropdown:hover .custom-nav-link {
    color: var(--main-color) !important;
}

.dropdown-toggle::after {
    display: none !important;
    /* مخفی کردن فلش پیش فرض بوت استرپ */
}

/* --- استایل زیرمنوها --- */
.custom-dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    min-width: 220px;
    margin-top: 10px !important;
    text-align: right;
}

/* باز شدن نرم زیرمنو با هاور در دسکتاپ */
@media (min-width: 992px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease;
    }

    .custom-dropdown:hover .nav-arrow {
        transform: rotate(180deg);
    }
}
.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0b5ed7);
    border: none;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border-width: 1.5px;
}

.custom-dropdown-item {
    display: flex !important;
    align-items: center;
    padding: 12px 15px !important;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    background-color: #f8fbff !important;
}

.dropdown-text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-right: 12px;
    /* فاصله متن از آیکن */
}

/* کادر طوسی آیکن ها */
.dropdown-icon-box {
    background-color: #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown-icon-box i {
    font-size: 22px;
    color: var(--main-color);
}

/* --- دکمه ها --- */
.action-group {
    gap: 16px;
}

.btn-auth {
    background-color: #306ef7 !important;
    color: white;
    border: none;
    height: 52px;
    padding: 0 24px 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    transition: background-color 0.2s;
    align-items: center;
}

.btn-auth:hover {
    background-color: #2558d1;
    color: white;
}

.auth-icon-circle {
    background-color: var(--second-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.btn-cart {
    background-color: #d2dfff !important;
    color: #316cf4 !important;
    border: none;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
}

.btn-cart:hover {
    background-color: #c1d2fb !important;
}

/* --- ریسپانسیو و منوی موبایل --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    #mainNav {
        background-color: #fff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        z-index: 1050;
    }

    .mobile-search-input {
        background-color: #f1f5f9;
        border: none;
        border-radius: 10px;
        padding: 12px 15px 12px 40px;
    }

    .mobile-search-input:focus {
        box-shadow: none;
        background-color: #e2e8f0;
    }

    .custom-nav-link {
        border-bottom: 1px solid #f1f5f9;
        justify-content: space-between;
    }

    .custom-dropdown-menu {
        border: none !important;
        background-color: #fafafa;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    }
}
@media (min-width: 992px) {

    /* والد برای موقعیت‌دهی زیرمنو */
    .custom-dropdown {
        position: relative !important;
    }

    /* استایل پایه زیرمنو در دسکتاپ */
    .custom-dropdown-menu {
        display: block !important;               /* همیشه در جریان لایه‌بندی هست */
        visibility: hidden !important;           /* ولی دیده نمی‌شود */
        opacity: 0 !important;
        position: absolute !important;
        top: 60% !important;                    /* دقیقا چسبیده به آیتم مادر */
        right: 0;
        z-index: 9999 !important;
        transition: opacity 0.2s ease,
        visibility 0.2s ease !important;
        pointer-events: none;                    /* تا وقتی باز نشده کلیک نشود */
        min-width: 250px;

        /* ناحیه امن بین آیتم و منو برای جلوگیری از بسته شدن ناگهانی */
        padding-top: 8px;                        /* این فاصله باعث قطع نشدن هاور می‌شود */
    }

    /* باز شدن زیرمنو هنگام هاور روی والد */
    .custom-dropdown:hover .custom-dropdown-menu {
        visibility: visible !important;
        opacity: 1 !important;
        /* top را دیگر تغییر نمی‌دهیم تا منو نپرد */
        top: 100% !important;
        pointer-events: auto;
    }

    /* چرخش آیکن فلش */
    .nav-arrow {
        transition: transform 0.3s ease;
    }

    .custom-dropdown:hover .nav-arrow {
        transform: rotate(180deg);
    }
    .custom-dropdown::after {
        content: "";
        position: absolute;
        bottom: -10px;   /* فاصله میان آیتم و منو را پر می‌کند */
        right: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }

}

/* استایل های دسکتاپ */
@media (min-width: 992px) {
    .custom-menu-container {
        display: flex !important;
        flex-grow: 1;
        /*justify-content: center;*/
    }

    .custom-dropdown-menu {
        display: none;
        position: absolute;
        /* سایر استایل های قبلی زیرمنو دسکتاپ... */
    }
}

/* استایل های موبایل (باز شدن نرم) */
@media (max-width: 991px) {

    /* منوی اصلی موبایل */
    .custom-menu-container {
        background-color: #fff;
        padding: 0 15px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        z-index: 1050;

        /* انیمیشن ارتفاع */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    /* وقتی منوی اصلی باز است */
    .custom-menu-container.open {
        max-height: 800px;
        /* مقدار کافی برای جا شدن محتوا */
        opacity: 1;
        padding: 15px;
        margin-top: 10px;
    }

    /* زیرمنوهای موبایل */
    .custom-dropdown-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
        margin: 0;
        border: none;
        background-color: #fafafa;
        border-radius: 8px;
    }

    /* وقتی زیرمنو باز است */
    .custom-dropdown-menu.open {
        max-height: 300px;
        /* مقدار کافی برای زیرمنو */
        margin-top: 5px;
    }
}

/* استایل مشترک لیست ها (برای حذف نقاط) */
.custom-dropdown-menu {
    list-style: none;
    padding-left: 0;
}



/* --- استایل‌های عمومی --- */
.rounded-custom {
    border-radius: 1.5rem !important;
    /* گردی گوشه ها مشابه تصویر */
}

/* --- استایل اسلایدرها و دکمه‌های کنترل --- */
.custom-carousel {
    position: relative;
    overflow: hidden;
}

/* دکمه‌های دایره‌ای اسلایدر */
.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #e5e5e5;
    /* رنگ طوسی روشن پس زمینه دکمه */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.custom-carousel-control:hover {
    background-color: #d4d4d4;
    color: #000;
}

.control-next {
    right: 15px;
}

.control-prev {
    left: 15px;
}

/* آیکن مثلثی داخل دکمه‌ها */
.custom-carousel-control svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- اسلایدر بالا --- */
.top-slider-inner {
    background-color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* خنثی کردن دستوارت ناگهانی بوت‌استرپ و آماده‌سازی برای انیمیشن */
.custom-carousel .carousel-inner {
    position: relative;
    overflow: hidden;
}

.custom-carousel .carousel-item {
    display: block !important; /* جلوی ناپدید شدن ناگهانی را می‌گیرد */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

/* اعمال انیمیشن نرم روی اسلاید فعال */
.custom-carousel .carousel-item.active {
    position: relative; /* اسلاید فعال ارتفاع اصلی باکس را حفظ می‌کند */
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
/* --- اسلایدر پایین (آبی) --- */
.bottom-slider-inner {
    background-color: #0c55f9;
    height: 100%;
}

/* --- آیکن باکس‌ها --- */
.icon-box-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* فاصله بین ردیف ها */
    height: 100%;
    justify-content: space-between;
}

.icon-box {
    background-color: #f2eed1;
    /* رنگ کرم روشن */
    border-radius: 1.2rem;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    flex-direction: row-reverse;
    justify-content: space-between;
    /* برای هم‌ارتفاع شدن باکس‌ها */
}

.icon-box-title {
    color: #0c3cae;
    /* رنگ آبی تیره متن */
    font-weight: 900;
    font-size: 1.9rem;
    margin: 0;
}

.icon-box-icon {
    color: #0c3cae;
    /* رنگ آیکن */
    display: flex;
    align-items: center;
    justify-content: center;
}


/* استایل کلی فوتر */
.custom-footer {
    background-color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
    margin-top: 80px;
    /* فضای لازم برای بیرون زدگی باکس های آمار */
}

/* باکس‌های آمار */
.stats-row {
    position: relative;
    top: -45px;
    /* نیمی از باکس بیرون از کادر آبی قرار می‌گیرد */
    z-index: 10;
}

.stat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
}

.stat-number {
    color: var(--stat-green);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}

.stat-title {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'IranYekan', sans-serif !important;
}

/* باکس سفید اصلی فوتر */
.footer-main-box {
    background-color: #ffffff;
    border-radius: 4px;
    /* لبه های تیزتر مشابه عکس */
    padding: 3rem 2rem;
    margin-top: -20px;
}

/* هدینگ‌ها */
.footer-heading {
    color: var(--light-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
    width: 100%;
    text-align: right;
    font-family: 'IranYekan', sans-serif !important;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-blue);
    border-radius: 2px;
}

.footer-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    font-family: 'IranYekan', sans-serif !important;
}

/* نمادها (اعتماد) */
.trust-badges {
    background-color: var(--bg-gray);
    padding: 1rem;
    border-radius: 12px;
}

.badge-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* اطلاعات تماس */
.contact-info-box {
    background-color: var(--bg-gray);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid #d4d4d4;
}

.contact-info-box li {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.contact-info-box li:last-child {
    border-bottom: none;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: 'IranYekan', sans-serif !important;
}

.contact-text strong {
    font-weight: 700;
}

.contact-icon {
    color: var(--light-blue);
    font-size: 1.1rem;
    background-color: #e2eafc;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

/* پیام هشدار */
.alert-box {
    background-color: #e6f4ea;
    color: #1a9675;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    font-family: 'IranYekan', sans-serif !important;
}

/* شبکه های اجتماعی */
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    gap: 0.5rem;
}

.social-icon-wrapper {
    background-color: #e8ebf0;
    /* طوسی روشن مایل به آبی */
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--light-blue);
}
.social-btn span {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-icon-wrapper img {
    max-width: 80px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .footer-heading {
        margin-top: 1.5rem;
    }

    .social-container {
        --bs-gutter-x: 1rem !important;
    }
}

.social-container {
    --bs-gutter-x: -6rem;
}

/* استایل عناوین (خط آبی کنار متن) */
.section-title {
    border-right: 4px solid #0c3cae;
    /* رنگ آبی تیره خط کنار عنوان */
    padding-right: 12px;
}

.section-title h3 {
    color: #0c3cae;
    font-size: 1.4rem;
}

.section-title span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #b0b0b0 !important;
}

/* استایل دکمه‌های مشاهده همه */
.btn-view-all {
    background-color: #316cf4;
    color: white;
    border: none;
    font-weight: 700;
    padding: 8px 8px 8px 8px;
    /* پدینگ تنظیم شده برای جاگیری آیکون */
    transition: all 0.3s ease;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-view-all:hover {
    background-color: #0c3cae;
    color: white;
}

/* باکس‌های آبی جایگزین (Placeholder) */
.product-placeholder {
    background-color: #3b71f7;
    height: 240px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(49, 108, 244, 0.15);
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
}


/* استایل‌های بخش مشاوره */
.consultation-section {
    background-color: #f3f0de;
    /* رنگ پس‌زمینه کرم */
    padding: 60px 0;
    border-radius: 1.5rem;
    /* گرد کردن گوشه‌های کل باکس در صورت نیاز */
}

.consultation-title {
    color: #0c3cae;
    /* رنگ آبی تیره */
    font-weight: 900;
    font-size: 2.2rem;
}

.consultation-desc {
    color: #316cf4;
    /* رنگ آبی روشن‌تر */
    font-weight: 700;
    line-height: 2.2;
    font-size: 1.15rem;
}

.btn-consultation {
    background-color: #a4c1fc;
    /* آبی کمرنگ دکمه */
    color: #0c3cae !important;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-consultation:hover {
    background-color: #8babf1;
}

.phone-text {
    color: #0c3cae;
    font-size: 1.2rem;
}

.phone-icon-wrapper {
    background-color: #a4c1fc;
    color: #0c3cae;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
}


/* بنر بالای صفحه */
.top-banner {
    background-color: #3b71f7;
    width: 100%;
}

/* استایل‌های عنوان بخش */
.section-header-line {
    border-top: 2px solid #0c3cae;
    opacity: 1;
    margin-left: 20px;
}

.section-header-title {
    border-right: 3px solid #0c3cae;
    /* خط عمودی کنار عنوان */
    padding-right: 10px;
}

.title-fa {
    color: #0c3cae;
    font-size: 1.5rem;
}

.title-en {
    color: #a0a0a0;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* استایل کارت محصول */
.product-card {
    background-color: #ffffff;
    border: 2px solid #555;
    /* حاشیه تیره و ضخیم‌تر مشابه تصویر */
    border-radius: 1.5rem;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-blue {
    background-color: #3b71f7;
    height: 220px;
    width: 100%;
    border-radius: 1rem;
}

.product-title {
    color: #4b4b4b;
    font-size: 1.2rem;
    font-family: 'IranYekan', sans-serif !important;
}

/* نوار طوسی رنگ پایین کارت */
.card-footer-box {
    background-color: #f2f2f2;
    border-radius: 2rem;
    padding: 4px 12px 4px 4px;
    /* پدینگ تنظیم شده برای قرارگیری دکمه */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* استایل قیمت‌ها و آیکون */
.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dollar-icon {
    color: #3b71f7;
    font-size: 1.4rem;
}

.old-price {
    color: #333;
    font-size: 0.8rem;
    text-decoration: line-through;
    text-decoration-color: #dc3545;
    /* خط قرمز روی متن مشکی */
    text-decoration-thickness: 2px;
    font-family: 'IranYekan', sans-serif !important;
}

.new-price {
    color: #000;
    font-size: 0.9rem;
    font-family: 'IranYekan', sans-serif !important;
}

/* دکمه مشاهده */
.btn-view-card {
    background-color: #3b71f7;
    color: white;
    font-size: 0.9rem;
    padding: 8px 24px;
    border: none;
    border-radius: 2rem;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-view-card:hover {
    background-color: #2a5bd6;
    color: white;
}

.prod-header {
    margin-right: 7px;
}

/* کانتینر اصلی کارت محصول */
.product-detail-card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border: 1px solid #eaeaea;
}

/* عنوان آبی رنگ بالای لیست */
.product-detail-title {
    background-color: #cfd4dc;
    /* رنگ طوسی پس زمینه عنوان */
    color: #0c3cae;
    /* رنگ آبی تیره متن */
    font-size: 2rem;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* کادر دربرگیرنده لیست ویژگی‌ها */
.product-detail-list {
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* استایل هر ردیف از لیست */
.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1.5px solid #d1d5db;
    color: #333333;
    font-size: 1.1rem;
}

/* حذف خط پایین از آخرین ردیف */
.product-detail-item:last-child {
    border-bottom: none;
}

/* رنگ‌بندی یکی‌درمیان ردیف‌ها (مانند تصویر) */
.product-detail-item:nth-child(odd) {
    background-color: #f1f1f1;
}

.product-detail-item:nth-child(even) {
    background-color: #e5e5e5;
}

/* استایل آیکون‌های سمت چپ لیست */
.product-detail-item i {
    font-size: 1.6rem;
    color: #555555;
}

/* دکمه افزودن به سبد خرید */
.btn-buy-exact {
    background-color: #3b71f7;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: background-color 0.3s ease;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-buy-exact:hover {
    background-color: #2a5bd6;
    color: #ffffff;
}

.btn-buy-exact i {
    font-size: 2.2rem;
}

/* کادر دربرگیرنده لیست */
.product-feature-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

/* استایل هر ردیف - چیدمان راست به چپ */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* آیتم‌ها را از راست (شروع کانتینر) می‌چیند */
    padding: 14px 20px;
    border-bottom: 1px solid #d1d5db;
    gap: 15px;
    /* فاصله دقیق بین آیکون و متن */
}

/* حذف خط پایین از آخرین آیتم */
.feature-item:last-child {
    border-bottom: none;
}

/* رنگ بندی طوسی یکی در میان (دقیقا مشابه عکس) */
.feature-item:nth-child(odd) {
    background-color: #f2f2f2;
}

.feature-item:nth-child(even) {
    background-color: #e6e6e6;
    /* رنگ تیره‌تر برای آیتم‌های زوج */
}

/* استایل آیکون‌های SVG */
.feature-icon {
    width: 28px;
    height: 28px;
    fill: #686868;
    /* رنگ خاکستری تیره مایل به دودی */
    flex-shrink: 0;
}

/* استایل متن مقابل آیکون */
.feature-text {
    font-weight: 700;
    /* بولد بودن متن مثل عکس */
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'IranYekan', sans-serif !important;
}

.feature-text span {
    color: #333333;
}

/* --- تنظیمات اختصاصی ریسپانسیو برای موبایل --- */
@media (max-width: 768px) {

    /* کاهش فاصله کلی باکس از حاشیه‌های صفحه */
    .product-detail-card {
        padding: 5px !important;
    }

    /* کوچکتر کردن عنوان اصلی محصول */
    .product-detail-title {
        font-size: 20px !important;
        text-align: right;
        margin-top: 15px;
    }

    /* کاهش پدینگ داخلی ردیف‌های ویژگی */
    .feature-item {
        padding: 10px 12px !important;
    }

    /* کوچکتر کردن آیکون‌ها */
    .feature-icon,
    .feature-item svg {
        width: 18px !important;
        height: 18px !important;
        margin-left: 10px !important;
    }

    /* کوچکتر کردن فونت متن‌ها */
    .feature-text {
        font-size: 13px !important;
    }

    /* کنترل ارتفاع تصویر در موبایل تا بیش از حد بزرگ نشود */
    #product-main-image {
        max-height: 280px !important;
    }

    /* تمام‌عرض کردن دکمه سبد خرید در موبایل */
    .btn-buy-exact {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px !important;
        font-size: 15px !important;
        font-family: 'IranYekan', sans-serif !important;
    }
}

/* کادر سفید اصلی که کل بخش را در بر می‌گیرد */
.video-section-wrapper {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* سایه نرم اطراف کادر */
}

/* استایل کانتینر ویدیو */
.video-container {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #a7a7a7;
    /* رنگ پس‌زمینه ویدیو قبل از لود */
}

/* استایل خود ویدیو */
.promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* باکس طوسی رنگ توضیحات سمت چپ */
.video-info-box {
    background-color: #f2f2f2;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* عنوان آبی رنگ داخل باکس */
.video-info-title {
    color: #0b3d8a;
    /* رنگ آبی تیره مشابه عکس */
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dddddd;
    /* خط جداکننده زیر عنوان */
}

/* لیست توضیحات */
.video-info-list {
    list-style-type: disc;
    padding-right: 20px;
    /* فاصله دایره‌های لیست از حاشیه راست */
    margin: 0;
    font-family: 'IranYekan', sans-serif !important;
}

/* آیتم‌های لیست */
.video-info-list li {
    color: #555555;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 15px;
}

/* تغییر رنگ دایره‌های بولت پوینت به طوسی تیره */
.video-info-list li::marker {
    color: #666666;
}

/* تنظیمات ریسپانسیو برای موبایل و تبلت‌های کوچک */
@media (max-width: 768px) {
    .video-section-wrapper {
        padding: 10px;
    }

    .video-container {
        min-height: 220px;
    }

    .video-info-title {
        font-size: 20px;
    }

    .video-info-list li {
        font-size: 14px;
    }
}

/* استایل هدر (عنوان گواهینامه و Certificate) */
.certificate-header {
    display: flex;
    justify-content: flex-start;
}

.header-text-group {
    border-right: 4px solid #0b3d8a;
    /* خط آبی سمت راست */
    padding-right: 15px;
    display: flex;
    flex-direction: column;
}

.title-fa {
    color: #0b3d8a;
    /* آبی تیره */
    font-weight: 900;
    font-size: 32px;
    margin: 0;
    line-height: 1;
}

.title-en {
    color: #b0b0b0;
    /* طوسی روشن */
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* کادر سفید اصلی */
.certificate-main-wrapper {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* سایه بسیار نرم */
}

/* --- تنظیمات ستون سمت راست (تصویر و دکمه) --- */

.certificate-image-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* شکل دایره‌ای طوسی رنگ پشت تصویر */
.certificate-image-container .bg-shape {
    position: absolute;
    top: 0;
    left: 20px;
    width: 150px;
    height: 150px;
    background-color: #e9ecef;
    border-radius: 50%;
    z-index: 1;
}

.certificate-img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* دکمه مشاهده با کیفیت */
.view-hq-btn {
    background-color: #efefef;
    color: #555555;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.view-hq-btn svg {
    margin-left: 8px;
    /* فاصله آیکون از متن (راست‌چین) */
    color: #555555;
}

.view-hq-btn:hover {
    background-color: #e2e2e2;
    color: #333;
}

/* --- تنظیمات ستون سمت چپ (باکس توضیحات) --- */

.certificate-info-box {
    background-color: #f4f4f4;
    /* طوسی بسیار روشن */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}

.info-box-title {
    color: #0b3d8a;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d5d5d5;
    /* خط طوسی زیر عنوان */
    font-family: 'IranYekan', sans-serif !important;
}

.info-box-list {
    list-style-type: none;
    /* حذف بولت‌های پیش‌فرض برای استفاده از بولت کاستوم */
    padding: 0;
    margin: 0;
    font-family: 'IranYekan', sans-serif !important;
}

.info-box-list li {
    color: #444444;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-right: 20px;
    line-height: 1.8;
}

/* دایره توپر (بولت پوینت) کنار لیست */
.info-box-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #666666;
    border-radius: 50%;
}

.info-box-list li:last-child {
    margin-bottom: 0;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 991px) {
    .certificate-main-wrapper {
        padding: 20px;
    }

    .certificate-info-box {
        margin-top: 20px;
        padding: 20px;
    }

    .title-fa {
        font-size: 26px;
    }

    .title-en {
        font-size: 18px;
    }

    .info-box-title {
        font-size: 18px;
    }

    .info-box-list li {
        font-size: 14px;
    }
}


/* --- تنظیمات پایه --- */
.course-syllabus-section {
    background-color: #f1f2f4;
    /* رنگ پس زمینه خاکستری روشن مثل عکس */
    padding: 50px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- هدر (عنوان) --- */
.syllabus-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.title-wrapper {
    text-align: right;
    border-right: 4px solid #003087;
    /* خط آبی کنار عنوان */
    padding-right: 15px;
}

.title-wrapper h2 {
    color: #003087;
    /* رنگ آبی تیره */
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.title-wrapper .en-title {
    color: #a0a5aa;
    /* رنگ خاکستری انگلیسی */
    font-size: 18px;
    letter-spacing: 1px;
}

/* --- ساختار ستون ها --- */
.syllabus-columns {
    display: flex;
    gap: 30px;
}

.syllabus-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* فاصله بین آکاردئون ها */
}

/* --- استایل آکاردئون --- */
.acc-item {
    background: transparent;
}

.acc-btn {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    /* متن راست، آیکون چپ */
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.acc-btn:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.acc-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    font-family: 'IranYekan', sans-serif !important;
}

.acc-icon {
    background-color: #f15a29;
    /* رنگ نارنجی */
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    /* گوشه های گرد مربعی */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* --- محتوای داخل آکاردئون --- */
.acc-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.acc-body {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -8px;
    /* چسبیدن به دکمه بالا */
    padding: 20px;
    padding-top: 25px;
}

/* استایل لیست جلسات */
.session-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.session-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    font-family: 'IranYekan', sans-serif !important;
}

.session-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.session-list .time {
    background: #f1f2f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* --- رسپانسیو (موبایل) --- */
@media (max-width: 768px) {
    .syllabus-columns {
        flex-direction: column;
        /* در موبایل تک ستونه میشود */
        gap: 15px;
    }
}


/* --- تنظیمات پایه بخش سوالات متداول --- */
.faq-section {
    background-color: #f1f2f4;
    /* پس زمینه خاکستری روشن */
    padding: 50px 20px;
}

.faq-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- هدر (عنوان) --- */
.faq-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.faq-header .title-wrapper {
    text-align: right;
    border-right: 4px solid #003087;
    /* خط آبی کنار عنوان */
    padding-right: 15px;
}

.faq-header h2 {
    color: #003087;
    /* رنگ آبی تیره */
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.faq-header .en-title {
    color: #a0a5aa;
    /* رنگ خاکستری انگلیسی */
    font-size: 18px;
    letter-spacing: 1px;
}

/* --- ساختار لیست سوالات (تک ستونه) --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* فاصله بین سوالات */
}

/* --- استایل دکمه و آکاردئون --- */
.faq-item {
    background: transparent;
}

.faq-btn {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 15px 20px;
    /* پدینگ کمی بیشتر برای سوالات */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.faq-btn:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.faq-title {
    font-size: 16px;
    font-weight: bold;
    color: #444444;
    /* رنگ متن سوال */
    text-align: right;
    font-family: 'IranYekan', sans-serif !important;
}

.faq-icon {
    background-color: #f15a29;
    /* رنگ نارنجی */
    color: #ffffff;
    width: 24px;
    height: 24px;
    min-width: 24px;
    /* جلوگیری از تغییر اندازه */
    flex-shrink: 0;
    border-radius: 5px;
    /* گوشه های مربعی */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* --- محتوای داخل آکاردئون (پاسخ ها) --- */
.faq-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-body {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -8px;
    padding: 20px;
    padding-top: 25px;
}

.faq-body p {
    margin: 0;
    color: #666666;
    font-size: 17px;
    line-height: 1.8;
    text-align: right;
    font-family: 'IranYekan', sans-serif !important;
}

/* استایل کادر اصلی */
.chapters-card-wrapper {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    /* سایه نرم مشابه عکس */
}

/* استایل هدر (عنوان) */
.chapters-header {
    background-color: #ededed;
    color: #3b71f7;
    text-align: center;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* کانتینر دربرگیرنده لیست (برای ایجاد حاشیه دور کل لیست) */
.chapters-list {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    /* برای جلوگیری از بیرون زدن استایل‌ها از گوشه‌های گرد */
}

/* استایل هر ردیف (فصل) */
.chapter-item {
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

/* حذف خط زیرین برای آخرین ردیف */
.chapter-item:last-child {
    border-bottom: none;
}

/* استایل کادر شماره فصل (بج طوسی) */
.chapter-badge {
    background-color: #f1f1f1;
    color: #333;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin-left: 15px;
    /* فاصله از متن عنوان */
}

/* استایل متن عنوان فصل */
.chapter-title {
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'IranYekan', sans-serif !important;
}

/* استایل دکمه مشاهده */
.chapter-btn {
    background-color: #3b71f7;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 25px;
    /* گوشه های کاملا گرد */
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(59, 113, 247, 0.4);
    /* سایه و هاله آبی رنگ دکمه */
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'IranYekan', sans-serif !important;
}

/* افکت هاور برای دکمه */
.chapter-btn:hover {
    background-color: #2b5cd6;
    box-shadow: 0 6px 15px rgba(59, 113, 247, 0.5);
    transform: translateY(-2px);
}

/* کانتینر اصلی */
.sepidar-chapter-container {
    width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

.sepidar-main-wrapper {
    background-color: #f6f6f6;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* هدر فصل */
.sepidar-chapter-header {
    background-color: #e6e6e6;
    max-width: 400px;
    margin: 0 auto 30px auto;
    text-align: center;
    padding: 15px 20px;
    border-radius: 12px;
}

.sc-subtitle {
    display: block;
    color: #555;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: 'IranYekan', sans-serif !important;
}

.sc-title {
    color: #3b7af2;
    /* رنگ آبی مشابه عکس */
    font-size: 1.4rem;
    margin: 0;
    font-family: 'IranYekan', sans-serif !important;
}

/* گرید کارت‌ها - نمایش ۶ ستون در دسکتاپ */
.sepidar-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* ظاهر کارت‌ها */
.sc-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sc-media-box {
    position: relative;
    background-color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sc-video,
.sc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-buy-box {
    background-color: #f9f9f9;
}

/* آیکون برند و دایره شماره */
.sc-brand-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    /* طبق عکس در سمت راست */
    width: 16px;
    height: 16px;
    background-color: #8cc63f;
    /* سبز سپیدار */
    border-radius: 3px 10px 3px 10px;
    /* شکل تقریبی آیکون */
    z-index: 2;
}

.sc-number-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(128, 128, 128, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 2;
}

/* عنوان و دکمه کارت */
.sc-card-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #444;
    text-align: center;
    margin: 12px 0;
    line-height: 1.4;
    flex-grow: 1;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-exam-danger {
    font-family: 'IranYekan', sans-serif !important;
}

.btn-exam-primary {
    font-family: 'IranYekan', sans-serif !important;
}

.sc-card-btn {
    background-color: #3b7af2;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    /* دکمه‌های کپسولی */
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'IranYekan', sans-serif !important;
}

.sc-card-btn:hover {
    background-color: #2a61d1;
}

/* آکاردئون پایین */
.sc-accordion-wrapper {
    background-color: #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.sc-accordion-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.sc-accordion-title {
    color: #555;
    font-weight: bold;
    font-size: 0.95rem;
}

.sc-accordion-btn {
    background-color: #8cc63f;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.plus-icon {
    transition: transform 0.3s ease;
}

.sc-accordion-header.active .plus-icon {
    transform: rotate(45deg);
    /* تبدیل + به x */
}

.sc-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.sc-accordion-inner {
    padding: 15px 20px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.8;
    background-color: #f1f1f1;
    font-family: 'IranYekan', sans-serif !important;
}

#about-season {
    font-family: 'IranYekan', sans-serif !important;
}

.sc-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* بالاتر از ویدیو و پایین‌تر از آیکون برند و شماره (که z-index: 2 دارند) */
    cursor: pointer;
    transition: opacity 0.3s ease;
    background-color: var(--primary-blue);
}

/* کلاسی برای مخفی کردن کاور هنگام پخش ویدیو (با جاوا اسکریپت) */
.sc-video-cover.hidden {
    opacity: 0;
    pointer-events: none;
}




/* کادر طوسی برای ویدیو اصلی */
.main-video-placeholder {
    width: 100%;
    height: 450px;
    background-color: #d1d5db;
    /* رنگ طوسی */
    border-radius: 12px;
    margin-bottom: 20px;
}

/* دکمه دانلود */
.btn-download {
    background-color: #000;
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-download:hover {
    background-color: #333;
    color: #fff;
}

/* باکس های آمار (زمان، دسته بندی و ...) */
.stat-box {
    border: 1.5px solid #eaeaea;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 100%;
}

.stat-box i {
    color: #0d6efd;
    /* آیکون آبی */
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.stat-box .stat-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #222;
    font-family: 'IranYekan', sans-serif !important;
}

.stat-box .stat-value {
    font-size: 0.85rem;
    color: #777;
}

/* لیست سرفصل ها */
.course-chapters-section {
    margin-top: 30px;
    font-family: 'IranYekan', sans-serif !important;
}

.chapter-list {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.chapter-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.chapter-list li::before {
    content: '●';
    position: absolute;
    right: 0;
    color: #111;
    font-size: 0.8rem;
    top: 2px;
}

/* سایدبار - ویدیوهای مشابه */
.similar-videos-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.similar-video-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 15px;
    gap: 15px;
}

.similar-video-item .video-wrapper {
    flex: 0 0 130px;
    /* عرض ثابت برای باکس‌های سایدبار */
}

/* کادر طوسی برای ویدیوهای سایدبار */
.sidebar-video-placeholder {
    width: 100%;
    height: 80px;
    background-color: #d1d5db;
    /* رنگ طوسی */
    border-radius: 8px;
}

.similar-video-info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.similar-video-title {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    font-family: 'IranYekan', sans-serif !important;
}

.similar-video-views {
    font-size: 0.75rem;
    color: #888;
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .main-video-placeholder {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-video-placeholder {
        height: 220px;
    }

    .header-action-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
}



#course-title {
    font-family: 'IranYekan', sans-serif !important;
}


/* بنر هدر آبی رنگ */
.exam-header-banner {
    background-color: #3f72ef;
    /* رنگ آبی دقیق */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.exam-header-banner h4 {
    color: #fff !important;
}

/* کادر جایگزین ویدیو */
.video-placeholder {
    height: 380px;
    background-color: #9ca3af !important;
    /* رنگ طوسی پس زمینه ویدیو */
    border-bottom: 5px solid #000;
    /* نوار مشکی پایین ویدیو پلیر */
    border-radius: 4px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .video-placeholder {
        height: 250px;
    }
}

/* شکل فلش پایین (زیر ویدیو) */
.chevron-down {
    width: 50px;
    height: 15px;
    position: relative;
}

.chevron-down::before,
.chevron-down::after {
    content: '';
    position: absolute;
    top: 0;
    width: 55%;
    height: 6px;
    background-color: #e5e5e5;
    border-radius: 5px;
}

.chevron-down::before {
    left: 0;
    transform: skewY(25deg);
}

.chevron-down::after {
    right: 0;
    transform: skewY(-25deg);
}

/* استایل کارت های آزمون */
.exam-card {
    border: 1px solid #737373;
    /* حاشیه خاکستری */
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

/* کادر آبی رنگ داخل کارت (جایگزین تصویر) */
.exam-img-placeholder {
    background-color: #3f72ef;
    /* رنگ آبی دقیق */
    height: 180px;
    width: 100%;
}

/* دکمه های وضعیت آزمون */
.btn-exam-danger {
    background-color: #b90000;
    /* رنگ قرمز تیره مشابه عکس */
    border: none;
    transition: all 0.3s ease;
}

.btn-exam-danger:hover {
    background-color: #8c0000;
    color: #fff;
}

.btn-exam-primary {
    background-color: #3f72ef;
    /* رنگ آبی */
    border: none;
    transition: all 0.3s ease;
}

.btn-exam-primary:hover {
    background-color: #2b55c4;
    color: #fff;
}


/* استایل دکمه نارنجی ورود به آزمون */
.btn-enter-exam {
    background-color: #ff5722;
    /* رنگ نارنجی مشابه تصویر */
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    /* سایه همرنگ دکمه */
    border: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 80%;
    /* عرض دکمه نسبت به کادر */
}

.btn-enter-exam:hover {
    background-color: #e64a19;
    color: #fff;
    box-shadow: 0 6px 12px rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
    /* حرکت ظریف به بالا هنگام هاور */
}

.img-placeholder img {
    width: 180px;
}


/* استایل کادر اصلی */
.card.shadow {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
}

/* کادر دور لیست قوانین */
.rules-box {
    border-color: #eee !important;
}

/* رنگ عنوان آبی */
.rules-title {
    color: #4285f4;
    font-size: 25px;
    font-family: 'IranYekan', sans-serif !important;
}

/* استایل لیست (تنظیم بولت‌ها برای راست‌چین) */
.rules-list {
    list-style-type: disc;
    padding-right: 1.5rem !important;
    /* فاصله بولت از لبه راست */
}

.rules-list li {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    margin-bottom: 15px;
    /* این عدد را بسته به نیاز خود کم یا زیاد کنید */
    line-height: 1.8;
    font-family: 'IranYekan', sans-serif !important;
}

/* استایل دایره سمت چپ */
.icon-circle {
    width: 350px;
    height: 350px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    background-color: #e8e8e8 !important;
}

/* استایل آیکن چکش */
.rules-icon {
    font-size: 14rem;
    color: #4285f4;
    transform: rotate(-45deg);
    /* چرخش آیکن برای شباهت به تصویر */
    /* ایجاد یک سایه ملایم آبی زیر آیکن */
    filter: drop-shadow(0 10px 15px rgba(66, 133, 244, 0.3));
}

.rules-icon {
    transform: rotate(1deg);
    ;
    /* این خط آیکن را 25 درجه به سمت چپ کج می‌کند */
    display: inline-block;
    /* برای اعمال چرخش روی آیکن‌های فونتی این مورد الزامی است */
    text-shadow: 0px 8px 15px rgba(0, 123, 255, 0.5);
}

/* تنظیمات کلی بخش */
.faq-section {
    background-color: #f3f4f6;
    /* رنگ پس‌زمینه طوسی روشن مشابه عکس */
    padding: 50px 20px;
    direction: rtl;
}

.faq-title {
    text-align: center;
    color: #4b5563;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'IranYekan', sans-serif !important;
}

.faq-container {
    margin: 0 auto;
}

/* استایل هر کارت آکاردئون */
.faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* استایل هدر (دکمه باز و بسته کردن) */
.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: background-color 0.3s;
}

.faq-header:hover {
    background-color: #f9fafb;
}

.faq-question {
    font-size: 16px;
    color: #374151;
    font-weight: bold;
    font-family: 'IranYekan', sans-serif !important;
}

/* استایل آیکن مثبت آبی رنگ */
.faq-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #3b82f6;
    /* رنگ آبی */
    color: white;
    border-radius: 6px;
    /* مربع با گوشه‌های گرد */
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* چرخش آیکن هنگام باز شدن */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    /* تبدیل + به ضربدر */
    background-color: #ef4444;
    /* اختیاری: تغییر رنگ به قرمز هنگام باز بودن */
}

/* استایل محتوای پاسخ (پنهان به صورت پیش‌فرض) */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #ffffff;
    font-family: 'IranYekan', sans-serif !important;
}

.faq-inner {
    padding: 0 20px 20px 20px;
    color: #6b7280;
    line-height: 1.8;
    font-size: 15px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 10px;
    padding-top: 15px;
}

/* تنظیمات کلی بخش استعلام */
.inquiry-section {
    background-color: #f2f3f5;
    /* رنگ پس‌زمینه طوسی روشن */
    width: 100%;
    margin: 40px auto;
    direction: rtl;
    padding-bottom: 40px;
}

/* هدر آبی رنگ */
.inquiry-header {
    background-color: #407bff;
    /* رنگ آبی دقیق مشابه عکس */
    color: #ffffff !important;
    text-align: center;
    padding: 25px 0;
    margin-bottom: 40px;
}

.inquiry-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* بدنه اصلی شامل فرم */
.inquiry-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

/* کادر طوسی آیکن */
.inquiry-icon-box {
    background-color: #e6e8eb;
    width: 130px;
    height: 130px;
    border-radius: 30px;
    /* میزان گردی گوشه‌های کادر آیکن */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
}

.inquiry-icon {
    width: 80px;
    /* اندازه عکس آیکن را تنظیم میکند */
    height: auto;
}

/* فیلد ورودی کد ملی */
.inquiry-input {
    width: 100%;
    max-width: 500px;
    /* عرض کادر ورودی */
    height: 55px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    /* وسط چین کردن متن و پلیس‌هولدر */
    font-size: 16px;
    color: #333;
    margin-bottom: 25px;
    outline: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.02);
    transition: 0.3s;
}

/* رنگ متن راهنمای داخل کادر */
.inquiry-input::placeholder {
    color: #a0a5b1;
    font-weight: 500;
}

/* افکت هنگام کلیک روی فیلد */
.inquiry-input:focus {
    border-color: #407bff;
    box-shadow: 0px 0px 8px rgba(64, 123, 255, 0.2);
}

/* دکمه استعلام */
.inquiry-btn {
    background-color: #4a88ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 45px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 6px 15px rgba(74, 136, 255, 0.3);
    /* سایه ملایم آبی دکمه */
    margin-bottom: 30px;
    transition: background-color 0.3s, transform 0.1s;
}

.inquiry-btn:hover {
    background-color: #3570e6;
}

.inquiry-btn:active {
    transform: scale(0.97);
    /* افکت کوچک شدن هنگام کلیک */
}

/* متن راهنمای پایین */
.inquiry-guide {
    color: #9ba0aa;
    font-size: 14px;
    text-align: center;
    margin: 0;
}


/* کادر اصلی دربرگیرنده */
.contact-support-section {
    display: flex;
    flex-direction: row;
    gap: 30px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.02);
    direction: rtl;
}

/* ستون ها */
.contact-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* عنوان های طوسی (ارسال پیام، شبکه های اجتماعی و ...) */
.box-title {
    background-color: #5a8dee;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- استایل های ستون راست (پشتیبانی و شبکه ها) --- */
.contact-box {
    margin-bottom: 25px;
}

.contact-box:last-child {
    margin-bottom: 0;
}

/* لیست اطلاعات تماس */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 15px;
}

.info-label-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.icon-green {
    background-color: #31c85a;
}

.icon-blue {
    background-color: #2da4f9;
}

.info-label {
    font-size: 14px;
    color: #555;
}

.info-value {
    margin-right: auto;
    /* هل دادن متن به سمت چپ کادر */
    font-size: 15px;
    font-weight: bold;
    color: #444;
}

.dir-ltr {
    direction: ltr;
}

/* برای آیدی تلگرام */

/* لیست شبکه های اجتماعی */
.social-list {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.social-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 3px;
    border-bottom: 1px solid #e8e8e8;
}

.social-item:last-child {
    border-bottom: none;
}

.social-name {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.btn-view {
    background-color: #4a88ff;
    color: #ffffff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0px 4px 10px rgba(74, 136, 255, 0.3);
    transition: 0.3s;
}

.btn-view:hover {
    background-color: #3570e6;
    color: #ffffff;
}

/* --- استایل های ستون چپ (فرم) --- */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    display: flex;
    padding: 12px 40px 12px 15px ;
    border: 1px solid #e8e8e8 ;
    border-radius: 8px ;
    font-size: 14px ;
    color: #333 ;
    outline: none ;
    box-sizing: border-box ;
    transition: 0.3s ;
    margin-bottom: 5px;
    text-align: right;
    background-color: #fff;
}

.form-input::placeholder {
    color: #a0a5b1;
}

.form-input:focus {
    border-color: #4a88ff;
}

.textarea-input {
    height: 140px;
    resize: none;
}

.form-icon {
    position: absolute;
    top: 15px;
    /* تراز کردن آیکن ها */
    right: 15px;
    color: #666;
    font-size: 18px;
}

.submit-wrapper {
    text-align: center;
    margin-top: 10px;
}

.btn-submit {
    background-color: #4a88ff;
    color: #ffffff;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 6px 15px rgba(74, 136, 255, 0.4);
    transition: 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #3570e6;
}

.btn-submit:active {
    transform: scale(0.97);
}

/* --- ریسپانسیو برای موبایل --- */
@media (max-width: 768px) {
    .contact-support-section {
        flex-direction: column;
        /* زیر هم قرار گرفتن ستون ها */
        gap: 40px;
        padding: 15px;
    }

    .info-value {
        font-size: 14px;
    }
}




/* ----- هدر موبایل ----- */
.mobile-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header button,
.mobile-header a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    background: none;
    border: none;
}

/* ----- سایدبار ----- */
.sidebar {
    background: white;
    min-height: 100vh;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.05);
    padding: 20px 15px;
}

.profile-widget {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-widget img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--light-blue);
    margin-bottom: 15px;
}

.nav-pills .nav-link {
    color: #555;
    text-align: right;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    justify-content: flex-start;
}

.nav-pills .nav-link i {
    font-size: 22px;
    margin-left: 12px;
    color: #888;
    transition: 0.3s;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-blue);
    color: white;
}

.nav-pills .nav-link.active i {
    color: white;
}

/* ----- محتوای اصلی ----- */
.main-content {
    padding: 30px;
}

.section-title {
    border-right: 4px solid var(--primary-blue);
    padding-right: 15px;
    margin-bottom: 25px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* کارت های آماری پیشخوان */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-left: 15px;
}

.icon-blue {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.icon-orange {
    background: #fef1e6;
    color: #f2994a;
}

.icon-green {
    background: #e6f4ea;
    color: #1e8e3e;
}

/* کارت دوره ها (شبیه تم سایت) */
.course-card {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
}

/* لایه تیره روی تصویر برای خوانایی متن */
.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.course-card>* {
    position: relative;
    z-index: 2;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(47, 91, 183, 0.3);
    color: white;
}

.course-card h5 {
    font-weight: bold;
    margin-bottom: 5px;
    z-index: 2;
}

.course-card .progress-info {
    z-index: 2;
}

.course-card .progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.course-card .progress-bar {
    background-color: #fff;
}

/* کارت های عمومی (جداول، فرم ها) */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

/* استایل دکمه ها */
.btn-primary-custom {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 30px;
    padding: 8px 25px;
    border: none;
}

/* ریسپانسیو سایدبار */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        /* مخفی در حالت عادی */
        width: 280px;
        z-index: 1050;
        transition: 0.4s ease;
    }

    .sidebar.show {
        right: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content {
        padding: 15px;
    }
    .icon-box-title {
        font-size: 1rem;

    }
}

@media print {

    /* مخفی کردن همه چیز در صفحه */
    body * {
        visibility: hidden;
    }

    /* فقط محتوای مودال قابل دیدن باشد */
    #invoiceModal .modal-content,
    #invoiceModal .modal-content * {
        visibility: visible;
    }

    /* تنظیم موقعیت مودال برای چاپ تمام صفحه */
    #invoiceModal .modal-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }

    /* مخفی کردن دکمه‌های مودال موقع چاپ */
    .modal-footer {
        display: none !important;
    }
}

.profile-add {
    line-height: 2.5rem !important;
}

#panel-cours-card h5 {
    color: #fff !important;
}

.panel-sidebar {
    font-family: 'IranYekan', sans-serif !important;
}

.icon-light-blue {
    background-color: #e7f1ff;
    /* پس‌زمینه آبی بسیار روشن */
    color: #0d6efd;
    /* رنگ آبی اصلی برای خود آیکن */
    padding: 12px;
    border-radius: 10px;
    /* گوشه‌های گرد */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* اندازه آیکن */
}

.about-hero {
    background: linear-gradient(135deg, #1a4eb8 0%, #3b71e8 100%);
    color: white;
    padding: 30px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.feature-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 78, 184, 0.1);
}

.icon-box-2 {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.stats-section {
    background-color: #fff;
    border-top: 4px solid #1a4eb8;
    border-bottom: 4px solid #1a4eb8;
    padding: 40px 0;
}



.about-us p {
    font-family: 'IranYekan', sans-serif !important;
}


.text-hesabdaryar {
    color: #1a4eb8;
}

.bg-hesabdaryar {
    background-color: #1a4eb8;
}

.btn-hesabdaryar {
    background-color: #1a4eb8;
    color: white;
    transition: all 0.3s ease;
    font-family: 'IranYekan', sans-serif !important;
}

.btn-hesabdaryar:hover {
    background-color: #123a8f;
    color: white;
}

.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    font-family: 'IranYekan', sans-serif !important;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #eef4ff;
}

.btn-remove {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
}

.discount-box {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 1px dashed #ccc;
}

.form-control:focus {
    border-color: #1a4eb8;
    box-shadow: 0 0 0 0.25rem rgba(26, 78, 184, 0.25);
}



.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

/* استایل دکمه‌ها */
.btn-custom {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* استایل کارت‌ها */
.checkout-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    /*display: flex;*/
    align-items: center;
    gap: 8px;
}

/* فیلدهای فرم */
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 78, 184, 0.15);
}

.required-star {
    color: #dc3545;
}

/* کارت‌های انتخاب روش پرداخت */
.payment-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-card:hover {
    border-color: #d0d7de;
    background-color: #f8f9fa;
}

.payment-radio:checked+.payment-card {
    background-color: #b8d4ff;
}

.payment-icon {
    font-size: 28px;
    color: var(--primary-color);
}

/* خلاصه سفارش */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
}


.checkout-card {
    font-family: 'IranYekan', sans-serif !important;
}

.invoice-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.invoice-header {
    border-bottom: 2px solid #0d6efd;
    /* رنگ آبی تم سایت */
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.table th {
    background-color: #f1f5f9 !important;
    color: #0d6efd;
}

/* تنظیمات مخصوص زمان چاپ */
@media print {
    body {
        background-color: #fff;
        margin: 0;
        padding: 0;
    }

    .invoice-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .d-print-none {
        display: none !important;
    }

    /* برای چاپ دقیق رنگ‌ها در مرورگرهای کروم و سافاری */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
/* --- Dropdown Menu on Hover --- */

/* این کد باعث می‌شود وقتی روی آیتم والد هاور می‌کنید، زیرمنو نمایش داده شود */
.custom-dropdown:hover .custom-dropdown-menu {
    display: block;
    margin-top: 0.5rem; /* ایجاد یک فاصله کوچک از دکمه اصلی */
    animation: fadeIn 0.3s ease-in-out;
}

/* انیمیشن محو و ظاهر شدن برای زیبایی بیشتر */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* این کد برای اطمینان از بسته بودن منو در حالت عادی است */
.custom-dropdown .custom-dropdown-menu {
    display: none;
}

/* login-card */
/* بزرگ‌تر شدن کارت لاگین */
.custom-auth-card {
    max-width: 520px !important;           /* پیش‌فرض‌های قالب معمولاً 360–420 هستند، ما زیادتر کردیم */
    margin: 0 auto !important;
    border-radius: 18 !important;
}

/* بزرگ‌تر شدن لوگو */
.login-logo {
    width: 160px !important;
}
/* والد نگهدارنده: موقعیت نسبی برای تنظیم پنل */
.cart-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* پنل منو: مطلق (Absolute) است و فضا اشغال نمی‌کند */
.cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px; /* فاصله از دکمه */
    width: 280px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);

    /* مخفی سازی */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    z-index: 9999;
}

/* نمایش هنگام هاور روی کل والد */
.cart-dropdown-wrapper:hover .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ایجاد مثلث کوچک (اختیاری) */
.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}
