/* ===== Base ===== */
:root {
    --text: #111;
    --muted: rgba(17, 17, 17, 0.72);
    --line: rgba(10, 35, 80, 0.16);
    --soft: rgba(0, 0, 0, 0.04);
    --blue: #2f7cff;
    --blue2: #1f6cff;
    --radius-lg: 28px;
    --radius-xl: 38px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding-right: 0;
    /* reserve space is controlled below */
    padding-top: 76px;
    /* chỉnh số này cho khớp chiều cao topbar của bạn */
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: #ffffff;
}

/* ✅ chừa khoảng ở cạnh phải để nút fixed không đè content */
@media (min-width: 980px) {
    body {
        padding-right: 110px;
    }
}

/* ===== Topbar (Framer-like) ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    overflow: visible;
}

.topbar__inner {
    position: relative;
    /* ✅ đèn lồng bám vào inner */
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    height: 40px;
    width: auto;
    display: block;
}

.pillnav {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(120, 160, 230, 0.14);
    border: 1px solid rgba(60, 120, 220, 0.28);
}

.pillnav__link {
    color: rgba(17, 17, 17, 0.76);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1px;
    padding: 6px 8px;
    border-radius: 10px;
}

.pillnav__link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.caret {
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.6;
}

.actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* ===== Courses dropdown ===== */
.pillnav__dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pillnav__item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(17,17,17,0.88);
    font-weight: 650;
    font-size: 14px;
}

.pillnav__item:hover {
    background: rgba(47,124,255,0.10);
}

.pillnav__dropdown:hover .pillnav__menu, .pillnav__dropdown:focus-within .pillnav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.iconbtn {
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.iconbtn__arrow {
    font-size: 18px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.78);
}

.joinbtn {
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0f141a;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Page container ===== */
.page {
    padding: 22px 18px 80px;
}

.hero__inner, .about__inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero__title {
    margin: 34px 0 22px;
    text-align: center;
    font-size: clamp(34px, 4.6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.6px;
    font-weight: 900;
    color: #111;
}

.heroMedia {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.heroMedia__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    object-fit: cover;
    object-position: 50% 22%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

/* Glass cards */
.statCard {
    position: absolute;
    width: 170px;
    min-height: 140px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: rgba(235, 242, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.statCard__big {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: rgba(10, 10, 10, 0.86);
}

.statCard__small {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    color: rgba(10, 10, 10, 0.65);
}

.statCard--leftTop {
    left: -22px;
    top: 34px;
}

.statCard--rightBottom {
    right: -22px;
    bottom: 28px;
    background: rgba(215, 245, 228, 0.6);
}

/* Center text on image */
.heroCenterText {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: min(78%, 640px);
    pointer-events: none;
}

.heroCenterText__big {
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.heroCenterText__small {
    margin-top: 10px;
    font-size: clamp(12px, 1.25vw, 16px);
    font-weight: 650;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Floating Free Trial (smaller + smoother) ===== */
.freeTrialFloat {
    position: fixed;
    right: 22px;
    top: 58%;
    transform: translateY(-50%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    /* ✅ nhỏ hơn + đỡ thô */
    padding: 12px 18px;
    border-radius: 999px;
    /* ✅ “mịn”: gradient nhẹ + viền mỏng */
    background: linear-gradient(135deg, rgba(47,124,255,0.92), rgba(31,108,255,0.92));
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    /* ✅ shadow mềm hơn */
    box-shadow: 0 14px 34px rgba(47, 124, 255, 0.22), 0 10px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.freeTrialFloat__text {
    font-weight: 900;
    font-size: 26px;
    /* ✅ nhỏ lại */
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.freeTrialFloat:hover {
    transform: translateY(-50%) scale(1.03);
    filter: brightness(1.04);
    box-shadow: 0 18px 44px rgba(47, 124, 255, 0.28), 0 12px 22px rgba(0, 0, 0, 0.10);
}

.freeTrialFloat:active {
    transform: translateY(-50%) scale(0.99);
}

/* ========================= ABOUT (Section #2) — Framer-like (fixed) ========================= */
/* ✅ tạo khoảng cách với HERO (thoáng hơn) */
.about {
    padding: 150px 0 56px;
    /* tăng khoảng cách trên để không bị sát hero */
}

/* ✅ title nhỏ lại giống Framer */
.about__title {
    margin: 0 0 34px;
    text-align: center;
    font-size: clamp(26px, 3.1vw, 40px);
    /* nhỏ hơn bản cũ */
    line-height: 1.12;
    letter-spacing: -0.6px;
    font-weight: 850;
    color: #111;
}

/* ✅ grid gọn hơn + giống layout framer */
.about__grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    /* ảnh nhỏ lại, đúng “vibe” framer */
    gap: 36px;
    align-items: center;
}

.about__copy {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(17, 17, 17, 0.72);
    will-change: transform;
}

/* ===== center image (square) ===== */
/* ===== ABOUT media: make it square + Framer-like notch ===== */
.aboutMedia {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    /* ✅ ép ảnh thành hình vuông */
    display: block;
}

.aboutMedia__img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 28px;
    object-fit: cover;
    object-position: 50% 45%;
    box-shadow: 0 26px 60px rgba(0,0,0,0.10);
}

/* ===== Rougai Education pill (auto-fit + swap animation, smoother) ===== */
.aboutTag {
    --pill-h: 54px;
    --icon: 42px;
    --pad: 10px;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    z-index: 2;
    height: var(--pill-h);
    border-radius: 999px;
    background: #0f141a;
    color: rgba(255,255,255,0.96);
    display: inline-flex;
    align-items: center;
    /* ✅ pill vừa khít nội dung */
    width: fit-content;
    padding-left: calc(var(--pad) + var(--icon) + 12px);
    padding-right: 18px;
    box-shadow: 0 16px 38px rgba(0,0,0,0.16);
    border: 1px solid rgba(255,255,255,0.10);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* icon circle (blue) */
.aboutTag__icon {
    position: absolute;
    left: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    width: var(--icon);
    height: var(--icon);
    border-radius: 999px;
    background: rgba(47,124,255,0.98);
    display: grid;
    place-items: center;
    /* ✅ mượt hơn left */
    transition: left 0.30s cubic-bezier(.2,.9,.2,1);
    will-change: left;
}

.aboutTag__icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    opacity: 0.95;
}

/* text */
.aboutTag__text {
    font-size: 18px;
    font-weight: 450;
    font-style: italic;
    letter-spacing: -0.1px;
    white-space: nowrap;
    color: #ffffff;
    /* ✅ giữ chữ “đứng” đúng vị trí, chỉ animate nhẹ */
    transform: translateX(0);
    transition: transform 0.30s cubic-bezier(.2,.9,.2,1);
    will-change: transform;
}

.aboutTag:hover, .aboutTag.is-swap {
    transform: translateX(-50%) translateY(-1px);
    box-shadow: 0 20px 46px rgba(0,0,0,0.18);
}

.aboutTag:hover .aboutTag__icon, .aboutTag.is-swap .aboutTag__icon {
    left: calc(100% - var(--icon) - var(--pad));
}

.aboutTag:hover .aboutTag__text, .aboutTag.is-swap .aboutTag__text {
    transform: translateX(calc(-1 * (var(--icon) + 12px)));
}

/* ===== mobile tweak ===== */
@media (max-width: 760px) {
    .aboutTag {
        --pill-h: 52px;
        --icon: 40px;
        padding-right: 16px;
    }

    .aboutTag__text {
        font-size: 16px;
    }
}

/* ========================= ABOUT responsive ========================= */
@media (max-width: 980px) {
    .about {
        padding: 120px 0 44px;
    }

    .about__grid {
        grid-template-columns: 1fr 300px 1fr;
        gap: 24px;
    }

    .aboutMedia {
        max-width: 300px;
    }
}

@media (max-width: 760px) {
    .about {
        padding: 96px 0 34px;
    }

    .about__title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 20px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: left;
    }

    .aboutMedia {
        max-width: 320px;
    }
}

/* ===== Shared section spacing ===== */
.sectionTitle {
    margin: 0 0 34px;
    text-align: center;
    /* ✅ nhỏ hơn Hero, và Practical = Choose (xài chung class này) */
    font-size: clamp(24px, 3.0vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.6px;
    font-weight: 850;
    color: #111;
}

/* Courses section spacing matches About */
.courses {
    padding-top: 90px;
    padding-bottom: 40px;
}

.courses > *:last-child {
    margin-bottom: 0;
}

.courses__inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* ===== PATH / COURSES ===== */
.path {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: auto;
    /* ✅ bỏ height cứng */
    min-height: 440px;
    /* ✅ đủ cho layout bung */
    overflow: visible;
}

.pathCard {
    position: absolute;
    left: 50%;
    top: 0;
    /* ✅ nhỏ lại để không bị cắt nội dung 2 bên */
    width: 290px;
    aspect-ratio: 3 / 4;
    height: auto;
    transform: translateX(-50%);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0,0,0,0.10);
    will-change: transform;
}

/* tablet nhỏ hơn nữa */
@media (max-width: 980px) {
    .path {
        height: 520px;
    }

    .pathCard {
        width: 300px;
        height: 480px;
    }
}

.pathCard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glass text block */
.pathCard__glass {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px 18px;
    border-radius: 22px;
    background: rgba(245, 248, 255, 0.72);
    border: 1px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
}

.pathCard__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    color: rgba(17,17,17,0.92);
}

.pathCard__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(17,17,17,0.72);
}

/* ===== PATH hover pop-up (SAFE - KHÔNG đụng transform JS) ===== */
/* để ::after bám đúng card */
.pathCard {
    position: absolute;
    /* giữ nguyên absolute của bạn */
    transition: filter .22s ease, box-shadow .22s ease, opacity .22s ease;
}

/* viền xanh + glow (overlay, không làm layout thay đổi) */
.pathCard::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    /* khớp .pathCard */
    pointer-events: none;
    opacity: 0;
    transition: opacity .22s ease;
    box-shadow: 0 0 0 3px rgba(47,124,255,1.1), 0 18px 50px rgba(0,0,0,0.18);
}

/* khi hover vào khu vực path */
.path:hover .pathCard {
    filter: brightness(.96) saturate(.98);
}

/* card đang hover sáng + nổi lên (chỉ z-index, KHÔNG transform) */
.path:hover .pathCard:hover {
    filter: brightness(1.10) saturate(1.10);
    box-shadow: 0 34px 90px rgba(0,0,0,0.14);
    z-index: 999;
    /* đảm bảo nổi lên trên 2 card còn lại */
}

.path:hover .pathCard:hover::after {
    opacity: 1;
}

/* 2 card còn lại mờ nhẹ */
.path:hover .pathCard:not(:hover) {
    opacity: .82;
}

/* keyboard tab */
.pathCard:focus-visible {
    outline: none;
}

.pathCard:focus-visible::after {
    opacity: 1;
}

/* Responsive Path */
@media (max-width: 980px) {
    .path {
        height: 500px;
    }

    .pathCard {
        width: 330px;
        height: 500px;
    }
}

@media (max-width: 760px) {
    .courses {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .path {
        height: auto;
        display: grid;
        gap: 18px;
    }

    .pathCard {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 420px;
        transform: none !important;
        /* mobile: không chơi chụm-bung */
    }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    body {
        padding-right: 0;
    }

    .topbar__inner {
        grid-template-columns: 170px 1fr 190px;
    }

    .pillnav {
        gap: 12px;
        padding: 9px 12px;
    }

    .heroMedia {
        max-width: 820px;
    }

    .statCard {
        width: 160px;
        min-height: 130px;
    }

    .statCard__big {
        font-size: 36px;
    }

    /* ✅ Free Trial smaller (tablet) */
    .freeTrialFloat {
        right: 16px;
        top: 62%;
        padding: 11px 16px;
    }

    .freeTrialFloat__text {
        font-size: 22px;
    }

    .about__grid {
        grid-template-columns: 1fr 380px 1fr;
        gap: 22px;
    }
}

@media (max-width: 760px) {
    .topbar__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }

    .actions {
        justify-self: center;
    }

    .pillnav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero__title {
        margin: 20px 0 14px;
    }

    .statCard--leftTop {
        left: 10px;
        top: 12px;
    }

    .statCard--rightBottom {
        right: 10px;
        bottom: 12px;
    }

    .heroCenterText__small {
        white-space: normal;
    }

    /* ✅ Free Trial smaller (mobile) */
    .freeTrialFloat {
        top: auto;
        bottom: 16px;
        right: 12px;
        transform: none;
        padding: 10px 14px;
    }

    .freeTrialFloat:hover, .freeTrialFloat:active {
        transform: none;
    }

    .freeTrialFloat__text {
        font-size: 18px;
    }

    .about {
        padding: 80px 0 20px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: left;
    }

    .about__copy {
        max-width: 520px;
    }

    .aboutMedia {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 440px) {
    .brand__logo {
        height: 26px;
    }

    .joinbtn {
        height: 42px;
    }

    .iconbtn {
        height: 42px;
        width: 42px;
    }

    .statCard {
        width: 138px;
        min-height: 115px;
        padding: 12px;
    }

    .statCard__big {
        font-size: 30px;
    }

    .statCard__small {
        font-size: 12px;
    }

    .heroCenterText {
        top: 58%;
        width: 86%;
    }
}

/* ========================= ROADMAP BOOK (Flip) — FIXED - Only 1 visible spread - Tabs clickable - More paper-like flip ========================= */
.roadmapBook {
    padding: 56px 0 110px;
}

.roadmapBook__inner {
    width: min(1100px, 92%);
    margin: 0 auto;
    text-align: center;
}

.roadmapBook__sub {
    max-width: 760px;
    margin: 10px auto 26px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(17,17,17,0.70);
}

.book {
    position: relative;
    width: min(980px, 100%);
    margin: 0 auto;
}

/* ✅ Tabs MUST be clickable */
.book__tabs {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 10px;
    z-index: 20;
    pointer-events: auto;
    /* ✅ was none */
}

.tab {
    width: 38px;
    height: 26px;
    border-radius: 10px 10px 0 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    color: rgba(17,17,17,0.55);
    background: rgba(245,248,255,0.95);
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, filter .15s ease;
}

.tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.tab.is-active {
    color: rgba(17,17,17,0.90);
    background: #ffffff;
}

.book__frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 30px 80px rgba(0,0,0,0.08);
    /* ✅ makes flip look like paper */
    perspective: 2200px;
}

.book__frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 46px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(0,0,0,0.18), rgba(0,0,0,0.06) 55%, rgba(0,0,0,0.00) 72%);
    opacity: .35;
    mix-blend-mode: multiply;
}

/* ✅ ONLY ONE visible spread: spreadCurrent is visible, spreadNext is hidden buffer (absolute). */
.spread {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    opacity: 0;
    pointer-events: none;
}

.spread.is-current {
    opacity: 1;
    pointer-events: auto;
}

.spread.is-next {
    opacity: 0;
    pointer-events: none;
}

.roadmapBook .page {
    padding: 42px 42px 40px;
    background: #ffffff;
}

.roadmapBook .page--left {
    border-right: 1px solid rgba(10,35,80,0.10);
}

.page__kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    color: #0f141a;
    background: rgba(59,191,138,0.14);
    border: 1px solid rgba(59,191,138,0.22);
    margin-bottom: 14px;
}

.page__title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    font-weight: 900;
    color: #111;
    text-align: left;
}

