/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    color: #252827;
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5em;
    color: #000;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 300;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    color: #333;
    letter-spacing: 0.02em;
}

.section-subtitle.light {
    color: #000;
}

.red {
    color: #ff5757;
}

.gold-text {
    color: #fdaf00;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ff9100;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 145, 0, 0.35);
}

.btn-primary:hover {
    background: #e68200;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 145, 0, 0.5);
}

.btn-primary .btn-arrow {
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    width: 36px;
    height: 36px;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-large {
    font-size: 1.5rem;
    padding: 18px 48px;
}

.centered-btn {
    margin: 2rem auto 0;
    display: flex;
    width: fit-content;
}

/* ===== HEADER ===== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: #ffffff;
    transition:
        background 0.3s,
        box-shadow 0.3s;
}

.header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: auto;
}

.nav__brand {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0px;
    font-family: "Montserrat", sans-serif;
}

.nav__brand-ittv {
    color: #4bc1f2;
    transition: color 0.3s;
}

.nav__brand-edu {
    color: #737373;
    transition: color 0.3s;
}

/* Nav links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-family: "Arial", sans-serif;
    font-size: 14px;
    color: #737373;
    font-weight: normal;
    letter-spacing: 0px;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #4bc1f2;
}

/* Right side: login btn */
.nav__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav__login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #8f9cb5;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-family: "Arial", sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.nav__login:hover {
    background: #78869e;
}

.nav__mobile-login {
    display: none;
}

