:root {
    --green-950: #032d22;
    --green-900: #06402f;
    --green-800: #0b513b;
    --green-700: #176347;
    --gold-700: #a66b13;
    --gold-600: #c18a2e;
    --gold-500: #e3b957;
    --gold-300: #f1d991;
    --cream: #fbf7ed;
    --cream-2: #f4eddd;
    --ink: #173a2d;
    --muted: #66756d;
    --line: #e8dfcb;
    --shadow: 0 12px 32px rgba(34,55,39,.08);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1180px,calc(100% - 48px));
    margin: 0 auto
}

.site-header {
    height: 82px;
    background: var(--green-950);
    color: #fff8df;
    border-bottom: 1px solid rgba(227,185,87,.38);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 22px rgba(0,0,0,.08)
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 290px
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: none;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

.brand-fallback {
    display: none;
    width: 58px;
    height: 58px;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    place-items: center;
    font-family: Georgia,serif;
    font-size: 28px;
    color: var(--gold-300)
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2
}

    .brand-copy strong {
        font-family: "Times New Roman", Times, serif !important;
        font-size: 25px;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
        color: var(--gold-300);
        white-space: nowrap;
    }
    .brand-copy small {
        font-size: 9px;
        letter-spacing: 1.2px;
        margin-top: 6px;
        color: #e8d9a9
    }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    flex: 1
}

    .main-nav a {
        font-size: 13px;
        color: #f7f3e5;
        white-space: nowrap;
        padding: 10px 0;
        position: relative
    }

        .main-nav a:hover, .main-nav a.active {
            color: var(--gold-300)
        }

            .main-nav a.active:after {
                content: "";
                position: absolute;
                bottom: 2px;
                left: 0;
                right: 0;
                height: 2px;
                background: var(--gold-500)
            }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 13px 19px;
    font: 600 14px "Segoe UI",Arial,sans-serif;
    cursor: pointer;
    transition: transform .2s,box-shadow .2s,background .2s
}

    .button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12)
    }

    .button span {
        font-size: 18px;
        line-height: 1
    }

.button-gold {
    background: linear-gradient(135deg,#f2d68b,#dfae4b);
    color: #173a2d;
    border-color: #e4bb63
}

.button-green {
    background: var(--green-900);
    color: #fff9e8
}

.button-outline {
    border-color: var(--green-800);
    color: var(--green-900);
    background: rgba(255,255,255,.45)
}

.nav-cta {
    white-space: nowrap;
    padding: 11px 16px;
    font-size: 12px
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #527665;
    color: #fff1c5;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 21px
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: #fbf7ed;
    background-image: url('../../Images/banner-diep-tu.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

    .hero:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 5% 90%,rgba(206,188,137,.22),transparent 32%),radial-gradient(ellipse at 58% 0%,rgba(223,211,176,.3),transparent 28%);
        pointer-events: none
    }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 320px;
    padding-top: 28px;
    padding-bottom: 25px;
}

.hero-copy {
    max-width: 590px;
    padding-left: 0;
}

.eyebrow, .section-kicker {
    font-size: 11px;
    letter-spacing: 1.6px;
    color: var(--gold-700);
    font-weight: 700
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px
}

.eyebrow-line {
    width: 26px;
    height: 2px;
    background: var(--gold-600)
}

h1, h2, h3, p {
    margin-top: 0
}

h1, h2 {
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    font-kerning: normal;
    overflow-wrap: normal;
    word-break: normal;
}

h1 {
    font-size: clamp(37px,4.1vw,57px);
    color: var(--green-950);
    margin-bottom: 18px
}

    h1 span, h2 em {
        color: var(--gold-700);
        font-style: normal
    }

.hero-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #0e3324;
    max-width: 540px;
    margin-bottom: 23px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid rgba(177,143,70,.2);
    padding-top: 18px
}

    .hero-stats > div {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 17px;
        border-right: 1px solid rgba(177,143,70,.23)
    }

        .hero-stats > div:first-child {
            padding-left: 0
        }

        .hero-stats > div:last-child {
            border: 0
        }

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1e5c5;
    color: var(--gold-700);
    font-family: Georgia,serif;
    font-size: 18px
}

.hero-stats strong, .hero-stats small {
    display: block
}

.hero-stats strong {
    font-size: 12px;
    color: var(--green-950)
}

.hero-stats small {
    font-size: 10px;
    color: var(--muted)
}

.hero-visual {
    height: 390px;
    position: relative;
    align-self: end
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    border-radius: 170px 14px 14px 14px;
    box-shadow: var(--shadow);
    background: #d8d1bd
}

    .hero-photo:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,rgba(3,45,34,.1),transparent 35%)
    }

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center
    }

.floating-note {
    position: absolute;
    left: -28px;
    top: 52px;
    background: #fffaf0;
    border: 1px solid #e5d4a7;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 13px 17px;
    transform: rotate(-5deg);
    z-index: 2
}

    .floating-note span {
        display: block;
        font-family: Georgia,serif;
        font-size: 25px;
        color: var(--green-900)
    }

    .floating-note small {
        color: #7c6b4a;
        font-size: 11px
    }

.hero-seal {
    position: absolute;
    right: -14px;
    bottom: 22px;
    width: 83px;
    height: 83px;
    border: 2px solid var(--gold-500);
    outline: 1px solid var(--gold-500);
    outline-offset: 4px;
    border-radius: 50%;
    display: grid;
    align-content: center;
    text-align: center;
    background: var(--green-900);
    color: var(--gold-300);
    font-family: Georgia,serif;
    font-size: 28px;
    line-height: 1.05;
    z-index: 2
}

    .hero-seal small {
        font: 8px "Segoe UI",sans-serif;
        letter-spacing: 1px
    }

.hero-bottom-rule {
    height: 5px;
    background: linear-gradient(90deg,var(--gold-600),var(--gold-300),var(--green-800),var(--gold-500))
}

