:root {
    --bdgs-orange: #f26f35;
    --bdgs-yellow: #ffe500;
    --bdgs-dark: #373435;
    --bdgs-white: #ffffff;
    --home-font-heading: "Polymath", sans-serif;
    --home-font-body: "Sora", sans-serif;
    --home-ink: #202a3a;
    --home-muted: #5f6b7a;
    --home-surface: #f8fafc;
    --home-radius: 24px;
    --home-section-space: clamp(54px, 5vw, 74px);
}

html body {
    color: var(--home-ink);
    font-family: var(--home-font-body);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--home-font-heading);
    text-wrap: balance;
}

.brand-primary-bg {
    background-color: var(--primary-color);
}

.brand-primary-text {
    color: var(--mobile-brand-text, var(--primary-color));
}

.brand-primary-border {
    border-color: var(--primary-color);
}

.brand-primary-gradient {
    background-image: linear-gradient(to right, var(--primary-color), #60a5fa);
}

.brand-primary-card {
    border-color: var(--primary-color);
}

.brand-primary-card:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.curriculum-showcase {
    position: relative;
    height: clamp(620px, 36vw, 700px);
    min-height: 620px;
    overflow: hidden;
    background: var(--bdgs-white);
}

.curriculum-showcase__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: var(--bdgs-white);
}

.curriculum-showcase__image {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.curriculum-showcase__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.curriculum-showcase:hover .curriculum-showcase__image img {
    transform: scale(1.035);
}

@media (prefers-reduced-motion: no-preference) {
    .curriculum-showcase.is-curriculum-motion-active .curriculum-showcase__image,
    .curriculum-showcase.is-curriculum-motion-active .curriculum-showcase__card {
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
}

.curriculum-showcase__card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: max-content;
    max-width: calc(100% - 48px);
    padding: 26px clamp(24px, 3vw, 44px) 28px;
    transform: translate(-50%, -50%);
    border: 0;
    border-left: 5px solid #2ea2d4;
    border-radius: 0;
    background: rgb(255 255 255 / .72);
    box-shadow: 0 12px 32px rgb(5 25 40 / .12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.curriculum-showcase__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--mobile-brand-text, #054285);
    font-size: clamp(11px, 0.78vw, 13px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.curriculum-showcase__line {
    width: 54px;
    height: 1px;
    background: currentColor;
}

.curriculum-showcase__card h2 {
    max-width: 980px;
    margin: 0;
    color: var(--mobile-brand-text, var(--primary-color));
    font-family: var(--home-font-heading);
    font-size: clamp(30px, 2.35vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

#curriculum-showcase-title {
    color: #263344 !important;
    font-size: clamp(20px, 2.8vw, 44px) !important;
    white-space: nowrap;
}

#curriculum-showcase-title > em { color: #2ea2d4; }

#curriculum-showcase-title > span,
#curriculum-showcase-title > em {
    display: inline;
    margin-top: 0;
}

.curriculum-showcase__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 50px;
    margin-top: 22px;
    padding: 0 0 0 22px;
    border: 1px solid #2ea2d4;
    border-radius: 0;
    background: #2ea2d4;
    color: #082c40;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 14px rgb(20 120 165 / .16);
    transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.curriculum-showcase__cta:hover {
    background: #79c9e9;
    color: #082c40;
    box-shadow: none;
    transform: translateY(-2px);
}

.curriculum-showcase__cta > span:last-child {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 48px;
    border-left: 1px solid rgb(8 44 64 / .18);
    background: rgb(255 255 255 / .16);
    font-size: 22px;
}

.curriculum-showcase__cta:focus-visible {
    outline: 3px solid #054285;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .curriculum-showcase {
        height: 620px;
        min-height: 620px;
    }

    .curriculum-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .curriculum-showcase__card {
        width: calc(100% - 32px);
        max-width: none;
        padding: 24px 16px;
        border-radius: 0;
        text-align: center;
    }

    .curriculum-showcase__eyebrow {
        justify-content: center;
        gap: 10px;
    }

    .curriculum-showcase__line {
        width: 42px;
    }

    .curriculum-showcase__card h2 {
        font-size: clamp(27px, 8.5vw, 38px);
    }

    #curriculum-showcase-title {
        font-size: clamp(14px, 4vw, 30px) !important;
    }

    .curriculum-showcase__cta {
        width: auto;
        gap: 16px;
    }
}

.learning-journey {
    padding: var(--home-section-space) 24px;
    background: #faf9f7;
}

.school-day {
    --school-day-blue: var(--primary-color, #094cb7);
    --school-day-yellow: #ffe500;
    --school-day-rail: #d9e2ee;
    position: relative;
    overflow: hidden;
    padding: var(--home-section-space) 0 clamp(46px, 4vw, 64px);
    background: #f7f4ee;
}

.school-day__header,
.school-day__footer {
    display: flex;
    width: min(100% - 48px, 1320px);
    margin-inline: auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.school-day__heading {
    max-width: 720px;
}

.school-day__eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    align-items: center;
    gap: 12px;
    color: var(--mobile-brand-text, var(--school-day-blue));
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.school-day__eyebrow::before {
    width: 34px;
    height: 3px;
    content: "";
    background: var(--school-day-yellow);
}

.school-day__heading h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
}

.school-day__heading p {
    max-width: 650px;
    margin: 12px 0 0;
    color: #59677a;
    font-size: 16px;
    line-height: 1.7;
}

.school-day__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.school-day__nav {
    display: inline-flex;
    width: 52px;
    height: 52px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(9 76 183 / 0.25);
    border-radius: 50%;
    background: #fff;
    color: var(--mobile-brand-text, var(--school-day-blue));
    cursor: pointer;
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.school-day__nav svg {
    width: 21px;
    height: 21px;
    stroke-width: 2;
}

.school-day__nav:hover,
.school-day__nav:focus-visible {
    border-color: var(--school-day-blue);
    background: var(--school-day-blue);
    color: #fff;
    outline: none;
    transform: translateY(-2px);
}

.school-day__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.school-day__swiper {
    width: 100%;
    margin-top: clamp(28px, 3.5vw, 44px);
    padding: 0 max(24px, calc((100vw - 1320px) / 2)) 8px;
    overflow: visible;
}

.school-day__swiper::after {
    position: absolute;
    right: 0;
    bottom: 65px;
    left: 0;
    z-index: 0;
    height: 2px;
    content: "";
    background: var(--school-day-rail);
}

.school-day__slide {
    position: relative;
    z-index: 1;
    width: min(350px, 82vw);
    height: auto;
    padding-bottom: 94px;
}

.school-day__card {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgb(22 43 77 / 0.12);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.school-day__slide:hover .school-day__card {
    box-shadow: 0 24px 48px rgb(22 43 77 / 0.18);
    transform: translateY(-7px);
}

.school-day__card--blue {
    background: #e3f2fa;
    color: #203b52;
}

.school-day__card--yellow {
    background: #fff3cf;
    color: #203b52;
}

.school-day__media {
    height: 220px;
    margin: 0;
    overflow: hidden;
    background: #dce6f2;
}

.school-day__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.school-day__slide:hover .school-day__media img {
    transform: scale(1.045);
}

.school-day__body {
    min-height: 250px;
    padding: 25px 26px 29px;
}

.school-day__time {
    display: inline-block;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.school-day__card h3 {
    margin: 0;
    color: #203b52;
    font-size: clamp(22px, 1.7vw, 27px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0;
}

.school-day__card p {
    margin: 13px 0 0;
    color: #4c6070;
    font-size: 14px;
    line-height: 1.65;
}

.school-day__stem {
    position: absolute;
    bottom: 64px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: var(--school-day-blue);
    transform: translateX(-50%);
}

.school-day__slide:nth-child(even) .school-day__stem {
    background: #e2c700;
}

.school-day__marker {
    position: absolute;
    bottom: 49px;
    left: 50%;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid var(--school-day-blue);
    border-radius: 50%;
    background: #f7f4ee;
    transform: translateX(-50%);
}

.school-day__slide:nth-child(even) .school-day__marker {
    border-color: #e2c700;
}

.school-day__marker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5e6d7e;
}

.school-day__label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    color: #2f3b4d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.school-day__footer {
    margin-top: 20px;
    align-items: center;
}

.school-day__pagination {
    position: static;
    display: flex;
    width: auto !important;
    align-items: center;
    gap: 7px;
}

.school-day__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #92a1b4;
    opacity: 0.45;
    transition: width 220ms ease, border-radius 220ms ease, background-color 220ms ease, opacity 220ms ease;
}

.school-day__pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 999px;
    background: var(--school-day-blue);
    opacity: 1;
}

.school-day__cta {
    display: inline-flex;
    min-height: 48px;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--school-day-blue);
    border-radius: 6px;
    background: transparent;
    color: var(--mobile-brand-text, var(--school-day-blue));
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 220ms ease, background-color 220ms ease;
}

.school-day__cta svg {
    width: 18px;
    height: 18px;
}

.school-day__cta:hover,
.school-day__cta:focus-visible {
    background: var(--school-day-blue);
    color: #fff;
    outline: none;
}

@media (max-width: 767px) {
    .school-day {
        padding-top: 48px;
    }

    .school-day__header,
    .school-day__footer {
        width: calc(100% - 32px);
    }

    .school-day__header {
        display: block;
    }

    .school-day__heading h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .school-day__heading p {
        font-size: 14px;
    }

    .school-day__controls {
        margin-top: 18px;
    }

    .school-day__nav {
        width: 46px;
        height: 46px;
    }

    .school-day__swiper {
        padding-left: 16px;
        padding-right: 16px;
    }

    .school-day__slide {
        width: min(310px, 84vw);
    }

    .school-day__media {
        height: 190px;
    }

    .school-day__body {
        min-height: 245px;
        padding: 23px 22px 26px;
    }

    .school-day__footer {
        margin-top: 16px;
    }

    .school-day__cta {
        min-height: 44px;
        padding-inline: 14px;
    }
}

.learning-journey__heading {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: clamp(26px, 3vw, 38px);
    text-align: center;
}

.learning-journey__heading h2 {
    margin: 0;
    color: #343949;
    font-family: var(--home-font-heading);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: 0;
}

.learning-journey__heading h2 span,
.learning-journey__heading h2 em {
    display: block;
}

.learning-journey__heading h2 em {
    margin-top: 8px;
    color: var(--mobile-brand-text, var(--primary-color));
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    line-height: 1.08;
}

.learning-journey__panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1280px;
    height: clamp(520px, 48vw, 650px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 48px 48px 12px 12px;
    background: var(--bdgs-white);
}

.learning-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f0eeea;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.learning-stage__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    transition: top 350ms ease;
}

.learning-stage__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.learning-stage--early .learning-stage__media img {
    object-position: center 30%;
}

.learning-stage--primary .learning-stage__media img {
    object-position: center 38%;
}

.learning-stage--senior .learning-stage__media img {
    object-position: center 30%;
}

.learning-stage__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(8 28 38 / 0.65) 0%, rgb(8 28 38 / 0.18) 52%, rgb(8 28 38 / 0.42) 100%);
}

