:root {
    --mx-ink: #111827;
    --mx-muted: #667085;
    --mx-line: #e5e7eb;
    --mx-soft: #f7f4ef;
    --mx-white: #ffffff;
    --mx-navy: #143f3c;
    --mx-blue: #0f766e;
    --mx-red: #e76f51;
    --mx-gold: #f2c94c;
    --mx-green: #2f9e77;
    --mx-shadow: 0 22px 60px rgba(17, 24, 39, .12);
    --mx-shadow-soft: 0 14px 36px rgba(17, 24, 39, .08);
}

* {
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--mx-soft);
    color: var(--mx-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    transition: color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

#appCapsule {
    min-height: 70vh;
    padding: 106px 0 56px !important;
    overflow-x: hidden;
}

.section {
    width: 100%;
}

.section-padding {
    padding: 72px 0;
}

.student-navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1040;
    min-height: 74px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(229, 231, 235, .9);
    box-shadow: 0 12px 34px rgba(17, 24, 39, .06);
    backdrop-filter: blur(18px);
}

.student-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.student-navbar .navbar-brand img {
    width: min(190px, 46vw);
    height: 52px;
    object-fit: contain;
}

.student-navbar .navbar-toggler {
    border: 1px solid var(--mx-line);
    border-radius: 14px;
    padding: 9px 11px;
    box-shadow: none;
}

.student-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 13px !important;
    border-radius: 14px;
}

.student-navbar .nav-link:hover,
.student-navbar .nav-link.active {
    color: var(--mx-blue);
    background: #eef3ff;
}

.student-navbar .nav-link i {
    color: var(--mx-red);
}

.student-user-toggle,
.student-login-btn {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--mx-line);
    border-radius: 16px;
    background: var(--mx-white);
    color: var(--mx-ink);
    padding: 7px 12px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.student-login-btn {
    border: 0;
    color: #fff;
    font-weight: 900;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--mx-blue), var(--mx-navy));
}

.student-user-toggle img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-section {
    position: relative;
    padding: 88px 0 74px;
    background:
        radial-gradient(circle at 82% 18%, rgba(240, 68, 82, .16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7f9ff 48%, #eef3ff 100%);
    overflow: hidden;
}

.hero-section:before {
    content: "";
    position: absolute;
    inset: 14% 0 auto auto;
    width: min(520px, 48vw);
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(49, 87, 213, .12), rgba(249, 189, 48, .12));
    border-radius: 28% 72% 38% 62%;
    filter: blur(1px);
    transform: translateX(20%) rotate(-12deg);
}

.hero-title {
    max-width: 680px;
    color: #101828;
    font-size: clamp(2.25rem, 5vw, 5.35rem);
    font-weight: 950;
    line-height: .96;
    margin-bottom: 22px;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--mx-muted);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.75;
    margin-bottom: 28px;
}

.home-search-box {
    border-radius: 18px !important;
}

.btn-cta,
.btn-primary,
.btn-primary-alt {
    border: 0 !important;
    background: linear-gradient(135deg, var(--mx-red), #de2f67) !important;
    color: #fff !important;
    font-weight: 900 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 34px rgba(240, 68, 82, .25) !important;
}

.btn-outline-primary,
.btn-cta-outline {
    border-color: rgba(49, 87, 213, .3) !important;
    color: var(--mx-blue) !important;
    background: #fff !important;
    font-weight: 900 !important;
    border-radius: 14px !important;
}

.btn:hover,
.student-login-btn:hover,
.student-user-toggle:hover {
    transform: translateY(-2px);
}

.trust-stat h4 {
    color: var(--mx-navy);
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 950;
    margin-bottom: 2px;
}

.trust-stat p {
    color: var(--mx-muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.mx-section-head {
    max-width: 720px;
}

.section-title,
.section-heading h3,
.courses-section h2,
.subjects-section h2 {
    color: #101828 !important;
    font-weight: 950 !important;
}

.home-slider {
    perspective: 1300px;
    padding: 10px 0 24px;
}

.home-slider .splide__track {
    overflow: visible;
}

.home-slider .splide__slide {
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s ease, filter .55s ease;
    opacity: .62;
    filter: saturate(.8);
}

.home-slider .splide__slide.is-active {
    opacity: 1;
    filter: saturate(1.08);
    transform: translateZ(36px) rotateY(0deg);
}

.home-slider .splide__slide:not(.is-active) {
    transform: translateZ(-34px) rotateY(-8deg) scale(.94);
}

.home-slider .splide__slide img {
    width: 100%;
    aspect-ratio: 16 / 6.4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--mx-shadow);
}

.mx-slider-shell {
    position: relative;
}

.mx-slider-shell:after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 18px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .18);
    filter: blur(18px);
    pointer-events: none;
}