.page__desc {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(17,17,17,0.72);
    text-align: left;
    max-width: 520px;
}

.page__bullets {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    text-align: left;
}

.page__bullets li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 15px;
    color: rgba(17,17,17,0.76);
}

.page__bullets li::before {
    content: "✓";
    font-weight: 900;
    opacity: 0.75;
}

.page__media {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 34px;
}

.page__media img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.10);
}

/* ===== controls ===== */
.book__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.bookBtn {
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.90);
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    font-weight: 800;
}

.bookBtn--primary {
    background: rgba(59,191,138,0.16);
    border-color: rgba(59,191,138,0.28);
}

.bookBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bookBtn__icon {
    font-size: 18px;
    line-height: 1;
}

.book__progress {
    font-weight: 800;
    color: rgba(17,17,17,0.66);
}

/* ===== flip layer (real book flip) ===== */
.flip {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 9;
    /* nằm trên spread */
    transform-style: preserve-3d;
}

.flip.is-on {
    opacity: 1;
}

/* shared */
.flip__front, .flip__back {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* ===== NEXT: flip RIGHT page -> LEFT ===== */
.flip.is-next .flip__front, .flip.is-next .flip__back {
    right: 0;
    left: auto;
    transform-origin: left center;
    /* gáy sách ở giữa */
}

/* mặt sau của trang (để khi lật thấy “mặt sau”) */
.flip.is-next .flip__back {
    transform: rotateY(180deg);
}

/* ===== PREV: flip LEFT page -> RIGHT ===== */
.flip.is-prev .flip__front, .flip.is-prev .flip__back {
    left: 0;
    right: auto;
    transform-origin: right center;
    /* gáy sách ở giữa */
}

/* mặt sau cho prev (hướng ngược lại) */
.flip.is-prev .flip__back {
    transform: rotateY(-180deg);
}

/* page content inside flip */
.roadmapBook .page--flip {
    height: 100%;
    padding: 42px;
    background: #fff;
    position: relative;
}

/* ===== paper shadow / curl ===== */
.roadmapBook .page--flip::before, .roadmapBook .page--flip::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

.flip.is-on .page--flip::before, .flip.is-on .page--flip::after {
    opacity: 1;
}

/* shadow cạnh gáy (tạo cảm giác cong giấy) */
.flip.is-next .page--flip::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(0,0,0,0.10) 22%, rgba(0,0,0,0.00) 58%);
}

.flip.is-prev .page--flip::before {
    background: linear-gradient(270deg, rgba(0,0,0,0.22), rgba(0,0,0,0.10) 22%, rgba(0,0,0,0.00) 58%);
}

/* highlight nhẹ cho “giấy” */
.flip.is-next .page--flip::after {
    background: radial-gradient(120% 90% at 0% 50%, rgba(255,255,255,0.55), rgba(255,255,255,0.00) 62%);
}

.flip.is-prev .page--flip::after {
    background: radial-gradient(120% 90% at 100% 50%, rgba(255,255,255,0.55), rgba(255,255,255,0.00) 62%);
}

/* ===== animations ===== */
/* NEXT: right -> left (0 to -180) */
.flip.is-next .flip__front {
    animation: flipNextFront 0.95s cubic-bezier(.18,.9,.18,1) forwards;
}

.flip.is-next .flip__back {
    animation: flipNextBack 0.95s cubic-bezier(.18,.9,.18,1) forwards;
}

/* PREV: left -> right (0 to +180) */
.flip.is-prev .flip__front {
    animation: flipPrevFront 0.95s cubic-bezier(.18,.9,.18,1) forwards;
}

.flip.is-prev .flip__back {
    animation: flipPrevBack 0.95s cubic-bezier(.18,.9,.18,1) forwards;
}