.section {
    padding: 68px 0
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px
}

    .section-heading h2, .roadmap-copy h2, .contact-copy h2, .testimonial-panel h2 {
        font-size: 35px;
        color: var(--green-950);
        margin: 7px 0 8px
    }

    .section-heading p {
        color: var(--muted);
        margin: 0;
        font-size: 14px
    }

.text-link {
    color: var(--green-800);
    font-weight: 650;
    font-size: 13px;
    white-space: nowrap
}

    .text-link span {
        color: var(--gold-700);
        margin-left: 7px;
        font-size: 18px
    }

.courses-section {
    background: var(--cream)
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px
}

.course-card {
    background: #fffdf7;
    border: 1px solid #eee5d3;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(37,54,39,.045);
    transition: transform .2s,box-shadow .2s
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow)
    }

.course-image {
    height: 155px;
    position: relative;
    overflow: hidden;
    background: #e4dcc8
}

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s
    }

.course-card:hover .course-image img {
    transform: scale(1.04)
}

.course-level {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(4,58,42,.92);
    color: #f4d98e;
    border: 1px solid rgba(242,214,139,.6);
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 9px;
    letter-spacing: .8px;
    font-weight: 700
}

.course-body {
    padding: 19px 18px 20px;
    position: relative
}

.course-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    background: var(--green-900);
    color: var(--gold-300);
    border: 3px solid var(--cream);
    border-radius: 50%;
    font-family: Georgia,serif;
    font-size: 19px;
    margin-top: -39px;
    position: relative;
    margin-bottom: 13px
}

.course-body h3 {
    font-family: Georgia,serif;
    color: var(--green-950);
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px
}

.course-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    min-height: 62px;
    margin-bottom: 12px
}

.course-body > a {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-700)
}

    .course-body > a span {
        font-size: 17px;
        margin-left: 5px
    }

.roadmap-section {
    background: var(--green-950);
    color: #f7f1dc;
    position: relative;
    overflow: hidden
}

    .roadmap-section:after {
        content: "葉";
        position: absolute;
        right: 4%;
        bottom: -100px;
        font-family: Georgia,serif;
        font-size: 360px;
        color: rgba(228,190,92,.055);
        pointer-events: none
    }

.roadmap-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    position: relative;
    z-index: 1
}

.roadmap-copy .section-kicker {
    color: var(--gold-300)
}

.roadmap-copy h2 {
    color: #fff8e4;
    margin-top: 14px
}

    .roadmap-copy h2 em {
        color: var(--gold-300)
    }

.roadmap-copy p {
    color: #c8d4c9;
    max-width: 430px;
    line-height: 1.9;
    margin: 18px 0 25px
}

.roadmap-steps {
    border-left: 1px solid rgba(230,194,100,.42);
    padding-left: 28px
}

.roadmap-step {
    display: flex;
    gap: 20px;
    padding: 0 0 24px;
    position: relative
}

    .roadmap-step:last-child {
        padding-bottom: 0
    }

    .roadmap-step:before {
        content: "";
        position: absolute;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--gold-500);
        left: -33px;
        top: 8px;
        box-shadow: 0 0 0 5px rgba(227,185,87,.12)
    }

.step-number {
    font-family: Georgia,serif;
    color: var(--gold-300);
    font-size: 23px;
    min-width: 34px
}

.roadmap-step h3 {
    font-family: Georgia,serif;
    font-size: 18px;
    color: #fff7df;
    margin-bottom: 4px
}

.roadmap-step p {
    color: #c2d0c4;
    font-size: 13px;
    margin: 0
}

.teachers-section {
    background: #f5efdf
}

.teacher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.teacher-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    overflow: hidden;
    border-radius: 14px;
    background: #fffdf7;
    border: 1px solid #e9dfca;
    box-shadow: 0 6px 20px rgba(37,54,39,.04)
}

    .teacher-card > img {
        width: 100%;
        height: 100%;
        min-height: 260px;
        object-fit: cover
    }

    .teacher-card > div {
        padding: 24px 22px
    }

.teacher-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--gold-700);
    font-weight: 700
}

.teacher-card h3 {
    font-family: Georgia,serif;
    font-size: 20px;
    color: var(--green-950);
    margin: 8px 0
}

.teacher-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8
}

.teacher-card ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0
}

.teacher-card li {
    font-size: 12px;
    color: #4d6355;
    padding: 4px 0
}

    .teacher-card li:before {
        content: "✓";
        display: inline-grid;
        place-items: center;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        background: #e8eddf;
        color: var(--green-800);
        font-size: 10px;
        font-weight: 800;
        margin-right: 8px
    }

.teacher-card-alt {
    background: #fdf9ed
}

.testimonials-section {
    padding-top: 0;
    background: #f5efdf
}

.testimonial-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 34px 40px;
    border-radius: 17px;
    background: linear-gradient(115deg,#e9dfc4,#fbf6e9);
    border: 1px solid #e4d5b1
}

    .testimonial-panel h2 {
        font-size: 30px;
        margin: 8px 0 0
    }

        .testimonial-panel h2 em {
            color: var(--gold-700)
        }

    .testimonial-panel > p {
        max-width: 360px;
        color: #5d6c60;
        font-size: 13px;
        line-height: 1.85;
        margin: 0
    }

.contact-section {
    background: var(--cream);
    padding-top: 78px;
    padding-bottom: 82px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 80px;
    align-items: center
}

.contact-copy h2 {
    font-size: 42px;
    margin: 12px 0 18px
}

    .contact-copy h2 em {
        color: var(--gold-700)
    }

.contact-copy > p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 28px
}

.contact-detail {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 17px 0
}

    .contact-detail > span {
        width: 41px;
        height: 41px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #eae2c9;
        color: var(--green-900);
        font-size: 20px
    }

    .contact-detail strong, .contact-detail small {
        display: block
    }

    .contact-detail strong {
        font-size: 13px;
        color: var(--green-950)
    }

    .contact-detail small {
        font-size: 12px;
        color: var(--muted)
    }

