.cta-join {
    pointer-events: auto !important;
}

.cta-join * {
    pointer-events: auto !important;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
    outline: none;
    box-shadow: none;
}

.maintenance-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.maintenance-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.maintenance-modal__card {
    width: min(92vw, 420px);
    background: #ffffff;
    color: #0f172a;
    padding: 2.25rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    position: relative;
    text-align: center;
}

.maintenance-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.maintenance-modal__body {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.5rem;
}

.maintenance-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maintenance-modal__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.maintenance-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(226, 232, 240, 0.8);
    color: #0f172a;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.maintenance-modal__close:hover {
    transform: translateY(-2px);
    background: rgba(226, 232, 240, 1);
}

body.modal-open {
    overflow: hidden;
}

.footer-col.follow .social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-col.follow .social-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #e2e8f0;
}

.footer-col.follow .social-list a {
    color: #e2e8f0;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.1rem;
    transition: color 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.footer-col.follow .social-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.65) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.footer-col.follow .social-list a:hover,
.footer-col.follow .social-list a:focus-visible {
    color: #fbbf24;
}

.footer-col.follow .social-list a:hover::after,
.footer-col.follow .social-list a:focus-visible::after {
    transform: scaleX(1);
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background-color: #EFF1F4;
}

.header {
    width: 100%;
    height: 56px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 200px;
    /* add spacing for edges */
    position: sticky;
    top: 0;
    z-index: 105;
}

.need_help {
    display: flex;
    align-items: center;
    position: relative;
}

.need_help img {
    width: auto;
    height: auto;
    display: block;
}

.need_help h1 {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    font-size: 24px;
    padding: 10px;
    margin: 0;
    font-style: semibold;
    font-weight: 600;
    color: #FFFFFF;

    font-family: 'Open Sans', sans-serif;
    z-index: 10;
}


.social {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* pushes it to the far right */
    color: white;
    font-size: 24px;
    font-family: 'Open Sans', sans-serif;
}

.social .social-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-right: 50px;
}

.social .social-icons a {
    margin-left: 14px;
}



















/* NAVBAR */
.nav-bar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e9edf2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    z-index: 60;
}

.nav-bar .nav-inner {
    max-width: 1800px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 20px;
}

/* Logo area */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: #0a66ff33;
}

.logo h2 {
    font-size: 24px;
    color: #111;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
}

.brand-strong {
    font-weight: 700;
}

/* Center nav links (kept centered by flex:1) */
.nav-links {
    display: flex;
    gap: 22px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    padding: 6px 8px;
}

.nav-links a:hover {
    color: #0a66ff;
}

/* Right side actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 7px;
    cursor: pointer;
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* vertical separator */
.vertical-sep {
    width: 2px;
    height: 26px;
    background: #AEAEAE;
    margin: 0 7px;
}

/* login link */
.login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

.login .icon {
    width: 18px;
    height: 18px;
}

/* register button */
.btn-register {
    height: 42px;
    width: 150px;
    background: #005AD0;
    color: #fff;
    border: none;
    padding: 9px 17px;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-style: semibold;
    cursor: pointer;
    box-shadow: 0px 4px 6px 0px #005AD066;
}

.btn-register:hover {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 880px) {
    .nav-links {
        display: none;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .nav-inner {
        padding: 12px;
    }
}


/* --- Mobile navigation enhancements (added for responsive redesign) --- */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    transition: background-color 0.25s ease;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid #0a66ff;
    outline-offset: 2px;
}

.mobile-menu-toggle__bar {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.mobile-nav__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 28px 36px;
    transform: translateX(100%);
    transition: transform 0.36s cubic-bezier(0.21, 0.9, 0.26, 1);
    box-shadow: -24px 0 48px rgba(15, 23, 42, 0.25);
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #eff6ff;
    padding: 6px;
}

.mobile-nav__title {
    font-size: 22px;
    color: #0f172a;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.mobile-nav__close {
    border: none;
    background: rgba(226, 232, 240, 0.85);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
    background: rgba(148, 163, 184, 0.55);
    transform: translateY(-2px);
}

.mobile-nav__close img {
    width: 18px;
    height: 18px;
    display: block;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: 'Open Sans', sans-serif;
}

.mobile-nav__links a {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding: 6px 0;
    display: block;
}

.mobile-nav__links a:hover,
.mobile-nav__links a:focus-visible {
    color: #005ad0;
}

.mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-nav__actions .icon-btn {
    align-self: flex-start;
}

.mobile-nav__actions .actions-sep,
.mobile-nav__actions .actions-separator {
    height: 1px;
    width: 100%;
    border: none;
    background: rgba(148, 163, 184, 0.35);
    margin: 8px 0;
}

.mobile-nav__actions .login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav__actions .login:hover,
.mobile-nav__actions .login:focus-visible {
    background: rgba(15, 23, 42, 0.14);
    color: #0b1120;
}

.mobile-nav__actions .btn-register {
    width: 100%;
}

.mobile-more-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-more-social img {
    width: 22px;
    height: 22px;
}

.mobile-nav__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
    margin: 14px 0;
}