@keyframes flipNextFront {
    0% {
        transform: rotateY(0deg) translateX(0);
        filter: brightness(1);
    }

    40% {
        transform: rotateY(-70deg) translateX(-6px);
        filter: brightness(.98);
    }

    75% {
        transform: rotateY(-150deg) translateX(-10px);
        filter: brightness(.95);
    }

    100% {
        transform: rotateY(-180deg) translateX(-12px);
        filter: brightness(.94);
    }
}

@keyframes flipNextBack {
    0% {
        transform: rotateY(180deg) translateX(-12px);
        filter: brightness(.94);
    }

    40% {
        transform: rotateY(110deg) translateX(-10px);
        filter: brightness(.95);
    }

    75% {
        transform: rotateY(30deg) translateX(-6px);
        filter: brightness(.98);
    }

    100% {
        transform: rotateY(0deg) translateX(0);
        filter: brightness(1);
    }
}

@keyframes flipPrevFront {
    0% {
        transform: rotateY(0deg) translateX(0);
        filter: brightness(1);
    }

    40% {
        transform: rotateY(70deg) translateX(6px);
        filter: brightness(.98);
    }

    75% {
        transform: rotateY(150deg) translateX(10px);
        filter: brightness(.95);
    }

    100% {
        transform: rotateY(180deg) translateX(12px);
        filter: brightness(.94);
    }
}

@keyframes flipPrevBack {
    0% {
        transform: rotateY(-180deg) translateX(12px);
        filter: brightness(.94);
    }

    40% {
        transform: rotateY(-110deg) translateX(10px);
        filter: brightness(.95);
    }

    75% {
        transform: rotateY(-30deg) translateX(6px);
        filter: brightness(.98);
    }

    100% {
        transform: rotateY(0deg) translateX(0);
        filter: brightness(1);
    }
}

.roadmapBook .page--flip {
    height: 100%;
    padding: 42px;
    background: #fff;
    position: relative;
}

/* ✅ paper shading */
.page--flip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06) 22%, rgba(0,0,0,0.00) 60% );
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.flip.is-on .page--flip::after {
    opacity: 1;
}

/* ✅ more paper-like easing + slight "curl" vibe */
.flip.is-next .flip__front {
    animation: flipNextPaper 0.78s cubic-bezier(.2,.9,.18,1) forwards;
}

.flip.is-next .flip__back {
    animation: flipNextBackPaper 0.78s cubic-bezier(.2,.9,.18,1) forwards;
}

.flip.is-prev .flip__front {
    animation: flipPrevPaper 0.78s cubic-bezier(.2,.9,.18,1) forwards;
}

.flip.is-prev .flip__back {
    animation: flipPrevBackPaper 0.78s cubic-bezier(.2,.9,.18,1) forwards;
}

@keyframes flipNextPaper {
    0% {
        transform: rotateY(0deg) translateX(0px) rotateZ(0deg);
        filter: brightness(1);
    }

    22% {
        transform: rotateY(-28deg) translateX(-2px) rotateZ(-0.4deg);
        filter: brightness(0.995);
    }

    50% {
        transform: rotateY(-92deg) translateX(-6px) rotateZ(-0.9deg);
        filter: brightness(0.985);
    }

    78% {
        transform: rotateY(-155deg) translateX(-10px) rotateZ(-1.2deg);
        filter: brightness(0.975);
    }

    100% {
        transform: rotateY(-180deg) translateX(-12px) rotateZ(-1.1deg);
        filter: brightness(0.97);
    }
}

@keyframes flipNextBackPaper {
    0% {
        transform: rotateY(180deg) translateX(-12px) rotateZ(-1.1deg);
        filter: brightness(0.97);
    }

    22% {
        transform: rotateY(152deg) translateX(-10px) rotateZ(-1.2deg);
        filter: brightness(0.975);
    }

    50% {
        transform: rotateY(88deg) translateX(-6px) rotateZ(-0.9deg);
        filter: brightness(0.985);
    }

    78% {
        transform: rotateY(25deg) translateX(-2px) rotateZ(-0.4deg);
        filter: brightness(0.995);
    }

    100% {
        transform: rotateY(0deg) translateX(0px) rotateZ(0deg);
        filter: brightness(1);
    }
}

@keyframes flipPrevPaper {
    0% {
        transform: rotateY(0deg) translateX(0px) rotateZ(0deg);
        filter: brightness(1);
    }

    22% {
        transform: rotateY(28deg) translateX(2px) rotateZ(0.4deg);
        filter: brightness(0.995);
    }

    50% {
        transform: rotateY(92deg) translateX(6px) rotateZ(0.9deg);
        filter: brightness(0.985);
    }

    78% {
        transform: rotateY(155deg) translateX(10px) rotateZ(1.2deg);
        filter: brightness(0.975);
    }

    100% {
        transform: rotateY(180deg) translateX(12px) rotateZ(1.1deg);
        filter: brightness(0.97);
    }
}

@keyframes flipPrevBackPaper {
    0% {
        transform: rotateY(-180deg) translateX(12px) rotateZ(1.1deg);
        filter: brightness(0.97);
    }

    22% {
        transform: rotateY(-152deg) translateX(10px) rotateZ(1.2deg);
        filter: brightness(0.975);
    }

    50% {
        transform: rotateY(-88deg) translateX(6px) rotateZ(0.9deg);
        filter: brightness(0.985);
    }

    78% {
        transform: rotateY(-25deg) translateX(2px) rotateZ(0.4deg);
        filter: brightness(0.995);
    }

    100% {
        transform: rotateY(0deg) translateX(0px) rotateZ(0deg);
        filter: brightness(1);
    }
}

/* ===== responsive ===== */
@media (max-width: 900px) {
    .spread {
        grid-template-columns: 1fr;
    }

    .page--left {
        border-right: 0;
        border-bottom: 1px solid rgba(10,35,80,0.10);
    }

    .flip__front, .flip__back {
        width: 100%;
    }

    .roadmapBook .page__title {
        font-size: 30px;
    }

    .roadmapBook .page {
        padding: 34px 26px;
    }

    .roadmapBook .page--flip {
        padding: 34px 26px;
    }

    .page__media {
        padding: 22px;
    }

    .page__media img {
        max-height: 360px;
    }
}

/* ===== ROADMAP FIX: frame must have height ===== */
.book__frame {
    position: relative;
    min-height: 520px;
    /* rất quan trọng */
}

/* spreadCurrent nằm trong flow, spreadNext là buffer ẩn */
#spreadCurrent {
    position: relative;
}

#spreadNext {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

/* ===== Pillnav dropdown (Courses) ===== */
.pillnav__dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Menu hidden by default */
/* ===== FIX Courses dropdown hover ===== */
.pillnav__dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* tạo vùng đệm để rê chuột xuống menu không bị mất */
}

.pillnav__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    /* vùng cầu nối */
}

.pillnav__menu {
    position: absolute;
    top: 100%;
    /* ❌ KHÔNG dùng calc(...) */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 260px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
}

.pillnav__dropdown:hover .pillnav__menu, .pillnav__dropdown:focus-within .pillnav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Show on hover */
.pillnav__dropdown:hover .pillnav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Items */
.pillnav__item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: rgba(17,17,17,0.86);
}

.pillnav__item:hover {
    background: rgba(47,124,255,0.10);
    color: rgba(17,17,17,0.95);
}

/* Mobile: click courses -> show menu (simple always visible) */
@media (max-width: 760px) {
    .pillnav__menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 10px;
    }
}

/* ===== OUR STUDENTS ORBIT ===== */
.studentsOrbit {
    padding: 56px 0 90px;
}

.studentsOrbit__inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
    text-align: center;
}

.studentsOrbit__sub {
    margin: 10px auto 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(20,25,30,0.75);
}

.orbit {
    position: relative;
    width: min(980px, 92vw);
    height: 520px;
    margin: 34px auto 0;
    /* tạo “không gian” 3D giả lập */
    perspective: 1000px;
    transform-style: preserve-3d;
    /* để hover không bị “rớt” */
    user-select: none;
}

.orbitItem {
    position: absolute;
    left: 50%;
    top: 50%;
    /* default: JS sẽ set translate + scale */
    transform: translate(-50%, -50%);
    transform-origin: center;
    width: 170px;
    height: 220px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    /* mượt */
    transition: filter 220ms ease, transform 220ms ease;
    will-change: transform, opacity;
}

.orbitItem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* PNG nền trong suốt đẹp nhất */
    display: block;
    /* pop feel */
    filter: drop-shadow(0 18px 26px rgba(0,0,0,0.18));
}

/* ===== orbit labels (class top + student name bottom) ===== */
.orbitMeta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.2px;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f141a;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(30,60,120,0.12);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
    pointer-events: none;
    /* ✅ để hover vẫn ăn vào orbitItem */
    backdrop-filter: blur(6px);
}

.orbitMeta--top {
    top: -18px;
    /* nhích lên, tránh tóc */
    background: transparent;
    /* bỏ khung trắng */
    box-shadow: none;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0b5ed7;
    /* xanh đậm – cùng tông áo */
    letter-spacing: 0.2px;
}

.orbitMeta--bottom {
    bottom: 8px;
    /* nhìn “nổi” hơn 1 chút cho tên */
    font-weight: 750;
}

/* highlight label khi card lên phía trước */
.orbitItem .orbitMeta {
    opacity: 0.65;
    transform: translateX(-50%) scale(0.98);
}