.form-card {
    background: var(--green-950);
    padding: 30px;
    border-radius: 17px;
    color: #fff8e4;
    box-shadow: 0 20px 50px rgba(3,45,34,.16);
    border: 1px solid rgba(227,185,87,.55);
    position: relative
}

    .form-card:before {
        content: "葉";
        position: absolute;
        right: 22px;
        top: 4px;
        color: rgba(227,185,87,.12);
        font: 95px Georgia,serif;
        pointer-events: none
    }

    .form-card h3 {
        font-family: Georgia,serif;
        font-size: 27px;
        color: var(--gold-300);
        margin-bottom: 3px;
        position: relative
    }

.form-intro {
    font-size: 12px;
    color: #c6d2c6;
    margin-bottom: 19px
}

.form-row {
    margin-bottom: 13px
}

    .form-row label {
        display: block;
        font-size: 12px;
        margin-bottom: 6px;
        color: #f1e7c9
    }

.form-control {
    display: block;
    width: 100%;
    border: 1px solid #dcd5c2;
    background: #fffdf6;
    color: #203b2d;
    border-radius: 7px;
    padding: 11px 12px;
    font: 13px "Segoe UI",Arial,sans-serif;
    outline: none;
    min-height: 42px
}

    .form-control:focus {
        border-color: var(--gold-500);
        box-shadow: 0 0 0 3px rgba(227,185,87,.18)
    }

textarea.form-control {
    resize: vertical;
    min-height: 80px
}

.submit-button {
    width: 100%;
    margin-top: 5px
}

.privacy-note {
    display: block;
    text-align: center;
    color: #c2d0c4;
    font-size: 10px;
    margin-top: 12px
}

.form-message {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    padding: 0;
    margin: 0
}

    .form-message.success, .form-message.error {
        padding: 10px 12px;
        border-radius: 7px;
        margin: 8px 0 12px
    }

    .form-message.success {
        background: #e4f2df;
        color: #164c2d
    }

    .form-message.error {
        background: #fce8e3;
        color: #8b2118
    }

.site-footer {
    background: #02271d;
    color: #d8e0d3;
    border-top: 3px solid var(--gold-600);
    padding: 28px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.footer-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    font: 24px Georgia,serif;
    color: var(--gold-300)
}

.footer-brand strong, .footer-brand small {
    display: block
}

.footer-brand strong {
    font-family: Georgia,serif;
    color: var(--gold-300);
    font-size: 16px
}

.footer-brand small {
    font-size: 11px;
    color: #b9c9bc
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 12px
}

    .footer-links a:hover {
        color: var(--gold-300)
    }

.footer-copy {
    font-size: 10px;
    color: #9eb1a2
}

@media(max-width:1100px) {
    .brand {
        min-width: auto
    }

    .brand-copy strong {
        font-size: 18px
    }

    .brand-copy small {
        display: none
    }

    .nav-wrap {
        gap: 16px
    }

    .main-nav {
        gap: 14px
    }

        .main-nav a {
            font-size: 12px
        }

    .course-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .hero-grid {
        grid-template-columns: 1fr 0.85fr
    }

    .hero-stats > div {
        padding: 0 10px
    }

    .roadmap-grid {
        gap: 45px
    }

    .contact-grid {
        gap: 45px
    }
}

@media(max-width:780px) {
    .container {
        width: min(100% - 32px,600px)
    }

    .site-header {
        height: 72px
    }

    .brand-logo, .brand-fallback {
        width: 48px;
        height: 48px
    }

    .brand-copy strong {
        font-size: 17px
    }

    .menu-toggle {
        display: block;
        margin-left: auto
    }

    .nav-cta {
        display: none
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--green-950);
        padding: 12px 24px 20px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(227,185,87,.3);
        box-shadow: 0 15px 25px rgba(0,0,0,.15)
    }

        .main-nav.open {
            display: flex
        }

        .main-nav a {
            padding: 12px 0;
            font-size: 14px
        }

            .main-nav a.active:after {
                right: auto;
                width: 45px
            }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 35px
    }

    .hero-copy {
        padding-left: 0
    }

    .hero h1 {
        font-family: "Noto Serif", Georgia, serif;
        font-size: clamp(30px, 3.4vw, 44px);
        line-height: 1.3;
        letter-spacing: 0;
    }
    .hero-visual {
        height: 320px;
        max-width: 560px;
        width: 100%;
        margin: 0 auto
    }

    .hero-photo {
        border-radius: 100px 12px 12px 12px
    }

    .floating-note {
        left: 8px
    }

    .hero-stats {
        justify-content: space-between
    }

        .hero-stats > div {
            padding: 0 8px;
            gap: 6px
        }

    .stat-icon {
        width: 29px;
        height: 29px;
        font-size: 15px
    }

    .hero-stats strong {
        font-size: 10px
    }

    .hero-stats small {
        font-size: 9px
    }

    .section {
        padding: 52px 0
    }

    .section-heading {
        align-items: start;
        flex-direction: column
    }

        .section-heading h2, .roadmap-copy h2 {
            font-size: 31px
        }

    .course-grid {
        gap: 13px
    }

    .course-image {
        height: 130px
    }

    .course-body {
        padding: 16px 13px
    }

        .course-body h3 {
            font-size: 15px
        }

        .course-body p {
            font-size: 11px;
            min-height: 76px
        }

    .roadmap-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px
    }

    .roadmap-steps {
        margin-left: 6px
    }

    .teacher-grid {
        grid-template-columns: 1fr
    }

    .teacher-card > img {
        min-height: 240px
    }

    .testimonial-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 24px;
        gap: 18px
    }

    .contact-copy h2 {
        font-size: 36px
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-links {
        flex-wrap: wrap
    }

    .footer-copy {
        line-height: 1.5
    }
}