.mobile-nav__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav__social-label {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-nav__social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav__social-links .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #005AD0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mobile-nav__social-links .icon-btn img {
    width: 30px;
    height: 30px;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (min-width: 769px) {

    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.is-open {
        display: block;
    }
}












.hero-wrap {
    padding: 120px 0 80px;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    z-index: 90;
    isolation: isolate;
}

.container {
    max-width: 1600px;
    margin: 5px auto;
    padding: 0 28px;
}

/* two-column layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* LEFT */
.hero-left {
    position: relative;
    z-index: 120;
    pointer-events: auto;
}

.decor-dot {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    /* behind text */
    opacity: 0.95;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
    transition: width 0.4s ease, height 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
}

/* yellow - top-right-ish */
.decor-yellow {
    width: 70px;
    height: 70px;
    left: 450px;
    top: 22px;
    transform: translate(0, 0);
    filter: blur(4px) drop-shadow(0 6px 10px rgba(255, 160, 0, 0.18));
    backdrop-filter: blur(8px)
}

/* blue - mid-left-ish */
.decor-blue {
    width: 28px;
    height: 28px;
    left: -120px;
    top: 350px;
    transform: translate(0, 0);
    filter: blur(2px) drop-shadow(0 6px 10px rgba(0, 102, 255, 0.12));
}

/* Make sure hero content sits above dots */
.hero-left>* {
    position: relative;
    z-index: 125;
}

.hero-left * {
    pointer-events: auto;
}

.hero-left .decor-dot {
    pointer-events: none !important;
}

/* responsive tweaks */
@media (max-width: 1200px) {
    .decor-yellow {
        width: 60px;
        height: 60px;
    }

    .yellow-big-dot {
        width: 128px;
    }

    .how-it-works .big-dot-left {
        width: 110px;
    }

    .success-stories .big-dot-right,
    .tutors-section .big-dot-right {
        width: 135px;
    }

    .our-services .big-dot-left {
        width: 118px;
    }

    .helpful-resources .hr-big-dot {
        width: 90px;
    }
}

@media (max-width: 1000px) {
    .decor-yellow {
        width: 48px;
        height: 48px;
        right: 10px;
        top: -8px;
        filter: blur(3px);
    }

    .yellow-big-dot {
        width: 110px;
    }

    .how-it-works .big-dot-left {
        width: 96px;
    }

    .success-stories .big-dot-right,
    .tutors-section .big-dot-right {
        width: 118px;
    }

    .our-services .big-dot-left {
        width: 104px;
    }

    .helpful-resources .hr-big-dot {
        width: 78px;
    }

    .decor-blue {
        width: 20px;
        height: 20px;
        left: 10px;
        top: 260px;
    }
}

@media (max-width: 820px) {
    .decor-yellow {
        width: 38px;
        height: 38px;
    }

    .yellow-big-dot {
        width: 92px;
    }

    .how-it-works .big-dot-left {
        width: 82px;
    }

    .success-stories .big-dot-right,
    .tutors-section .big-dot-right {
        width: 102px;
    }

    .our-services .big-dot-left {
        width: 92px;
    }

    .helpful-resources .hr-big-dot {
        width: 66px;
    }
}

@media (max-width: 640px) {
    .decor-yellow {
        width: 30px;
        height: 30px;
    }

    .yellow-big-dot {
        width: 78px;
        right: -10px;
        top: 26px;
    }

    .how-it-works .big-dot-left {
        width: 70px;
        left: -22px;
        top: 24px;
    }

    .success-stories .big-dot-right,
    .tutors-section .big-dot-right {
        width: 88px;
        right: -8px;
        top: -28px;
    }

    .our-services .big-dot-left {
        width: 80px;
        left: -24px;
        top: 24px;
    }

    .helpful-resources .hr-big-dot {
        width: 56px;
        left: -10px;
        top: 6px;
    }
}

@media (max-width: 480px) {
    .decor-yellow {
        display: none;
    }

    .decor-blue {
        left: 6px;
        top: 200px;
    }
}



.hero-left .eyebrow {
    font-size: 42px;
    margin-bottom: 6px;
    font-weight: 700;
    color: #005AD0;
}

.hero-left .eyebrow .eyebrow-blue {
    display: inline-block;
}

.hero-title {
    font-size: 100px;
    line-height: 0.9;
    margin: 7px 0;
    font-weight: 700;
    color: #0b0b0b;
    letter-spacing: -1px;
}

/* thin underline brush accent created with pseudo */
.hero-title::after {
    content: "";
    display: block;
    margin: 0;
    padding: 0;
    width: 400px;
    height: 36px;
    background: url('SVGs/line.svg') no-repeat center/contain;
}

/* subtitle */
.hero-sub {
    font-size: 60px;
    margin: 8px 0 18px;
    color: #111;
    font-weight: 700;
}

.accent {
    color: #005AD0;
}

/* small lead text and link */
.hero-lead {
    font-size: 28px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 22px;
    color: #111;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 140;
    pointer-events: auto !important;
}

.link-accent {
    color: #005AD0;
    font-weight: 600;
    text-decoration: none;
}

/* CTA */
.btn-primary {
    width: 318px;
    height: 82px;
    background: #005AD0;
    margin-top: 24px;
    color: #fff;
    border: none;
    padding: 18px 36px;
    border-radius: 100px;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0px 10px 10px 0px #005AD066;
    cursor: pointer;
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    touch-action: manipulation;
}

/* small footer line */
.hero-small {
    height: 60px;
    width: 313px;
    margin-top: 24px;
    color: #222;
    font-size: 22px;
    font-style: semibold;
}

.highlight {
    color: #FFA600;

}



/* RIGHT - images stack */
.hero-right {
    position: relative;
    min-height: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* decorative grid behind images */
.dec-grid {
    position: absolute;
    left: -12px;
    width: 501.12px;
    height: 474.74px;
    opacity: 0.95;
    z-index: 1;
}

/* top image (back) */
.img-top {
    position: absolute;
    right: 155px;
    top: -80px;
    width: 473px;
    height: 349px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(10, 40, 80, 0.12);
    z-index: 2;
    transform: translateY(-8px);
}

/* bottom image (front) */
.img-bottom {
    position: absolute;
    right: 350px;
    top: 180px;
    width: 473px;
    height: 349px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(10, 40, 80, 0.14);
    z-index: 3;
    transform: translateY(10px);
}

.hero-right .dec-grid,
.hero-right .img-top,
.hero-right .img-bottom,
.hero-right .dec-dots {
    pointer-events: none;
}

/* dotted decorative element */
.dec-dots {
    position: absolute;
    right: 115px;
    width: clamp(28px, 5vw, 70px);
    height: clamp(28px, 5vw, 70px);
    z-index: 0;
    opacity: 0.95;
    transition: width 0.4s ease, height 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
}

/* responsive adjustments */
@media (max-width: 1410px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 780px;
        margin: 0 auto;
    }

    .hero-right {
        display: none;
    }
}

@media (min-width: 540px) and (max-width: 1150px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 720px;
        margin: 0 auto;
        padding: 0 24px;
        z-index: 444;
    }

    .hero-left .eyebrow {
        font-size: clamp(28px, 4vw, 34px);
    }

    .hero-title {
        font-size: clamp(80px, 10vw, 108px);
        text-align: center;
    }

    .hero-sub {
        font-size: clamp(48px, 6.5vw, 64px);
        text-align: center;
    }

    .hero-lead {
        font-size: clamp(26px, 3.5vw, 34px);
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .btn-primary {
        width: min(420px, 90%);
        z-index: 445;
    }

    .hero-small {
        text-align: center;
        width: auto;
        max-width: 540px;
    }

    .hero-right {
        display: none;
    }


}

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-title {
        font-size: 64px;
        text-align: left;
    }

    .hero-right {
        min-height: 300px;
        order: -1;
    }

    .img-top,
    .img-bottom {
        position: relative;
        width: 320px;
        height: 200px;
        transform: none;
        margin: 0 auto;
        display: block;
    }

    .dec-grid {
        display: none;
    }

    .dec-dots {
        display: none;
    }

    .container {
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 44px;
    }

    .btn-primary {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
    }
}


.hero-bottom {
    display: flex;
    flex-direction: row;
    height: 130px;
    width: 100%;
    background: #005AD0;
    margin-top: 80px;
    align-items: center;
    justify-content: space-between;
    padding: 0 200px;
    /* keep same side spacing as header */
    position: relative;
    z-index: 25;
    pointer-events: auto;
}

.hero-bottom * {
    pointer-events: auto;
}

.hero-bottom .bottom-left {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.hero-bottom .bottom-left .container {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0;
    margin-right: 50px;
    width: 400px;
    height: 82px;
    background: transparent;
}

.hero-bottom .bottom-left .container p {
    width: 100%;
    margin-left: 13px;
    padding: 0;
    font-size: 16px;
    font-weight: 250;
    font-style: regular;
    font-family: 'Lato', sans-serif;
}

.hero-bottom .bottom-left img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

@media (min-width: 540px) and (max-width: 1410px) {
    .hero-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding: 28px 60px;
        height: auto;
    }

    .hero-bottom .bottom-left,
    .hero-bottom .bottom-right {
        flex: 1 1 50%;
    }

    .hero-bottom .bottom-left {
        gap: 20px;
    }

    .hero-bottom .bottom-left .container {
        width: 100%;
        max-width: 540px;
        height: auto;
        margin-right: 0;
        justify-content: flex-start;
        gap: 12px;
    }

    .hero-bottom .bottom-left .container:nth-child(2) {
        display: none;
    }

    .hero-bottom .bottom-left .container p {
        margin-left: 0;
        text-align: left;
    }

    .hero-bottom .bottom-right {
        display: flex;
        justify-content: flex-end;
    }

    .hero-bottom .bottom-right .search-form {
        width: min(440px, 100%);
        max-width: 100%;
        position: relative;
        z-index: 35;
        pointer-events: auto;
    }
}


/* bottom-right search area */
.hero-bottom .bottom-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* search form */
.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    width: 328px;
    /* matches reference */
    height: 46px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 35;
    pointer-events: auto;
}

/* input */
.search-form input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    color: #222;
    background: transparent;
    padding-left: 12px;
    font-family: 'Open Sans', sans-serif;
}

/* vertical blue separator before icon */
.search-sep {
    width: 3px;
    height: 36px;
    background: #005AD0;
    border-radius: 2px;
    flex: 0 0 auto;
}

/* button with icon */
.search-btn {
    background: transparent;
    border: none;
    margin-right: 16px;
    padding: 0;
    align-items: center;
    cursor: pointer;
    flex: 0 0 44px;
}

.search-btn img {
    width: 28px;
    height: 30px;
    display: block;
}