.orbitItem.is-front .orbitMeta {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.orbitItem.is-front {
    filter: drop-shadow(0 24px 36px rgba(0,0,0,0.22));
}

.orbitItem:hover img {
    filter: drop-shadow(0 26px 40px rgba(0,0,0,0.26)) brightness(1.04);
}

/* responsive nhẹ */
@media (max-width: 760px) {
    .orbit {
        height: 420px;
    }

    .orbitItem {
        width: 135px;
        height: 180px;
    }
}

/* ========================= FX LAYER (fixed decorations) - behind content - no blocking clicks ========================= */
/* FX stays behind */
.fxLayer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Lantern layer sits ABOVE topbar */
.lanternLayer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    /* > topbar */
    pointer-events: none;
}

body {
    position: relative;
}

.fxLayer {
    z-index: 0;
}

.page {
    position: relative;
    z-index: 2;
}

.topbar {
    z-index: 9999;
}

/* giữ nguyên */
.freeTrialFloat {
    z-index: 9999;
}

/* giữ nguyên */
/* ===== Lanterns: body below, strap overlays topbar (FIXED) ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    overflow: visible;
    /* quan trọng để cho strap đè lên */
}

/* ========================= FULL LANTERNS (perfect version) - only 2 lanterns - full image (strap + bow + body) - start from topbar and go down ========================= */
/* Lanterns */
.lanternFixed {
    position: fixed;
    top: 0px;
    width: 180px;
    height: auto;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transform-origin: top center;
    animation: lanternSway 6s ease-in-out infinite alternate;
    /* sharp hơn */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* chống blur khi transform */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.lanternFixed--left {
    left: clamp(20px, 4vw, 80px);
}

.lanternFixed--right {
    right: clamp(20px, 4vw, 80px);
    animation-name: lanternSwayRight;
    /* ✅ nhớ gán sway riêng cho phải */
}

@keyframes lanternSway {
    from {
        transform: translateY(0) rotate(-0.18deg);
    }

    to {
        transform: translateY(4px) rotate(0.18deg);
    }
}

@keyframes lanternSwayRight {
    from {
        transform: translateY(0) rotate(0.18deg);
    }

    to {
        transform: translateY(4px) rotate(-0.18deg);
    }
}

@media (max-width: 760px) {
    .lanternLayer {
        display:none;
    }
}

/* ===== Clouds container ===== */
.fxClouds {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* 1 cloud instance */
.fxCloud {
    position: absolute;
    left: -30%;
    width: 920px;
    height: 380px;
    background-image: url("./assets/img/cloud.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.42;
    filter: contrast(1.12) saturate(1.08);
    animation: cloudDrift linear infinite;
    will-change: transform;
}

@keyframes cloudDrift {
    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(160vw,0,0);
    }
}

/* ===== Fireworks canvas ===== */
.fxFireworks {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.65;
    /* nhẹ, không lấn */
}

/* ========================= TEACHERS STACK (Framer-like) Sticky stacked cards ========================= */
.teachersStack {
    padding: 90px 0 40px;
}

.teachersStack__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
}

.teachersStack__sub {
    max-width: 760px;
    margin: 10px auto 26px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(17,17,17,0.70);
}

/* Gives sticky cards “scroll space”. When this wrapper ends, the last card releases and the next section scrolls normally. */
.tStack {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 140px;
}

.tCard {
    position: sticky;
    top: 110px;
    /* adjust to match your topbar height */
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 26px 60px rgba(0,0,0,0.10);
    /* stacking feel */
    transform: none;
    will-change: auto;
    z-index: calc(100 + var(--i));
    margin-bottom: 22px;
}

.tCard__left {
    padding: 52px 48px;
    text-align: left;
    background: rgba(181, 214, 231, 0.60);
}

.tCard:nth-child(2) .tCard__left {
    background: rgba(221, 226, 232, 0.75);
}

.tCard:nth-child(3) .tCard__left {
    background: rgba(157, 190, 223, 0.60);
}

.tCard:nth-child(4) .tCard__left {
    background: rgba(57, 161, 200, 0.60);
}

.tQuote {
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    color: rgba(47,124,255,0.55);
    margin-bottom: 10px;
}

.tText {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(17,17,17,0.72);
    max-width: 520px;
}

.tName {
    font-size: 22px;
    font-weight: 900;
    color: rgba(17,17,17,0.92);
    margin-top: 6px;
}

.tMeta {
    font-size: 13px;
    font-weight: 700;
    color: rgba(17,17,17,0.60);
    margin-top: 6px;
}

.tTags {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tTags li {
    font-size: 12px;
    font-weight: 750;
    color: rgba(17,17,17,0.72);
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(10,35,80,0.10);
    backdrop-filter: blur(8px);
}

.tCard__right {
    background: #fff;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tCard__right {
    background: #fff;
    display: grid;
    place-items: center;
    padding: 24px;
    min-height: 420px;
    /* giữ khung ổn định */
}

.tCard__right img {
    width: auto;
    /* ✅ KHÔNG kéo full ngang nữa */
    max-width: 100%;
    height: auto;
    max-height: 420px;
    /* ✅ giới hạn chiều cao */
    object-fit: contain;
    border-radius: 24px;
    /* ✅ cố “nét” */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 22px 60px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
    .tCard {
        grid-template-columns: 1fr;
        top: 92px;
    }

    .tCard__left {
        padding: 34px 26px;
    }

    .tCard__right {
        padding: 18px;
    }

    .tCard__right img {
        max-height: 360px;
    }
}

/* ===== FAQ (Framer-like) ===== */
.faqSection {
    padding: 56px 0 80px;
    margin-top: 28px;
    /* kéo gần Teachers hơn */
}

.faqSection__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: left;
}

.faqSection .sectionTitle {
    text-align: center;
    letter-spacing: 0.2px;
}

.faqSection__sub {
    text-align: center;
    max-width: 760px;
    margin: 12px auto 26px;
    color: rgba(17,17,17,0.72);
    line-height: 1.65;
}

/* divider list */
.faq {
    margin-top: 6px;
    border-top: 1px solid rgba(10, 35, 80, 0.14);
}

.faqItem {
    border-bottom: 1px solid rgba(10, 35, 80, 0.14);
}

.faqQ {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 18px 0;
    display: grid;
    grid-template-columns: 1fr 24px;
    gap: 14px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.faqQ span:first-child {
    font-weight: 650;
    font-size: 18px;
}

.faqQ:focus-visible {
    outline: 2px solid rgba(47,124,255,0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

/* plus/minus icon */
.faqIcon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    position: relative;
    opacity: 0.75;
}

.faqIcon::before, .faqIcon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background: rgba(17,17,17,0.72);
    border-radius: 2px;
}

.faqIcon::after {
    transform: rotate(90deg);
}

/* answer panel */
.faqA {
    height: 0;
    overflow: hidden;
    transition: height .28s ease;
}

.faqA__inner {
    padding: 0 0 18px 0;
    color: rgba(17,17,17,0.68);
    line-height: 1.7;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
}

/* open state */
.faqItem.is-open .faqIcon::after {
    transform: rotate(0deg);
    opacity: 0;
    /* thành dấu trừ */
}

.faqItem.is-open .faqQ span:first-child {
    color: #111;
}

/* responsive */
@media (max-width: 640px) {
    .faqSection {
        padding: 54px 0 72px;
    }

    .faqQ span:first-child {
        font-size: 16px;
    }

    .faqSection__inner {
        width: min(980px, calc(100% - 28px));
    }
}

.teachersStack {
    padding-bottom: 44px;
    /* giảm khoảng cách */
}

/* ===== Tight spacing: Teachers -> FAQs ===== */
.teachersStack {
    padding-bottom: 28px !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
}

.teachersStack__inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.tStack {
    margin-bottom: 0 !important;
}

.faqSection {
    margin-top: 0 !important;
    padding-top: 28px !important;
    /* khoảng cách “như Students -> Teachers” */
    padding-bottom: 80px;
    /* giữ phần dưới cho thoáng */
}

/* Emergency clamp for any big section spacing */
.page section {
    margin-bottom: 0 !important;
}

#faqs {
    scroll-margin-top: 110px;
}

/* ===== FOOTER ===== */
.siteFooter {
    background: #02457A;
    color: #fff;
    padding: 80px 0 40px;
}

.siteFooter__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
}

.footerTitle {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 600;
}

.footerTitle .spark {
    color: #f5c77a;
}

.footerSocials {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footerSocials a {
    padding: 10px 18px;
    background: #fff;
    color: #111;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}

.footerSocials a:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* Right side */
.footerDesc {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footerMail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
}

.footerMail span {
    font-size: 18px;
}

.footerBottom {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Mobile */
@media (max-width: 860px) {
    .siteFooter__inner {
        grid-template-columns: 1fr;
    }

    .footerTitle {
        font-size: 30px;
    }
}

/* ===== Footer socials (one row like your ref) ===== */
.footerSocial {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: nowrap;
    /* ép 1 hàng */
    overflow-x: auto;
    /* nếu màn nhỏ thì scroll ngang */
    padding: 10px 2px;
    -webkit-overflow-scrolling: touch;
}

.footerSocial::-webkit-scrollbar {
    height: 8px;
}

.footerSocial::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

.socialPill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #111;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 18px;
    white-space: nowrap;
    /* chữ không xuống dòng */
    flex: 0 0 auto;
    /* giữ dạng pill */
}

.socialIcon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.22);
    /* icon bubble nhẹ */
}

.socialIcon img {
    width: 18px;
    height: 18px;
    display: block;
}

/* hover nhẹ thôi cho sang */
.socialPill:hover {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .socialPill {
        padding: 9px 14px;
    }

    .socialIcon {
        width: 32px;
        height: 32px;
    }
}