.course-card-link,
.book-card-link,
.category-card-link {
    color: inherit !important;
    text-decoration: none !important;
}

.course-card,
.book-card,
.category-card,
.student-panel-card,
.test-box,
.app-banner {
    border: 1px solid rgba(229, 231, 235, .9) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: var(--mx-shadow-soft) !important;
    overflow: hidden;
    transform: translateZ(0);
}

.course-card,
.book-card,
.category-card {
    height: 100%;
}

.course-card:hover,
.book-card:hover,
.category-card:hover,
.student-panel-card:hover,
.test-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--mx-shadow) !important;
}

.course-img-wrapper,
.book-media {
    position: relative;
    overflow: hidden;
    background: #eef2f7;
}

.course-card .card-img-top,
.book-card .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto !important;
    object-fit: cover;
    transition: transform .45s ease;
}

.book-card .card-img-top {
    aspect-ratio: 4 / 5;
}

.course-card:hover .card-img-top,
.book-card:hover .card-img-top {
    transform: scale(1.055);
}

.badge-promo,
.mx-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px !important;
    background: #fff4d8 !important;
    color: #8a4b00 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    padding: 7px 11px !important;
    box-shadow: 0 8px 18px rgba(249, 189, 48, .18);
    text-transform: uppercase;
}

.badge-soft-primary {
    border-radius: 999px !important;
    background: #eef3ff !important;
    color: var(--mx-blue) !important;
    font-weight: 900 !important;
}

.course-card .card-title,
.book-card .card-title {
    color: #101828;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.35;
}

.course-meta,
.book-meta {
    color: var(--mx-muted);
    gap: 10px;
}

.price-now {
    color: var(--mx-red) !important;
    font-size: 1.45rem !important;
    font-weight: 950 !important;
}

.price-was {
    color: #98a2b3 !important;
    text-decoration: line-through;
    font-weight: 800;
}

.category-card {
    position: relative;
    padding: 26px;
    min-height: 220px;
}

.category-card .icon-wrapper,
.mx-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 25px;
    margin-bottom: 18px;
}

.category-card .explore-text {
    color: var(--mx-blue);
    font-weight: 900;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.premium-grid > * {
    grid-column: span 3;
}

.search-section,
.home-search-box {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(229, 231, 235, .9) !important;
    box-shadow: var(--mx-shadow-soft) !important;
}

.custom-tab,
.custom-tab-btn {
    border-radius: 999px !important;
    box-shadow: none !important;
}

.custom-tab.active,
.custom-tab-btn.active {
    background: linear-gradient(135deg, var(--mx-blue), var(--mx-navy)) !important;
}

footer.mx-premium-footer {
    margin-top: 70px;
    padding-top: 64px;
    border-top: 1px solid var(--mx-line);
    background: linear-gradient(180deg, #fff, #f6f8fb);
}

.mx-footer-title {
    color: #101828;
    font-size: 16px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.mx-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #344054;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 12px;
}

.mx-footer-link:hover {
    color: var(--mx-red);
}

.mx-footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    margin-right: 8px;
}

.mx-footer-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mx-footer-quick a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    border: 1px solid var(--mx-line);
    border-radius: 16px;
    background: #fff;
    color: #101828;
    font-weight: 900;
    text-decoration: none;
    padding: 12px;
}

.mx-footer-bottom {
    margin-top: 42px;
    padding: 22px 0;
    border-top: 1px solid var(--mx-line);
    color: var(--mx-muted);
    font-weight: 700;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(49, 87, 213, .14), transparent 34%),
        #ffffff;
}

#loader .loading-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    animation: mxLoader 1.2s ease-in-out infinite;
    filter: drop-shadow(0 18px 28px rgba(17, 24, 39, .22));
}

.mx-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}