/* responsive adjustments for hero-bottom & search on smaller screens */
@media (max-width: 880px) {
    .hero-bottom {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 20px;
        padding: 24px 24px 32px;
        margin-top: 56px;
        height: auto;
        text-align: center;
    }

    .hero-bottom .bottom-left {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        font-size: clamp(18px, 4.5vw, 22px);
    }

    .hero-bottom .bottom-left .container {
        width: 100%;
        max-width: 520px;
        margin-right: 0;
        justify-content: center;
        text-align: center;
        gap: 14px;
    }

    .hero-bottom .bottom-left .container:nth-child(2) {
        display: none;
    }

    .hero-bottom .bottom-left .container p {
        margin-left: 0;
    }

    .hero-bottom .bottom-right {
        width: 100%;
        justify-content: center;
    }

    .search-form {
        display: flex;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

















/* WHY CHOOSE SECTION */
.why-choose {
    position: relative;
    padding: 72px 0 100px;
    font-family: 'Lato', sans-serif;
    overflow: visible;
}

.why-choose .container {
    max-width: 1200px;
    padding: 0 28px;
    margin: 0 auto;
    text-align: center;
}

.why-choose h2 {
    color: #005AD0;
    font-size: 62px;
    font-weight: 700;
    font-style: bold;
    margin-bottom: 12px;
    font-family: 'Lato', sans-serif;
}

.why-choose .sep {
    display: inline-block;
    width: 80px;
    margin-bottom: 20px;
}

.why-choose .why-lead {
    font-size: 34px;
    font-weight: 600;
    font-style: semibold;
    margin-bottom: 10px;
    color: #222;
}

.why-choose .why-desc {
    max-width: 760px;
    margin: 0 auto 36px;
    color: #6b6f76;
    font-size: 16px;
    font-weight: 400;
    font-style: regular;
    line-height: 1.6;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}


.choose-card {
    display: flex;
    background-color: #d9e3f1;
    border-radius: 10px;
    width: 550px;
    height: 142px;
    flex-direction: column;
}

.choose-card .text-box {
    margin-top: 12px;
    margin-left: 38px;
}

.choose-card .text-box h2 {
    font-weight: 700;
    font-size: 22px;
    color: #2E2E2E;
    font-style: bold;
    font-family: 'open sans', sans-serif;
    text-align: left;
}


.choose-card .card-content {
    display: flex;
    flex-direction: row;
    margin-top: 12px;
    margin-left: 45px;
}


.choose-card .card-content p {
    margin-left: 22px;
    width: 225px;
    height: 82px;
    font-size: 16px;
    font-weight: 400;
    font-style: regular;
    line-height: 18px;
    letter-spacing: 0.7px;
    font-family: 'Lato', sans-serif;
    text-align: left;
}


.choose-card .card-content .icon-box {
    background-color: #005AD0;
    border-radius: 6px;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.choose-card .card-content .icon-box img {
    width: 72px;
    height: 74.46px;
    border-radius: 6px;
}



.yellow-big-dot {
    position: absolute;
    right: 0;
    /* push half-offscreen like design */
    top: 20px;
    width: 140px;
    height: auto;
    z-index: -1;
    pointer-events: none;
}



.why-choose .why-choose-img {
    width: 100%;
    height: auto;
    pointer-events: none;
    margin-top: 50px;
    opacity: 0.90;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.08));
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .yellow-big-dot {
        right: -20px;
        top: 30px;
    }
}

@media (max-width: 700px) {
    .yellow-big-dot {
        width: 84px;
        right: -12px;
        top: 28px;
    }
}

























.how-it-works {
    position: relative;
    padding: 60px 0 80px;
    overflow: visible;
}

.how-it-works .big-dot-left {
    position: absolute;
    left: -30px;
    top: 30px;
    width: 120px;
    height: auto;
    z-index: -1;
}

.how-it-works .how-title {
    text-align: center;
    font-size: 90px;
    font-weight: 700;
    font-style: bold;
    font-family: 'Open Sans', sans-serif;
    margin: 0 0 8px;
    color: #2b2b2b;
}

.how-it-works .how-sep {
    display: block;
    margin: 33px auto 28px;
    width: 80px;
    height: 18.39px;
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* left column: photo with grid behind */
.how-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-left .grid-back {
    position: absolute;
    top: -12px;
    transform: translateX(-40px);
    z-index: 0;
    opacity: 1;
}

.how-left .grid-svg {
    width: 220px;
    height: auto;
    display: block;
    height: 600px;
    width: 290px;

}

.how-left .how-photo {
    margin-top: 55px;
    width: 365px;
    height: 569.19px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(38, 56, 84, 0.08);
    position: relative;
    z-index: 2;
}

/* right column: card with timeline */
.how-right .how-card {
    background: #D2DEED;
    width: 693px;
    height: 616px;
    margin-left: -150px;
    padding: 80px 75px 60px;
    border-radius: 10px;
    box-shadow: none;
}

.how-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    position: relative;
}

.how-timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 50px;
    width: 2px;
    background: #0059FF;
    border-radius: 2px;
}

.how-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 18px 0;
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 46px;
    border-radius: 100%;
    background: #005AD0;
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    font-style: bold;
    font-family: 'Open Sans', sans-serif;
    z-index: 3;
    position: relative;
    margin-left: -30px;
    /* aligns circles to the vertical line */
    box-shadow: 0 3px 8px rgba(11, 102, 209, 0.18);
}

.step-text {
    color: #2E2E2E;
    line-height: 1.2;
    font-size: 17px;
    font-weight: 300;
    font-style: regular;
    letter-spacing: 0%;
    word-spacing: 2.1px;
    max-width: 520px;
    font-family: 'Open Sans', sans-serif;
    width: 461px;
    height: 92px;
}

/* Mobile-friendly condensed cards (hidden by default, revealed under 540px) */
.how-mobile-steps {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(15, 30, 54, 0.12);
}

.mobile-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #005AD0;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    flex-shrink: 0;
}

.mobile-step-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-step-copy h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Open Sans', sans-serif;
}

.mobile-step-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    font-family: 'Open Sans', sans-serif;
}

/* --- How It Works: Tablet adjustments (<=1150px) --- */
@media (max-width: 1150px) {

    .how-it-works .how-title {
        font-size: 68px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .how-left {
        display: none;
    }

    .how-right .how-card {
        width: min(560px, 100%);
        height: auto;
        margin: 0;
        padding: 52px 44px 40px;
        border-radius: 26px;
        box-shadow: 0 26px 50px rgba(15, 30, 54, 0.17);
    }

    .step-text {
        max-width: 100%;
        width: 100%;
        height: auto;
        font-size: 15px;
        line-height: 1.55;
        word-spacing: normal;
    }
}

/* --- How It Works: Tablet & small laptop layout (541px – 1150px) --- */
@media (min-width: 541px) and (max-width: 1150px) {

    .how-it-works .container {
        width: 100%;
        max-width: none;
        padding: 0 clamp(24px, 6vw, 48px);
    }

    .how-grid {
        gap: clamp(24px, 4vw, 40px);
        justify-items: stretch;
    }

    .how-right .how-card {
        width: 100%;
        max-width: none;
        padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 48px);
        border-radius: 24px;
        box-shadow: 0 22px 44px rgba(15, 30, 54, 0.15);
        background: rgba(210, 222, 237, 0.95);
    }

    .how-timeline,
    .step-num,
    .step-text {
        display: none;
    }

    .how-mobile-steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: clamp(18px, 3vw, 26px);
    }

    .mobile-step {
        padding: clamp(18px, 3vw, 24px);
        border-radius: 18px;
        box-shadow: 0 18px 32px rgba(15, 30, 54, 0.14);
        background: rgba(255, 255, 255, 0.9);
    }

    .mobile-step-num {
        width: clamp(34px, 3.6vw, 40px);
        height: clamp(34px, 3.6vw, 40px);
        font-size: clamp(14px, 2vw, 16px);
    }

    .mobile-step-copy h3 {
        font-size: clamp(16px, 2.4vw, 19px);
    }

    .mobile-step-copy p {
        font-size: clamp(13.5px, 2.1vw, 15px);
        line-height: 1.55;
    }
}