@media(max-width:430px) {
    .container {
        width: calc(100% - 26px)
    }

    .brand-copy strong {
        font-size: 15px
    }

    .brand-logo, .brand-fallback {
        width: 43px;
        height: 43px
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch
    }

        .hero-actions .button {
            width: 100%
        }

    .hero-stats {
        gap: 3px
    }

        .hero-stats > div {
            flex-direction: column;
            align-items: flex-start;
            border: 0;
            padding: 0 5px
        }

            .hero-stats > div:first-child {
                padding-left: 0
            }

    .course-grid {
        grid-template-columns: 1fr
    }

    .course-image {
        height: 175px
    }

    .course-body p {
        min-height: 0
    }

    .course-body {
        padding: 17px
    }

    .teacher-card {
        grid-template-columns: 34% 1fr
    }

        .teacher-card > img {
            min-height: 260px
        }

        .teacher-card > div {
            padding: 17px 13px
        }

        .teacher-card h3 {
            font-size: 17px
        }

        .teacher-card p, .teacher-card li {
            font-size: 11px
        }

    .form-card {
        padding: 23px 18px
    }

        .form-card h3 {
            font-size: 24px
        }

    .contact-copy h2 {
        font-size: 32px
    }


}

/* FIX FONT TIẾNG VIỆT */

body,
button,
input,
select,
textarea {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

h1, h2, h3,
.hero h1,
.section-heading h2,
.roadmap-copy h2,
.contact-copy h2,
.testimonial-panel h2,
.course-body h3,
.teacher-card h3,
.roadmap-step h3 {
    font-family: "Noto Serif", serif !important;
    font-kerning: normal;
    font-variant-ligatures: none;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none;
}

/* Tiêu đề chính */
.hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 700;
}

/* Tiêu đề khóa học */
.course-body h3 {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}

/* Tiêu đề lộ trình */
.roadmap-step h3 {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
}

/* Tiêu đề các section */
.section-heading h2,
.roadmap-copy h2,
.contact-copy h2 {
    line-height: 1.4;
}

/* Mobile: giữ nguyên ảnh banner và không cắt ảnh */
@media (max-width: 780px) {
    .hero {
        background-image: none;
        background-color: #fbf7ed;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
        gap: 20px;
    }

    .hero-copy {
        max-width: 100%;
        padding: 0;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.4;
    }

    .hero-mobile-image {
        display: block;
        width: 100%;
        height: auto;
        overflow: hidden;
        border-radius: 12px;
    }

        .hero-mobile-image img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
        }
}

/* Ẩn ảnh mobile trên desktop */
@media (min-width: 781px) {
    .hero-mobile-image {
        display: none;
    }
}


/* ===== Đội ngũ giảng viên - Diệp Tử ===== */
.teachers-section {
    background: #fbf7ed;
    overflow: hidden;
    padding: 65px 0 80px;
}

.teacher-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

    .teacher-heading h2 {
        font-family: "Times New Roman", serif;
        font-size: 38px;
        color: #063d2e;
        margin: 8px 0;
    }

    .teacher-heading p {
        color: #66756d;
        font-size: 14px;
    }

.teacher-orbit {
    max-width: 1100px;
    height: 650px;
    margin: 0 auto;
    position: relative;
}

.teacher-orbit-line {
    position: absolute;
    top: 125px;
    left: 7%;
    width: 86%;
    height: 360px;
    border: 1px solid rgba(193, 138, 46, .18);
    border-radius: 50%;
}

.teacher-avatars {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.teacher-avatar {
    position: absolute;
    width: 112px;
    height: 112px;
    border: 4px solid #fffdf7;
    border-radius: 50%;
    padding: 0;
    background: #eee5d3;
    box-shadow: 0 8px 25px rgba(3, 45, 34, .12);
    cursor: pointer;
    overflow: hidden;
    opacity: .72;
    transform: translate(-50%, -50%);
    transition: opacity .3s, transform .3s, box-shadow .3s;
}

    .teacher-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .teacher-avatar:hover {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
    }

    .teacher-avatar.is-active {
        width: 170px;
        height: 170px;
        opacity: 1;
        border-width: 5px;
        border-color: #fffdf7;
        box-shadow: 0 12px 40px rgba(3, 45, 34, .2), 0 0 0 2px #d9b45b;
        z-index: 5;
    }

    /* Vị trí 7 ảnh xung quanh khu vực trung tâm */
    .teacher-avatar[data-position="0"] {
        left: 50%;
        top: 100px;
    }

    .teacher-avatar[data-position="1"] {
        left: 25%;
        top: 145px;
    }

    .teacher-avatar[data-position="2"] {
        left: 75%;
        top: 145px;
    }

    .teacher-avatar[data-position="3"] {
        left: 15%;
        top: 300px;
    }

    .teacher-avatar[data-position="4"] {
        left: 85%;
        top: 300px;
    }

    .teacher-avatar[data-position="5"] {
        left: 25%;
        top: 475px;
    }

    .teacher-avatar[data-position="6"] {
        left: 75%;
        top: 475px;
    }

/* Thẻ thông tin */
.teacher-detail {
    position: absolute;
    top: 245px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 68%);
    min-height: 310px;
    padding: 27px 30px;
    border: 1px solid #eee4d0;
    border-radius: 16px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 15px 45px rgba(3, 45, 34, .09);
    z-index: 2;
}

.teacher-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.teacher-index {
    color: #a66b13;
    font-size: 12px;
    font-weight: 700;
}