.mx-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes mxLoader {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    50% {
        transform: translateY(-12px) rotateY(16deg) scale(1.04);
    }
}

@media (max-width: 991.98px) {
    #appCapsule {
        padding-top: 92px !important;
    }

    .student-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        border: 1px solid var(--mx-line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--mx-shadow-soft);
    }

    .student-navbar .nav-link {
        width: 100%;
    }

    .hero-section {
        padding: 56px 0 50px;
    }

    .home-slider .splide__slide img {
        aspect-ratio: 16 / 8.8;
        border-radius: 18px;
    }

    .premium-grid > * {
        grid-column: span 6;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 46px 0;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-btns .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    .home-slider .splide__slide img {
        aspect-ratio: 1.25 / 1;
        border-radius: 16px;
    }

    .course-card .card-body,
    .book-card .card-body {
        padding: 14px !important;
    }

    .course-card .card-title,
    .book-card .card-title {
        min-height: auto !important;
        font-size: .92rem;
    }

    .price-now {
        font-size: 1.05rem !important;
    }

    .premium-grid {
        gap: 12px;
    }

    .premium-grid > * {
        grid-column: span 12;
    }

    .mx-footer-quick {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

.mx-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1040;
}

.mx-nav {
    min-height: 78px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(20, 63, 60, .12);
    box-shadow: 0 18px 44px rgba(20, 63, 60, .08);
    backdrop-filter: blur(22px);
}

.mx-brand img {
    width: min(188px, 48vw);
    height: 54px;
    object-fit: contain;
}

.mx-menu-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(20, 63, 60, .16);
    border-radius: 16px;
    color: var(--mx-navy);
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 63, 60, .08);
}

.mx-nav-links {
    align-items: center;
    gap: 4px;
}

.mx-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #34423f;
    font-size: 14px;
    font-weight: 900;
    padding: 9px 12px !important;
    border-radius: 999px;
}

.mx-nav .nav-link i,
.home-search-box i,
.home-search-icon,
.mx-footer-link:hover,
.category-card .explore-text,
.btn-outline-primary,
.btn-cta-outline,
.price-now {
    color: var(--mx-blue) !important;
}

.mx-nav .nav-link:hover,
.mx-nav .nav-link.active {
    color: var(--mx-navy);
    background: #e8f3ef;
}

.mx-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mx-icon-btn {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 63, 60, .14);
    border-radius: 16px;
    color: var(--mx-navy);
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 63, 60, .08);
}

.mx-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 7px 12px 7px 7px;
    border: 1px solid rgba(20, 63, 60, .14);
    border-radius: 18px;
    color: var(--mx-ink);
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(20, 63, 60, .08);
}

.mx-account img {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    object-fit: cover;
}

.mx-account small {
    display: block;
    color: var(--mx-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mx-account strong {
    display: block;
    color: var(--mx-ink);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.mx-account-menu {
    border: 1px solid rgba(20, 63, 60, .12);
    border-radius: 18px;
    box-shadow: var(--mx-shadow);
    padding: 10px;
}

.mx-mobile-drawer-head,
.mx-nav-backdrop {
    display: none;
}

.mx-whatsapp-float {
    position: fixed;
    z-index: 1035;
    bottom: 28px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 54px;
    height: 54px;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .32);
    animation: mxWhatsappPulse 2.4s ease-out infinite;
}

.mx-whatsapp-float:hover {
    color: #fff !important;
    transform: translateY(-2px);
    animation-play-state: paused;
}

.mx-whatsapp-float i { font-size: 23px; }
.mx-whatsapp-float span { display: none; }

@keyframes mxWhatsappPulse {
    0%, 35% { box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
    50% { box-shadow: 0 10px 24px rgba(37, 211, 102, .32), 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 24px rgba(37, 211, 102, .32); }
}

.student-login-btn,
.btn-cta,
.btn-primary,
.btn-primary-alt {
    background: linear-gradient(135deg, var(--mx-blue), var(--mx-navy)) !important;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .22) !important;
}

.btn-outline-primary,
.btn-cta-outline {
    border-color: rgba(15, 118, 110, .28) !important;
}

.mx-hero {
    min-height: calc(100vh - 20px);
    display: flex;
    align-items: center;
    padding: 96px 0 74px;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 201, 76, .32), transparent 25%),
        radial-gradient(circle at 8% 18%, rgba(15, 118, 110, .18), transparent 28%),
        linear-gradient(135deg, #fffdf8 0%, #f7f4ef 50%, #e7f1ec 100%);
}

.mx-hero:before {
    display: none;
}

.mx-hero-copy {
    position: relative;
    z-index: 2;
}

.mx-hero .hero-title {
    max-width: 800px;
    color: #10201e;
    font-size: 4.15rem;
    line-height: 1;
}

.mx-hero .hero-title span {
    display: block;
    white-space: nowrap;
}

.mx-typed-line {
    min-height: 1em;
    color: var(--mx-blue);
}

.mx-typed-line b {
    display: inline-block;
    position: relative;
    max-width: 100%;
    color: var(--mx-blue);
    font-size: .92em;
    font-weight: 950;
    white-space: nowrap;
}

.mx-typed-line b:after {
    content: "";
    display: inline-block;
    width: .08em;
    height: .78em;
    margin-left: .08em;
    border-radius: 99px;
    background: var(--mx-gold);
    animation: mxCursorBlink .9s steps(2, start) infinite;
    vertical-align: -.05em;
}

.mx-hero .hero-subtitle {
    color: #52635f;
}

.mx-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
}