/* --- How It Works: Mobile adjustments (<=540px) --- */
@media (max-width: 540px) {

    .how-it-works .how-title {
        font-size: clamp(34px, 10vw, 42px);
    }

    .how-it-works .how-sep {
        margin: 18px auto 20px;
        width: 54px;
    }

    .how-right .how-card {
        width: 100%;
        padding: 22px 18px 20px;
        border-radius: 18px;
        box-shadow: 0 20px 38px rgba(15, 30, 54, 0.16);
    }

    .how-timeline,
    .step-num {
        display: none;
    }

    .step-text {
        display: none;
    }

    .how-mobile-steps {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-step {
        padding: 16px 14px;
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(15, 30, 54, 0.12);
        background: rgba(255, 255, 255, 0.96);
    }

    .mobile-step-num {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .mobile-step-copy h3 {
        font-size: 15px;
    }

    .mobile-step-copy p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Success Stories: mobile single-column layout */
    .success-stories {
        padding: 46px 0 38px;
    }

    .success-stories .big-dot-right {
        display: none;
    }

    .success-title {
        font-size: clamp(32px, 9vw, 40px);
        margin-bottom: 6px;
    }

    .success-sep {
        width: 48px;
        margin: 16px auto 24px;
    }

    .success-grid-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .success-grid-item,
    .success-grid-item.success-grid-item-1 {
        width: 100%;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 16px 32px rgba(15, 30, 54, 0.18);
        grid-column: auto;
    }

    .success-grid-item img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
    }
}








.success-stories {
    position: relative;
    padding: 64px 0 48px;
    overflow: visible;
}

.success-stories .big-dot-right {
    position: absolute;
    right: -0px;
    top: -48px;
    width: 150px;
    height: auto;
    z-index: -1;
}

.success-title {
    text-align: center;
    font-size: 90px;
    font-weight: 700;
    font-style: bold;
    font-family: 'open sans', sans-serif;
    margin: 0 0 8px;
    color: #2b2b2b;
}

.success-sep {
    display: block;
    width: 80px;
    margin: 33px auto 70px;
    height: 18px;
}

.success-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Creates 3 equal-width columns */
    grid-template-rows: auto;
    grid-gap: 15px;
    /* Adds space between grid items */
    padding: 15px;
}

.success-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images fill their containers */
    border-radius: 5px;
    /* Adds subtle rounded corners */
}

/* Specific styling for the images to make them span multiple columns/rows */
.success-grid-item.success-grid-item-1 {
    grid-column: span 2;
    /* Spans across 2 columns */
}


@media (max-width: 768px) {
    .image-grid-container {
        grid-template-columns: 1fr;
        /* On smaller screens, make it a single column */
    }

    .grid-item-1,
    .grid-item-2,
    .grid-item-3,
    .grid-item-4,
    .grid-item-5 {
        grid-column: 1 / -1;
        /* Reset all items to span the full width */
        grid-row: auto;
    }

    .success-grid-container {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .success-grid-item,
    .success-grid-item.success-grid-item-1 {
        grid-column: auto;
    }
}


















.our-services {
    position: relative;
    padding: 64px 0 72px;
    overflow: visible;
}

.our-services .big-dot-left {
    position: absolute;
    left: -40px;
    top: 40px;
    width: 130px;
    height: auto;
    z-index: 1;
}

.services-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.our-services .section-title {
    font-size: 72px;
    font-weight: 600;
    color: #2B2B2B;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 12px;
}

.services-sep {
    display: block;
    margin: 24px auto 48px;
    height: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    height: 220px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 16px 30px rgba(12, 40, 90, 0.08);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 48, 0.55);
    z-index: 1;
    transition: opacity 0.35s ease;
}

.service-card.blue::before {
    background: linear-gradient(140deg, rgba(0, 90, 208, 0.78) 0%, rgba(8, 140, 255, 0.68) 100%);
}

.service-card.light::before {
    background: linear-gradient(140deg, rgba(8, 24, 52, 0.35) 0%, rgba(8, 24, 52, 0.7) 100%);
}

.service-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.main-text {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.35;
    text-transform: capitalize;
    text-shadow: 0 6px 18px rgba(6, 16, 36, 0.45);
    max-width: 80%;
}

.details {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: rgba(7, 23, 46, 0.9);
    color: #FFFFFF;
    transform: translateX(0);
    transition: transform 0.45s ease-in-out;
    z-index: 3;
}

.detail-text {
    font-size: 16px;
    line-height: 1.55;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.25s ease 0.3s;
}

.service-card:hover {
    transform: scale(1.6);
    box-shadow: 0 28px 56px rgba(7, 23, 46, 0.28);
    z-index: 10;
}

.service-card:hover::before {
    opacity: 0.35;
}

.service-card:hover .service-image {
    transform: scale(1.15);
    filter: blur(6px);
}

.service-card:hover .details {
    transform: translateX(-100%);
}

.service-card:hover .detail-text {
    opacity: 1;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-card:hover {
        transform: scale(1.4);
    }
}

@media (max-width: 900px) {
    .our-services .section-title {
        font-size: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        height: 240px;
    }

    .service-card:hover {
        transform: scale(1.25);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .our-services .section-title {
        font-size: 40px;
    }

    .service-card {
        height: 260px;
    }

    .service-card:hover {
        transform: scale(1.1);
    }
}

/* Enable tap-to-open state for service cards (mobile interaction) */
.service-card.is-open {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(7, 23, 46, 0.18);
}

.service-card.is-open::before {
    opacity: 0.45;
}

.service-card.is-open .service-image {
    transform: scale(1.05);
    filter: blur(4px);
}

.service-card.is-open .details {
    transform: translateX(-100%);
}

.service-card.is-open .detail-text {
    opacity: 1;
}












/* Section container */
.tutors-section {
    text-align: center;
    overflow: visible;
    position: relative;
    padding: 64px 0 48px;

}

.tutors-section .big-dot-right {
    position: absolute;
    right: 0;
    top: -40px;
    width: 150px;
    height: auto;
    z-index: -1;
}

.tutors-section .section-title {
    font-size: 90px;
    font-weight: 700;
    font-style: bold;
    margin-bottom: 8px;
    color: #2E2E2E;
    font-family: 'Open Sans', sans-serif;
}

.tutors-section .section-sep {
    display: block;
    margin: 33px auto 70px;
    width: 80px;
    height: 18.39px;
}

/* Tutor cards container */
.tutors-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to wrap to the next line */
    justify-content: center;
    gap: 20px;
}

/* Individual tutor card */
.tutor-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Hides image overflow */
    text-align: center;
    width: 330px;
    height: 420px;
    /* Adjust as needed */
    transition: transform 0.3s ease;
}

.tutor-card:hover {
    transform: translateY(-5px);
    /* Adds a subtle lift effect on hover */
}

.tutor-image {
    width: 100%;
    height: auto;
    display: block;
}

.tutor-name {
    font-size: 28px;
    font-weight: SemiBold;
    font-weight: 600;
    font-family: 'open sans', sans-serif;
    margin: 31px 0 5px;
    color: #2E2E2E;
}

.tutor-description {
    font-size: 18px;
    font-weight: 300;
    font-style: light;
    font-family: 'open sans', sans-serif;
    color: #2E2E2E;
    padding: 0 15px 15px;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
    .tutors-container {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .tutors-container {
        flex-direction: column;
        align-items: center;
    }

    .tutor-card {
        width: 80%;
        /* Makes cards wider on smaller screens */
    }
}

@media (max-width: 480px) {
    .tutors-section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 2em;
    }
}












.helpful-resources {
    position: relative;
    padding: 64px 0 48px;
    margin: 0;
    overflow: visible;
    font-family: 'open sans', sans-serif;
}

.helpful-resources .hr-big-dot {
    position: absolute;
    left: -18px;
    top: 8px;
    /* slightly lower so it doesn't sit right on the panel */
    width: 100px;
    pointer-events: none;
    z-index: 3;
    /* keep dot above the full-width panel */
    opacity: 0.95;
}