.teacher-label {
    color: #a66b13;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

.teacher-detail h3 {
    font-family: "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.3;
    color: #063d2e;
    margin: 0 0 18px;
}

.teacher-info-group {
    margin: 0 0 16px;
}

    .teacher-info-group h4 {
        font-size: 11px;
        color: #a66b13;
        letter-spacing: .8px;
        margin: 0 0 6px;
    }

    .teacher-info-group p {
        font-size: 13px;
        line-height: 1.8;
        color: #536359;
        white-space: pre-line;
        margin: 0;
    }

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.teacher-tag {
    background: #f2ead5;
    color: #315442;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
}

.teacher-arrow {
    position: absolute;
    top: 390px;
    width: 46px;
    height: 46px;
    border: 1px solid #eee5d4;
    border-radius: 50%;
    background: #fffdf7;
    color: #a66b13;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(3, 45, 34, .1);
    cursor: pointer;
    z-index: 6;
    transition: background .2s, color .2s;
}

    .teacher-arrow:hover {
        background: #063d2e;
        color: #f1d991;
    }

.teacher-prev {
    left: calc(50% - 365px);
}

.teacher-next {
    right: calc(50% - 365px);
}

/* Hiệu ứng cập nhật thông tin */
.teacher-detail.is-changing {
    animation: teacherFade .25s ease;
}

@keyframes teacherFade {
    from {
        opacity: .45;
    }

    to {
        opacity: 1;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .teacher-orbit {
        height: 620px;
    }

    .teacher-avatar {
        width: 86px;
        height: 86px;
    }

        .teacher-avatar.is-active {
            width: 130px;
            height: 130px;
        }

    .teacher-detail {
        width: 72%;
        top: 220px;
        padding: 24px;
    }

    .teacher-prev {
        left: 2%;
    }

    .teacher-next {
        right: 2%;
    }
}

/* Mobile: avatar cuộn ngang, thông tin bên dưới */
@media (max-width: 600px) {
    .teachers-section {
        padding: 45px 0 55px;
    }

    .teacher-heading h2 {
        font-size: 30px;
    }

    .teacher-heading p {
        font-size: 13px;
    }

    .teacher-orbit {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .teacher-orbit-line {
        display: none;
    }

    .teacher-avatars {
        position: relative;
        inset: auto;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 14px 8px 18px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .teacher-avatar,
    .teacher-avatar.is-active {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none;
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
        opacity: .7;
        scroll-snap-align: center;
    }

        .teacher-avatar.is-active {
            width: 86px;
            height: 86px;
            flex-basis: 86px;
            opacity: 1;
            border-color: #d9b45b;
        }

        .teacher-avatar:hover {
            transform: none;
        }

    .teacher-detail {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        min-height: 0;
        padding: 22px 20px;
    }

        .teacher-detail h3 {
            font-size: 23px;
        }

    .teacher-info-group p {
        font-size: 13px;
    }

    .teacher-arrow {
        position: static;
        top: auto;
        width: 42px;
        height: 42px;
    }

    .teacher-prev {
        position: absolute;
        top: 28px;
        left: 0;
    }

    .teacher-next {
        position: absolute;
        top: 28px;
        right: 0;
    }

    .teacher-avatars {
        padding-left: 52px;
        padding-right: 52px;
    }
}

/* FIX: Không để ảnh giảng viên chồng lên thông tin */
@media (min-width: 601px) {
    .teacher-orbit {
        height: 760px;
        overflow: visible;
    }

    /* Giữ khoảng cách giữa hàng ảnh trên và thẻ thông tin */
    .teacher-avatar[data-position="0"] {
        top: 95px;
    }

    .teacher-avatar[data-position="1"],
    .teacher-avatar[data-position="2"] {
        top: 145px;
    }

    /* Đưa ảnh hai bên ra ngoài mép thẻ */
    .teacher-avatar[data-position="3"] {
        left: 10%;
        top: 325px;
    }

    .teacher-avatar[data-position="4"] {
        left: 90%;
        top: 325px;
    }

    /* Hàng ảnh dưới nằm hẳn bên dưới thẻ thông tin */
    .teacher-avatar[data-position="5"],
    .teacher-avatar[data-position="6"] {
        top: 650px;
    }

    .teacher-detail {
        top: 245px;
        min-height: 310px;
        height: auto;
        z-index: 2;
    }

    .teacher-arrow {
        top: 390px;
    }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 900px) {
    .teacher-orbit {
        height: 700px;
    }

    .teacher-avatar[data-position="3"] {
        left: 6%;
    }

    .teacher-avatar[data-position="4"] {
        left: 94%;
    }

    .teacher-avatar[data-position="5"],
    .teacher-avatar[data-position="6"] {
        top: 620px;
    }

    .teacher-detail {
        width: 76%;
    }
}

/* ===== Smooth transition - Teacher Orbit ===== */

.teacher-avatar {
    transition: left 650ms cubic-bezier(.22, 1, .36, 1), top 650ms cubic-bezier(.22, 1, .36, 1), width 450ms ease, height 450ms ease, opacity 400ms ease, transform 450ms cubic-bezier(.22, 1, .36, 1), box-shadow 450ms ease, border-color 450ms ease;
    will-change: left, top, width, height, transform;
    -webkit-tap-highlight-color: transparent;
}

    .teacher-avatar img {
        transition: transform 650ms cubic-bezier(.22, 1, .36, 1);
    }

    .teacher-avatar.is-active img {
        transform: scale(1.03);
    }

/* Thẻ thông tin */
.teacher-detail {
    transition: opacity 250ms ease, box-shadow 350ms ease, transform 350ms ease;
}

    .teacher-detail.is-changing {
        animation: teacherContentIn 420ms cubic-bezier(.22, 1, .36, 1);
    }

@keyframes teacherContentIn {
    0% {
        opacity: .35;
        transform: translate(-50%, 10px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Không tạo hiệu ứng quá mạnh khi người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
    .teacher-avatar,
    .teacher-avatar img,
    .teacher-detail {
        transition: none !important;
        animation: none !important;
    }
}


/* ===== Banner slideshow: ảnh và nội dung chuyển cùng nhau ===== */

.hero.hero-slideshow {
    position: relative;
    width: 100%;
    height: clamp(420px, 42vw, 600px);
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
}

/* Mỗi slide phủ kín vùng banner */
    .hero.hero-slideshow > .hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .8s ease, visibility .8s ease;
    }

    /* Slide hiện tại tham gia xác định chiều cao banner */
        .hero.hero-slideshow > .hero-slide.is-active {
            position: absolute;
            inset: 0;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }


    /* Ảnh nền của từng slide */
        .hero.hero-slideshow > .hero-slide > img {
            display: block;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

    /* Làm dịu vùng bên trái để chữ dễ đọc */
    .hero-slideshow > .hero-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(251, 247, 237, .97) 0%, rgba(251, 247, 237, .90) 40%, rgba(251, 247, 237, .28) 68%, transparent 100% );
    }

/* Nội dung nằm trên ảnh */
.hero-slideshow .hero-content {
    position: relative;
    z-index: 2;
    width: min(560px, 50%);
    margin-left: max(calc((100% - 1120px) / 2), 6%);
    padding: 35px 0 65px;
}

    .hero-slideshow .hero-content h1 {
        font-family: "Noto Serif", Georgia, serif;
        font-size: clamp(34px, 4vw, 52px);
        line-height: 1.3;
        color: #032d22;
    }

        .hero-slideshow .hero-content h1 span {
            display: block;
            color: #a66b13;
        }

    .hero-slideshow .hero-content p {
        max-width: 540px;
        line-height: 1.8;
        color: #173a2d;
    }

/* Nút điều hướng */
.hero-slideshow .hero-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(193, 138, 46, .5);
    border-radius: 50%;
    background: rgba(255, 253, 247, .9);
    color: #063d2e;
    cursor: pointer;
}

    .hero-slideshow .hero-slide-arrow.prev {
        left: 14px;
    }

    .hero-slideshow .hero-slide-arrow.next {
        right: 14px;
    }

/* Chỉ báo slide */
.hero-slideshow .hero-slide-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

    .hero-slideshow .hero-slide-dots button {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 20px;
        background: #b6b5a5;
        cursor: pointer;
        transition: width .3s, background .3s;
    }

        .hero-slideshow .hero-slide-dots button.is-active {
            width: 25px;
            background: #b17a20;
        }

.hero-slideshow .hero-pause-label {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 5;
    font-size: 11px;
    color: #063d2e;
}

/* Tablet */
@media (max-width: 900px) and (min-width: 781px) {
    .hero.hero-slideshow {
        min-height: 470px;
    }

    .hero-slideshow .hero-content {
        width: 55%;
        margin-left: 6%;
    }
}

/* Điện thoại: nội dung phía trên, ảnh banner nguyên tỷ lệ phía dưới */
/* Mobile: banner hiển thị đầy đủ, không bị co chiều cao */

/* ===== MOBILE BANNER: CHỮ VÀ NÚT NẰM TRÊN ẢNH ===== */
@media (max-width: 780px) {

    /* Khung banner */
    .hero.hero-slideshow {
        position: relative;
        width: 100%;
        height: 480px;
        min-height: 480px;
        overflow: hidden;
        background: #fbf7ed;
    }

        /* Các slide */
        .hero.hero-slideshow > .hero-slide {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: block;
        }

            .hero.hero-slideshow > .hero-slide.is-active {
                position: absolute;
                inset: 0;
                display: block;
                width: 100%;
                height: 100%;
            }

            /* Ảnh phủ toàn bộ banner */
            .hero.hero-slideshow > .hero-slide > img {
                position: absolute;
                inset: 0;
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: 65% center;
            }

            /* Lớp phủ giúp chữ dễ đọc */
            .hero.hero-slideshow > .hero-slide::after {
                content: "";
                position: absolute;
                inset: 0;
                z-index: 1;
                pointer-events: none;
                background: linear-gradient( 180deg, rgba(251, 247, 237, .96) 0%, rgba(251, 247, 237, .88) 42%, rgba(251, 247, 237, .45) 70%, rgba(3, 45, 34, .12) 100% );
            }

        /* Nội dung nằm đè trên ảnh */
        .hero.hero-slideshow .hero-content {
            position: absolute;
            z-index: 2;
            top: 0;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 30px 20px 58px;
        }

        /* Dòng chữ nhỏ phía trên tiêu đề */
        .hero.hero-slideshow .hero-eyebrow {
            font-size: 10px;
            line-height: 1.5;
            letter-spacing: 1.1px;
            margin-bottom: 10px;
        }

        /* Tiêu đề */
        .hero.hero-slideshow .hero-content h1 {
            font-size: clamp(27px, 7.2vw, 35px);
            line-height: 1.25;
            margin-bottom: 12px;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

            .hero.hero-slideshow .hero-content h1 span {
                display: block;
            }

        /* Mô tả */
        .hero.hero-slideshow .hero-content p {
            font-size: 13px;
            line-height: 1.65;
            margin-bottom: 16px;
            max-width: 100%;
        }

        /* Hai nút đặt cạnh nhau nếu đủ chỗ */
        .hero.hero-slideshow .hero-actions {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }

            .hero.hero-slideshow .hero-actions .button {
                width: auto;
                max-width: 100%;
                padding: 11px 13px;
                font-size: 12px;
                white-space: normal;
            }

        /* Ẩn thông tin phụ để banner không quá chật */
        .hero.hero-slideshow .hero-stats {
            display: none;
        }

        /* Nút chuyển banner */
        .hero.hero-slideshow .hero-slide-arrow {
            z-index: 5;
            top: auto;
            bottom: 12px;
            width: 32px;
            height: 32px;
            transform: none;
        }

            .hero.hero-slideshow .hero-slide-arrow.prev {
                left: 12px;
            }

            .hero.hero-slideshow .hero-slide-arrow.next {
                right: 12px;
            }

        /* Chấm chuyển banner */
        .hero.hero-slideshow .hero-slide-dots {
            z-index: 5;
            bottom: 23px;
        }

        .hero.hero-slideshow .hero-pause-label {
            display: none;
        }
}

/* Điện thoại màn hình nhỏ */
@media (max-width: 380px) {
    .hero.hero-slideshow {
        height: 500px;
        min-height: 500px;
    }

        .hero.hero-slideshow .hero-content {
            padding: 25px 16px 55px;
        }

            .hero.hero-slideshow .hero-content h1 {
                font-size: 27px;
            }

            .hero.hero-slideshow .hero-content p {
                font-size: 12px;
            }

        .hero.hero-slideshow .hero-actions .button {
            padding: 10px;
            font-size: 11px;
        }
}


/* Tôn trọng cài đặt giảm chuyển động của người dùng */
@media (prefers-reduced-motion: reduce) {
    .hero-slideshow > .hero-slide,
    .hero-slideshow .hero-slide-dots button {
        transition: none;
    }
}



/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(227, 185, 87, .65);
    border-radius: 50%;
    background: #063d2e;
    color: #f1d991;
    box-shadow: 0 6px 20px rgba(3, 45, 34, .2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
}

    .back-to-top svg {
        width: 22px;
        height: 22px;
    }

    .back-to-top:hover {
        background: #a66b13;
        color: #fffdf7;
        transform: translateY(-3px);
    }

    .back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:focus-visible {
        outline: 3px solid #e3b957;
        outline-offset: 3px;
    }

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }

        .back-to-top svg {
            width: 20px;
            height: 20px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

.teacher-detail {
    position: absolute;
    top: 245px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 68%);
    min-height: 310px;
    padding: 27px 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee4d0;
    border-radius: 16px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 15px 45px rgba(3, 45, 34, .09);
    z-index: 10;
}


    .teacher-detail-button:hover {
        background: #e8d9b6;
        color: #174c3c;
    }
.teacher-detail-button {
    position: relative;
    z-index: 11;
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    width: fit-content;
    padding: 5px 9px;
    margin-top: auto;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    border-radius: 16px;
    background: #f2ead5;
    color: #315b4c;
    border: 1px solid #e8dcc0;
    text-decoration: none;
    box-shadow: none;
    pointer-events: auto;
    cursor: pointer;
}

    .teacher-detail-button:hover {
        background: #e8d9b6;
        color: #174c3c;
    }
.contact-detail small a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-detail small a:hover {
        color: #b68a45;
        text-decoration: underline;
    }

.social-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.social-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

    .social-icon svg {
        width: 28px;
        height: 28px;
        display: block;
    }

.contact-detail small a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-detail small a:hover {
        color: #b68a45;
        text-decoration: underline;
    }
/* Floating contact */


.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 9px;
    box-sizing: border-box;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0,0,0,.2);
    transition: transform .2s, opacity .2s;
}

    .quick-contact-item:hover {
        transform: translateX(-4px);
        opacity: .92;
    }

    .quick-contact-item .quick-icon {
        width: 17px;
        min-width: 17px;
        text-align: center;
        font-size: 15px;
    }

    .quick-contact-item.zalo {
        background: #1688e8;
    }

    .quick-contact-item.facebook {
        background: #0866ff;
    }

    .quick-contact-item.hotline {
        background: #19b86a;
    }

    .quick-contact-item.consultation {
        background: #b00045;
    }

.quick-contact-close {
    width: 34px;
    height: 34px;
    margin-top: 1px;
    border: none;
    border-radius: 50%;
    background: #d71945;
    color: #fff;
    font-size: 27px;
    line-height: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0,0,0,.2);
}