.nav__login svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.nav__user-icon {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__user-icon svg {
    width: 12px;
    height: 12px;
    fill: #8f9cb5;
    transition: fill 0.3s;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.nav__hamburger span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.nav__overlay.active {
    display: block;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right 0.3s;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav__links.active {
        right: 0;
    }

    .nav__links .nav__link {
        color: #333 !important;
        font-size: 18px;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__right > .nav__login {
        display: none;
    }

    .nav__mobile-login {
        display: block;
    }

    .nav__mobile-login .nav__login {
        display: inline-flex;
        font-size: 14px;
        padding: 8px 18px;
    }

    .nav__hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #333;
    }

    .nav__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #333;
    }
}

/* ===== HERO (image only) ===== */
.hero {
    position: relative;
    line-height: 0;
    margin-top: 70px;
    /* Space for the absolute header */
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__img--desktop {
    display: block;
}

.hero__img--mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero__img--desktop {
        display: none;
    }

    .hero__img--mobile {
        display: block;
    }
}

/* ===== THANK YOU ===== */
#thankyou {
    background: #ffa900;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.thankyou-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.thankyou-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thankyou-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thankyou-img-left,
.thankyou-img-right {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .thankyou-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===== FEATURES - BENTO GRID ===== */
#features {
    padding: 5rem 2rem;
    background: #fff;
    position: relative;
}

.bento-grid {
    max-width: 1300px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Bento Rows */
.bento-row {
    display: flex;
    gap: 1.5rem;
}

/* ROW 1: Left text stack + right phones */
.bento-row-1 {
    height: clamp(640px, 45vw, 760px);
}

.bento-left-stack {
    flex: 0 0 36%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: stretch;
}

.bento-left-stack .bento-text-card {
    flex: 1;
}

.bento-row-1 .bento-text-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem 2.3rem;
}

/* Bento Cards */
.bento-card {
    border-radius: 24px;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.bento-text-card {
    background: #dfe6f0;
    padding: 2rem 1.8rem;
}

.bento-text-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.bento-text-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #000;
    line-height: 1.5;
}

.bento-row-1 .bento-text-card h3 {
    font-size: clamp(1.9rem, 2.15vw, 2.45rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
}

.bento-row-1 .bento-text-card p {
    font-size: clamp(1rem, 1.12vw, 1.2rem);
    line-height: 1.35;
}

/* Phone Mockups Area */
.bento-phones-stacked {
    flex: 1.4;
    position: relative;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    min-height: 0;
    height: clamp(640px, 45vw, 760px);
    overflow: visible;
}

.phone-img-single {
    width: clamp(640px, 45vw, 760px);
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.phone-img-2 {
    width: clamp(300px, 22vw, 355px);
    height: auto;
    border-radius: 28px;
    box-shadow: 10px 15px 40px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 30px;
    right: 4%;
    z-index: 1;
    transform: translateY(0);
}

/* ROW 2: Photo + Assessment */
.bento-row-2 {
    min-height: 320px;
}

.bento-photo-card {
    flex: 1.8;
    position: relative;
    overflow: hidden;
    background: #d1dbeb;
}

.bento-photo {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.bento-row-2 .bento-text-card {
    flex: 0.9;
}

/* ROW 3: Three equal cards */
.bento-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.bento-row-1 .feature-icon {
    width: 108px;
    height: 108px;
    margin-bottom: 2.2rem;
}

.bento-row-1 .feature-icon svg {
    width: 74px;
    height: 74px;
}

.feature-icon-img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
}

.blue-gradient-circle {
    background: linear-gradient(180deg, #3bb7e9 0%, #325de8 100%);
}

/* ===== RESPONSIVE BENTO ===== */
@media (max-width: 1024px) {
    .bento-row-1 {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .bento-left-stack {
        flex: none;
        flex-direction: row;
    }

    .bento-row-1 .bento-text-card h3 {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
    }

    .bento-row-1 .bento-text-card p {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }

    .bento-phones-stacked {
        height: auto;
        min-height: 400px;
    }

    .bento-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-row {
        flex-direction: column;
    }

    .bento-left-stack {
        flex-direction: column;
    }

    .bento-row-1 .feature-icon {
        width: 96px;
        height: 96px;
        margin-bottom: 2rem;
    }

    .bento-row-1 .feature-icon svg,
    .feature-icon-img {
        width: 76px;
        height: 76px;
    }

    .bento-phones-stacked {
        flex-direction: column;
        /* min-height: 600px; */
    }

    .phone-img-single,
    .phone-img-1,
    .phone-img-2 {
        width: min(92vw, 560px);
        position: relative;
        left: auto;
        right: auto;
        margin: -40px 0;
    }

    .bento-row-3 {
        grid-template-columns: 1fr;
    }

    .bento-row-2 {
        min-height: auto;
    }

    .bento-photo {
        min-height: 200px;
    }
}

/* ===== CTA BANNER ===== */
#cta-banner {
    background: linear-gradient(180deg, #3bb7e9 0%, #325de8 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

#cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(180deg, #e8fcff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-arrow-circle {
    width: 56px;
    height: 56px;
    background: #ff9100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.3s,
        background 0.3s;
    flex-shrink: 0;
}

.btn-arrow-circle:hover {
    background: #e68200;
    transform: scale(1.1);
}

/* ===== SUBJECTS ===== */
#subjects {
    padding: 1rem 2rem 4rem;
    background: #fff;
}

.subjects-grid {
    max-width: 1220px;
    margin: 0 auto 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 3rem;
}

.subjects-cta-card {
    width: fit-content;
    margin: 2rem auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff9100;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    padding: 6px 7px 6px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.subjects-cta-card:hover {
    background: #e68200;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 145, 0, 0.5);
}

.subjects-cta-card .btn-arrow {
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.subjects-cta-card:hover .btn-arrow {
    transform: translateX(4px);
}

.subject-card {
    background: #fff;
    transition: transform 0.3s;
    cursor: pointer;
    min-width: 0;
}

.subject-card:hover {
    transform: translateY(-6px);
}

.subject-media {
    width: 100%;
    aspect-ratio: 1.76 / 1;
    height: clamp(170px, 16.4vw, 200px);
    overflow: hidden;
    border-radius: 22px;
}

.subject-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /*transform: scale(1.02);*/
}

.subject-img--trim {
    transform: scale(1.28);
}

.subject-card--center {
    grid-column: 2;
}

.subject-card span {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 1.2em;
    line-height: 1.2;
    padding: 0.45rem 0 0;
    color: #000;
}

/* ===== TESTIMONIALS ===== */
#testimonials {
    padding: 4rem 2rem;
    background: #d1dbeb;
}

.testimonials-grid {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    gap: 1.7rem 3rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 28px;
    width: min(100%, 305px);
    min-height: 242px;
    padding: 2.2rem 1.7rem 1.6rem;
    text-align: center;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-photo {
    position: relative;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    /* not overflow:hidden - the play icon sits on the edge of the circle */
    transition: transform 0.3s;
}

.testimonial-photo:hover {
    transform: translateY(-6px);
}

.testimonial-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-body p {
    font-size: 1.25rem;
    line-height: 1.18;
    color: #000;
    margin-bottom: 1.7rem;
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #000;
}

.testimonial-card--tharma {
    grid-column: 2;
    grid-row: 1;
}

.testimonial-card--khairul {
    grid-column: 1;
    grid-row: 2;
}

.testimonial-card--claine {
    grid-column: 3;
    grid-row: 2;
    min-height: 282px;
}

.testimonial-photo--khairul {
    grid-column: 1;
    grid-row: 1;
}

.testimonial-photo--claine {
    grid-column: 3;
    grid-row: 1;
}

.testimonial-photo--tharma {
    grid-column: 2;
    grid-row: 2;
}

/* ===== TEACHERS ===== */
#teachers {
    padding: 5rem 1rem;
    background: #fff;
    overflow: hidden;
}

.teachers-slider {
    overflow: hidden;
    padding: 20px 0;
}

.teachers-track {
    display: flex;
    gap: 26px;
    /* padding = gap, so -50% is exactly one full set of cards (no jump on loop) */
    padding-right: 26px;
    width: max-content;
    animation: teachersSlide 60s linear infinite;
}

.teachers-slider:hover .teachers-track {
    animation-play-state: paused;
}

@keyframes teachersSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Teacher card: coloured card, cut-out photo fills it, name on a white band */
.teacher-card {
    width: 260px;
    height: 360px;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: var(--card-color, #f2d062);
    transition: transform 0.3s;
}

.teacher-card:hover {
    transform: scale(1.02);
}

.teacher-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.teacher-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 13%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #111;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .teachers-track {
        animation: none;
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #1f4383;
    background: #fff;
    color: #1f4383;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #1f4383;
    color: #fff;
}

/* ===== FINAL CTA ===== */
/* ===== FINAL CTA ===== */
.final-cta {
    /* padding: 80px 0; */
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta__wrap {
    position: relative;
    display: inline-block;
    margin: 20px 0 30px;
    line-height: 0;
}

.final-cta__img {
    width: 380px;
    max-width: 75vw;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.final-cta__decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    background: #ff9100;
    clip-path: polygon(
        50% 0%,
        54.9% 4.1%,
        60.5% 1.1%,
        64.3% 6.1%,
        70.4% 4.3%,
        73.2% 10%,
        79.5% 9.5%,
        81.1% 15.7%,
        87.4% 16.5%,
        87.5% 22.9%,
        93.5% 25%,
        92.4% 31.2%,
        97.8% 34.5%,
        95.4% 40.4%,
        100% 44.6%,
        96.4% 50%,
        100% 55.2%,
        95.4% 59.6%,
        97.8% 65.5%,
        92.4% 68.8%,
        93.5% 75%,
        87.5% 77.1%,
        87.4% 83.5%,
        81.1% 84.3%,
        79.5% 90.5%,
        73.2% 90%,
        70.4% 95.7%,
        64.3% 93.9%,
        60.5% 98.9%,
        54.9% 95.9%,
        50% 100%,
        45.1% 95.9%,
        39.5% 98.9%,
        35.7% 93.9%,
        29.6% 95.7%,
        26.8% 90%,
        20.5% 90.5%,
        18.9% 84.3%,
        12.6% 83.5%,
        12.5% 77.1%,
        6.5% 75%,
        7.6% 68.8%,
        2.2% 65.5%,
        4.6% 59.6%,
        0% 55.2%,
        3.6% 50%,
        0% 44.6%,
        4.6% 40.4%,
        2.2% 34.5%,
        7.6% 31.2%,
        6.5% 25%,
        12.5% 22.9%,
        12.6% 16.5%,
        18.9% 15.7%,
        20.5% 9.5%,
        26.8% 10%,
        29.6% 4.3%,
        35.7% 6.1%,
        39.5% 1.1%,
        45.1% 4.1%
    );
}

.final-cta__decor--1 {
    width: 700px;
    height: 700px;
    z-index: 0;
}

.final-cta__decor--2 {
    width: 590px;
    height: 590px;
    z-index: 0;
}

/* ===== CONNECT / FOOTER ===== */
.connect {
    background: #d1dbeb;
    padding: 50px 0 40px;
    margin-top: -8px;
    position: relative;
    z-index: 1;
}

.connect::before {
    content: "";
    position: absolute;
    top: -64px;
    left: 0;
    right: 0;
    height: 64px;
    background: #d1dbeb;
}

.connect__divider {
    height: 4px;
    background: #134d83;
    border-radius: 2px;
    margin-bottom: 36px;
}

.connect__title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.connect__subtitle {
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 36px;
    color: #000;
}

.connect__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto;
}

.connect__links {
    grid-template-columns: 1fr 1fr;
}

.connect__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 22px;
    border-radius: 50px;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.connect__item:hover {
    transform: translateY(-2px);
}

.connect__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff9100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.connect__icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.connect__item span {
    font-size: 17px;
    font-weight: 600;
}

.footer-bottom {
    background: #fff;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom__logo img {
    width: min(760px, 100%);
}

/* .footer-bottom__logo img {
    height: 36px;
} */
.footer-bottom__brand {
    font-size: 20px;
    font-weight: 700;
}

.b1 {
    color: #4eaffc;
}

.b2 {
    color: #aaa;
}

/* Button styles matching index2 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn--primary {
    background: #ff9100;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 145, 0, 0.4);
}

.btn--primary:hover {
    background: #e68200;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 145, 0, 0.5);
}

.btn__arrow {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.3s;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

.footer-bottom__copy {
    color: #888;
    font-size: 13px;
    margin-top: 6px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .hero-rating {
        justify-content: center;
    }

    .hero-stat {
        margin: 0 auto 2rem;
    }

    .thankyou-content {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }

    .testimonial-card,
    .testimonial-photo {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    #site-header {
        padding: 0 1rem;
    }

    .header-inner {
        height: 60px;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(16, 86, 221, 0.98);
        padding: 1.5rem;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .subject-media {
        height: auto;
    }

    .subject-card--center {
        grid-column: auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-height: auto;
    }

    .teachers-slider {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        /* no scroll-snap: script.js auto-scrolls this strip on phones and snap would fight it */
        scrollbar-width: none;
        /* pan-y too, so a finger starting on the cards can still scroll the page */
        touch-action: pan-x pan-y;
    }

    .teachers-slider::-webkit-scrollbar {
        display: none;
    }

    .teachers-track {
        animation: none;
        width: max-content;
    }

    .teacher-card {
        width: min(68vw, 290px);
        height: auto;
        aspect-ratio: 260 / 360;
    }

    .teacher-name {
        font-size: 20px;
        padding: 9px 10px;
    }

    .bento-row-2 {
        align-items: center;
    }

    .bento-row-2 .bento-photo-card {
        width: 100%;
    }

    .bento-row-2 .bento-text-card {
        /* width: 82%; */
    }

    #cta-banner {
        flex-direction: column;
        gap: 1rem;
    }

    .final-cta__img {
        width: 260px;
    }

    .connect__title {
        font-size: 28px !important;
    }

    .connect__grid {
        grid-template-columns: 1fr;
    }

    .connect > .container {
        display: block !important;
        max-width: 100%;
    }

    .connect__links {
        grid-template-columns: 1fr;
        min-width: 0 !important;
        width: 100%;
    }

    .connect__item {
        min-width: 0;
    }

    .connect__item span {
        overflow-wrap: anywhere;
    }

    .footer-bottom__logo {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .footer-bottom__logo img {
        width: 720px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .subject-media {
        height: auto;
    }

    .subjects-cta-card {
        font-size: 1rem;
        padding: 5px 6px 5px 14px;
        min-height: 0;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 12px 28px;
    }

    .btn-large {
        font-size: 1.2rem;
        padding: 14px 36px;
    }

    #cta-banner h2 {
        font-size: 1.4rem;
    }

    .thankyou-badge {
        font-size: 1.8rem;
    }

    .hero-stat {
        padding: 1rem;
    }
}