.resources-title {
    text-align: center;
    font-size: 90px;
    font-weight: 700;
    color: #2E2E2E;
    margin-bottom: 8px;
}

.resources-sep {
    display: block;
    width: 80px;
    margin: 33px auto 70px;
}

.resources-panel {
    background: #005AD0;
    padding: 48px 0 48px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    /* make panel span the full viewport width */
    margin-top: 36px;
    /* push panel slightly down to create space under the yellow dot */
    z-index: 1;
}

.resources-grid {
    margin: 83px 150px 81px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 10px 18px;
    align-items: start;
}

/* individual card */
.resource-card {
    background: #f6f9fc;
    border-radius: 10px;
    padding: 28px 22px;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        box-shadow 0.35s ease;
    transform-origin: center;
}

.resource-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 45px;
    margin-top: 30px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.06));
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.35s ease;
}

.resource-head {
    font-size: 26px;
    font-weight: 600;
    width: 269px;
    font-style: semibold;
    color: #2E2E2E;
    margin: 0 0 14px;
    line-height: 1.25;
    font-family: 'Open Sans', sans-serif;
}

.resource-desc {
    color: #6b6f76;
    font-size: 20px;
    font-style: light;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    width: 226px;
    flex: 1 0 auto;
    max-width: 320px;
}

.resource-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 18px 36px rgba(0, 42, 110, 0.18);
}

.resource-card:hover .resource-icon {
    transform: rotate(-8deg) scale(1.08);
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.15));
}

/* make cards slightly larger on desktop and ensure white cards sit off the blue background nicely */
@media (min-width: 1200px) {
    .resources-panel {
        padding: 48px 0 64px;
    }

    .resource-card {
        min-height: 380px;
    }
}

.resources-grid {
    transition: grid-template-columns 0.4s ease, gap 0.3s ease, margin 0.3s ease;
}

@media (max-width: 1600px) {
    .resources-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 72px 100px 70px;
        gap: 28px;
    }
}

@media (max-width: 1280px) {
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 64px 60px 60px;
        gap: 32px;
    }

    .resource-card {
        min-height: 340px;
        padding: 24px 20px;
    }
}

/* responsive: 2 columns on medium screens, 1 column on small */
@media (max-width: 1000px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 920px;
    }

    .resource-card {
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }

    .resource-card {
        min-height: auto;
        padding: 20px;
    }

    .resource-head {
        font-size: 18px;
    }

    .resources-title {
        font-size: 36px;
    }
}













/* Quick Study Guides */
.quick-guides {
    position: relative;
    padding: 72px 0 56px;
    overflow: visible;
    font-family: 'Open Sans', sans-serif;
}

.quick-guides .quick-dot {
    position: absolute;
    right: -0px;
    top: 20px;
    width: 100px;
    height: auto;
    z-index: -1;
    pointer-events: none;
}




/* heading + separator */
.quick-title {
    text-align: center;
    font-size: 90px;
    font-weight: 700;
    font-style: semibold;
    color: #2b2b2b;
    margin-bottom: 8px;
}

.quick-sep {
    display: block;
    width: 80px;
    margin: 28px auto 70px;
}

/* grid of two big cards */
.guides-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 8px 24px;
}

/* each large guide card */
.guide-card {
    background: #f6f9fc;
    border-radius: 8px;
    padding: 48px 44px;
    width: 563px;
    height: 563px;
    box-shadow: 0 12px 30px rgba(10, 40, 80, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* small blue square icon at top-left inside card */
.guide-square {
    width: 93px;
    height: 93px;
    background: #005AD0;
    border-radius: 8px;
    margin-bottom: 22px;
}

/* card title */
.guide-head {
    font-size: 38px;
    font-weight: 600;
    font-style: semibold;
    color: #222;
    margin: 8px 0 28px;
}

/* numbered list */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #2E2E2E;
    font-size: 19px;
    font-style: regular;
    font-weight: 350;
    letter-spacing: 0.7px;
    line-height: 1.6;
}

/* small orange number badge */
.num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    background: #FFA600;
    color: #2E2E2E;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 12px;
    flex: 0 0 auto;
}

/* list item layout */
.guide-list li {
    display: flex;
    align-items: center;
}

/* responsive */
@media (max-width: 1000px) {
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 18px;
    }

    .guide-card {
        min-height: auto;
        padding: 34px 22px;
    }

    .guide-head {
        font-size: 28px;
    }

    .quick-title {
        font-size: 40px;
    }

    .quick-guides .quick-dot {
        top: 8px;
        width: 110px;
    }
}












.cta-join {
    position: relative;
    padding: 72px 0 84px;
    overflow: visible;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    z-index: 1500;
    isolation: isolate;
    pointer-events: auto !important;
}

.cta-join .cta-dot {
    position: absolute;
    left: -18px;
    top: -48px;
    width: 100px;
    height: auto;
    z-index: 3;
    pointer-events: none !important;
}


.cta-join .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1550;
    pointer-events: auto !important;
}

.cta-title {
    font-size: 60px;
    text-align: center;
    font-weight: 500;
    font-style: semibold;
    color: #000000;
    width: 600px;
    height: 114px;
    margin: 0 0 8px;
    line-height: 1.05;
}

.cta-sep {
    display: block;
    width: 80px;
    margin: 28px auto 50px;
}

.cta-lead {
    color: #2E2E2E;
    font-size: 20px;
    font-weight: 350;
    font-style: regular;
    letter-spacing: 0.7px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

/* full-width pill button that centers and creates the large orange pill look */
.cta-wrap {
    max-width: 980px;
    margin: 76px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1600;
    pointer-events: auto !important;
}

.btn-cta {
    display: inline-block;
    width: 734px;
    background: #FFA600;
    color: #fff;
    text-decoration: none;
    padding: 28px 40px;
    border-radius: 80px;
    font-size: 28px;
    font-style: bold;
    font-weight: 700;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
    text-align: center;
    transition: transform 0.15s ease;
    position: relative;
    z-index: 1700;
    pointer-events: auto !important;
    touch-action: manipulation;
    transform: translateZ(0);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

/* responsive */
@media (max-width: 1000px) {
    .cta-title {
        font-size: 42px;
    }

    .cta-wrap {
        max-width: 760px;
    }

    .btn-cta {
        font-size: 22px;
        padding: 22px 28px;
        border-radius: 64px;
    }
}

@media (max-width: 600px) {
    .cta-join {
        padding: 48px 0 56px;
    }

    .cta-title {
        font-size: 30px;
    }

    .cta-lead {
        font-size: 15px;
        padding: 0 10px;
    }

    .cta-wrap {
        margin-top: 28px;
        max-width: 100%;
        padding: 0 12px;
    }

    .btn-cta {
        padding: 16px 18px;
        font-size: 18px;
        border-radius: 40px;
    }
}












/* Footer */
.site-footer {
    margin-top: 95px;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    background: #005AD0;
    height: 451px;
    position: relative;
    z-index: 2000;
}

.footer-panel {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    /* full viewport width blue bar */
    background: #005AD0;
    padding: 56px 0 40px;
    z-index: 2050;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
    align-items: start;
    margin: 0 140px;
    padding: 0 28px;
}

/* columns */
.footer-col h4 {
    font-size: 30px;
    font-weight: 700;
    font-style: bold;
    margin-bottom: 18px;
    color: #fff;
}

.footer-col.about p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 320px;
    font-size: 16px;
    font-weight: 400;
    font-style: regular;
    letter-spacing: 0.6px;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 12px;
    font-size: 15px;
}

/* arrow icon sizing */
.quick-links img {
    width: 19px;
    height: 18px;
    opacity: 0.95;
}

/* social list */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 12px;
    font-size: 15px;
    pointer-events: auto;
}

.social-list img {
    width: 20px;
    height: 20px;
}

/* contact lines */
.contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 15px;
}

.contact-line img {
    width: 18px;
    height: 24px;
    margin-top: 3px;
}

/* bottom area */
.footer-bottom {
    background: transparent;
    padding: 22px 0 48px;
}