.learning-stage__label {
    position: absolute;
    top: clamp(52px, 5vw, 84px);
    left: 50%;
    z-index: 2;
    width: calc(100% - 56px);
    margin: 0;
    transform: translateX(-50%);
    color: var(--bdgs-white);
    font-family: var(--home-font-heading);
    font-size: clamp(27px, 2.15vw, 38px);
    font-weight: 600;
    line-height: 1.08;
    text-align: center;
    transition: opacity 350ms ease, transform 350ms ease;
}

.learning-stage__details {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    min-height: 178px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #343949;
    text-align: center;
    background: #f0eeea;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 350ms ease, transform 350ms ease;
}

.learning-stage__details h3 {
    margin: 0;
    color: var(--mobile-brand-text, var(--primary-color));
    font-family: var(--home-font-heading);
    font-size: clamp(28px, 2.1vw, 38px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.05;
}

.learning-stage__details p {
    margin: 14px 0 0;
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 600;
    line-height: 1.4;
}

.learning-stage:hover .learning-stage__media,
.learning-stage:focus .learning-stage__media,
.learning-stage:focus-within .learning-stage__media,
.learning-stage.is-active .learning-stage__media {
    top: 178px;
}

.learning-stage:hover .learning-stage__media img,
.learning-stage:focus .learning-stage__media img,
.learning-stage:focus-within .learning-stage__media img,
.learning-stage.is-active .learning-stage__media img {
    transform: scale(1.025);
}

.learning-stage:hover .learning-stage__label,
.learning-stage:focus .learning-stage__label,
.learning-stage:focus-within .learning-stage__label,
.learning-stage.is-active .learning-stage__label {
    opacity: 0;
    transform: translate(-50%, -18px);
}

.learning-stage:hover .learning-stage__details,
.learning-stage:focus .learning-stage__details,
.learning-stage:focus-within .learning-stage__details,
.learning-stage.is-active .learning-stage__details {
    opacity: 1;
    transform: translateY(0);
}

.learning-journey__panels:hover .learning-stage.is-active:not(:hover) .learning-stage__media,
.learning-journey__panels:has(.learning-stage:focus-visible) .learning-stage.is-active:not(:focus-visible) .learning-stage__media {
    top: 0;
}

.learning-journey__panels:hover .learning-stage.is-active:not(:hover) .learning-stage__media img,
.learning-journey__panels:has(.learning-stage:focus-visible) .learning-stage.is-active:not(:focus-visible) .learning-stage__media img {
    transform: none;
}

.learning-journey__panels:hover .learning-stage.is-active:not(:hover) .learning-stage__label,
.learning-journey__panels:has(.learning-stage:focus-visible) .learning-stage.is-active:not(:focus-visible) .learning-stage__label {
    opacity: 1;
    transform: translateX(-50%);
}

.learning-journey__panels:hover .learning-stage.is-active:not(:hover) .learning-stage__details,
.learning-journey__panels:has(.learning-stage:focus-visible) .learning-stage.is-active:not(:focus-visible) .learning-stage__details {
    opacity: 0;
    transform: translateY(-100%);
}

@media (max-width: 900px) {
    .learning-journey__panels {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 620px;
        overflow: visible;
        border-radius: 32px;
        background: transparent;
        gap: 14px;
    }

    .learning-stage {
        min-height: 470px;
        border-radius: 36px;
    }

    .learning-stage--senior {
        min-height: 500px;
    }
}

@media (max-width: 520px) {
    .learning-journey {
        padding-right: 14px;
        padding-left: 14px;
    }

    .learning-journey__heading h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .learning-stage {
        min-height: 420px;
    }

    .learning-stage__details {
        min-height: 150px;
    }

    .learning-stage:hover .learning-stage__media,
    .learning-stage:focus .learning-stage__media,
    .learning-stage:focus-within .learning-stage__media,
    .learning-stage.is-active .learning-stage__media {
        top: 150px;
    }
}

/* The three stages of the learning journey */
.learning-journey {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 6vw, 94px) 24px clamp(66px, 7vw, 106px);
    background: #fff;
}

