@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-FD.woff2') format('woff2'),
        url('../font/Shabnam-FD.woff') format('woff'),
        url('../font/Shabnam-FD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-Bold-FD.woff2') format('woff2'),
        url('../font/Shabnam-Bold-FD.woff') format('woff'),
        url('../font/Shabnam-Bold-FD.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-Medium-FD.woff2') format('woff2'),
        url('../font/Shabnam-Medium-FD.woff') format('woff'),
        url('../font/Shabnam-Medium-FD.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-Light-FD.woff2') format('woff2'),
        url('../font/Shabnam-Light-FD.woff') format('woff'),
        url('../font/Shabnam-Light-FD.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shabnam';
    src: url('../font/Shabnam-Thin-FD.woff2') format('woff2'),
        url('../font/Shabnam-Thin-FD.woff') format('woff'),
        url('../font/Shabnam-Thin-FD.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

body,
html {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: Shabnam, Tahoma, sans-serif;
    background-color: #fdc100;
    overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* استایل سمت چپ (عکس) */
.image-side {
    background-image: url('../images/auth.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.image-side-teachers {
    background-image: url('../images/teachers.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vh;
}

.image-side-about {
    background-image: url('../images/about.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vh;
    background-color: #fddd3e;
}

.image-side-contact {
    background-image: url('../images/contact.png');
    background-size: contain;
    background-repeat: no-repeat;
    height: 100vh;
    background-color: #fdc617;
}

/* استایل سمت راست (فرم) */
.form-side {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* باکس اصلی فرم */
.auth-container {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 2rem;
    margin: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* استایل‌های دکمه سوئیچ (ورود/ثبت‌نام) */
.auth-toggle {
    display: flex;
    background: #f1f3f5;
    border-radius: 50px;
    margin-bottom: 2rem;
    position: relative;
}

.auth-toggle button {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #495057;
    font-weight: bold;
    z-index: 2;
    transition: color 0.3s;
    cursor: pointer;
    border-radius: 50px;
}

.auth-toggle button.active {
    color: white;
}

/* پس‌زمینه متحرک دکمه سوئیچ */
.sliding-bg {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    background: #0d6efd;
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.auth-toggle.register-active .sliding-bg {
    transform: translateX(-100%);
}

/* استایل اختصاصی هدر */
.custom-navbar {
    background-color: #ffee59;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: #50bcec !important;
}

.nav-link {
    color: #495057;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #0d6efd;
    background-color: #f1f3f5;
}

.btn-auth {
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 50px;
    transition: transform 0.2s;
}

.btn-auth:hover {
    transform: translateY(-2px);
}

.hover-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.cover-img {
    height: 180px;
    object-fit: cover;
}

/* استایل ترم‌های قفل شده */
.term-box {
    border-radius: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.term-locked {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.term-locked .lock-icon {
    font-size: 1.5rem;
    color: #6c757d;
}

/* استایل بخش آپلود پروژه */
.upload-zone {
    border: 2px dashed #0d6efd;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background-color: #f1f5f9;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-zone:hover {
    background-color: #e2e8f0;
}

.container-fluid {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.row {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* استایل سایدبار */
.sidebar {
    height: 100%;
    min-height: 100vh;
    background-color: #ffee59;
    border-left: 1px solid #f65469;
    padding: 20px 0;
    overflow-y: visible;
}

.sidebar .nav-link {
    color: #495057;
    padding: 12px 20px;
    border-radius: 0 50px 50px 0;
    margin-bottom: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #fdc100;
    color: #0d6efd;
}

/* استایل جدول‌ها و وضعیت‌ها */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-pass {
    background-color: #d4edda;
    color: #155724;
}

.status-fail {
    background-color: #f8d7da;
    color: #721c24;
}

/* آپلود رسید واریز */
.receipt-upload {
    border: 2px dashed #ced4da;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
}

/* اصلاح ارتفاع و نسبت عکس کارت‌ها */
.course-img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}

/* افکت هوور جذاب برای کارت */
.course-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.content-area {
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.term-box {
    border-radius: 16px;
    transition: all 0.2s ease;
}

.term-locked {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px dashed #cbd5e1;
}

.lesson-page-loading .container {
    display: none;
}

.social-side {
    min-height: calc(100vh - 80px);
}

.social-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    color: #212529;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.social-card i {
    width: 42px;
    font-size: 30px;
    text-align: center;
}

.social-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.social-card span {
    font-size: 16px;
    font-weight: 700;
}

.social-card small {
    color: #6c757d;
    font-size: 14px;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   صفحه اصلی
========================= */

.home-main {
    width: 100%;
    position: relative;
    z-index: 2;
}


/* =========================
   بنر
========================= */

.home-banner {
    width: 100%;
    margin-bottom: 35px;
    overflow: hidden;
}

.home-banner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* =========================
   بخش اسلایدرها
========================= */

.home-sliders {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}


/* =========================
   عنوان + دیوایدر SVG (کاملاً وسط صفحه)
========================= */

.slider-header {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0 auto 15px auto;
}

.slider-header h4 {
    margin: 0 auto 6px auto;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.slider-divider {
    display: block;
    width: 150px !important;
    max-width: 150px;
    height: 16px;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .slider-divider {
        width: 120px !important;
        max-width: 120px;
        height: 14px;
    }
}


/* =========================
   دکمه‌های چپ و راست (کوچیک، دقیقاً زیر اسلایدر و وسط)
========================= */

.slider-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px auto 0 auto;
    width: 100%;
}

.slider-btn {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px !important;
    padding: 0;
}

.slider-btn i {
    font-size: 12px;
}

.slider-btn:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.slider-btn:active {
    transform: scale(0.9);
}

@media (max-width: 575.98px) {
    .slider-btn {
        width: 26px !important;
        height: 26px !important;
    }

    .slider-btn i {
        font-size: 10px;
    }
}


/* =========================
   اسلایدر «استک» (کارت‌های روی هم)
========================= */

.horizontal-slider {
    width: 100%;
    overflow: visible;
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track-horizontal {
    position: relative;
    width: 100%;
    height: 100%;
    direction: rtl;
}


/* =========================
   کارت دوره (در حالت استک)
========================= */

.course-slide-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;

    border-radius: 16px;
    overflow: hidden;
    background: #fff;

    box-shadow: 0 3px 15px rgba(0, 0, 0, .08);

    transition: transform .5s cubic-bezier(0.34, 1.1, 0.64, 1),
        opacity .5s ease,
        box-shadow .2s ease;

    cursor: pointer;
    will-change: transform, opacity;
}

.course-slide-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.course-slide-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.course-slide-card .card-body {
    padding: 12px;
}


/* =========================
   کارت آموزگار (در حالت استک)
========================= */

.teacher-slide-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;

    transition: transform .5s cubic-bezier(0.34, 1.1, 0.64, 1),
        opacity .5s ease;

    cursor: pointer;
    will-change: transform, opacity;
}

.teacher-slide-card .card {
    height: 100%;
    transition: box-shadow .2s ease;
}

.teacher-slide-card:hover .card {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16) !important;
}


/* =========================
   تبلت
========================= */

@media (max-width: 991.98px) {

    .horizontal-slider {
        height: 340px;
    }

    .course-slide-card,
    .teacher-slide-card {
        width: 220px;
    }

    .home-banner {
        margin-bottom: 25px;
    }

}


/* =========================
   موبایل
========================= */

@media (max-width: 575.98px) {

    .home-sliders {
        gap: 25px;
    }

    .horizontal-slider {
        height: 300px;
    }

    .course-slide-card,
    .teacher-slide-card {
        width: 190px;
    }

    .course-slide-card img {
        height: 130px;
    }

    .slider-header h4 {
        font-size: 18px;
    }

}


/* =========================
   بخش درباره ما (بین اسلایدرها)
========================= */

.about-section {
    display: flex;
    align-items: center;
    gap: 45px;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1.1;
}

.about-text h4 {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.about-text p {
    color: #343a40;
    line-height: 2;
    font-size: 1rem;
    margin-bottom: 18px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767.98px) {

    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 25px 18px;
    }

    .about-text p {
        line-height: 1.9;
    }

}


/* =========================
   مسیر مارپیچ اسکرول + ماشین (روی پس‌زمینه)
========================= */

#scrollPathWrap {
    position: absolute;
    top: 0;
    right: 14px;
    width: 90px;
    z-index: 9999;
    pointer-events: none;
}

#scrollPathSvg {
    display: block;
}

#scrollCar {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25));
    pointer-events: none;
}

@media (max-width: 991.98px) {

    #scrollPathWrap {
        width: 70px;
        right: 10px;
    }

    #scrollCar {
        width: 30px;
    }

}

@media (max-width: 575.98px) {

    #scrollPathWrap {
        width: 50px;
        right: 6px;
    }

    #scrollCar {
        width: 24px;
    }

}


/* =========================
   فوتر سایت
========================= */

.site-footer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 45px 0 0 0;
    margin-top: 50px;
    position: relative;
    z-index: 3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h5 {
    color: #fdc100;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer-col p {
    color: #adb5bd;
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ced4da;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer-links a:hover {
    color: #fdc100;
    padding-right: 5px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand span {
    color: #fdc100;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 16px;
}

.footer-social a:hover {
    background: #fdc100;
    color: #212529;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 35px;
    padding: 18px 20px;
    text-align: center;
    font-size: 0.88rem;
    color: #868e96;
}

.footer-bottom strong {
    color: #fdc100;
}

@media (max-width: 767.98px) {

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-brand,
    .footer-social {
        justify-content: center;
    }

}


.navbar-nav .dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: 10px;
}

.navbar-nav .dropdown-item {
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.navbar-nav .dropdown-toggle::after {
    margin-right: 6px;
    margin-left: 0;
}