/* ===== 404 Page ===== */
.nfHero {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 120px 0 84px;
}

.nfHero__inner {
    width: min(980px, calc(100% - 44px));
    text-align: center;
}

.nfTitle {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
}

.nfDesc {
    max-width: 760px;
    margin: 0 auto 26px;
    color: rgba(17,17,17,0.72);
    line-height: 1.65;
    font-size: 16px;
}

.nfActions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nfBtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(10,35,80,0.18);
    background: rgba(255,255,255,0.82);
    text-decoration: none;
    color: #111;
    font-weight: 650;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.nfBtn--primary {
    background: #111;
    color: #fff;
    border-color: rgba(0,0,0,0.25);
}

.nfBtn__icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.16);
}

@media (max-width: 640px) {
    .nfHero {
        padding: 104px 0 72px;
    }

    .nfDesc {
        font-size: 15px;
    }
}

/* ========================= KIDS LANDING (UI like ref) ========================= */
.kidsHero {
    padding: 46px 0 26px;
}

.kidsHero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.kidsHero__title {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 8px 0 8px;
}

.kidsHero__sub {
    max-width: 760px;
    margin: 0 auto 18px;
    color: rgba(17,17,17,0.72);
    line-height: 1.65;
}

.kidsHero__ctaRow {
    margin: 14px 0 22px;
}

.kidsHero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b5473c 0%, #8f2d28 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.kidsHero__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.14);
}

.kidsHero__cta--big {
    padding: 14px 26px;
    font-size: 16px;
}

.kidsHero__topGrid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 26px;
    align-items: center;
    text-align: left;
}

/* left info */
.kidsInfoCard {
    background: linear-gradient(180deg, rgba(24,93,170,0.95), rgba(15,72,138,0.95));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 18px 48px rgba(16,54,110,0.18);
    border-radius: 18px;
    padding: 18px 18px;
    color: rgba(255,255,255,0.95);
    position: relative;
    overflow: hidden;
}

.kidsInfoRow {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 6px;
}

.kidsInfoIcon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.14);
}

.kidsInfoIcon img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(100);
    opacity: .95;
}

.kidsInfoBig {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

.kidsInfoSmall {
    opacity: .85;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
}

.kidsInfoDivider {
    height: 1px;
    background: rgba(255,255,255,0.18);
    margin: 4px 6px;
}

/* right art */
.kidsHeroArt {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 18px 46px rgba(10,35,80,0.10);
}

.kidsHeroArt__img {
    width: 100%;
    height: auto;
    display: block;
}

/* schedule strip */
.kidsStrip {
    margin: 24px auto 0;
    max-width: 1000px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 22px;
    box-shadow: 0 20px 56px rgba(10,35,80,0.10);
    padding: 16px 16px;
}

.kidsStrip__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: #0A1172;
    margin-bottom: 10px;
}

.kidsStrip__badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(10,17,114,0.08);
    border: 1px solid rgba(10,17,114,0.12);
}

.kidsStrip__badge img {
    width: 18px;
    height: 18px;
    display: block;
    opacity: .9;
}

.kidsStrip__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kidsStripCard {
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 10px 26px rgba(10,35,80,0.06);
}

.kidsStripLabel {
    font-size: 12px;
    color: rgba(17,17,17,0.62);
    margin-bottom: 6px;
}

.kidsStripValue {
    font-weight: 800;
    color: #111;
}

/* course content */
.kidsContent {
    margin-top: 30px;
    padding: 14px 0 34px;
}

.kidsContent__title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 10px 0 16px;
    color: #0A1172;
    text-align: center;
}

/* 4 x 5 grid */
.kidsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1050px;
    margin: 0 auto;
}

.kidsLesson {
    position: relative;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 16px;
    /* ✅ chừa chỗ icon bên phải */
    padding: 14px 64px 14px 54px;
    /* ✅ cao hơn 1 xíu để chữ không chật */
    min-height: 108px;
    box-shadow: 0 14px 36px rgba(10,35,80,0.08);
    overflow: hidden;
}

.kidsLesson__num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(10,17,114,0.10);
    border: 1px solid rgba(10,17,114,0.14);
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #0A1172;
}

.kidsLesson__title {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #111;
}

.kidsLesson__desc {
    font-size: 12.5px;
    color: rgba(17,17,17,0.68);
    line-height: 1.55;
}

.kidsLesson__icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10,17,114,0.08);
    border: 1px solid rgba(10,17,114,0.12);
    opacity: .95;
    /* ✅ icon luôn nằm trên, nếu có gì chồng lên */
    z-index: 2;
}

.kidsLesson__icon img {
    width: 18px;
    height: 18px;
    display: block;
    opacity: .9;
}

.kidsBottomCta {
    margin-top: 18px;
    text-align: center;
}

.kidsBottomCta__note {
    margin: 10px auto 0;
    max-width: 720px;
    color: rgba(17,17,17,0.65);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
    .kidsHero__topGrid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kidsInfoCard {
        text-align: left;
    }

    .kidsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .kidsStrip__cards {
        grid-template-columns: 1fr;
    }

    .kidsGrid {
        grid-template-columns: 1fr;
    }
}

/* ============================== KIDS PAGE – MORE BREATHING SPACE Paste at END of style.css ============================== */
/* tổng thể section */
.kidsHero {
    padding: 64px 0 84px;
    /* thoáng hơn trên/dưới */
}

.kidsHero__inner {
    max-width: 1100px;
    /* rộng rãi hơn */
    margin: 0 auto;
    padding: 0 22px;
}

/* title/sub cách nhau thoáng hơn */
.kidsHero__title {
    margin: 0 0 14px;
}

.kidsHero__sub {
    margin: 0 auto 34px;
    /* cách ra khỏi phần topGrid */
    max-width: 820px;
    line-height: 1.7;
}

/* cụm: bảng xanh + hình bên phải (đang trống) */
.kidsHero__topGrid {
    gap: 34px;
    /* xa nhau giữa 2 cột */
    margin-top: 10px;
    margin-bottom: 34px;
    /* cách xuống Class Schedule */
}

/* nới padding cho card xanh 1 chút cho “thoáng” */
.kidsInfoCard {
    padding: 18px 18px;
}

/* Class Schedule strip cách xuống Course Content */
.kidsStrip {
    margin-top: 6px;
    margin-bottom: 44px;
    /* xa hơn khỏi “Course Content” */
}

/* Course Content block */
.kidsContent {
    margin-top: 0;
}

/* title Course Content */
.kidsContent__title {
    margin: 0 0 22px;
    /* cách lưới 20 buổi */
}

/* lưới 20 buổi: xa nhau nhẹ */
.kidsGrid {
    gap: 16px;
    /* tăng khoảng cách giữa các card */
}

/* card lesson nới padding + tránh chữ đè icon (bonus fix) */
.kidsLesson__desc {
    line-height: 1.35;
}

/* Register Now dưới cùng: đẩy xuống thêm */
.kidsBottomCta {
    margin-top: 30px;
    /* xa khỏi grid */
    padding-bottom: 10px;
}

.kidsBottomCta__note {
    margin-top: 12px;
    line-height: 1.6;
}

/* Mobile: vẫn thoáng nhưng không bị dài quá */
@media (max-width: 640px) {
    .kidsHero {
        padding: 54px 0 72px;
    }

    .kidsHero__sub {
        margin-bottom: 26px;
    }

    .kidsHero__topGrid {
        gap: 18px;
        margin-bottom: 26px;
    }

    .kidsStrip {
        margin-bottom: 34px;
    }

    .kidsGrid {
        gap: 12px;
    }

    .kidsBottomCta {
        margin-top: 22px;
    }
}

/* ========================= KIDS – SPACING + NO OVERLAP (FINAL PATCH) Paste at END of style.css ========================= */
/* Thoáng hơn giữa các block */
.kidsHero {
    padding: 72px 0 92px;
}

.kidsHero__sub {
    margin: 0 auto 38px;
    max-width: 860px;
    line-height: 1.75;
}

.kidsHero__topGrid {
    gap: 42px;
    /* xa hơn giữa card xanh & hình */
    margin-bottom: 42px;
    /* xa hơn xuống Class Schedule */
}

/* Class schedule xa Course Content hơn */
.kidsStrip {
    margin: 10px auto 54px;
}

/* Course content block */
.kidsContent {
    padding: 0 0 44px;
}

.kidsContent__title {
    margin: 0 0 26px;
}

/* Grid thoáng hơn + card rộng hơn */
.kidsGrid {
    max-width: 1180px;
    /* rộng hơn chút */
    gap: 18px;
    /* card xa nhau hơn */
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    /* mỗi card có min width */
}

/* Card: GIỮ chừa chỗ icon + chừa chỗ badge, tăng cao hơn */
.kidsLesson {
    padding: 16px 72px 16px 58px;
    /* giữ chừa icon + badge */
    min-height: 126px;
}