@media (max-width: 600px) {
    .quick-contact {
        right: 8px;
        bottom: 18%;
        width: 120px;
    }

    .quick-contact-item {
        font-size: 11px;
        min-height: 32px;
    }
}

/* ================================
   QUICK CONTACT FLOATING
================================ */

.quick-contact {
    position: fixed;
    right: 85px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 170px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
    transition: transform .2s ease, opacity .2s ease;
}

    .quick-contact-item:hover {
        transform: translateX(-4px);
        opacity: .92;
    }

.quick-icon {
    width: 18px;
    min-width: 18px;
    text-align: center;
    font-size: 15px;
}

.quick-contact-item.zalo {
    background: #1688e8;
}

.quick-contact-item.facebook {
    background: #0866ff;
}

.quick-contact-item.hotline {
    background: #19b86a;
}

.quick-contact-item.consultation {
    background: #b00045;
}

/* Nút đóng */
.quick-contact-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #d71945;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
}

/* Nút mở lại */
.quick-contact-toggle {
    position: fixed;
    right: 85px;
    bottom: 24px;
    z-index: 9998;
    width: 55px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: none;
    border-radius: 7px;
    background: #234b3a;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
}

    .quick-contact-toggle span {
        font-size: 17px;
    }

    .quick-contact-toggle small {
        font-size: 9px;
        font-weight: 600;
    }