.footer-hr {
    border: none;
    height: 2px;
    background: #D9D9D9;
    margin: 18px 0;
}

.copyright {
    text-align: center;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 50;
    font-family: 'open sans', sans-serif;
    font-style: light;
    letter-spacing: 0.6px;
    padding-bottom: 6px;
}

/* responsive */
@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 18px;
    }

    .footer-panel {
        padding: 36px 0 30px;
    }

    .footer-col.about p {
        max-width: 100%;
    }
}














/* --- GLOBAL FIXES --- */
html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}



/* --- SECTION FIXES --- */

/* Reduce header & bottom padding on smaller screens */
@media (max-width: 1400px) {

    .header,
    .hero-bottom {
        padding: 0 80px;
    }
}

@media (max-width: 1000px) {

    .header,
    .hero-bottom {
        padding: 0 40px;
    }
}

/* Prevent overflowing hero images */

/* Prevent cards from overflowing */
.choose-card {
    max-width: 100%;
    width: auto;
}

/* Adjust how-it-works card width */
.how-right .how-card {
    max-width: 100%;
    margin-left: 0;
}



















/* ---------- ANIMATIONS & INTERACTIONS ---------- */
/* Micro easing values */
:root {
    --ease-fast: cubic-bezier(.2, .9, .2, 1);
    --ease-smooth: cubic-bezier(.22, .9, .15, 1);
}

/* Button smoothing + focus */
.btn-primary,
.btn-register,
.btn-cta,
.icon-btn {
    transition: transform .22s var(--ease-fast), box-shadow .22s var(--ease-fast), opacity .18s linear;
    will-change: transform, box-shadow, opacity;
}

.btn-primary:active,
.btn-register:active,
.btn-cta:active {
    transform: translateY(1px) scale(.997);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover,
.btn-register:hover,
.btn-cta:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* subtle card lift / tilt on hover */
.choose-card,
.resource-card,
.tutor-card,
.how-right .how-card,
.guide-card,
.services-grid-container .services-grid-item {
    transition: transform .36s var(--ease-smooth), box-shadow .36s var(--ease-smooth);
    will-change: transform;
    transform-origin: center;
}

.choose-card:hover,
.resource-card:hover,
.tutor-card:hover,
.how-right .how-card:hover,
.guide-card:hover,
.services-grid-container .services-grid-item:hover {
    transform: translateY(-10px) rotateX(1.2deg);
    box-shadow: 0 30px 50px rgba(10, 40, 80, 0.12);
}

/* image micro-parallax on hover */
.img-top,
.img-bottom,
.how-left .how-photo,
.tutor-image {
    transition: transform .5s var(--ease-smooth), box-shadow .5s var(--ease-smooth);
    will-change: transform;
}

.img-top:hover {
    transform: translateY(-12px) rotate(-1deg) scale(1.01);
}

.img-bottom:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.01);
}

.how-left .how-photo:hover {
    transform: translateY(-6px) scale(1.01);
}

.tutor-image:hover {
    transform: translateY(-6px) scale(1.005);
}

/* decorative floating for dots and small ornaments */
@keyframes float-soft {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.decor-yellow,
.decor-blue,
.dec-dots,
.yellow-big-dot,
.big-dot-left,
.big-dot-right,
.hr-big-dot,
.quick-dot,
.cta-dot {
    animation: float-soft 6s ease-in-out infinite;
    will-change: transform;
    transform-origin: center;
    opacity: .98;
}

/* reveal on scroll: default hidden state */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(.995);
    transition: opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth);
    will-change: opacity, transform;
    visibility: hidden;
}

/* when JS toggles .in-view, element fades in */
.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Stagger helper for groups (use on parent to cascade) */
.reveal-group>* {
    transition-delay: 0s;
}

.reveal-group.in-view>* {
    transition-delay: calc(var(--index, 0) * 80ms);
}

/* tiny pop for numbered step circles on hover */
.step-num {
    transition: transform .18s var(--ease-fast), box-shadow .18s var(--ease-fast);
}

.step-num:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* focus styles for keyboard users */
:focus {
    outline: 3px solid rgba(10, 90, 208, 0.18);
    outline-offset: 3px;
}

/* reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    .decor-yellow,
    .decor-blue,
    .dec-dots,
    .yellow-big-dot,
    .big-dot-left,
    .big-dot-right,
    .hr-big-dot,
    .quick-dot,
    .cta-dot {
        animation: none;
    }

    .reveal,
    .reveal.in-view,
    .btn-primary,
    .btn-cta,
    .btn-register,
    .choose-card,
    .resource-card,
    .tutor-card,
    .img-top,
    .img-bottom {
        transition: none;
    }
}


























/* ---------- BUTTON HOVER / INTERACTIONS ---------- */
.icon-btn,
.btn-register,
.btn-primary,
.btn-cta {
    transition: transform 260ms var(--ease-fast), box-shadow 260ms var(--ease-fast), background-color 180ms linear;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

/* Hover only on pointer/hover-capable devices */
@media (hover: hover) and (pointer: fine) {

    .icon-btn:hover,
    .btn-register:hover,
    .btn-primary:hover,
    .btn-cta:hover {
        transform: translateY(-6px) scale(1.035);
        box-shadow: 0 26px 60px rgba(8, 30, 70, 0.12);
    }

    .icon-btn:active,
    .btn-register:active,
    .btn-primary:active,
    .btn-cta:active {
        transform: translateY(-2px) scale(.995);
        box-shadow: 0 12px 28px rgba(8, 30, 70, 0.08);
    }
}

/* keyboard focus (accessibility) */
.icon-btn:focus-visible,
.btn-register:focus-visible,
.btn-primary:focus-visible,
.btn-cta:focus-visible {
    outline: 3px solid rgba(10, 90, 208, 0.16);
    outline-offset: 3px;
    transform: translateY(-4px) scale(1.02);
}

/* ---------- NAV LINKS POP on HOVER ---------- */
.nav-links a {
    transition: transform 220ms var(--ease-fast), color 180ms linear;
    display: inline-block;
    /* allow transform without affecting layout */
    will-change: transform;
}

/* only apply pop on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover {
        transform: translateY(-6px) scale(1.08);
        color: #0a5ad0;
        /* slight highlight (adjust to match your palette) */
    }

    .nav-links a:active {
        transform: translateY(-2px) scale(1.02);
    }
}


/* ---------- SEARCH FORM EXPAND ON FOCUS ---------- */
/* base layout for the search form in hero-bottom bottom-right */
.hero-bottom .bottom-right .search-form {
    display: flex;
    align-items: center;
    width: 260px;
    /* collapsed width */
    max-width: calc(100% - 40px);
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(10, 30, 60, 0.06);
    transition: width 420ms var(--ease-smooth), box-shadow 420ms var(--ease-smooth), transform 300ms var(--ease-fast);
    overflow: hidden;
    position: relative;
    z-index: 35;
    pointer-events: auto;
}

/* input flexes inside */
.hero-bottom .bottom-right .search-form input[type="search"] {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 15px;
    transition: padding 280ms var(--ease-smooth), font-size 280ms var(--ease-smooth);
    outline: none;
}

/* icon/button compact */
.hero-bottom .bottom-right .search-form .search-btn {
    flex: 0 0 auto;
    margin-left: 8px;
    background: transparent;
}

/* When focused (any child), expand the form */
.hero-bottom .bottom-right .search-form:focus-within {
    width: 420px;
    /* expanded width */
    box-shadow: 0 18px 48px rgba(10, 30, 60, 0.12);
    transform: translateY(-2px);
}

/* On focus, increase input padding and text slightly */
.hero-bottom .bottom-right .search-form:focus-within input[type="search"] {
    padding: 10px 14px;
    font-size: 16px;
}

/* Small screens: make search form fluid and full width when focused */
@media (max-width: 880px) {
    .hero-bottom .bottom-right .search-form {
        width: 100%;
        max-width: 100%;
        padding: 6px;
        border-radius: 12px;
    }

    .hero-bottom .bottom-right .search-form:focus-within {
        width: 100%;
        box-shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
    }
}