/* Chữ nhỏ lại + giãn dòng để “thoáng mát” */
.kidsLesson__title {
    font-size: 13.5px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.kidsLesson__desc {
    font-size: 12px;
    line-height: 1.5;
}

/* Icon to hơn nhẹ, không dính chữ */
.kidsLesson__icon {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
}

.kidsLesson__icon img {
    width: 18px;
    height: 18px;
}

/* Register Now xuống dưới thêm */
.kidsBottomCta {
    margin-top: 36px;
}

.kidsBottomCta__note {
    margin-top: 14px;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 1120px) {
    .kidsGrid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .kidsHero {
        padding: 58px 0 76px;
    }

    .kidsHero__sub {
        margin-bottom: 28px;
    }

    .kidsHero__topGrid {
        gap: 20px;
        margin-bottom: 28px;
    }

    .kidsStrip {
        margin-bottom: 38px;
    }

    .kidsGrid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kidsLesson {
        padding: 16px 64px 16px 56px;
    }
}

/* ========================= ADULT PAGE – GRID 40 LESSONS Paste at END of style.css ========================= */
.adultHero .kidsHero__sub {
    max-width: 920px;
}

.adultGrid {
    max-width: 1280px;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 18px;
}

/* card hơi thấp hơn 1 chút để 40 ô gọn */
.adultGrid .kidsLesson {
    min-height: 118px;
    padding: 16px 72px 16px 58px;
}

@media (max-width: 1200px) {
    .adultGrid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 860px) {
    .adultGrid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 560px) {
    .adultGrid {
        grid-template-columns: 1fr;
    }
}

/* ========================= ADULT – MATCH KIDS (4 columns, same sizing) Paste at END of style.css ========================= */
.adultHero .kidsGrid {
    max-width: 1180px;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    /* ✅ y chang kids */
}

.adultHero .kidsLesson {
    padding: 16px 72px 16px 58px;
    /* ✅ y chang kids */
    min-height: 126px;
    /* ✅ y chang kids */
}

.adultHero .kidsLesson__title {
    font-size: 13.5px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.adultHero .kidsLesson__desc {
    font-size: 12px;
    line-height: 1.5;
}

/* icon y chang kids */
.adultHero .kidsLesson__icon {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
}

.adultHero .kidsLesson__icon img {
    width: 18px;
    height: 18px;
}

/* responsive y chang kids */
@media (max-width: 1120px) {
    .adultHero .kidsGrid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .adultHero .kidsGrid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .adultHero .kidsLesson {
        padding: 16px 64px 16px 56px;
    }
}

/* Adult: show full text (no ...) */
.adultHero .kidsLesson__title, .adultHero .kidsLesson__desc {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: initial !important;
    -webkit-box-orient: initial !important;
}

/* ========================= PATH CARDS – CLICKABLE ========================= */
.pathLink {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* đảm bảo animation / transform vẫn mượt */
.pathLink .pathCard {
    cursor: pointer;
}

/* hover rõ ràng hơn là “có link” */
.pathLink:hover .pathCard {
    transform: translateY(-4px);
}

/* accessibility */
.pathLink:focus-visible {
    outline: 3px solid rgba(47,124,255,0.45);
    outline-offset: 6px;
    border-radius: 28px;
}

/* ========================= 1-on-1 PAGE (o2o) – UI like mock Paste at END of style.css ========================= */
.o2oHero {
    padding: 78px 0 44px;
}

.o2oHero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.o2oHero__title {
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -0.6px;
    margin: 0 0 10px;
}

.o2oHero__sub {
    font-weight: 800;
    color: #0A1172;
    margin: 0 0 10px;
}

.o2oHero__desc {
    max-width: 820px;
    margin: 0 auto 18px;
    color: rgba(17,17,17,0.68);
    line-height: 1.75;
}

.o2oHero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b5473c 0%, #8f2d28 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.o2oHero__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.14);
}

.o2oStrip {
    margin: 20px auto 0;
    max-width: 960px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 22px;
    box-shadow: 0 20px 56px rgba(10,35,80,0.10);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.o2oStrip__item {
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.o2oStrip__icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10,17,114,0.08);
    border: 1px solid rgba(10,17,114,0.12);
}

.o2oStrip__icon img {
    width: 18px;
    height: 18px;
    opacity: .9;
}

.o2oStrip__text {
    font-weight: 800;
    color: #111;
    font-size: 13px;
}

.o2oGoals {
    padding: 48px 0 38px;
}

.o2oGoals__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.o2oTitle {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 0 0 10px;
    color: #0A1172;
}

.o2oLead {
    max-width: 860px;
    margin: 0 auto 22px;
    color: rgba(17,17,17,0.65);
    line-height: 1.7;
}

.o2oGoalGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.o2oGoalCard {
    text-align: left;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(10,35,80,0.08);
    padding: 16px 16px;
}

.o2oGoalCard__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.o2oGoalIcon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(10,17,114,0.08);
    border: 1px solid rgba(10,17,114,0.12);
}

.o2oGoalIcon img {
    width: 18px;
    height: 18px;
    opacity: .9;
}

.o2oGoalCard h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
}

.o2oGoalCard p {
    margin: 0;
    color: rgba(17,17,17,0.68);
    line-height: 1.6;
    font-size: 13px;
}

.o2oTeachers {
    padding: 40px 0 72px;
}

.o2oTeachers__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.o2oTeacherGrid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 18px;
}

.o2oTeacherCard {
    text-align: left;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(10,35,80,0.12);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(10,35,80,0.10);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 240px;
}

.o2oTeacherCard__imgWrap {
    background: rgba(255,255,255,0.55);
    border-right: 1px solid rgba(10,35,80,0.08);
    display: grid;
    place-items: center;
    padding: 14px;
}

.o2oTeacherCard__imgWrap img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
}

.o2oTeacherCard__body {
    padding: 16px 16px;
}

.o2oTeacherCard__body h3 {
    margin: 0 0 6px;
    font-weight: 900;
    font-size: 18px;
}

.o2oTeacherMeta {
    margin: 0 0 12px;
    color: rgba(17,17,17,0.62);
    font-size: 13px;
    line-height: 1.5;
}

.o2oTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.o2oTag {
    background: rgba(10,17,114,0.08);
    border: 1px solid rgba(10,17,114,0.12);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(17,17,17,0.82);
}

.o2oBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(47,124,255,0.12);
    border: 1px solid rgba(47,124,255,0.20);
    text-decoration: none;
    font-weight: 800;
    color: #0A1172;
}

.o2oBtn:hover {
    filter: brightness(0.98);
}

.o2oBottomCta {
    margin-top: 34px;
    padding-top: 6px;
}

@media (max-width: 980px) {
    .o2oStrip {
        grid-template-columns: 1fr;
    }

    .o2oGoalGrid {
        grid-template-columns: 1fr;
    }

    .o2oTeacherGrid {
        grid-template-columns: 1fr;
    }

    .o2oTeacherCard {
        grid-template-columns: 1fr;
    }

    .o2oTeacherCard__imgWrap {
        border-right: 0;
        border-bottom: 1px solid rgba(10,35,80,0.08);
    }
}

/* ========================= O2O HERO – replace big CTA with hero image (2-column) Paste at END of style.css ========================= */
.o2oHero {
    padding: 78px 0 44px;
}

.o2oHero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

/* ✅ 2-column layout like kids */
.o2oHero__grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    text-align: left;
}

.o2oHero__left {
    padding-right: 6px;
}

.o2oHero__title {
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -0.6px;
    margin: 0 0 10px;
}

.o2oHero__sub {
    font-weight: 800;
    color: #0A1172;
    margin: 0 0 10px;
}

.o2oHero__desc {
    max-width: 520px;
    /* cho giống vibe "text gọn" */
    margin: 0;
    color: rgba(17,17,17,0.68);
    line-height: 1.75;
}

/* right art */
.o2oHeroArt {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 18px 46px rgba(10,35,80,0.10);
}

.o2oHeroArt__img {
    width: 100%;
    height: auto;
    display: block;
}

/* strip sits below, centered */
.o2oStrip {
    margin: 22px auto 0;
    max-width: 960px;
    text-align: left;
}

/* responsive */
@media (max-width: 980px) {
    .o2oHero__inner {
        text-align: center;
    }

    .o2oHero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .o2oHero__desc {
        max-width: 820px;
        margin: 0 auto;
    }
}

/* O2O HERO — center all text */
.o2oHero__grid {
    text-align: center;
    /* center toàn bộ nội dung trong grid */
}

.o2oHero__left {
    padding-right: 0;
    text-align: center;
    /* đảm bảo cột trái center */
}

.o2oHero__desc {
    max-width: 820px;
    /* cho rộng hơn để đẹp khi center */
    margin: 0 auto;
    /* canh giữa đoạn mô tả */
}

.o2oHero__title, .o2oHero__sub {
    text-align: center;
}

/* ===== Language Gate (EN/VI) ===== */
.rgLangGate {
    position: fixed;
    inset: 0;
    z-index: 20000;
    /* above your topbar 9999 */
    display: grid;
    place-items: center;
}

.rgLangGate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 26, 0.42);
    backdrop-filter: blur(10px);
}

.rgLangGate__card {
    position: relative;
    width: min(560px, 92vw);
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(10,35,80,0.10);
    box-shadow: 0 30px 90px rgba(0,0,0,0.20);
    padding: 22px 22px 18px;
}

.rgLangGate__title {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.2px;
    color: #111;
    text-align: center;
}

.rgLangGate__sub {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(17,17,17,0.70);
    text-align: center;
}

.rgLangGate__btns {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.rgLangGate__btn {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.90);
    padding: 14px 14px;
    font-weight: 850;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.rgLangGate__btn--primary {
    background: linear-gradient(135deg, rgba(47,124,255,0.92), rgba(31,108,255,0.92));
    color: #fff;
    border-color: rgba(255,255,255,0.22);
}

.rgLangGate__hint {
    display: block;
    margin-top: 4px;
    font-weight: 650;
    font-size: 13px;
    opacity: 0.75;
}

.rgLangGate__foot {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: rgba(17,17,17,0.58);
}

/* ===================== Language Switcher ===================== */
.langSwitch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-size: 13px;
}