/* Mobile */
@media (max-width: 600px) {
    .quick-contact {
        right: 75px;
        bottom: 18px;
        width: 130px;
    }

    .quick-contact-item {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .quick-contact-toggle {
        right: 75px;
        bottom: 18px;
    }
}

/* =====================================
   MAIN NAVIGATION - MULTI LEVEL
===================================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .main-nav > a,
    .nav-dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 12px 0;
        border: none;
        background: transparent;
        color: #ffffff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

        .main-nav > a:hover,
        .nav-dropdown-toggle:hover {
            color: #b68a45;
        }

.nav-dropdown {
    position: relative;
}

.nav-arrow {
    font-size: 15px;
    transition: transform .2s ease;
}

/* Menu cấp 2 */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 205px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    display: none;
    z-index: 1000;
}

    .nav-submenu a {
        display: block;
        padding: 11px 16px;
        color: #fffdf7;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: background .2s, color .2s;
    }

        .nav-submenu a:hover {
            background: #f5f7f5;
            color: #b68a45;
        }

/* Hiện submenu khi rê chuột */
@media (min-width: 992px) {
    .nav-dropdown:hover > .nav-submenu,
    .nav-dropdown:focus-within > .nav-submenu {
        display: block;
    }

    .nav-dropdown:hover .nav-arrow {
        transform: rotate(180deg);
    }
}

/* =====================================
   MOBILE NAVIGATION
===================================== */