.learning-journey__corner {
    position: absolute;
    top: -125px;
    left: -145px;
    width: clamp(260px, 34vw, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff8ed;
    pointer-events: none;
}

.learning-journey__heading {
    position: relative;
    max-width: 1180px;
    margin-bottom: clamp(22px, 3.5vw, 48px);
}

.learning-journey__heading h2 {
    color: #263344;
    font-family: var(--home-font-body);
    font-size: clamp(29px, 3.6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.learning-journey__heading h2 em {
    margin-top: 2px;
    color: #2ea2d4;
    font-family: var(--home-font-heading);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.035em;
}

.learning-journey__doodle {
    position: absolute;
    top: -16px;
    right: 0;
    width: 122px;
    color: #8b9cb0;
    font-family: cursive;
    font-size: 14px;
    font-style: italic;
    line-height: 1.05;
    text-align: center;
    transform: rotate(-11deg);
    pointer-events: none;
}

.learning-journey__doodle svg {
    display: block;
    width: 80px;
    margin: -5px 0 0 45px;
}

.learning-journey__panels {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: min(100%, 1280px);
    max-width: 1280px;
    height: clamp(500px, 48vw, 650px);
    overflow: hidden;
    border-radius: 48px 48px 12px 12px;
    background: #f0eeea;
    box-shadow: 0 24px 60px rgb(20 43 72 / 0.12);
}

.learning-journey__path {
    position: absolute;
    z-index: 0;
    top: 16%;
    left: -2%;
    width: 104%;
    height: 27%;
    overflow: visible;
    pointer-events: none;
}

.journey-stage {
    position: relative;
    z-index: 1;
    min-width: 0;
    background: transparent;
}

.journey-stage__visual {
    position: relative;
    height: clamp(168px, 28vw, 370px);
    isolation: isolate;
}

.journey-stage__visual::before {
    position: absolute;
    z-index: -1;
    inset: 3% 0 0;
    border-radius: 49% 49% 9% 9% / 38% 42% 8% 8%;
    background: #fff2db;
    content: "";
}

.journey-stage--primary .journey-stage__visual::before { background: #e7f0ff; }
.journey-stage--senior .journey-stage__visual::before { background: #e6f5eb; }

.journey-stage__visual img {
    position: absolute;
    z-index: 1;
    right: 6%;
    bottom: 4%;
    left: 6%;
    display: block;
    width: 88%;
    height: 83%;
    border-radius: 47% 47% 7% 7% / 40% 40% 6% 6%;
    object-fit: cover;
    object-position: center 32%;
    transition: transform 450ms cubic-bezier(.2,.8,.2,1), filter 450ms ease;
}

.journey-stage--early .journey-stage__visual img { height: 78%; object-position: center 32%; }
.journey-stage--primary .journey-stage__visual img { height: 91%; object-position: center 38%; }
.journey-stage--senior .journey-stage__visual img { height: 85%; object-position: center 34%; }

.journey-stage__number,
.journey-stage__icon {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 9px 20px rgb(27 52 78 / .1);
}

.journey-stage__number {
    top: 5%;
    left: 2%;
    width: clamp(38px, 4.4vw, 56px);
    aspect-ratio: 1;
    color: #eaa000;
    font-size: clamp(15px, 1.6vw, 21px);
    font-weight: 800;
}

.journey-stage--primary .journey-stage__number { top: -3%; color: #0754a7; }
.journey-stage--senior .journey-stage__number { color: #4b9e68; }

.journey-stage__icon {
    bottom: -2%;
    left: 5%;
    width: clamp(37px, 4.5vw, 56px);
    aspect-ratio: 1;
    color: #263344;
}

.journey-stage__icon svg { width: 50%; height: 50%; }

.journey-stage__link {
    display: flex;
    min-height: 62px;
    padding: 12px 6px 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #263344;
    text-decoration: none;
}

.journey-stage__link h3 {
    display: block;
    margin: 0;
    color: inherit;
    font-family: var(--home-font-body);
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.journey-stage__link small {
    display: block;
    margin-top: 5px;
    color: #6c7887;
    font-size: clamp(11px, .9vw, 13px);
    line-height: 1.3;
}

.journey-stage__arrow {
    display: grid;
    width: clamp(30px, 3.2vw, 43px);
    flex: 0 0 auto;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #fff1d6;
    color: #263344;
    font-size: 22px;
    line-height: 1;
    transition: transform 300ms ease, background-color 300ms ease;
}

.journey-stage--primary .journey-stage__arrow { background: #e3eeff; }
.journey-stage--senior .journey-stage__arrow { background: #e0f3e9; }
.journey-stage:hover .journey-stage__visual img,
.journey-stage:focus-within .journey-stage__visual img { transform: translateY(-6px) scale(1.02); filter: saturate(1.08); }
.journey-stage:hover .journey-stage__arrow,
.journey-stage:focus-within .journey-stage__arrow { transform: translateX(5px); background: #d5e8ff; }
.journey-stage__link:focus-visible { outline: 3px solid #0754a7; outline-offset: 5px; border-radius: 6px; }

.learning-stage:focus-visible {
    z-index: 3;
    box-shadow: inset 0 0 0 4px #f4b63e;
}

@media (max-width: 900px) {
    .learning-journey__panels {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
        height: auto;
        overflow: visible;
        gap: 16px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .learning-stage {
        min-height: 470px;
        border-radius: 32px;
        box-shadow: 0 16px 38px rgb(20 43 72 / 0.12);
    }
}

@media (max-width: 700px) {
    .learning-journey { padding: 52px 16px 62px; }
    .learning-journey__heading { margin-bottom: 22px; }
    .learning-journey__heading h2 { font-size: clamp(25px, 4.5vw, 33px); }
    .learning-journey__doodle { right: -8px; font-size: 10px; width: 75px; }
    .learning-journey__doodle svg { width: 58px; margin-left: 32px; }
    .learning-journey__panels { grid-template-columns: 1fr; gap: 16px; width: min(100%, 540px); }
    .learning-stage { min-height: 430px; }
    .journey-stage__visual { height: clamp(150px, 29vw, 202px); }
    .journey-stage__link { min-height: 42px; padding: 8px 2px 0; }
    .journey-stage__link small { display: none; }
    .journey-stage__arrow { width: 27px; font-size: 17px; }
    .journey-stage__number { width: 36px; font-size: 14px; }
    .journey-stage__icon { width: 36px; }
}

@media (max-width: 480px) {
    .learning-journey__doodle { display: none; }
    .learning-journey__panels { grid-template-columns: 1fr; gap: 28px; width: min(100%, 320px); }
    .learning-journey__path { display: none; }
    .journey-stage__visual { height: 290px; }
    .journey-stage__link { min-height: 50px; }
    .journey-stage__link h3 { font-size: 18px; }
    .journey-stage__link small { display: block; font-size: 12px; }
    .journey-stage__arrow { width: 36px; font-size: 20px; }
    .journey-stage__number, .journey-stage__icon { width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .journey-stage__visual img, .journey-stage__arrow { transition: none; }
}

.facilities-showcase {
    padding: clamp(70px, 7vw, 108px) 24px;
    overflow: hidden;
    background: #f6f8fb;
}

.facilities-showcase__heading {
    max-width: 820px;
    margin: 0 auto clamp(40px, 4.5vw, 58px);
    text-align: center;
}

.facilities-showcase__heading h2 {
    margin: 0;
    color: #263348;
    font-family: var(--home-font-heading);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.facilities-showcase__heading h2 span,
.facilities-showcase__heading h2 em {
    display: block;
}

.facilities-showcase__heading h2 em {
    margin-top: 7px;
    color: var(--mobile-brand-text, var(--primary-color));
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    line-height: 1.08;
}

.facilities-showcase__heading p {
    max-width: 650px;
    margin: 16px auto 0;
    color: #68778c;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.75;
}

.facilities-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1320px;
    margin: 0 auto;
    gap: 24px 20px;
}

.facility-stage {
    height: 420px;
    margin-bottom: 0;
    z-index: 1;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(24 57 96 / 0.09);
    transform: translateZ(0);
    transform-style: preserve-3d;
    will-change: height, transform;
    transition: height 480ms cubic-bezier(0.22, 1, 0.36, 1), margin-bottom 480ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease, box-shadow 480ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-stage:hover,
.facility-stage:focus,
.facility-stage:focus-within {
    height: 442px;
    margin-bottom: -22px;
    z-index: 3;
    border-color: #bfd1e4;
    box-shadow: 0 24px 54px rgb(19 55 96 / 0.16);
    transform: translateY(-7px) scale(1.012);
}

.facility-stage .learning-stage__shade {
    background: linear-gradient(180deg, rgb(8 33 66 / 0.18) 0%, transparent 46%, rgb(7 31 62 / 0.68) 100%);
    transition: opacity 420ms ease;
}

.facility-stage .learning-stage__media img {
    object-position: center;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

.facility-stage:hover .learning-stage__media img,
.facility-stage:focus .learning-stage__media img,
.facility-stage:focus-within .learning-stage__media img {
    filter: saturate(1.03) contrast(1.02);
    transform: scale(1.055);
}

.facility-stage .learning-stage__details h3,
.facility-stage .learning-stage__details p {
    transition: opacity 360ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-stage:hover .learning-stage__details h3,
.facility-stage:hover .learning-stage__details p,
.facility-stage:focus .learning-stage__details h3,
.facility-stage:focus .learning-stage__details p,
.facility-stage:focus-within .learning-stage__details h3,
.facility-stage:focus-within .learning-stage__details p {
    transform: translateY(-3px);
}

.facility-stage .learning-stage__label {
    top: auto;
    bottom: 30px;
    left: 28px;
    width: calc(100% - 56px);
    padding-top: 13px;
    border-top: 1px solid rgb(255 255 255 / 0.55);
    transform: none;
    font-size: clamp(25px, 1.8vw, 32px);
    line-height: 1.12;
    text-align: left;
    text-shadow: 0 3px 18px rgb(0 0 0 / 0.22);
    transition: opacity 300ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-stage .learning-stage__details {
    min-height: 174px;
    height: 174px;
    padding: 25px 28px 24px;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid #e2eaf2;
    color: #4f6077;
    text-align: left;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    transform: translateY(-102%);
    transition: opacity 340ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.facility-stage .learning-stage__details h3 {
    color: #0b4f96;
    font-size: clamp(25px, 1.8vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.facility-stage .learning-stage__details p {
    max-width: 360px;
    margin-top: 11px;
    color: #5f6f84;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.62;
}

.facility-stage__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    align-items: center;
    gap: 8px;
    color: #8a6a00;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.facility-stage__eyebrow::before {
    width: 20px;
    height: 2px;
    border-radius: 9px;
    content: "";
    background: #f5b400;
}

.facility-stage:hover .learning-stage__media,
.facility-stage:focus .learning-stage__media,
.facility-stage:focus-within .learning-stage__media {
    top: 174px;
}

.facility-stage:hover .learning-stage__label,
.facility-stage:focus .learning-stage__label,
.facility-stage:focus-within .learning-stage__label {
    opacity: 0;
    transform: translateY(14px);
}

.facility-stage:hover .learning-stage__details,
.facility-stage:focus .learning-stage__details,
.facility-stage:focus-within .learning-stage__details {
    opacity: 1;
    transform: translateY(0);
}

.facility-stage--computer::after {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    width: 58px;
    height: 4px;
    border-radius: 0 24px 0 8px;
    content: "";
    background: #f5b400;
    pointer-events: none;
}

.facility-stage--computer.is-pointer-active {
    border-color: #a9c4df;
}

@media (max-width: 1023px) {
    .facilities-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .facilities-showcase {
        padding-right: 14px;
        padding-left: 14px;
    }

    .facilities-showcase__heading h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .facilities-showcase__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 16px;
    }

    .facility-stage {
        height: 462px;
        margin-bottom: 0;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgb(24 57 96 / 0.1);
    }

    .facility-stage .learning-stage__details {
        min-height: 176px;
        height: 176px;
        padding: 24px 22px 22px;
        opacity: 1;
        transform: translateY(0);
    }

    .facility-stage .learning-stage__media,
    .facility-stage:hover .learning-stage__media,
    .facility-stage:focus .learning-stage__media,
    .facility-stage:focus-within .learning-stage__media {
        top: 176px;
    }

    .facility-stage .learning-stage__label {
        display: none;
    }

    .facility-stage:hover,
    .facility-stage:focus,
    .facility-stage:focus-within {
        height: 462px;
        margin-bottom: 0;
        box-shadow: 0 12px 30px rgb(24 57 96 / 0.1);
        transform: none;
    }

    .facility-stage:hover .learning-stage__media img,
    .facility-stage:focus .learning-stage__media img,
    .facility-stage:focus-within .learning-stage__media img {
        transform: none;
    }
}

@media (hover: none) and (min-width: 641px) {
    .facility-stage {
        height: 440px;
    }

    .facility-stage .learning-stage__details {
        opacity: 1;
        transform: translateY(0);
    }

    .facility-stage .learning-stage__media {
        top: 174px;
    }

    .facility-stage .learning-stage__label {
        display: none;
    }
}

.hero-slider {
    margin-top: var(--site-header-height, 114px);
    position: relative;
    overflow: hidden;
    background: var(--bdgs-white);
}

/* .hero-slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 40px;
    background-color: var(--primary-color);
    background-image:
        linear-gradient(30deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%),
        linear-gradient(150deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%);
    background-size: 72px 40px;
    pointer-events: none;
} */

.hero-slider .swiper,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    width: 100%;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-image {
    display: block;
    width: 100%;
    min-height: 500px;
    aspect-ratio: 1904 / 850;
    object-fit: cover;
    object-position: center;
}

.hero-slide-playground {
    object-position: center 48%;
}

.hero-overlay {
    position: absolute;
    top: auto;
    left: 0;
    bottom: clamp(30px, 3vw, 52px);
    z-index: 12;
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: min(40vw, 650px);
    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(26px, 2.2vw, 38px) clamp(30px, 2.8vw, 48px);
    background: rgb(255 255 255 / 0.9);
    border: 1px solid rgb(255 255 255 / 0.78);
    border-left: 0;
    border-right: 4px solid var(--bdgs-orange);
    border-radius: 0;
    box-shadow: 0 12px 30px rgb(32 42 58 / 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-content {
    max-width: 560px;
}

.hero-text {
    margin: 0;
}

.hero-eyebrow {
    display: block;
    margin-bottom: clamp(14px, 1.25vw, 24px);
    color: var(--mobile-brand-text, var(--primary-color));
    font-family: var(--home-font-body);
    font-size: clamp(11px, .72vw, 13px);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.title-text {
    color: var(--bdgs-dark);
    font-family: var(--home-font-heading);
    font-size: clamp(36px, 2.8vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: none;
}

.motto-text {
    margin-top: clamp(16px, 1.5vw, 24px);
    color: var(--bdgs-dark);
    max-width: 52ch;
    font-family: var(--home-font-body);
    font-size: clamp(14px, .95vw, 18px);
    line-height: 1.65;
    font-weight: 400;
    text-shadow: none;
}

.hero-pagination.swiper-pagination {
    position: absolute;
    left: 50%;
    bottom: 31px;
    z-index: 15;
    width: auto;
    transform: translateX(-50%);
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    background: var(--bdgs-white);
    border: 1px solid rgba(55, 52, 53, 0.22);
    opacity: 0.8;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 999px;
    background: var(--bdgs-yellow);
    opacity: 1;
}

.hero-nav.swiper-button-prev,
.hero-nav.swiper-button-next {
    position: absolute;
    top: auto;
    bottom: 51px;
    z-index: 15;
    width: 56px;
    height: 56px;
    margin-top: 0;
    border: 0;
    border-radius: 50%;
    color: var(--bdgs-white);
    background: var(--primary-color);
    box-shadow: 0 6px 18px rgba(55, 52, 53, .2);
    transform: none;
}

.hero-nav.swiper-button-prev {
    left: auto;
    right: calc(10vw + 68px);
}

.hero-nav.swiper-button-next {
    right: 10vw;
    border: 2px solid var(--bdgs-yellow);
}

.hero-nav.swiper-button-prev::after,
.hero-nav.swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.video-slide video {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-slide-image {
        min-height: 560px;
        height: min(145vw, 660px);
        aspect-ratio: auto;
        object-position: center;
    }

    .hero-slide-playground { object-position: 50% center; }

    .hero-overlay {
        left: 0;
        bottom: 24px;
        width: calc(100% - 20px);
        min-height: auto;
        padding: 24px 22px 27px;
        border-right-width: 4px;
        border-radius: 0;
    }

    .hero-slider::after {
        height: 24px;
        background-size: 44px 24px;
    }

    .hero-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .title-text {
        font-size: clamp(34px, 9.5vw, 44px);
    }

    .motto-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-nav.swiper-button-prev,
    .hero-nav.swiper-button-next {
        display: none;
    }

    .hero-pagination.swiper-pagination { bottom: 15px; }

    .video-slide video {
        height: 400px;
    }
}

@media (min-width: 1920px) {
    .hero-slide-image {
        max-height: 780px;
    }
}
    .welcome-video {
        border-radius: 1.5rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
   
    @media (max-width: 1023px) {
        .mobile-truncate {
            max-height: 150px;
            overflow: hidden;
            position: relative;
        }
        .mobile-truncate::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
        }
        .mobile-truncate.expanded {
            max-height: none;
        }
        .mobile-truncate.expanded::after {
            display: none;
        }
    }
   
    .facility-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .facility-card:hover {
        transform: translateY(-8px);
    }
    
    .facility-card:hover .facility-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    .facility-card:hover .facility-image {
        transform: scale(1.05);
    }

    .feature-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .feature-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    }

    .image-overlay {
        background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .gallery-item:hover .image-overlay {
        opacity: 1;
    }
    
    .gallery-item:hover img {
        transform: scale(1.08);
    }
    
    /* Lightbox */
    .lightbox {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }
    
    .lightbox.active {
        display: flex;
    }
    
    .lightbox-img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 8px;
    }
  
    .home-stats {
        --stats-blue: #084d91;
        --stats-blue-deep: #063a70;
        --stats-blue-soft: #eaf4ff;
        --stats-yellow: #f2b518;
        position: relative;
        padding: clamp(54px, 4.6vw, 74px) 24px 0;
        overflow: hidden;
        border-top: 1px solid #e7edf5;
        border-bottom: 1px solid #e7edf5;
        background:
            radial-gradient(circle at 92% 16%, rgb(242 181 24 / 0.08), transparent 20%),
            linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    }


    .home-stats__container {
        position: relative;
        width: min(100%, 1440px);
        margin-inline: auto;
    }

    .home-stats__header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
        margin-bottom: clamp(10px, 1.4vw, 20px);
        align-items: end;
        gap: 44px;
    }

    .home-stats__header > div { max-width: 760px; }

    .home-stats__eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 11px;
        color: var(--stats-blue);
        font-size: 12px;
        font-weight: 750;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .home-stats__eyebrow::before {
        width: 30px;
        height: 3px;
        border-radius: 99px;
        content: "";
        background: var(--stats-yellow);
    }

    .home-stats__header h2 {
        max-width: 750px;
        margin: 12px 0 0;
        color: #182a3e;
        font-family: var(--home-font-heading);
        font-size: clamp(30px, 3vw, 48px);
        font-weight: 680;
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .home-stats__header > p {
        max-width: 430px;
        margin: 0 0 5px;
        color: #637287;
        font-size: 14px;
        line-height: 1.75;
    }

    .community-stats__stage {
        display: grid;
        min-height: 320px;
        grid-template-columns: minmax(0, 1fr) clamp(235px, 22vw, 315px);
        align-items: end;
        gap: clamp(8px, 1.5vw, 24px);
    }

    .community-stats__scroller {
        min-width: 0;
        overflow: visible;
    }

    .community-stats__journey {
        position: relative;
        width: 100%;
        min-width: 720px;
        height: 270px;
    }

    .community-stats__mobile-art,
    .community-stats__mobile-route,
    .community-stat__blob,
    .journey-moving-dot { display: none; }
    .community-stat__copy { display: contents; }

    .community-stats__path {
        position: absolute;
        top: 28px;
        left: 0;
        width: 100%;
        height: 190px;
        overflow: visible;
    }

    .community-stats__track,
    .community-stats__draw {
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        vector-effect: non-scaling-stroke;
    }

    .community-stats__track {
        stroke: #dceafa;
        stroke-width: 1.35;
    }

    .community-stats__draw {
        stroke: url(#community-stats-line-gradient);
        stroke-width: 1.65;
    }

    .community-stats__final-path {
        visibility: hidden;
        fill: none;
        stroke: none;
    }

    .community-stats__marker {
        fill: var(--stats-yellow);
        stroke: #fff;
        stroke-width: 3;
        filter: drop-shadow(0 0 7px rgb(242 181 24 / 0.7));
        opacity: 0;
    }

    /* Existing desktop positions/colors, moved out of inline HTML styles. */
    .community-stat:nth-of-type(1) { --node-x: 6.1%; --node-y: 98px; }
    .community-stat:nth-of-type(2) { --node-x: 30.5%; --node-y: 91px; }
    .community-stat:nth-of-type(3) { --node-x: 54.9%; --node-y: 81px; }
    .community-stat:nth-of-type(4) { --node-x: 79.3%; --node-y: 89px; }
    .home-stats .community-stat__value,
    .home-stats .community-stat p { color: #2ea2d4; }

    .community-stat {
        position: absolute;
        top: var(--node-y);
        left: var(--node-x);
        z-index: 2;
        display: flex;
        width: 150px;
        flex-direction: column;
        align-items: center;
        color: var(--stats-blue-deep);
        text-align: center;
        transform: translateX(-50%);
    }

    .community-stat__icon {
        position: relative;
        display: grid;
        width: 72px;
        height: 72px;
        margin-bottom: 18px;
        place-items: center;
        border: 1px solid #cfe2f6;
        border-radius: 50%;
        background: rgb(255 255 255 / 0.96);
        box-shadow: 0 12px 30px rgb(8 77 145 / 0.12), inset 0 0 0 7px #f2f8ff;
        transition: transform 250ms ease, box-shadow 250ms ease;
    }

    .community-stat__icon::after {
        position: absolute;
        inset: -7px;
        border: 1px solid rgb(242 181 24 / 0.5);
        border-radius: inherit;
        content: "";
        opacity: 0;
        transform: scale(0.82);
    }

    .community-stat.is-active .community-stat__icon::after {
        animation: communityNodePulse 850ms ease-out;
    }

    @keyframes communityNodePulse {
        0% { opacity: 0; transform: scale(0.82); }
        32% { opacity: 0.8; }
        100% { opacity: 0; transform: scale(1.28); }
    }

    .community-stat__icon img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .community-stat__value {
        display: flex;
        align-items: baseline;
        justify-content: center;
        color: var(--stats-blue-deep);
        font-family: var(--home-font-heading);
        font-size: clamp(30px, 2.5vw, 42px);
        font-weight: 760;
        line-height: 1;
        letter-spacing: -0.045em;
        white-space: nowrap;
    }

    .community-stat p {
        margin: 8px 0 0;
        color: #53657b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.35;
    }

    .community-stats__student {
        position: relative;
        align-self: end;
        height: 325px;
        margin: 0;
        isolation: isolate;
    }

    .community-stats__student-halo {
        position: absolute;
        right: -12%;
        bottom: -15%;
        z-index: -1;
        width: 108%;
        aspect-ratio: 1;
        border-radius: 50%;
        background: linear-gradient(145deg, #e6f3ff 18%, #f7fbff 68%);
        box-shadow: inset 0 0 0 1px rgb(8 77 145 / 0.06);
    }

    .community-stats__student img {
        position: absolute;
        right: -7%;
        bottom: 0;
        width: min(93%, 292px);
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
        filter: drop-shadow(0 18px 24px rgb(17 46 76 / 0.15));
    }

    .community-stats__student figcaption {
        position: absolute;
        right: 1px;
        bottom: 22px;
        z-index: 3;
        display: grid;
        overflow: hidden;
        border-radius: 8px 0 0 8px;
        box-shadow: 0 8px 20px rgb(8 58 112 / 0.18);
    }

    .community-stats__student figcaption span {
        min-width: 70px;
        padding: 4px 8px;
        color: #fff;
        background: var(--stats-blue);
        font-size: 8px;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-align: center;
        text-transform: uppercase;
    }

    .community-stats__student figcaption span:nth-child(even) {
        color: #263b51;
        background: var(--stats-yellow);
    }

    @media (hover: hover) and (pointer: fine) {
        .community-stat:hover .community-stat__icon {
            box-shadow: 0 16px 34px rgb(8 77 145 / 0.18), inset 0 0 0 7px #f2f8ff;
            transform: translateY(-4px) scale(1.04);
        }
    }

    @media (max-width: 1100px) {
        .home-stats__header {
            grid-template-columns: minmax(0, 1fr) minmax(260px, 370px);
        }

        .community-stats__stage {
            grid-template-columns: minmax(0, 1fr) 250px;
        }
    }

    @media (max-width: 900px) {
        .home-stats {
            padding-inline: 0;
        }

        .home-stats__header {
            grid-template-columns: 1fr;
            padding-inline: 24px;
            gap: 16px;
        }

        .home-stats__header > p { max-width: 650px; }

        .community-stats__stage {
            display: flex;
            min-height: 0;
            flex-direction: column;
            align-items: stretch;
        }

        .community-stats__scroller {
            padding: 12px 20px 24px;
            overflow: visible;
        }

        .community-stats__journey {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            width: min(100%, 560px);
            min-width: 0;
            height: auto;
            margin-inline: auto;
            isolation: isolate;
        }

        .community-stats__path { display: none; }

        .community-stats__mobile-art {
            display: block;
            position: absolute;
            inset: -14px -8px;
            z-index: -1;
            width: calc(100% + 16px);
            height: calc(100% + 28px);
            fill: #dff1fc;
            pointer-events: none;
        }

        .community-stat {
            position: relative;
            inset: auto;
            width: auto;
            min-width: 0;
            padding: 22px 10px;
            border: 1px solid #dceaf3;
            border-radius: 22px;
            background: rgb(255 255 255 / .94);
            box-shadow: 0 8px 22px rgb(8 77 145 / .05);
            transform: none;
        }

        .community-stat:nth-of-type(2),
        .community-stat:nth-of-type(3) { background: #fffaf0; border-color: #f4e7c8; }

        .community-stat__icon { width: 58px; height: 58px; margin-bottom: 16px; }
        .community-stat__icon img { width: 32px; height: 32px; }
        .community-stat__value { font-size: clamp(26px, 7vw, 38px); }
        .community-stat p { font-size: 12px; line-height: 1.5; }
        .home-stats__header { text-align: center; }
        .home-stats__header > p { margin-inline: auto; }

        .community-stats__student {
            width: min(280px, 74vw);
            height: 270px;
            margin: 0 auto;
        }
    }

    @media (max-width: 767px) {
        .home-stats {
            padding-top: 48px;
        }

        .home-stats__header {
            padding-inline: 20px;
            margin-bottom: 26px;
        }

        .home-stats__header h2 { font-size: clamp(29px, 9vw, 39px); }

        .community-stats__student { height: 220px; width: 240px; }
        .community-stats__student img { right: 0; width: 100%; }
        .community-stats__student-halo { right: 0; bottom: -24%; width: 100%; }
    }

    @media (prefers-reduced-motion: reduce) {
        .community-stat.is-active .community-stat__icon::after { animation: none; }
    }

    .home-about {
        position: relative;
        overflow: hidden;
        padding: clamp(70px, 7vw, 108px) 24px;
        background:
            radial-gradient(circle at 92% 12%, rgb(46 162 212 / 0.1), transparent 25%),
            radial-gradient(circle at 7% 88%, rgb(255 189 22 / 0.1), transparent 22%),
            #f8fafc;
    }

    .home-about__inner {
        display: grid;
        width: min(100%, 1240px);
        margin-inline: auto;
        grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
        align-items: center;
        gap: clamp(48px, 7vw, 92px);
    }

    .home-about__copy {
        min-width: 0;
    }

    .home-about__eyebrow {
        display: inline-flex;
        margin-bottom: 16px;
        align-items: center;
        gap: 10px;
        color: var(--mobile-brand-text, var(--primary-color));
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .home-about__eyebrow::before {
        width: 30px;
        height: 3px;
        border-radius: 99px;
        background: #ffbd16;
        content: "";
    }

    .home-about__copy .home-section-title {
        margin: 0 0 28px;
        text-align: left;
    }

    .home-about__lead {
        margin: 0;
        color: #34475e;
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.75;
    }

    .home-about__lead strong,
    .home-about__body strong {
        color: #123f79;
        font-weight: 750;
    }

    .home-about__body {
        display: grid;
        margin-top: 20px;
        gap: 15px;
    }

    .home-about__body p {
        margin: 0;
        color: #34475e;
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.75;
    }

    .home-about__values {
        display: flex;
        margin-top: 26px;
        flex-wrap: wrap;
        gap: 9px;
    }

    .home-about__values span {
        display: inline-flex;
        min-height: 34px;
        padding: 7px 13px;
        align-items: center;
        border: 1px solid rgb(9 76 183 / 0.14);
        border-radius: 999px;
        color: #174f8c;
        background: #fff;
        font-size: 12px;
        font-weight: 700;
    }

    .home-about__link {
        display: inline-flex;
        min-height: 48px;
        margin-top: 25px;
        padding: 11px 19px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border-radius: 10px;
        color: #fff;
        background: var(--primary-color);
        box-shadow: 0 10px 22px rgb(5 66 133 / 0.18);
        font-size: 14px;
        font-weight: 750;
        text-decoration: none;
        transition: background-color 220ms ease, transform 220ms ease;
    }

    .home-about__link:hover {
        color: #fff;
        background: #07386d;
        transform: translateY(-2px);
    }

    .home-about__link svg {
        width: 18px;
        height: 18px;
    }

    .home-about__visual {
        position: relative;
        margin: 0;
        padding: 18px 0 34px 18px;
    }

    .home-about__visual::before {
        position: absolute;
        top: 0;
        right: -24px;
        bottom: 16px;
        left: 42px;
        border-radius: 30px;
        background: linear-gradient(145deg, #dcecff, #edf6ff);
        content: "";
    }

    .home-about__image-frame {
        position: relative;
        z-index: 1;
        overflow: hidden;
        border: 7px solid #fff;
        border-radius: 28px;
        box-shadow: 0 24px 52px rgb(25 62 110 / 0.17);
    }

    .home-about__image-frame img {
        display: block;
        width: 100%;
        height: clamp(430px, 39vw, 540px);
        object-fit: cover;
        object-position: center;
        transition: transform 500ms ease;
    }

    .home-about__visual:hover .home-about__image-frame img {
        transform: scale(1.025);
    }

    .home-about__fact {
        position: absolute;
        right: -16px;
        bottom: 0;
        z-index: 2;
        display: grid;
        width: min(270px, 72%);
        padding: 18px 20px;
        border-left: 4px solid #ffbd16;
        border-radius: 12px;
        color: #fff;
        background: #07386d;
        box-shadow: 0 14px 30px rgb(7 56 109 / 0.24);
    }

    .home-about__fact strong {
        color: #ffcf4d;
        font-size: 22px;
        line-height: 1.1;
    }

    .home-about__fact span {
        margin-top: 5px;
        color: rgb(255 255 255 / 0.8);
        font-size: 12px;
        line-height: 1.5;
    }

    @media (max-width: 980px) {
        .home-about__inner {
            max-width: 720px;
            grid-template-columns: 1fr;
            gap: 42px;
        }

        .home-about__visual {
            width: min(100%, 620px);
            margin-inline: auto;
        }

        .home-about__image-frame img {
            height: clamp(390px, 66vw, 520px);
        }
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .float-animation {
        animation: float 4s ease-in-out infinite;
    }

.marquee-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  background: var(--primary-color);
  overflow: hidden;
}

body {
  padding-bottom: 40px;
}

.notification-label {
  position: relative;
  background: #373435;
  color: #fff;
  padding: 0 18px 0 14px;
  font-weight: 600;
  font-size: 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
}

.notification-label::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 12px solid #373435;
}

.marquee {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll 20s linear infinite;
  color: #fff;
}

.news-separator {
  display: inline-block;
  margin: 0 12px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-btn {
  display: inline-block;
  margin: 2px 6px;
  padding: 2px 12px;
  background: #ffe500;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: 0.3s;
}

.marquee-btn:hover {
  opacity: 0.8;
}

.marquee-btn.franchise-btn {
  background: #f26f35;
  color: #fff;
}

.notify-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .notify-text {
    display: none;
  }
}

.galleryImage .swiper-slide {
    display: flex;
    height: auto;
  }

.facility-heading-accent {
    color: var(--mobile-brand-text, var(--primary-color));
}

/* Shared two-tone heading treatment used across the home page. */
.home-section-title {
    color: #263344 !important;
    font-family: var(--home-font-body) !important;
    font-size: clamp(32px, 3.6vw, 52px) !important;
    font-style: normal;
    font-weight: 800 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.055em !important;
    text-transform: none !important;
}

.home-section-title > span,
.home-section-title > em {
    display: block;
}

.home-section-title > em {
    margin-top: 5px;
    color: #2ea2d4;
    font-family: var(--home-font-heading);
    font-size: inherit;
    font-style: italic;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

#why-us {
    padding: clamp(64px, 7vw, 104px) 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 12% 20%, #e0f2fb 0%, transparent 48%),
        radial-gradient(ellipse at 90% 85%, #fff1cb 0%, transparent 42%), #f7fbfd;
}

#why-us .container-custom {
    width: min(100% - 40px, 1480px);
    margin-inline: auto;
}

#why-us .text-center {
    margin-bottom: clamp(36px, 4vw, 58px);
}

#why-us .text-center h2 {
    max-width: 900px;
    margin: 0 auto;
    color: #202a3a;
    font-family: var(--home-font-heading);
    font-size: clamp(32px, 3vw, 50px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.whyUs {
    padding: 24px 8px 64px;
    overflow: visible;
}

.whyUs .swiper-wrapper {
    align-items: stretch;
}

.parent-review-slide {
    display: flex;
    height: auto;
    padding: 4px;
    background: transparent;
}

.parent-review-card {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgb(20 120 165 / 0.14);
    border-radius: 26px;
    background: #f0f7fb;
    box-shadow: 0 8px 24px rgb(31 42 58 / 0.06);
    transform: scale(.95);
    transition: border-color 600ms ease, background-color 600ms ease, box-shadow 600ms ease, transform 600ms ease;
}

.parent-review-card:hover {
    border-color: rgb(20 120 165 / 0.35);
    box-shadow: 0 12px 30px rgb(31 42 58 / 0.12);
}

.parent-review-slide.swiper-slide-active .parent-review-card {
    border-color: #83c8e6;
    background: #fff;
    box-shadow: 0 22px 48px rgb(29 91 125 / .15), inset 0 4px 0 #2ea2d4;
    transform: scale(1);
}

.parent-review-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.parent-review-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #bfdce9;
    border-radius: 999px;
    background: #fff;
    color: #164e73;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.parent-review-controls button:hover { background: #e3f2fa; }
.parent-review-controls button:focus-visible { outline: 3px solid #2ea2d4; outline-offset: 3px; }

.parent-review-content {
    display: flex;
    height: 100%;
    min-height: 380px;
    padding: clamp(28px, 2.6vw, 42px);
    flex-direction: column;
}

.parent-review-content > .flex:first-child {
    min-height: 58px;
    gap: 14px;
}

.parent-review-content img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 2px solid rgb(20 120 165 / 0.16);
    object-fit: cover;
}

.parent-review-content h4 {
    margin: 0;
    font-size: clamp(16px, 1.1vw, 19px);
    line-height: 1.25;
}

.parent-review-content h4 + p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
}

.parent-review-facebook {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bdgs-white);
    background: var(--primary-color);
    box-shadow: 0 8px 18px rgb(20 120 165 / 0.25);
}

.parent-review-facebook i {
    font-size: 21px;
    line-height: 1;
}

.parent-review-content > p {
    margin: 28px 0 0;
    flex: 1;
    color: #475569;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.8;
}

.parent-review-content > p::before {
    content: "\201C";
    display: block;
    height: 38px;
    margin-bottom: 12px;
    color: #75bcd9;
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
}

.parent-review-content > p a {
    color: var(--mobile-brand-text, var(--primary-color));
    font-weight: 600;
    white-space: nowrap;
}

.parent-review-content > div:last-child {
    margin-top: 24px;
    padding-top: 16px;
    gap: 12px;
    border-color: #e2e8f0;
}

.parent-review-content > div:last-child a {
    color: #64748b;
    font-size: 14px;
    transition: color 200ms ease;
}

.parent-review-content > div:last-child a:hover {
    color: var(--mobile-brand-text, var(--primary-color));
}

.parent-review-content > div:last-child svg {
    width: 18px;
    height: 18px;
}

.whyUs .swiper-pagination {
    bottom: 4px;
}

.whyUs .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #94a3b8;
    opacity: 0.55;
}

.whyUs .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--primary-color);
    opacity: 1;
}

@media (max-width: 767px) {
    #why-us {
        padding: 54px 0 62px;
    }

    #why-us .container-custom {
        width: min(100% - 24px, 1480px);
    }

    .whyUs {
        padding-inline: 2px;
    }

    .parent-review-content {
        padding: 28px 22px;
    }

    .parent-review-content > div:last-child {
        gap: 8px;
    }

    .parent-review-content > div:last-child a {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .home-stats {
        padding: 54px 16px 58px;
    }

    .home-stats__header {
        margin-bottom: 28px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .home-stats__header > p {
        max-width: 620px;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-stats .stat-card {
        min-height: 190px;
        padding: 24px 12px 22px;
        border-radius: 14px;
    }

    .stat-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .home-stats .stat-card img {
        width: 34px;
        height: 34px;
    }

    .stat-card__value {
        font-size: clamp(30px, 8vw, 38px);
    }

    .home-about {
        padding: 60px 18px 72px;
    }

    .home-about__copy .home-section-title {
        margin-bottom: 22px;
    }

    .home-about__lead {
        font-size: 16px;
        line-height: 1.72;
    }

    .home-about__body p {
        font-size: 16px;
        line-height: 1.72;
    }

    .home-about__visual {
        padding: 10px 0 46px;
    }

    .home-about__visual::before {
        right: -12px;
        left: 18px;
        border-radius: 22px;
    }

    .home-about__image-frame {
        border-width: 5px;
        border-radius: 21px;
    }

    .home-about__image-frame img {
        height: clamp(300px, 82vw, 430px);
    }

    .home-about__fact {
        right: -4px;
        width: min(250px, 82%);
        padding: 15px 17px;
    }

    .curriculum-showcase__card {
        box-shadow: 0 10px 28px rgb(15 52 68 / 0.11);
    }
}

/* Branches: clean editorial feature */
.home-branches {
    overflow: hidden;
    border-bottom: 1px solid #dce4ee;
    color: #0b376f;
    background: #fff;
}

.home-branches__hero {
    position: relative;
    height: clamp(390px, 34vw, 540px);
    overflow: hidden;
    background: #dfe8f2;
}


.home-branches__hero > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
}

.home-branches__hero-panel {
    position: absolute;
    top: 50%;
    left: 0;
    width: min(44%, 760px);
    min-width: 560px;
    padding: clamp(38px, 3.6vw, 66px) clamp(34px, 4vw, 74px);
    border-radius: 0 28px 28px 0;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 18px 50px rgb(14 43 75 / 0.12);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.home-branches__eyebrow,
.home-branches__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b4b95;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.home-branches__eyebrow::before,
.home-branches__kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 10px;
    background: #f5b400;
}

.home-branches__hero-panel h2 {
    max-width: 650px;
    margin: 18px 0 20px;
    color: #303033;
    font-size: clamp(38px, 3.15vw, 60px);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.home-branches__hero-panel p {
    max-width: 600px;
    margin: 0;
    color: #535b66;
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.7;
}

.home-branches__button {
    display: inline-flex;
    margin-top: 26px;
    align-items: center;
    gap: 12px;
    color: #0b4b95;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.home-branches__button span {
    color: #f5b400;
    font-size: 22px;
    transition: transform 180ms ease;
}

.home-branches__button:hover span,
.home-branches__button:focus-visible span {
    transform: translateX(5px);
}

.home-branches__bar {
    display: grid;
    width: min(100% - 48px, 1480px);
    margin: 0 auto;
    padding: clamp(50px, 4.5vw, 76px) 0;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    align-items: center;
}

.home-branches__intro {
    padding-right: clamp(32px, 4vw, 70px);
}

.home-branches__intro h3 {
    margin: 12px 0 8px;
    color: #092f62;
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 550;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.home-branches__intro p,
.home-branch-item p {
    margin: 0;
    color: #64738a;
    font-size: 14px;
    line-height: 1.65;
}

.home-branch-item {
    display: flex;
    min-height: 115px;
    padding: 8px clamp(24px, 2.4vw, 42px);
    align-items: flex-start;
    gap: 16px;
    border-left: 1px solid #d9e2ed;
}

.home-branch-item__number {
    flex: 0 0 auto;
    padding-top: 2px;
    color: #f5b400;
    font-size: 15px;
    font-weight: 800;
}

.home-branch-item h3 {
    margin: 0 0 8px;
    color: #082f67;
    font-size: clamp(17px, 1.25vw, 21px);
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .home-branches__hero-panel {
        width: min(72%, 680px);
        min-width: 0;
    }

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

    .home-branches__intro {
        padding: 0 0 34px;
        grid-column: 1 / -1;
    }

    .home-branch-item:first-of-type {
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .home-branches__hero {
        height: 590px;
    }

    .home-branches__hero > img {
        height: 270px;
        object-position: center;
    }

    .home-branches__hero-panel {
        top: auto;
        right: 16px;
        bottom: 18px;
        left: 0;
        width: auto;
        padding: 30px 24px 28px;
        border-radius: 0 22px 22px 0;
        transform: none;
    }

    .home-branches__hero-panel h2 {
        margin: 15px 0;
        font-size: clamp(34px, 10vw, 44px);
    }

    .home-branches__hero-panel p {
        font-size: 14px;
        line-height: 1.6;
    }

    .home-branches__button {
        margin-top: 19px;
    }

    .home-branches__bar {
        width: min(100% - 32px, 1480px);
        padding: 42px 0 46px;
        grid-template-columns: 1fr;
    }

    .home-branches__intro {
        padding-bottom: 24px;
    }

    .home-branch-item,
    .home-branch-item:first-of-type {
        min-height: 0;
        padding: 22px 0;
        border-top: 1px solid #d9e2ed;
        border-left: 0;
    }
}

/* Legacy branch story styles retained for backwards-compatible templates. */
.branches-horizontal-section {
    --branch-card-width: clamp(340px, 29vw, 420px);
    position: relative;
    display: flex;
    width: 100%;
    height: 100svh;
    min-height: 700px;
    overflow: hidden;
    color: #fff;
    background-image: var(--branches-background);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.branches-horizontal-section__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgb(9 76 183 / 0.72), rgb(4 27 65 / 0.82)),
        linear-gradient(90deg, rgb(9 76 183 / 0.18), rgb(242 111 53 / 0.12));
    pointer-events: none;
}

.branches-horizontal-section__content {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: clamp(54px, 6vh, 76px) 0 clamp(30px, 4vh, 48px);
    flex-direction: column;
}

.branches-story-intro {
    width: min(100% - 48px, 820px);
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 2px 18px rgb(0 0 0 / 0.3);
}

.branches-story-intro__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    align-items: center;
    gap: 12px;
    color: #ffbd5a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.branches-story-intro__eyebrow::before,
.branches-story-intro__eyebrow::after {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
}

.branches-story-intro h2 {
    margin: 0;
    color: #fff;
    font-family: var(--home-font-heading);
    font-size: clamp(34px, 3.3vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.branches-story-intro p {
    max-width: 720px;
    margin: 16px auto 0;
    color: rgb(255 255 255 / 0.86);
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
}

.branches-viewport {
    display: flex;
    min-height: 0;
    margin-top: clamp(26px, 4vh, 46px);
    flex: 1;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.branches-viewport::-webkit-scrollbar {
    display: none;
}

.branches-horizontal-section.is-branches-enhanced .branches-viewport {
    overflow-x: hidden;
    scroll-snap-type: none;
}

.branches-track {
    display: flex;
    width: max-content;
    padding-inline: max(7vw, calc((100vw - var(--branch-card-width)) / 2));
    align-items: center;
    gap: clamp(50px, 4vw, 78px);
}

.branches-story-card {
    width: var(--branch-card-width);
    flex: 0 0 var(--branch-card-width);
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
}

.branches-horizontal-section.is-branches-enhanced .branches-track {
    will-change: transform;
}

.branches-horizontal-section.is-branches-enhanced .branches-story-card {
    opacity: 0.55;
    transform: translateY(30px) scale(0.94);
    will-change: transform, opacity;
}

.branches-story-card__paper {
    position: relative;
    display: flex;
    min-height: clamp(390px, 46vh, 460px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(9 76 183 / 0.28);
    border-top: 4px solid var(--bdgs-orange);
    border-radius: 14px;
    color: #172b4d;
    background-color: rgb(255 255 255 / 0.97);
    box-shadow: 0 18px 42px rgb(3 24 56 / 0.22);
}

.branches-story-card__paper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgb(9 76 183 / 0.018) 5px 6px);
    pointer-events: none;
}

.branches-story-card:nth-child(3n + 1) .branches-story-card__paper {
    transform: rotate(-0.65deg);
}

.branches-story-card:nth-child(3n + 2) .branches-story-card__paper {
    transform: rotate(0.55deg);
}

.branches-story-card__pin {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 12px;
    height: 12px;
    z-index: 4;
    border: 2px solid rgb(132 50 10 / 0.35);
    border-radius: 50%;
    background: var(--bdgs-orange);
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.28);
    transform: translateX(-50%);
}

.branches-story-card__media {
    position: relative;
    height: clamp(165px, 20vh, 205px);
    margin: 0;
    flex: 0 0 auto;
    overflow: hidden;
    background: #e9eff8;
}

.branches-story-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgb(5 42 101 / 0.38));
    pointer-events: none;
}

.branches-story-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.branches-story-card.is-active .branches-story-card__media img {
    transform: scale(1.035);
}

.branches-story-card__body {
    position: relative;
    display: flex;
    min-height: 205px;
    padding: 30px clamp(26px, 2.25vw, 34px) 28px;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(135deg, rgb(9 76 183 / 0.035), transparent 48%),
        #fff;
}

.branches-story-card__number {
    position: absolute;
    top: 16px;
    right: 24px;
    color: rgb(9 76 183 / 0.11);
    font-family: var(--home-font-heading);
    font-size: clamp(58px, 5vw, 78px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
}

.branches-story-card__location {
    position: relative;
    margin: 0 0 10px;
    width: fit-content;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bdgs-orange);
    color: var(--mobile-brand-text, var(--primary-color, #094cb7));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.branches-story-card h3 {
    position: relative;
    max-width: 330px;
    margin: 0;
    color: #132f5f;
    font-family: var(--home-font-heading);
    font-size: clamp(22px, 1.75vw, 29px);
    font-weight: 650;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.branches-story-progress {
    display: grid;
    width: min(100% - 48px, 1240px);
    margin: clamp(22px, 3vh, 36px) auto 0;
    grid-template-columns: auto minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    color: rgb(255 255 255 / 0.78);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.branches-story-progress__line {
    position: relative;
    display: block;
    height: 2px;
    overflow: hidden;
    background: rgb(255 255 255 / 0.3);
}

.branches-story-progress__fill {
    position: absolute;
    inset: 0;
    background: var(--bdgs-orange);
    transform: scaleX(0);
    transform-origin: left center;
}

.branches-story-progress__hint {
    display: inline-flex;
    margin-left: clamp(14px, 3vw, 46px);
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-transform: uppercase;
}

.branches-story-progress__hint span {
    color: var(--bdgs-orange);
    font-size: 20px;
}

@media (max-width: 767px) {
    .branches-horizontal-section {
        --branch-card-width: min(86vw, 380px);
        height: auto;
        min-height: 720px;
    }

    .branches-horizontal-section__content {
        min-height: 720px;
        padding: 62px 0 34px;
    }

    .branches-story-intro {
        width: min(100% - 32px, 620px);
        text-align: left;
    }

    .branches-story-intro__eyebrow::before {
        display: none;
    }

    .branches-story-intro h2 {
        font-size: clamp(33px, 10vw, 44px);
    }

    .branches-story-intro p {
        margin-top: 14px;
        font-size: 14px;
    }

    .branches-viewport {
        margin-top: 30px;
        padding-bottom: 10px;
    }

    .branches-track {
        padding-inline: 7vw;
        gap: 18px;
        will-change: auto;
    }

    .branches-story-card {
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    .branches-story-card__paper {
        min-height: 410px;
    }

    .branches-story-card__media {
        height: 180px;
    }

    .branches-story-card__body {
        min-height: 230px;
        padding: 28px 24px 26px;
    }

    .branches-story-card__pin {
        display: none;
    }

    .branches-story-progress {
        width: calc(100% - 32px);
        grid-template-columns: auto minmax(80px, 1fr) auto;
    }

    .branches-story-progress__hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .branches-horizontal-section {
        height: auto;
        min-height: 720px;
    }

    .branches-horizontal-section__content {
        min-height: 720px;
    }

    .branches-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .branches-track {
        will-change: auto;
    }

    .branches-story-card {
        opacity: 1;
        transform: none;
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .curriculum-showcase__image img,
    .learning-stage__media,
    .learning-stage__media img,
    .learning-stage__label,
    .learning-stage__details,
    .facility-stage,
    .parent-review-card,
    .stat-card {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile spacing, readable copy and comfortably sized carousel controls. */
@media (max-width: 767px) {
    body.page-home { --home-section-space: 40px; }
    .home-stats { padding: 32px 0 0; }
    .home-stats__header { margin-bottom: 18px; gap: 12px; }
    .home-stats__header h2 { margin-top: 0; }
    .community-stats__scroller { padding-bottom: 16px; }
    .home-about { padding: 40px 20px; }
    .home-about__inner { gap: 28px; }
    .home-about__lead,
    .home-about__body p { font-size: 16px; line-height: 1.85; }
    .home-about__body { margin-top: 22px; gap: 22px; }
    .home-about__visual { padding-bottom: 12px; }
    .learning-journey { padding-top: 40px; padding-bottom: 40px; }
    .school-day { padding-top: 40px; padding-bottom: 36px; }

    .home-stats__eyebrow,
    .home-about__eyebrow,
    .school-day__eyebrow,
    .curriculum-showcase__eyebrow { margin: 0 0 12px; }
    .school-day__heading .home-section-title,
    .curriculum-showcase__card .home-section-title { margin-top: 0; }

    .school-day__swiper { margin-top: 22px; }
    .school-day__slide { width: 88vw; padding-bottom: 0; }
    .school-day__stem,
    .school-day__marker,
    .school-day__label { display: none; }
    .school-day__swiper::after { content: none; }
    .school-day__media { height: auto; aspect-ratio: 3 / 2; }
    .school-day__body { min-height: 0; padding: 22px; }
    .school-day__card p { font-size: 15px; line-height: 1.7; }
    .school-day__footer { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .school-day__pagination { flex-wrap: wrap; justify-content: center; gap: 0; }
    .school-day__pagination .swiper-pagination-bullet,
    .hero-pagination .swiper-pagination-bullet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin: 0 !important;
        border: 0;
        background: transparent;
        opacity: 1;
    }
    .school-day__pagination .swiper-pagination-bullet::before,
    .hero-pagination .swiper-pagination-bullet::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #7c8fa6;
    }
    .hero-pagination .swiper-pagination-bullet::before { background: #fff; border: 1px solid #627487; }
    .school-day__pagination .swiper-pagination-bullet-active::before { width: 24px; background: var(--school-day-blue); }
    .hero-pagination .swiper-pagination-bullet-active::before { width: 24px; background: var(--bdgs-yellow); }
    body.page-home .hero-pagination.swiper-pagination { top: calc(var(--mobile-hero-image-height) - 48px); }
    .school-day__pagination .swiper-pagination-bullet:focus-visible,
    .hero-pagination .swiper-pagination-bullet:focus-visible { outline: 2px solid #054285; outline-offset: -4px; }

    #why-us { padding: 40px 0; }
    #why-us .container-custom { width: calc(100% - 32px); }
    #why-us .text-center { margin-bottom: 20px; }
    #why-us .whyUs { padding: 8px 0 24px; }
    .parent-review-content { min-height: 0; padding: 22px 20px; }
    .parent-review-content > p { margin-top: 20px; font-size: 15px; line-height: 1.75; }
    .parent-review-content > p::before { height: 28px; margin-bottom: 8px; font-size: 58px; }
    .parent-review-content > .flex:first-child { gap: 8px; }
    .parent-review-content > .flex:first-child > .flex { min-width: 0; gap: 8px; }
    .parent-review-content img { width: 44px; height: 44px; flex-basis: 44px; }
    .parent-review-facebook { width: 34px; height: 34px; flex-basis: 34px; }
    .parent-review-controls { margin-top: 0; gap: 10px; }
}

/* Touch layouts keep all school stages open; image height is independent of copy. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    .learning-journey .learning-journey__panels {
        grid-template-columns: 1fr;
        width: min(100%, 680px);
        max-width: 680px;
        height: auto;
        gap: 24px;
        overflow: visible;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .learning-journey .learning-stage {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 28px;
        box-shadow: 0 12px 30px rgb(20 43 72 / .1);
    }
    /* Override the desktop hover/focus rules, including the default active card. */
    .learning-journey .learning-stage .learning-stage__details {
        position: relative;
        inset: auto;
        min-height: 120px;
        padding: 24px 18px;
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
    .learning-journey .learning-stage .learning-stage__media {
        position: relative;
        inset: auto !important;
        flex: none;
        width: 100%;
        height: clamp(380px, 70vw, 520px);
        transition: none;
    }
    .learning-journey .learning-stage .learning-stage__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none !important;
        transition: none;
    }
    .learning-journey .learning-stage .learning-stage__label { display: none; }
    .learning-journey .learning-stage .learning-stage__shade { background: none; }
    .learning-journey .learning-stage__details h3 { font-size: clamp(27px, 4vw, 34px); }
    .learning-journey .learning-stage__details p { margin-top: 10px; font-size: 15px; }
}

.school-day__media { position: relative; height: auto; aspect-ratio: 3 / 2; background: #edf3f6; }
.school-day__media img { object-fit: contain; object-position: center; }
.school-day__slide:hover .school-day__media img { transform: none; }
.school-day__media img[hidden] { display: none; }
.school-day__playback { min-height:44px; padding:8px 14px; border:1px solid #bfdce9; border-radius:24px; background:#fff; color:var(--mobile-brand-text, #054285); font-size:13px; cursor:pointer; }
.school-day__photo-arrow { position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #d6e7f2; border-radius:50%; background:rgb(255 255 255 / .92); color:var(--mobile-brand-text, #054285); font-size:32px; line-height:1; cursor:pointer; transform:translateY(-50%); box-shadow:0 2px 8px #173a5814; }
.school-day .school-day__photo-arrow { background: #fff; color: #054285; border: 1px solid #b9cee0; box-shadow: 0 3px 12px rgb(8 35 70 / .22); opacity: 1; }
.school-day__photo-arrow svg { display: block; width: 24px; height: 24px; flex-shrink: 0; pointer-events: none; }
.school-day .school-day__photo-arrow:hover { background: #054285; color: #fff; border-color: #054285; }
.school-day__photo-prev { left:8px; }
.school-day__photo-next { right:8px; }
.school-day__controls { flex-wrap:wrap; }
.school-day__playback:focus-visible, .school-day__photo-arrow:focus-visible { outline:3px solid #2ea2d4; outline-offset:3px; }

@media (max-width: 767px) {
    .school-day__pagination { display: none; }
}