.langBtn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    padding: 2px 4px;
}

.langBtn.is-active {
    color: #111;
}

.langBtn:hover {
    color: #000;
}

.langSep {
    color: #bbb;
}

/* ===================== Language Pill (Topbar nav) ===================== */
.pillnav__dropdown--lang {
    position: relative;
}

.pillnav__trigger--lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    /* match pill aesthetic */
    border: 1px solid rgba(10, 35, 80, 0.14);
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(10px);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pillnav__trigger--lang:hover {
    transform: translateY(-1px);
    border-color: rgba(47, 124, 255, 0.35);
    box-shadow: 0 10px 26px rgba(47, 124, 255, 0.12);
}

.pillnav__trigger--lang:active {
    transform: translateY(0);
}

.langIcon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.langLabel {
    font-weight: 800;
    letter-spacing: .4px;
    color: #1f6cff;
    /* Rougai blue vibe */
}

.pillnav__menu--lang {
    min-width: 170px;
}

/* Active language highlight inside menu */
.langItem.is-active {
    background: rgba(47, 124, 255, 0.10);
    color: #1f6cff;
    font-weight: 700;
}

/* ========================= Language switch (inline) ========================= */
.langSwitchInline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    /* cách nút More một chút */
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 124, 255, 0.08);
    /* Rougai blue soft */
    border: 1px solid rgba(47, 124, 255, 0.25);
    backdrop-filter: blur(4px);
}

.langInlineBtn {
    appearance: none;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #2f7cff;
    /* Rougai blue */
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.langInlineBtn:hover {
    background: rgba(47, 124, 255, 0.12);
}

.langInlineBtn.is-active, .langInlineBtn[aria-pressed="true"] {
    background: #2f7cff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(47, 124, 255, 0.35);
}

.langInlineSep {
    font-size: 12px;
    color: rgba(47, 124, 255, 0.6);
    user-select: none;
}

/* ✅ LANG GATE click-fix */
.rgLangGate {
    pointer-events: auto;
}

.rgLangGate__backdrop {
    pointer-events: auto;
}

.rgLangGate__card {
    pointer-events: auto;
    z-index: 1;
}

.rgLangGate__btn {
    pointer-events: auto;
}

/* ✅ Language Gate (stable) */
.rgLangGate {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
}

.rgLangGate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 26, 0.42);
    backdrop-filter: blur(10px);
}

.rgLangGate__card {
    position: relative;
    z-index: 1;
}

