 
        :root {
            --primary: #c8a45d;
            --primary-hover: #b28b42;
            --dark: #101828;
            --navy: #18253b;
            --navy-2: #243452;
            --bg: #f8f6f1;
            --card: rgba(255,255,255,0.92);
            --text: #243041;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background:
                radial-gradient(circle at top right, rgba(200,164,93,0.08), transparent 28%),
                radial-gradient(circle at left center, rgba(24,53,115,0.06), transparent 32%),
                var(--bg);
            color: var(--text);
        }

        a {
            text-decoration: none;
        }

        h1, h2, h3, h4, h5, h6 {
            color: var(--dark);
            font-weight: 700;
        }

        .text-primary {
            color: var(--primary) !important;
        }

        .bg-primary {
            background-color: var(--primary) !important;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), #d8bb79);
            border: none;
            color: #fff;
            box-shadow: 0 12px 30px rgba(200, 164, 93, 0.28);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--primary-hover), var(--primary));
            color: #fff;
            transform: translateY(-1px);
        }

        .btn-light {
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(255,255,255,0.55);
            color: var(--dark);
            backdrop-filter: blur(10px);
        }

        .btn-light:hover {
            background: #fff;
            color: var(--dark);
        }

        .section-title {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 999px;
            background: rgba(200, 164, 93, 0.12);
            color: var(--primary);
            font-size: 0.92rem;
            letter-spacing: 0.3px;
        }

        /* Navbar */
        .navbar {
            transition: all .3s ease;
            background: rgba(255,255,255,0.88);
            backdrop-filter: blur(18px);
        }

        .navbar.scrolled {
            box-shadow: 0 8px 30px rgba(16, 24, 40, 0.10);
            background: rgba(255,255,255,0.96);
        }

        .navbar-light .navbar-nav .nav-link {
            color: var(--dark);
            font-weight: 500;
            padding: 28px 14px;
        }

        .navbar-light .navbar-nav .nav-link:hover,
        .navbar-light .navbar-nav .nav-link.active {
            color: var(--primary);
        }

        .navbar-brand img {
            height: 54px;
            width: auto;
        }

        /* Hero / Carousel */
        .header-carousel .owl-carousel-item {
            position: relative;
            min-height: 92vh;
            overflow: hidden;
            border-radius: 0 0 42px 42px;
        }

        .header-carousel .owl-carousel-item img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            top: 0;
            left: 0;
            transform: scale(1.02);
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(90deg, rgba(8,12,25,0.80) 0%, rgba(8,12,25,0.55) 45%, rgba(8,12,25,0.25) 100%),
                radial-gradient(circle at right center, rgba(200,164,93,0.20), transparent 35%);
        }

        .hero-content {
            position: relative;
            z-index: 2;
            padding-top: 120px;
            padding-bottom: 80px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(255,255,255,0.10);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.18);
            backdrop-filter: blur(10px);
        }

        .hero-title {
            font-size: clamp(2rem, 4vw, 4.5rem);
            line-height: 1.25;
            color: #fff;
            margin-top: 18px;
            margin-bottom: 18px;
            text-shadow: 0 12px 30px rgba(0,0,0,0.25);
        }

        .hero-text {
            color: rgba(255,255,255,0.88);
            max-width: 680px;
            font-size: 1.05rem;
            line-height: 2;
        }

        .hero-card {
            margin-top: 28px;
            padding: 18px 20px;
            border-radius: 18px;
            background: rgba(255,255,255,0.10);
            border: 1px solid rgba(255,255,255,0.14);
            backdrop-filter: blur(12px);
            color: #fff;
        }

        .hero-card small {
            color: rgba(255,255,255,0.8);
        }

        .owl-nav button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 54px;
            height: 54px;
            border-radius: 50% !important;
            background: rgba(255,255,255,0.12) !important;
            color: #fff !important;
            backdrop-filter: blur(10px);
        }

        .owl-nav button.owl-prev {
            right: 22px;
        }

        .owl-nav button.owl-next {
            left: 22px;
        }

        .owl-nav button:hover {
            background: rgba(200,164,93,0.9) !important;
        }

        /* Cards */
        .service-item,
        .course-item,
        .team-item,
        .feature-card {
            background: var(--card);
            border: 1px solid rgba(24,37,59,0.06);
            box-shadow: 0 14px 40px rgba(16,24,40,0.08);
            border-radius: 20px;
            overflow: hidden;
            transition: all .3s ease;
        }

        .service-item:hover,
        .course-item:hover,
        .team-item:hover,
        .feature-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 18px 50px rgba(16,24,40,0.12);
        }

        .service-item i {
            color: var(--primary);
        }

        .course-item img,
        .team-item img {
            width: 100%;
            display: block;
        }

        .course-item .badge-course {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(24, 37, 59, 0.82);
            color: #fff;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 0.82rem;
            backdrop-filter: blur(10px);
        }

        .lux-gradient {
            background: linear-gradient(135deg, rgba(200,164,93,0.08), rgba(24,37,59,0.04));
        }

        .stats-box {
            border-radius: 18px;
            padding: 18px;
            background: #fff;
            box-shadow: 0 12px 30px rgba(16,24,40,0.08);
        }

        .testimonial-text {
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 12px 30px rgba(16,24,40,0.06);
        }

        .footer {
            background:
                linear-gradient(180deg, #0f172a 0%, #111c33 100%);
            border-top: 1px solid rgba(255,255,255,0.06);
        }

        .footer .btn-link {
            display: block;
            padding-right: 0;
            text-align: right;
            color: rgba(255,255,255,0.82);
        }

        .footer .btn-link:hover {
            color: var(--primary);
        }

        .copyright {
            border-top: 1px solid rgba(255,255,255,0.08);
        }

        /* RTL tweaks */
        .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
        .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
        .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
        .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
        .text-start { text-align: right !important; }
        .pe-3 { padding-left: 1rem !important; padding-right: 0 !important; }
        .border-end { border-left: 1px solid #dee2e6 !important; border-right: none !important; }

        @media (max-width: 991px) {
            .navbar-light .navbar-nav .nav-link {
                padding: 12px 8px;
            }

            .header-carousel .owl-carousel-item {
                min-height: 88vh;
            }

            .hero-content {
                padding-top: 100px;
            }
        }

/* رفع مشکل Spinner و لودینگ */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


        @media (max-width: 768px) {
            .header-carousel .owl-carousel-item {
                min-height: 84vh;
                border-radius: 0 0 28px 28px;
            }

            .hero-text {
                font-size: 0.98rem;
            }

            .owl-nav button.owl-prev {
                right: 10px;
            }

            .owl-nav button.owl-next {
                left: 10px;
            }
        }

        
        :root { --primary: #c8a45d; --dark: #101828; --bg: #f8f6f1; }
        body { font-family: 'Vazirmatn', sans-serif; background: var(--bg); }
        
    
        
        #spinner { opacity: 0; visibility: hidden; transition: opacity .5s ease-out, visibility 0s linear .5s; z-index: 99999; }
        #spinner.show { visibility: visible; opacity: 1; transition: opacity .5s ease-out, visibility 0s linear 0s; }
        
        /* دکمه‌های اسلایدر */
.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.hero-buttons .btn{
    width:220px;
    min-height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
    font-weight:600;
}

@media(max-width:768px){
    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .hero-buttons .btn{
        width:100%;
        max-width:280px;
    }
}
.navbar .dropdown-menu{
    border:none;
    border-radius:15px;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
    padding:10px;
}

.navbar .dropdown-item{
    padding:12px 18px;
    border-radius:10px;
    transition:.3s;
}

.navbar .dropdown-item:hover{
    background:#c8a45d;
    color:#fff;
}

@media(min-width:992px){

    .navbar .dropdown:hover .dropdown-menu{
        display:block;
        margin-top:0;
    }

}

html{
    scroll-behavior:smooth;
}

.category-card{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:22px;
    height:320px;
    text-decoration:none;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    transition:.35s;
}

.category-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.category-card::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
    rgba(0,0,0,.82) 10%,
    rgba(0,0,0,.15) 55%,
    rgba(0,0,0,0) 100%);
}

.category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 22px 45px rgba(0,0,0,.18);
}