.mx-hero-stats .trust-stat {
    min-height: 94px;
    padding: 16px;
    border: 1px solid rgba(20, 63, 60, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 28px rgba(20, 63, 60, .07);
}

.mx-hero-stage {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
    min-width: 0;
    overflow: hidden;
}

.mx-course-screen {
    position: relative;
    width: min(640px, 100%);
    min-height: 500px;
    margin-left: auto;
    padding: 28px;
    border: 1px solid rgba(20, 63, 60, .1);
    border-radius: 30px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 34px 90px rgba(20, 63, 60, .17);
    backdrop-filter: blur(18px);
    transform: rotateY(-9deg) rotateX(3deg);
    transform-style: preserve-3d;
}

.mx-course-screen:before,
.mx-course-screen:after {
    content: "";
    position: absolute;
    inset: 68px 8px 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(20, 63, 60, .12), rgba(15, 118, 110, .06));
    transform: translateZ(-55px) translateX(34px) scale(.92);
    box-shadow: 0 28px 60px rgba(20, 63, 60, .12);
}

.mx-course-screen:after {
    transform: translateZ(-85px) translateX(70px) scale(.82);
    opacity: .55;
}

.mx-course-screen-top {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mx-course-screen-top span,
.mx-screen-label {
    color: var(--mx-navy);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mx-course-screen-top div {
    display: flex;
    gap: 8px;
}

.mx-course-screen-top i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 63, 60, .12);
    border-radius: 50%;
    color: var(--mx-navy);
    background: #fff;
}

.mx-screen-stack {
    position: relative;
    z-index: 4;
    height: 410px;
    transform-style: preserve-3d;
}

.mx-screen-course {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    color: var(--mx-ink);
    text-decoration: none !important;
    border: 1px solid rgba(20, 63, 60, .1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(20, 63, 60, .16);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(110px) translateZ(-180px) rotateY(-22deg) scale(.72);
    transition: transform .75s cubic-bezier(.2, .8, .2, 1), opacity .75s ease, box-shadow .35s ease, filter .75s ease;
    will-change: transform, opacity;
}

.mx-screen-course:hover {
    color: var(--mx-ink);
    box-shadow: 0 36px 86px rgba(20, 63, 60, .2);
}

.mx-screen-course img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e8f3ef;
}

.mx-screen-course .mx-screen-label,
.mx-screen-course h2,
.mx-screen-course p,
.mx-screen-course strong {
    margin-left: 26px;
    margin-right: 26px;
}

.mx-screen-course .mx-screen-label {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--mx-blue);
}

.mx-screen-course h2 {
    min-height: 96px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mx-screen-course p {
    margin-bottom: 12px;
    color: var(--mx-muted);
    font-size: 13px;
    font-weight: 800;
}

.mx-screen-course strong {
    color: var(--mx-navy);
    font-size: 18px;
    font-weight: 950;
}

.mx-screen-course[data-depth="0"] {
    z-index: 10;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) translateY(0) translateZ(70px) rotateY(0deg) scale(1);
    filter: saturate(1.05);
}