/* ========================= MOBILE FIX (NO DESKTOP IMPACT) ========================= */
@media (max-width: 760px) {
    /* 1) kill horizontal scroll + reduce weird scaling */ html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
        touch-action: pan-y;
        /* allow vertical scroll only (helps prevent pinch issues) */
        -webkit-text-size-adjust: 100%;
    }

    /* Sometimes a child creates width > viewport */
    .page, .topbar, .topbar__inner {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 2) TOPBAR layout: Logo left | (spacer) | EN|VI | Join | Hamburger */
    .topbar__inner {
        grid-template-columns: auto 1fr auto auto auto;
        justify-items: stretch;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

    /* Logo left */
    .brand {
        justify-self: start;
    }

    .brand__logo {
        height: 26px;
    }

    /* Hide desktop pill nav on mobile (menu will open via hamburger) */
    .pillnav {
        display: none !important;
    }

    /* Hide the old actions (desktop arrow button) on mobile */
    .actions {
        display: none !important;
    }

    /* Show mobile actions row */
    .actionsMobile {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        grid-column: 3 / 6;
    }

    /* EN|VI pill smaller on mobile */
    .langSwitchInline.langSwitchInline--mobile {
        padding: 6px 8px;
        border-radius: 999px;
        background: rgba(120, 160, 230, 0.14);
        border: 1px solid rgba(60, 120, 220, 0.28);
    }

    .langSwitchInline--mobile .langInlineBtn {
        font-weight: 800;
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 10px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .langSwitchInline--mobile .langInlineSep {
        opacity: .55;
        font-weight: 800;
    }

    /* Join button smaller */
    .actionsMobile .joinbtn {
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    /* Hamburger */
    .hambtn {
        height: 40px;
        width: 44px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.10);
        background: rgba(255,255,255,0.75);
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .hambtn span {
        display: block;
        width: 18px;
        height: 2px;
        background: rgba(0,0,0,0.78);
        position: relative;
    }

    .hambtn span::before, .hambtn span::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background: rgba(0,0,0,0.78);
    }

    .hambtn span::before {
        top: -6px;
    }

    .hambtn span::after {
        top: 6px;
    }

    /* 3) MOBILE MENU OVERLAY */
    .mobileMenuOverlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(10,10,10,0.25);
        backdrop-filter: blur(6px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
    }

    .mobileMenuOverlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobileMenuSheet {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 64px;
        /* sits under topbar */
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(10,35,80,0.10);
        box-shadow: 0 22px 60px rgba(0,0,0,0.12);
        overflow: hidden;
        transform: translateY(-6px);
        transition: transform .18s ease;
    }

    .mobileMenuOverlay.is-open .mobileMenuSheet {
        transform: translateY(0);
    }

    .mNav {
        padding: 10px;
        display: grid;
        gap: 6px;
    }

    .mNav a, .mNav button {
        width: 100%;
        text-align: left;
        border: 0;
        background: transparent;
        padding: 12px 12px;
        border-radius: 12px;
        font-weight: 750;
        color: rgba(17,17,17,0.86);
        font-size: 14px;
        cursor: pointer;
    }

    .mNav a:hover, .mNav button:hover {
        background: rgba(47,124,255,0.08);
    }

    .mGroup {
        border-radius: 14px;
        border: 1px solid rgba(10,35,80,0.08);
        background: rgba(245,248,255,0.72);
        overflow: hidden;
    }

    .mGroupHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mCaret {
        opacity: .6;
        font-size: 12px;
        padding-left: 12px;
    }

    .mGroupItems {
        display: none;
        padding: 0 6px 8px;
    }

    .mGroup.is-open .mGroupItems {
        display: grid;
        gap: 4px;
    }

    .mGroupItems a {
        padding: 10px 12px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 13px;
    }
}

/* ========================= FIX LANG SWITCH COLOR (MOBILE) ========================= */
@media (max-width: 760px) {
    /* container */ .langSwitchInline--mobile {
        background: rgba(47, 124, 255, 0.12);
        /* xanh rất nhạt */
        border: 1px solid rgba(47, 124, 255, 0.35);
    }

    /* default button */
    .langSwitchInline--mobile .langInlineBtn {
        color: #1f3c88;
        /* xanh chữ EN */
        font-weight: 800;
        transition: all 0.2s ease;
    }

    /* ACTIVE state */
    .langSwitchInline--mobile .langInlineBtn.is-active {
        background: linear-gradient( 180deg, #2f7cff 0%, #1f6cff 100% );
        /* xanh Rougai đậm */
        color: #ffffff;
        /* chữ trắng rõ */
        box-shadow: 0 6px 16px rgba(47, 124, 255, 0.35);
    }

    /* separator | */
    .langSwitchInline--mobile .langInlineSep {
        color: rgba(31, 60, 136, 0.5);
    }
}

/* Hide mobile actions by default (DESKTOP) */
.actionsMobile {
    display: none !important;
}

@media (max-width: 760px) {
    .actionsMobile {
        display: inline-flex !important;
    }
}

/* ========================= HERO — MOBILE ONLY LAYOUT FIX Big image on top, 2 cards below (left/right) Paste at END of style.css ========================= */
@media (max-width: 760px) {
    /* hero media becomes a grid: row 1: big image (full width) row 2: 2 stat cards (2 columns) */ .heroMedia {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
        overflow: visible;
        position: relative;
        /* giữ cho heroCenterText overlay đúng */
    }

    /* Big image spans full width */
    .heroMedia__img {
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        border-radius: var(--radius-xl);
    }

    /* 2 cards: remove absolute overlay, put them UNDER image */
    .statCard {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 14px 14px 12px;
        border-radius: 18px;
    }

    /* left card goes to left column */
    .statCard--leftTop {
        grid-column: 1 / 2;
        margin: 0;
    }

    /* right card goes to right column */
    .statCard--rightBottom {
        grid-column: 2 / 3;
        margin: 0;
    }

    /* text sizing for mobile so it doesn't feel cramped */
    .statCard__big {
        font-size: 30px;
    }

    .statCard__small {
        font-size: 12px;
        line-height: 1.25;
    }

    /* HERO CENTER TEXT — overlay center on image (mobile only) */
    .heroCenterText {
        position: absolute !important;
        left: 50% !important;
        top: 35%;
        !important; /* nhích lên rõ ràng hơn */
        transform: translate(-50%, -50%) !important;
        width: 86%;
        text-align: center;
        pointer-events: none;
        z-index: 3;
    }

    /* keep it over the image, not in grid flow */
    .heroCenterText {
        grid-column: 1 / -1;
    }

    /* ROUGAI EDUCATION */
    .heroCenterText__big {
        color: rgba(255,255,255,0.96);
        text-shadow: 0 8px 22px rgba(0,0,0,0.38);
        font-size: clamp(14px, 4vw, 19px);
        letter-spacing: 0.8px;
        font-weight: 900;
    }

    /* An international environment... */
    .heroCenterText__small {
        color: rgba(255,255,255,0.88);
        text-shadow: 0 6px 18px rgba(0,0,0,0.32);
        font-size: clamp(7.5px, 2.3vw, 9px);
        font-weight: 650;
        margin-top: 6px;
    }

    /* ========================= MOBILE PORTRAIT — STOP motion but keep AboutTag centered ========================= */
    @media (max-width: 760px) and (orientation: portrait) {
        /* các thứ khác: đứng yên hẳn */ .aboutMedia, .aboutMedia__img, .about__copy, .about__grid {
            animation: none !important;
            transition: none !important;
            transform: none !important;
        }

        /* aboutTag: TẮT motion nhưng GIỮ transform để canh giữa */
        .aboutTag {
            animation: none !important;
            transition: none !important;
            transform: translateX(-50%) !important;
            /* giữ đúng vị trí giữa */
        }

        /* chặn trạng thái swap/hover (icon chạy qua phải) */
        .aboutTag.is-swap, .aboutTag:hover {
            transform: translateX(-50%) !important;
        }

        /* icon + text đứng yên, không chạy qua phải */
        .aboutTag__icon {
            left: var(--pad) !important;
            transition: none !important;
        }

        .aboutTag__text {
            transform: none !important;
            transition: none !important;
        }

        .about__grid {
            align-items: start !important;
        }
    }

    /* ========================= ROADMAP BOOK — MOBILE COMPACT PATCH Paste at END of style.css ========================= */
    /* 1) Mobile/tablet: giảm tổng thể frame + nội dung */
    @media (max-width: 900px) {
        /* khung sách thấp hơn để khỏi chiếm 1 màn hình */ .book__frame {
            min-height: 420px !important;
            border-radius: 22px;
        }

        /* spread bớt “cao cứng” */
        .spread {
            min-height: 420px !important;
        }

        /* padding trang nhỏ lại */
        .roadmapBook .page {
            padding: 22px 18px 18px !important;
        }

        .roadmapBook .page--flip {
            padding: 22px 18px 18px !important;
        }

        /* title/desc nhỏ lại + sát hơn */
        .roadmapBook .page__title {
            font-size: 22px !important;
            line-height: 1.15 !important;
            margin-bottom: 8px !important;
        }

        .roadmapBook .page__desc {
            font-size: 13px !important;
            line-height: 1.55 !important;
            margin-bottom: 12px !important;
        }

        /* bullets gọn */
        .page__bullets {
            gap: 8px !important;
        }

        .page__bullets li {
            font-size: 13px !important;
            gap: 8px !important;
        }

        /* media area nhỏ lại */
        .page__media {
            padding: 14px !important;
        }

        .page__media img {
            max-height: 220px !important;
            border-radius: 16px !important;
        }

        /* tabs nhỏ lại */
        .book__tabs {
            top: -10px !important;
            gap: 8px !important;
        }

        .tab {
            width: 34px !important;
            height: 24px !important;
            font-size: 12px !important;
            border-radius: 10px 10px 0 0 !important;
        }

        /* controls sát lại + nhỏ */
        .book__controls {
            gap: 10px !important;
            margin-top: 10px !important;
        }

        .bookBtn {
            height: 40px !important;
            padding: 0 12px !important;
            font-size: 13px !important;
        }

        .book__progress {
            font-size: 13px !important;
        }
    }

    /* 2) Phone nhỏ hơn nữa (<=760): siết mạnh hơn */
    @media (max-width: 760px) {
        .roadmapBook {
            padding: 36px 0 70px !important;
        }

        .book__frame {
            min-height: 380px !important;
            border-radius: 20px !important;
        }

        .spread {
            min-height: 380px !important;
        }

        .roadmapBook .page {
            padding: 18px 14px 14px !important;
        }

        .roadmapBook .page--flip {
            padding: 18px 14px 14px !important;
        }

        .page__kicker {
            height: 32px !important;
            font-size: 12px !important;
            margin-bottom: 10px !important;
        }

        .roadmapBook .page__title {
            font-size: 20px !important;
        }

        .page__media img {
            max-height: 200px !important;
        }

        .bookBtn {
            height: 38px !important;
            padding: 0 10px !important;
        }
    }

    /* ========================= OUR STUDENTS — MOBILE EXTRA COMPACT ========================= */
    @media (max-width: 760px) {
        /* khung orbit thấp thêm để đỡ chật */ .orbit {
            height: 320px !important;
        }

        /* ảnh học sinh nhỏ thêm */
        .orbitItem {
            width: 92px !important;
            height: 120px !important;
        }

        /* shadow nhẹ lại cho gọn */
        .orbitItem img {
            filter: drop-shadow(0 10px 14px rgba(0,0,0,0.14)) !important;
        }

        /* chữ chung trên ảnh */
        .orbitMeta {
            font-size: 9px !important;
            padding: 3px 7px !important;
            max-width: 96px !important;
        }

        /* chữ trên đầu (lớp học) */
        .orbitMeta--top {
            top: -12px !important;
            font-size: 9px !important;
        }

        /* chữ dưới (tên học sinh) */
        .orbitMeta--bottom {
            bottom: 4px !important;
            font-size: 9px !important;
        }
    }

    /* điện thoại rất nhỏ (iPhone SE, Android nhỏ) */
    @media (max-width: 360px) {
        .orbit {
            height: 300px !important;
        }

        .orbitItem {
            width: 86px !important;
            height: 112px !important;
        }

        .orbitMeta {
            font-size: 8.5px !important;
            max-width: 90px !important;
        }
    }

    /* =========================
   TEACHERS — MOBILE STACK (FIX)
   Works when: .tStack > .tCard
========================= */
    @media (max-width: 760px) {
        /* Sticky killers */ .page, .teachersStack, .teachersStack__inner, .tStack {
            overflow: visible !important;
            transform: none !important;
            filter: none !important;
            perspective: none !important;
            contain: none !important;
        }

        .teachersStack {
            padding: 56px 0 18px !important;
        }

        .teachersStack__inner {
            padding: 0 12px !important;
        }

        /* Scroll space so last card can “release” */
        .tStack {
            position: relative !important;
            max-width: 520px !important;
            margin: 0 auto !important;
            padding-bottom: 120px !important;
        }

        /* ✅ Sticky ON the card itself */
        .tStack > .tCard {
            position: sticky !important;
            top: 86px !important;
            /* topbar 76 + 10 */
            margin: 0 auto 18px !important;
            overflow: visible !important;
        }

        /* z-index tăng dần để card sau đè card trước */
        .tStack > .tCard:nth-child(1) {
            z-index: 10 !important;
        }

        .tStack > .tCard:nth-child(2) {
            z-index: 20 !important;
        }

        .tStack > .tCard:nth-child(3) {
            z-index: 30 !important;
        }

        .tStack > .tCard:nth-child(4) {
            z-index: 40 !important;
        }

        /* Layout card (KHÔNG được set position:relative override sticky nữa) */
        .tCard {
            display: grid !important;
            grid-template-columns: 1fr !important;
            border-radius: 26px !important;
            overflow: hidden !important;
            background: rgba(255,255,255,0.92) !important;
            border: 1px solid rgba(10,35,80,0.10) !important;
            box-shadow: 0 20px 46px rgba(0,0,0,0.10) !important;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }

        .tCard__left {
            padding: 18px 16px 12px !important;
        }

        .tQuote {
            font-size: 26px !important;
            margin-bottom: 8px !important;
        }

        .tText {
            font-size: 13.5px !important;
            line-height: 1.55 !important;
            margin: 0 0 10px !important;
            max-width: none !important;
        }

        .tName {
            font-size: 22px !important;
            margin-top: 6px !important;
        }

        .tMeta {
            font-size: 12.5px !important;
            margin-top: 4px !important;
        }

        .tTags {
            margin-top: 10px !important;
            gap: 8px !important;
        }

        .tTags li {
            padding: 7px 10px !important;
            font-size: 11.5px !important;
        }

        .tCard__right {
            padding: 12px 14px 14px !important;
            min-height: unset !important;
        }

        .tCard__right img {
            width: 100% !important;
            max-height: 240px !important;
            height: auto !important;
            object-fit: cover !important;
            border-radius: 18px !important;
        }

        .tStack > .tCard:last-child {
            margin-bottom: 0 !important;
        }
    }

    /* =========================
   FOOTER SOCIAL — MOBILE STACK (vertical)
   TikTok
   Instagram
   YouTube
========================= */
    @media (max-width: 760px) {
        .footerSocial {
            flex-direction: column !important;
            align-items: stretch !important;
            flex-wrap: nowrap !important;
            overflow-x: visible !important;
            /* tắt scroll ngang */
            gap: 12px !important;
            padding: 6px 0 !important;
        }

        .socialPill {
            width: 100% !important;
            justify-content: flex-start !important;
            padding: 12px 16px !important;
        }
    }


/* ===== Free Trial — MOBILE only: bigger + right-middle ===== */
@media (max-width: 760px) {
  .freeTrialFloat{
    top: 50% !important;
    bottom: auto !important;     /* bỏ chế độ nằm dưới */
    right: 14px !important;
    transform: translateY(-50%) !important;

    padding: 14px 18px !important;  /* to hơn */
    border-radius: 999px;
  }

  .freeTrialFloat__text{
    font-size: 18px !important;   /* chữ to hơn */
    font-weight: 900;
  }

  /* giữ hover/active không kéo lệch vị trí giữa */
  .freeTrialFloat:hover,
  .freeTrialFloat:active{
    transform: translateY(-50%) !important;
  }
}

/* ✅ DESKTOP: nếu mobile menu lỡ bị inject thì GIẾT NÓ (không ảnh hưởng mobile) */
@media (min-width: 761px) {
  .mobileMenuOverlay,
  .mobileMenuSheet,
  .mNav {
    display: none !important;
  }
}