.category-card:hover img{
    transform:scale(1.08);
}

.category-content{
    position:absolute;
    bottom:0;
    right:0;
    left:0;
    padding:25px;
    z-index:2;
    color:#fff;
}

.category-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#fff;
    color:#0d6efd;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin-bottom:18px;
}

.category-content h4{
    color:#fff;
    margin-bottom:8px;
    font-weight:700;
}

.category-content p{
    color:#ddd;
    margin-bottom:15px;
    font-size:14px;
}

.category-link{
    color:#fff;
    font-weight:600;
}

.category-link i{
    transition:.3s;
}

.category-card:hover .category-link i{
    transform:translateX(-6px);
}

.section-title{
    display:inline-block;
    padding:8px 18px;
    background:#eef5ff;
    color:#0d6efd;
    border-radius:50px;
    font-weight:600;
}

/* =========================================================
   HOMEPAGE SLIDER — premium polish
   ========================================================= */

@keyframes heroKenBurns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

.header-carousel .owl-carousel-item img {
    animation: heroKenBurns 9s ease-in-out infinite alternate;
}

.hero-card {
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.hero-card:hover {
    transform: translateY(-5px);
    background: rgba(200, 164, 93, 0.18) !important;
    border-color: rgba(200, 164, 93, 0.5) !important;
}

.header-carousel .owl-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.header-carousel .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all .3s ease;
}