.mx-screen-course[data-depth="1"] {
    z-index: 9;
    opacity: .72;
    transform: translateX(-72px) translateY(34px) translateZ(-42px) rotateY(12deg) scale(.88);
}

.mx-screen-course[data-depth="2"] {
    z-index: 8;
    opacity: .54;
    transform: translateX(74px) translateY(54px) translateZ(-88px) rotateY(-13deg) scale(.82);
}

.mx-screen-course[data-depth="3"] {
    z-index: 7;
    opacity: .34;
    transform: translateX(122px) translateY(88px) translateZ(-132px) rotateY(-18deg) scale(.72);
}

.mx-screen-course[data-depth="4"] {
    z-index: 6;
    opacity: .2;
    transform: translateX(-118px) translateY(96px) translateZ(-156px) rotateY(18deg) scale(.66);
}

.mx-course-carousel {
    transform: none;
    transform-style: flat;
    min-height: 0;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.mx-hero .hero-title .mx-typed-line {
    display: block;
    max-width: 100%;
    font-size: 24px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mx-hero .mx-typed-line b { white-space: normal; }

.mx-course-carousel:before,
.mx-course-carousel:after {
    content: none;
}

.mx-course-carousel .mx-course-screen-top button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--mx-line);
    border-radius: 50%;
    background: #fff;
    color: var(--mx-navy);
}

.mx-course-carousel .mx-course-screen-top button:disabled { opacity: .4; }
.mx-course-carousel .mx-course-screen-top i { border: 0; background: transparent; }
.mx-course-carousel :focus-visible { outline: 2px solid var(--mx-blue); outline-offset: -3px; }

.mx-course-carousel .mx-screen-stack {
    display: flex;
    gap: 16px;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    transform-style: flat;
    overscroll-behavior-x: contain;
}

.mx-course-carousel .mx-screen-course {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    scroll-snap-align: start;
    transition: none;
    will-change: auto;
    padding-bottom: 16px;
}

.mx-course-carousel .mx-screen-course img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 8px;
}

.mx-course-carousel .mx-screen-course h2 {
    font-size: 28px;
    line-height: 1.2;
    min-height: 101px;
    overflow-wrap: anywhere;
}

.mx-course-carousel .mx-screen-course strong { margin-top: auto; }

@media (max-width: 575.98px) {
    .mx-hero-stage .mx-course-carousel { padding: 12px; min-height: 0; border-radius: 8px; }
    .mx-course-carousel .mx-screen-course h2 { font-size: 24px; min-height: 87px; }
    .mx-course-carousel .mx-screen-course .mx-screen-label,
    .mx-course-carousel .mx-screen-course h2,
    .mx-course-carousel .mx-screen-course p,
    .mx-course-carousel .mx-screen-course strong { margin-left: 4px; margin-right: 4px; }
}

.mx-slider-section {
    padding: 58px 0 46px;
    background: #fff;
    overflow: hidden;
}

.mx-slider-heading {
    margin-bottom: 22px;
}

.mx-slider-heading h2 {
    margin: 0;
    color: var(--mx-ink);
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 950;
}

.mx-slider-section .home-slider {
    max-width: 100%;
    padding-bottom: 10px;
    overflow: hidden;
}

.mx-slider-section .home-slider .splide__track {
    overflow: hidden !important;
    border-radius: 30px;
}

.mx-slider-section .home-slider .splide__slide {
    opacity: 1;
    filter: none;
    transform: none;
}

.mx-slider-section .home-slider .splide__slide:not(.is-active),
.mx-slider-section .home-slider .splide__slide.is-active {
    transform: none;
}

.badge-promo,
.mx-chip {
    background: #fff4d1 !important;
    color: #705000 !important;
}

.badge-soft-primary,
.home-search-icon {
    background: #e8f3ef !important;
    color: var(--mx-blue) !important;
}

footer.mx-premium-footer {
    background: linear-gradient(180deg, #fffdf8, #f7f4ef);
    border-top-color: rgba(20, 63, 60, .12);
}

#authModal .auth-submit-btn {
    background: linear-gradient(135deg, var(--mx-blue), var(--mx-navy)) !important;
}

@keyframes mxCursorBlink {
    50% {
        opacity: 0;
    }
}