@media (max-width: 991px) {
    .main-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

        .main-nav > a,
        .nav-dropdown-toggle {
            display: flex;
            justify-content: space-between;
            width: 100%;
            box-sizing: border-box;
            padding: 13px 16px;
            border-bottom: 1px solid #eee;
        }

    .nav-dropdown {
        width: 100%;
    }

    .nav-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #f8faf8;
    }

    .nav-dropdown.open > .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        padding: 12px 16px 12px 32px;
        white-space: normal;
    }

    .nav-dropdown.open .nav-arrow {
        transform: rotate(180deg);
    }
}

/* =====================================
   FIX MOBILE MENU - ẨN MENU MẶC ĐỊNH
===================================== */

@media (max-width: 991px) {
    .main-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
        background: var(--green-950, #003b2e);
        border-top: 1px solid rgba(227, 185, 87, .3);
        box-shadow: 0 15px 25px rgba(0, 0, 0, .15);
        z-index: 9999;
    }

        /* Chỉ hiện khi bấm nút hamburger */
        .main-nav.open {
            display: flex !important;
        }
}
/* MENU ĐA CẤP */
.nav-dropdown {
    position: relative;
}

    /* Menu cấp 2 */
    .nav-dropdown > .nav-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        border-radius: 10px;
        padding: 8px;
        z-index: 1000;
    }

/* Menu cấp 3 */
.nav-dropdown-nested {
    position: relative;
}

    .nav-dropdown-nested > .nav-nested-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        text-decoration: none;
        white-space: nowrap;
    }

.nav-submenu-nested {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: 5px;
    min-width: 220px;
    display: none;
}

/* Desktop: rê chuột để mở */
@media (min-width: 992px) {

    .nav-dropdown-nested:hover > .nav-submenu-nested {
        display: block;
    }

    .nav-dropdown-nested:hover > .nav-nested-toggle {
        background: #f5f5f5;
    }
}
/* =====================================
   MOBILE MULTI-LEVEL MENU
===================================== */

@media (max-width: 991px) {

    /* Submenu cấp 2 */
    .main-nav .nav-dropdown > .nav-submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 5px 0 5px 15px;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    /* Chỉ mở khi có class open */
    .main-nav .nav-dropdown.open > .nav-submenu {
        display: block;
    }

    /* Nút mở menu cấp 3 */
    .main-nav .nav-nested-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        cursor: pointer;
    }

    /* Submenu cấp 3 */
    .main-nav .nav-dropdown-nested > .nav-submenu-nested {
        position: static !important;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 5px 0 5px 18px;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }

    .main-nav .nav-dropdown-nested.open > .nav-submenu-nested {
        display: block;
    }

    /* Mũi tên xoay khi mở */
    .main-nav .nav-dropdown.open > .nav-dropdown-toggle .nav-arrow {
        transform: rotate(180deg);
    }

    .main-nav .nav-dropdown-nested.open > .nav-dropdown-toggle .nav-arrow {
        transform: rotate(90deg);
    }
}
/* =====================================
   FIX MÀU CHỮ MENU KHÓA HỌC CẤP 3
===================================== */

/* Khóa học trực tiếp */
.main-nav .nav-dropdown-nested > .nav-nested-toggle {
    color: #fffdf7 !important;
    background: transparent !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: 300;
    border: none;
    padding: 12px 14px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    /* Khi rê chuột vào Khóa học trực tiếp */
    .main-nav .nav-dropdown-nested > .nav-nested-toggle:hover {
        color: #a87524 !important;
        background: #f5f2eb !important;
    }

/* Các mục bên trong menu cấp 3 */
.main-nav .nav-submenu-nested a {
    display: block;
    color: #fffdf7 !important;
    background: transparent;
    padding: 11px 14px;
    text-decoration: none;
    white-space: nowrap;
}

    /* Hover các mục cấp 3 */
    .main-nav .nav-submenu-nested a:hover {
        color: #a87524 !important;
        background: #f5f2eb;
    }
/* =========================================
   FIX MÀU CHỮ TOÀN BỘ SUBMENU
========================================= */

/* Tất cả liên kết trong submenu */
.main-nav .nav-submenu a,
.main-nav .nav-submenu button,
.main-nav .nav-submenu .nav-nested-toggle {
    color: #173f32 !important;
    -webkit-text-fill-color: #173f32 !important;
    opacity: 1 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none;
}

/* Nền menu */
.main-nav .nav-submenu {
    background: #ffffff !important;
}

    /* Hover */
    .main-nav .nav-submenu a:hover,
    .main-nav .nav-submenu button:hover,
    .main-nav .nav-submenu .nav-nested-toggle:hover {
        color: #a87524 !important;
        -webkit-text-fill-color: #a87524 !important;
        background: #f5f2eb !important;
    }

/* Menu cấp 3 */
.main-nav .nav-submenu-nested {
    background: #ffffff !important;
}

    .main-nav .nav-submenu-nested a {
        color: #173f32 !important;
        -webkit-text-fill-color: #173f32 !important;
    }

/* =========================================
   TEACHER ORBIT - FIX OVERFLOW
========================================= */

/* Giữ thẻ thông tin có chiều cao ổn định */
.teacher-detail {
    box-sizing: border-box;
    height: 350px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d8cda9 transparent;
}

/* Tiêu đề giảng viên không làm tăng chiều cao thẻ */
#teacherName {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}


/* Giới hạn nội dung trình độ: tối đa 2 dòng */
#teacherEducation {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

/* Giới hạn kinh nghiệm: tối đa 4 dòng */
#teacherExperience {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

/* Giữ thẻ thông tin không che ảnh */
.teacher-detail {
    box-sizing: border-box;
    overflow: hidden;
}


/* Không để các nhóm thông tin tự co giãn bất thường */
.teacher-info-group {
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .teacher-detail {
        height: 300px;
        max-height: 300px;
    }

    #teacherExperience {
        -webkit-line-clamp: 4;
    }
}