.header-carousel .owl-dots .owl-dot.active span {
    width: 26px;
    border-radius: 6px;
    background: linear-gradient(90deg, #c8a45d, #d8bb79);
}

@media (max-width: 768px) {
    .header-carousel .owl-dots {
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-carousel .owl-carousel-item img {
        animation: none;
    }
}

/* =========================================================
   HERO SIZE / PROPORTION FIX
   The hero used to run to ~92vh with large top padding, which
   at 100% browser zoom pushed the image+headline taller than
   one screen (needed 2-3 scrolls to see it all). This tightens
   height and headline scaling so hero + text fit in one view.
   ========================================================= */
.header-carousel .owl-carousel-item {
    min-height: 78vh;
}

.hero-content {
    padding-top: 90px;
    padding-bottom: 50px;
}

.hero-title {
    font-size: clamp(1.9rem, 3.6vw, 3.6rem);
    margin-top: 12px;
    margin-bottom: 14px;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.85;
}

.hero-card {
    margin-top: 18px;
    padding: 14px 16px;
}

@media (max-width: 991px) {
    .header-carousel .owl-carousel-item {
        min-height: 74vh;
    }

    .hero-content {
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        min-height: 66vh;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem);
        text-align: center;
    }

    .hero-badge, .hero-text, .hero-buttons {
        text-align: center;
        justify-content: center;
    }

    .hero-content .row {
        justify-content: center !important;
        text-align: center;
    }
}

/* =========================================================
   SITE-WIDE RESPONSIVE SAFETY NET
   NOTE: overflow-x:hidden is intentionally on <html> only —
   NOT on <body> — because putting it on body breaks
   `position: sticky` (the sticky navbar) in most browsers.
   ========================================================= */
html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.article-table,
table.article-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .article-table,
    table.article-table {
        display: table;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .hero-stat,
    .exam-stat {
        padding: 10px 6px !important;
    }

    .hero-stat h3,
    .exam-stat h2,
    .exam-stat h3 {
        font-size: 20px !important;
    }

    .hero-stat span,
    .hero-stat small,
    .exam-stat span,
    .exam-stat small {
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    .btn-lg {
        padding-left: 1.4rem !important;
        padding-right: 1.4rem !important;
        font-size: .95rem !important;
    }
}

/* Belt-and-suspenders: force the navbar to stay pinned even if
   an ancestor's overflow ever interferes with position:sticky */
.navbar.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* =========================================================
   HOMEPAGE SLIDER — v2: compact, modern, fully responsive
   This block is authoritative for the hero/carousel and
   intentionally overrides earlier rules in this file.
   ========================================================= */

.header-carousel .owl-carousel-item {
    position: relative !important;
    min-height: 0 !important;
    height: 60vh !important;
    max-height: 620px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
}

.header-carousel .owl-carousel-item img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    top: 0 !important;
    left: 0 !important;
    transform: scale(1.0) !important;
}

.hero-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-badge {
    padding: 8px 14px !important;
    font-size: .82rem;
}

.hero-title {
    font-size: clamp(1.5rem, 2.9vw, 2.6rem) !important;
    line-height: 1.35 !important;
    margin-top: 12px !important;
    margin-bottom: 10px !important;
}

.hero-text {
    font-size: .92rem !important;
    line-height: 1.75 !important;
    max-width: 560px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons .btn {
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
    padding-left: 1.6rem !important;
    padding-right: 1.6rem !important;
    font-size: .92rem;
}

/* Quick-links strip below the carousel (replaces the old
   in-slide mini cards — standard modern pattern) */
.quick-links-strip {
    margin-top: -34px;
    position: relative;
    z-index: 5;
    margin-bottom: 50px;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: #fff;
    border-radius: 18px;
    padding: 20px 12px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.10);
    text-decoration: none;
    color: var(--text);
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.quick-link-card i {
    font-size: 22px;
    color: var(--primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(200, 164, 93, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: .3s ease;
}

.quick-link-card h6 {
    font-weight: 700;
    margin: 0;
    color: var(--dark);
    font-size: .9rem;
}

.quick-link-card small {
    color: #6b7482;
    font-size: .76rem;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(200, 164, 93, 0.22);
}

.quick-link-card:hover i {
    background: linear-gradient(135deg, var(--primary), #d8bb79);
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .header-carousel .owl-carousel-item {
        height: 52vh !important;
        border-radius: 18px !important;
    }

    .quick-links-strip {
        margin-top: -24px;
    }

    .quick-link-card {
        padding: 16px 8px;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 46vh !important;
        min-height: 320px !important;
    }

    .hero-title {
        font-size: clamp(1.25rem, 5vw, 1.7rem) !important;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
        font-size: .85rem !important;
        -webkit-line-clamp: 2;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .row,
    .hero-content .col-lg-7 {
        justify-content: center !important;
        text-align: center;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .quick-links-strip {
        margin-top: 16px;
    }

    .quick-link-card h6 {
        font-size: .78rem;
    }

    .quick-link-card small {
        display: none;
    }
}

@media (max-width: 420px) {
    .header-carousel .owl-carousel-item {
        height: 40vh !important;
        min-height: 280px !important;
        border-radius: 14px !important;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}