@media (min-width: 1200px) {
    .mx-hero .container {
        max-width: 1420px;
    }

    .mx-hero .col-xl-5 {
        width: 48%;
    }

    .mx-hero .col-xl-7 {
        width: 52%;
    }
}

@media (min-width: 1400px) {
    .mx-hero .hero-title {
        font-size: 4.65rem;
    }
}

@media (max-width: 1199.98px) {
    .mx-nav .navbar-collapse {
        position: fixed;
        z-index: 2;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        margin: 0;
        padding: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-right: 1px solid rgba(20, 63, 60, .12);
        border-radius: 0;
        background: #fff;
        box-shadow: 18px 0 48px rgba(20, 63, 60, .18);
    }

    .mx-nav .navbar-collapse.collapsing {
        display: block;
        height: 100dvh !important;
        transition: none;
    }

    .mx-nav .navbar-collapse.show {
        animation: mxMobileDrawerIn .28s cubic-bezier(.2, .8, .2, 1) both;
    }

    .mx-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: -16px -16px 14px;
        padding: 17px 16px;
        border-bottom: 1px solid rgba(20, 63, 60, .1);
        color: var(--mx-ink);
        font-size: 17px;
        font-weight: 950;
    }

    .mx-mobile-drawer-head button {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(20, 63, 60, .14);
        border-radius: 8px;
        color: var(--mx-navy);
        background: #fff;
    }

    .mx-nav-backdrop {
        position: fixed;
        z-index: 1;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        padding: 0;
        border: 0;
        background: rgba(12, 31, 28, .42);
        cursor: default;
    }

    #studentNavbar.show ~ .mx-nav-backdrop,
    #studentNavbar.collapsing ~ .mx-nav-backdrop {
        display: block;
    }

    .mx-nav-links {
        align-items: stretch;
        gap: 4px;
    }

    .mx-nav .nav-link {
        width: 100%;
        border-radius: 8px;
    }

    .mx-nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 12px;
    }

    .mx-account,
    .student-login-btn {
        justify-content: center;
        width: 100%;
    }

    .mx-nav-actions .dropdown {
        width: 100%;
    }

    .mx-account-menu {
        position: static !important;
        width: 100%;
        margin: 10px 0 0 !important;
        padding: 6px;
        transform: none !important;
        border: 1px solid rgba(20, 63, 60, .12);
        border-radius: 8px;
        box-shadow: none;
    }

    .mx-account-menu .dropdown-item {
        padding: 11px 12px;
        border-radius: 6px;
        font-weight: 700;
    }
}

@keyframes mxMobileDrawerIn {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991.98px) {
    .mx-hero {
        min-height: auto;
        padding: 64px 0 46px;
    }

    .mx-hero .hero-title {
        font-size: 3.65rem;
    }

    .mx-hero-stage {
        min-height: 360px;
    }

    .mx-course-screen {
        transform: none;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .mx-hero .hero-title {
        font-size: 2.72rem;
        line-height: .98;
    }

    .mx-hero .hero-title span {
        white-space: normal;
    }

    .mx-typed-line b {
        font-size: .9em;
        white-space: normal;
    }

    .mx-hero-stats {
        grid-template-columns: 1fr;
    }

    .mx-hero-stage {
        min-height: auto;
        overflow: visible;
    }

    .mx-course-screen {
        padding: 18px;
        min-height: 390px;
        border-radius: 24px;
    }

    .mx-screen-stack {
        height: 306px;
    }

    .mx-screen-course img {
        height: 126px;
    }

    .mx-screen-course .mx-screen-label,
    .mx-screen-course h2,
    .mx-screen-course p,
    .mx-screen-course strong {
        margin-left: 18px;
        margin-right: 18px;
    }

    .mx-screen-course h2 {
        min-height: 84px;
        font-size: 2rem;
    }

    .mx-screen-course[data-depth="1"] {
        opacity: .34;
        transform: translateX(34px) translateY(24px) translateZ(-60px) scale(.86);
    }

    .mx-screen-course[data-depth="2"] {
        opacity: .18;
        transform: translateX(-32px) translateY(48px) translateZ(-100px) scale(.78);
    }

    .mx-screen-course[data-depth="3"],
    .mx-screen-course[data-depth="4"] {
        opacity: 0;
    }

    .mx-slider-section {
        padding: 42px 0 34px;
    }
}