/* --- Global responsive overrides for tablet/mobile (added 2025-11) --- */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .nav-inner {
        gap: 10px;
    }

    .hero-wrap {
        padding: 10px 0 30px;
    }

    .hero-title::after {
        width: 100%;
        height: 25px;
        margin-top: -5px;
    }

    .hero-grid {
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .header {
        display: none;
    }

    .nav-bar .nav-inner {
        padding: 16px 20px;
        justify-content: space-between;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hero-wrap {
        padding: 10px 0 35px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .hero-left .eyebrow {
        font-size: clamp(22px, 6vw, 28px);
    }

    .hero-left .hero-actions {
        justify-content: center;
    }

    .hero-left .hero-small {
        margin-top: 6px;
    }

    .hero-right {
        display: none;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 18px;
        height: auto;
        padding: 24px 20px 32px;
    }

    .hero-bottom .bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        font-size: 18px;
        text-align: left;
    }

    .hero-bottom .bottom-left .container {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .hero-bottom .bottom-left img {
        width: 52px;
        height: 52px;
    }

    .hero-bottom .bottom-left .bottom-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-bottom .bottom-right {
        width: 100%;
        justify-content: stretch;
    }

    .hero-bottom .bottom-right .search-form {
        width: 100%;
    }

    .decor-dot,
    .why-choose-img,
    .how-grid .grid-back,
    .how-left,
    .dec-dots,
    .dec-grid {
        display: none !important;
    }

    .choose-grid,
    .services-grid,
    .resources-grid,
    .tutors-container,
    .guides-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .choose-grid {
        width: min(360px, 90vw);
        margin: 0 auto;
    }

    .choose-card {
        width: 100%;
        min-height: 220px;
        padding: 26px 22px 22px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "icon title"
            "body body";
        column-gap: 16px;
        row-gap: 14px;
        align-items: start;
    }

    .choose-card .text-box {
        margin: 0;
        grid-area: title;
    }

    .choose-card .text-box h2 {
        font-size: 18px;
        line-height: 1.35;
    }

    .choose-card .card-content {
        display: contents;
    }

    .choose-card .icon-box {
        grid-area: icon;
        width: 48px;
        height: 48px;
    }

    .choose-card .icon-box img {
        width: 32px;
        height: 32px;
    }

    .choose-card .card-content p {
        grid-area: body;
        margin: 0;
        width: 100%;
        height: auto;
        font-size: 14px;
        line-height: 1.6;
        letter-spacing: 0.3px;
    }

    .services-grid {
        gap: 22px;
    }

    .service-card {
        height: auto;
        min-height: 230px;
        padding: 30px 24px;
        transform: none !important;
    }

    .service-card::before {
        opacity: 0.6;
    }

    .success-grid-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 16px;
    }

    .how-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .how-right {
        padding: 0;
    }

    .how-timeline {
        gap: 18px;
    }

    .our-services .section-title,
    .why-choose h2,
    .how-title,
    .success-title {
        font-size: clamp(30px, 6vw, 40px);
        text-align: center;
    }

    .section-title+.services-sep,
    .why-choose .sep,
    .how-sep,
    .success-sep {
        display: block;
        margin: 10px auto 0;
    }

    .btn-register,
    .btn-primary,
    .btn-cta {
        width: 100%;
    }

    .footer {
        padding: 44px 20px;
    }

    .footer-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}


.header,
.nav-bar {
    pointer-events: auto;
}

.header::after,
.nav-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.mobile-nav {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

@media (max-width: 540px) {

    .container {
        padding: 0 12px;
    }

    .hero-wrap {
        padding: 87px 0 42px;
        position: relative;
        z-index: 90;
    }

    .hero-left .btn-primary {
        z-index: 100;
    }

    .hero-grid {
        position: relative;
        z-index: 100;
        isolation: isolate;
    }

    .hero-left {
        position: relative;
        z-index: 140;
    }

    .hero-actions {
        z-index: 160;
        pointer-events: auto !important;
    }

    .hero-actions .btn-primary {
        z-index: 9999;
        pointer-events: auto !important;
    }

    .hero-left .eyebrow {
        font-size: clamp(20px, 7vw, 26px);
    }

    .choose-grid {
        width: min(320px, 92vw);
    }

    .choose-card {
        min-height: 240px;
        padding: 24px 20px 20px;
        column-gap: 14px;
        row-gap: 12px;
    }

    .choose-card .text-box h2 {
        font-size: 17px;
    }

    .choose-card .icon-box {
        width: 10px;
        height: 10px;
    }

    .choose-card .icon-box img {
        width: 8px;
        height: 8px;
    }

    .choose-card .card-content p {
        font-size: 13.5px;
        line-height: 1.55;
    }

    /* Meet Our Tutors: mobile refinement */
    .tutors-section {
        padding: 36px 0 32px;
    }

    .yellow-big-dot {
        width: 68px;
        right: -8px;
        top: 24px;
    }

    .how-it-works .big-dot-left {
        width: 60px;
        left: -18px;
        top: 22px;
    }

    .success-stories .big-dot-right,
    .tutors-section .big-dot-right {
        width: 74px;
        right: -4px;
        top: -26px;
    }

    .our-services .big-dot-left {
        width: 68px;
        left: -18px;
        top: 22px;
    }

    .helpful-resources .hr-big-dot {
        width: 48px;
        left: -6px;
        top: 8px;
    }

    .tutors-section .section-title {
        font-size: clamp(30px, 8vw, 38px);
        margin-bottom: 6px;
    }

    .tutors-section .section-sep {
        width: 54px;
        margin: 14px auto 26px;
    }

    .tutors-container {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .tutor-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        padding-bottom: 18px;
        border-radius: 18px;
        box-shadow: 0 16px 32px rgba(15, 30, 54, 0.14);
    }

    .tutor-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .tutor-name {
        font-size: 20px;
        margin: 18px 0 6px;
    }

    .tutor-description {
        font-size: 14px;
        line-height: 1.55;
        padding: 0 18px 6px;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tutor-card .btn-primary,
    .tutor-card .btn-register,
    .tutor-card a {
        min-height: 44px;
    }

    /* Helpful Resources: mobile adjustments */
    .helpful-resources {
        padding: 38px 0 32px;
    }

    .helpful-resources .hr-big-dot {
        display: none;
    }

    .resources-title {
        font-size: clamp(40px, 9vw, 50px);
        margin-bottom: 8px;
    }

    .resources-sep {
        width: 52px;
        margin: 12px auto 20px;
    }

    .resources-panel {
        margin-top: 24px;
        padding: 32px 0 36px;
    }

    .resources-grid {
        margin: 0;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .resource-card {
        width: 100%;
        border-radius: 18px;
        height: 220px;
        padding: 18px 16px 18px;
        min-height: auto;
        box-shadow: 0 16px 32px rgba(15, 30, 54, 0.14);
    }

    .resource-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 14px;
    }

    .resource-head {
        font-size: 18px;
        width: 100%;
        margin-bottom: 8px;
    }

    .resource-desc {
        font-size: 13px;
        line-height: 1.45;
        width: 100%;
        max-width: none;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .guide-card {
        width: 100%;
        min-height: auto;
        padding: 20px 18px;
        border-radius: 18px;
        box-shadow: 0 16px 32px rgba(15, 30, 54, 0.14);
    }

    .guide-card .guide-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .guide-card .guide-desc {
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cta-join {
        padding: 36px 0 42px;
        position: relative;
        z-index: 1500;
    }

    .cta-join .container {
        align-items: stretch;
        gap: 18px;
        padding: 0 4px;
        position: relative;
        z-index: 1550;
    }

    .cta-title {
        width: auto;
        height: auto;
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .cta-sep {
        width: 44px;
        margin: 12px auto 18px;
    }

    .cta-lead {
        font-size: 14px;
        line-height: 1.55;
        padding: 0 6px;
    }

    .cta-wrap {
        margin-top: 22px;
        max-width: 100%;
        padding: 0;
        position: relative;
        z-index: 1600;
    }

    .btn-cta {
        width: 100%;
        max-width: 100%;
        font-size: 17px;
        padding: 16px 18px;
        border-radius: 32px;
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 1700;
    }

    .site-footer {
        margin-top: 44px;
        height: auto;
    }

    .footer-panel {
        position: static;
        width: 100%;
        padding: 36px 0 30px;
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 18px;
        margin: 0;
        text-align: left;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-col h4 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .footer-col.about p,
    .quick-links li,
    .social-list li,
    .contact-line {
        font-size: 14px;
        line-height: 1.5;
    }

    .quick-links li,
    .social-list li,
    .contact-line {
        gap: 10px;
        justify-content: flex-start;
    }

    .footer-bottom {
        padding: 18px 0 24px;
        text-align: left;
    }

    .footer-hr {
        margin: 12px 0;
        width: 82%;
    }

    .copyright {
        font-size: 13px;
        letter-spacing: 0.4px;
        padding-bottom: 0;
    }

    .yellow-big-dot,
    .big-dot-left,
    .big-dot-right,
    .quick-dot,
    .cta-dot {
        display: none !important;
    }

    .hero-title {
        font-size: clamp(46px, 15vw, 64px);
        line-height: 1.15;
    }

    .hero-title::after {
        content: "";
        display: block;
        margin: -8px -5px -8px 0px;
        padding: 0;
        width: 220px;
        height: 22px;
        background: url('SVGs/line.svg') no-repeat center/contain;
    }

    .hero-sub {
        font-size: clamp(18px, 6vw, 26px);
    }

    .hero-bottom {
        padding: 22px 16px 28px;
    }

    .hero-bottom .bottom-left {
        gap: 10px;
    }

    .hero-bottom .bottom-left .container {
        gap: 12px;
    }

    .hero-bottom .bottom-left img {
        width: 46px;
        height: 46px;
    }

    .success-grid-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        gap: 18px;
    }

    .service-card {
        min-height: 210px;
        padding: 26px 22px;
    }

    .mobile-more-panel__content {
        gap: 16px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .icon-btn,
    .btn-register,
    .btn-primary,
    .btn-cta,
    .nav-links a,
    .hero-bottom .bottom-right .search-form,
    .hero-bottom .bottom-right .search-form input[type="search"] {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}


















/* ---------- SEARCH FORM EXPAND ON FOCUS ---------- */
/* base layout for the search form in hero-bottom bottom-right */
.hero-bottom .bottom-right .search-form {
    display: flex;
    align-items: center;
    /* collapsed width */
    max-width: calc(100% - 40px);
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(10, 30, 60, 0.06);
    transition: width 420ms var(--ease-smooth), box-shadow 420ms var(--ease-smooth), transform 300ms var(--ease-fast);
    overflow: hidden;
    position: relative;
    z-index: 35;
    pointer-events: auto;
}

/* input flexes inside */
.hero-bottom .bottom-right .search-form input[type="search"] {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 15px;
    transition: padding 280ms var(--ease-smooth), font-size 280ms var(--ease-smooth);
    outline: none;
}

/* icon/button compact */
.hero-bottom .bottom-right .search-form .search-btn {
    flex: 0 0 auto;
    margin-left: 8px;
    background: transparent;
}

/* When focused (any child), expand the form */
.hero-bottom .bottom-right .search-form:focus-within {
    width: 420px;
    /* expanded width */
    box-shadow: 0 18px 48px rgba(10, 30, 60, 0.12);
    transform: translateY(-2px);
}

/* On focus, increase input padding and text slightly */
.hero-bottom .bottom-right .search-form:focus-within input[type="search"] {
    padding: 10px 14px;
    font-size: 16px;
}

/* Small screens: make search form fluid and full width when focused */
@media (max-width: 880px) {
    .hero-bottom .bottom-right .search-form {
        width: 100%;
        max-width: 100%;
        padding: 6px;
        border-radius: 12px;
    }

    .hero-bottom .bottom-right .search-form:focus-within {
        width: 100%;
        box-shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .icon-btn,
    .btn-register,
    .btn-primary,
    .btn-cta,
    .nav-links a,
    .hero-bottom .bottom-right .search-form,
    .hero-bottom .bottom-right .search-form input[type="search"] {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
    }
}


















/* Choose-grid slide-in + stagger */
.choose-grid .choose-card {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity var(--reveal-dur, 900ms) var(--ease-smooth), transform var(--reveal-dur, 900ms) var(--ease-smooth);
    transition-delay: calc(var(--index, 0) * var(--stagger-step, 100ms));
    transform: translateY(18px) translateX(-48px) scale(.995);
    /* default start from left */
}

/* even items come from the right for a nice alternating effect */
.choose-grid .choose-card:nth-child(even) {
    transform: translateY(18px) translateX(48px) scale(.995);
}

/* when visible */
.choose-grid .choose-card.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* keep hover lift working and higher specificity than .in-view */
@media (hover: hover) and (pointer: fine) {

    .choose-grid .choose-card:hover,
    .choose-grid .choose-card.in-view:hover {
        transform: translateY(-10px) rotateX(1.2deg);
        box-shadow: 0 30px 50px rgba(10, 40, 80, 0.12);
    }
}

/* ensure reduced-motion users see static layout */
@media (prefers-reduced-motion: reduce) {
    .choose-grid .choose-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* --- Interaction safeguards (ensure hero CTA + search stay clickable) --- */
.hero-actions,
.hero-actions *,
.hero-bottom,
.hero-bottom *,
.hero-bottom .bottom-right .search-form {
    pointer-events: auto !important;
}

/* === Reveal + Hover fixes for sections listed by user ===
   Sections: How Its Work, Success Stories, Our Services,
   Meet Our Tutors, Helpful Resources, Quick Study Guides
   Adds consistent "reveal" initial state and in-view transition,
   and replaces rotateX hover with translateY+scale (less jarring). */

/* target the main card/image elements in each section */
.how-left,
.how-right .how-card,
.success-grid-container .success-grid-item,
.services-grid-container .services-grid-item,
.tutor-card,
.resource-card,
.guide-card,
.choose-grid .choose-card {
    /* start hidden for reveal */
    opacity: 0;
    transform: translateY(18px) scale(.995);
    transition: opacity .72s cubic-bezier(.22, .9, .15, 1), transform .72s cubic-bezier(.22, .9, .15, 1);
    will-change: opacity, transform;
    visibility: hidden;
}

/* when JS adds .in-view */
.how-left.in-view,
.how-right .how-card.in-view,
.success-grid-container .success-grid-item.in-view,
.services-grid-container .services-grid-item.in-view,
.tutor-card.in-view,
.resource-card.in-view,
.guide-card.in-view,
.choose-grid .choose-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Stagger helper for grids (optional) */
.choose-grid .choose-card,
.success-grid-container .success-grid-item,
.services-grid-container .services-grid-item,
.tutors-container .tutor-card,
.resources-grid .resource-card,
.guides-grid .guide-card {
    transition-delay: calc(var(--index, 0) * 80ms);
}

/* NEW: simplified hover effect (no rotateX) */
/* higher specificity to override earlier rotateX rules */
.choose-card:hover,
.resource-card:hover,
.tutor-card:hover,
.how-right .how-card:hover,
.guide-card:hover,
.services-grid-container .services-grid-item:hover,
.success-grid-container .success-grid-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 24px 44px rgba(10, 40, 80, 0.12) !important;
}

/* ensure .in-view hover combines nicely */
.choose-card.in-view:hover,
.resource-card.in-view:hover,
.tutor-card.in-view:hover,
.how-right .how-card.in-view:hover,
.guide-card.in-view:hover,
.services-grid-container .services-grid-item.in-view:hover,
.success-grid-container .success-grid-item.in-view:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .how-left,
    .how-right .how-card,
    .success-grid-container .success-grid-item,
    .services-grid-container .services-grid-item,
    .tutor-card,
    .resource-card,
    .guide-card,
    .choose-grid .choose-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}