/* =========================================================
   Bridge International Schools — design system v2
   Direction: calm & premium — warm cream, deep navy, thin gold
   accents, large photography with soft corners, no ornaments.
   Font: IBM Plex Sans Arabic (Arabic + Latin, one family).
   Mobile-first: 320 → 480 → 768 → 1024 → 1280 → 1600+.
   ========================================================= */

:root {
    /* Brand — calm premium palette */
    --bridge-navy: #14214A;
    --bridge-navy-deep: #0E1838;
    --bx-gold: #D9A620;
    --bx-gold-ink: #8A6A12;
    --bridge-blue: #3790BA;
    --bridge-teal: #297573;
    --bridge-red: #DD372E;
    --bridge-yellow: #FDBE11;

    /* Surfaces & text */
    --bx-canvas: #F7F4EE;   /* warm cream, not white (survey note #6) */
    --bx-paper: #FFFFFF;
    --bx-tint: #EFE9DE;    /* sand band */
    --bx-cream: #EFE9DE;
    --bx-ink: #18213A;
    --bx-muted: #566078;
    --bx-line: #E3DACA;

    /* Type scale (fluid 320px → 1440px) */
    --fs-xs: .8125rem;                                   /* 13 */
    --fs-sm: .9375rem;                                   /* 15 */
    --fs-base: clamp(1rem, .97rem + .14vw, 1.0625rem);   /* 16 → 17 */
    --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);   /* 17 → 20 */
    --fs-h3: clamp(1.125rem, 1.06rem + .32vw, 1.375rem); /* 18 → 22 */
    --fs-h2: clamp(1.625rem, 1.35rem + 1.4vw, 2.625rem); /* 26 → 42 */
    --fs-h1: clamp(2rem, 1.6rem + 2.1vw, 3.375rem);      /* 32 → 54 */
    --fs-display: clamp(2.25rem, 1.65rem + 3.1vw, 4.25rem); /* 36 → 68 */

    --lh-tight: 1.3;
    --lh-heading: 1.4;
    --lh-body: 1.85;

    /* Layout */
    --bx-max: 1200px;
    --bx-gutter: clamp(16px, 4.5vw, 32px);
    --bx-section: clamp(52px, 7vw, 96px);
    --bx-radius: 24px;
    --bx-radius-sm: 16px;
    --bx-arch: 28px;
    --bx-shadow: 0 30px 60px -36px rgba(14, 24, 56, .45);
    --bx-shadow-sm: 0 12px 30px -24px rgba(14, 24, 56, .35);
    --bx-header-h: 72px;
    --bx-ease: cubic-bezier(.2, .7, .2, 1);
    --bx-rainbow: linear-gradient(90deg, var(--bx-gold), var(--bx-gold));
}

/* ---------------------------------------------------------
   Base & typography
   --------------------------------------------------------- */

html {
    scroll-padding-top: calc(var(--bx-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body,
body.bx-lang-en,
body.bx-lang-ar {
    margin: 0;
    background: var(--bx-canvas);
    color: var(--bx-ink);
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.bx-lang-en {
    --lh-body: 1.7;
}

/* Every element inherits the one family (old main.css used Cairo/Poppins). */
body *,
body *::before,
body *::after {
    font-family: inherit;
}

h1, h2, h3, h4 {
    color: var(--bridge-navy);
    font-weight: 700;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 3px;
}

.bx-container {
    width: 100%;
    max-width: calc(var(--bx-max) + 2 * var(--bx-gutter));
    margin-inline: auto;
    padding-inline: var(--bx-gutter);
    box-sizing: border-box;
}

.bx-skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -80px;
    z-index: 10001;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    font-weight: 700;
    text-decoration: none;
}

.bx-skip:focus {
    top: 12px;
}

.bx-icon {
    width: 1.2em;
    height: 1.2em;
    flex: none;
}

html:not([dir="rtl"]) .bx-icon-arrow {
    transform: scaleX(-1);
}

/* Headline scale — used everywhere */
.bx-display {
    margin: 0;
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -.01em;
}

.bx-title,
.bx-section h2 {
    margin: 0;
    font-size: var(--fs-h2);
    line-height: var(--lh-heading);
}

.bx-h3 {
    margin: 0;
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.5;
}

.bx-lead {
    margin: 0;
    max-width: 62ch;
    color: var(--bx-muted);
    font-size: var(--fs-lead);
    line-height: 1.8;
}

/* Navy highlight box — the school's social-post style */
.bx-mark {
    padding: .02em .32em .08em;
    border-radius: .28em;
    background: var(--bridge-navy);
    color: #fff;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Kicker: the three "heads" from the logo + label */
.bx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--bridge-blue);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .01em;
}

.bx-kicker-light {
    color: var(--bridge-yellow);
}

.bx-dots {
    display: inline-flex;
    gap: 4px;
}

.bx-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bridge-blue);
}

.bx-dots i:nth-child(2) {
    background: var(--bridge-yellow);
    transform: translateY(-3px);
}

.bx-dots i:nth-child(3) {
    background: var(--bridge-teal);
}

/* Section head (kicker → title → lead), always start-aligned */
.bx-head {
    display: grid;
    gap: 0;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.bx-head .bx-title {
    margin-bottom: 12px;
}

.bx-head-row {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 20px;
}

@media (min-width: 768px) {
    .bx-head-row {
        grid-template-columns: 1fr auto;
    }
}

.bx-head-light .bx-title {
    color: #fff;
}

.bx-head-light .bx-lead {
    color: rgba(255, 255, 255, .78);
}

.bx-head-light .bx-kicker {
    color: var(--bridge-yellow);
}

/* Rainbow arcs (decorative) */
.bx-arcs path {
    fill: none;
    stroke-width: 22;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bxDraw 1.6s var(--bx-ease) forwards;
}

.bx-arcs path:nth-child(2) { animation-delay: .2s; }
.bx-arcs path:nth-child(3) { animation-delay: .4s; }

@keyframes bxDraw {
    to { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------
   Buttons & links
   --------------------------------------------------------- */

.bx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--bx-ease), box-shadow .25s var(--bx-ease), background-color .25s, color .25s, border-color .25s;
}

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

.bx-btn-lg {
    min-height: 54px;
    padding: 12px 28px;
    font-size: var(--fs-base);
}

.bx-btn-primary {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    box-shadow: 0 12px 26px -14px rgba(253, 190, 17, .95);
}

.bx-btn-primary:hover {
    background: #FFCB3A;
}

.bx-btn-navy {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-btn-blue {
    background: var(--bridge-blue);
    color: #fff;
}

.bx-btn-teal {
    background: var(--bridge-teal);
    color: #fff;
}

.bx-btn-red {
    background: var(--bridge-red);
    color: #fff;
}

.bx-btn-light {
    background: #fff;
    color: var(--bridge-navy);
}

.bx-btn-outline {
    border-color: var(--bridge-navy);
    color: var(--bridge-navy);
    background: transparent;
}

.bx-btn-outline:hover {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-btn-outline-light {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.bx-btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
}

.bx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--bridge-yellow);
    color: var(--bridge-navy);
    font-weight: 600;
    text-decoration: none;
}

.bx-link .bx-icon {
    transition: transform .25s var(--bx-ease);
}

html[dir="rtl"] .bx-link:hover .bx-icon {
    transform: translateX(-4px);
}

html:not([dir="rtl"]) .bx-link:hover .bx-icon {
    transform: scaleX(-1) translateX(-4px);
}

/* ---------------------------------------------------------
   Top bar (≥ 1024)
   --------------------------------------------------------- */

.bx-topbar {
    display: none;
    background: var(--bridge-navy-deep);
    color: rgba(255, 255, 255, .82);
    font-size: var(--fs-xs);
}

.bx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
}

.bx-topbar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-topbar-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.bx-topbar-info a:hover {
    color: #fff;
}

.bx-topbar-info b,
.bx-topbar-info bdi {
    font-weight: 600;
    color: #fff;
}

.bx-topbar .bx-icon {
    color: var(--bridge-yellow);
}

@media (min-width: 1024px) {
    .bx-topbar {
        display: block;
    }
}

/* ---------------------------------------------------------
   Social lists
   --------------------------------------------------------- */

.bx-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.bx-social-mini a span,
.bx-social-round a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.bx-social-mini a {
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255, 255, 255, .8);
}

.bx-social-mini a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.bx-social-mini .bx-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.bx-social-round a {
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .25s, transform .25s var(--bx-ease), color .25s;
}

.bx-social-round a:hover {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    transform: translateY(-2px);
}

.bx-social-pills a {
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--bx-shadow-sm);
    transition: transform .25s var(--bx-ease);
}

.bx-social-pills a:hover {
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.bx-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--bx-line);
    transition: box-shadow .3s;
}

.bx-header.is-scrolled {
    box-shadow: 0 12px 30px -20px rgba(17, 28, 58, .45);
}

.bx-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--bx-header-h);
}

.bx-logo {
    flex: none;
    display: block;
    width: 64px;
    height: 52px;
    overflow: hidden;
}

.bx-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 52%;
    transform: scale(1.22);
}

.bx-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.bx-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 12px;
    border: 1.5px solid var(--bx-line);
    border-radius: 999px;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color .25s, background .25s;
}

.bx-lang:hover {
    border-color: var(--bridge-blue);
    background: var(--bx-tint);
}

.bx-header-cta {
    display: none;
}

.bx-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--bx-tint);
    color: var(--bridge-navy);
    cursor: pointer;
}

.bx-burger .bx-icon {
    width: 24px;
    height: 24px;
}

.bx-burger .bx-icon-close,
.bx-burger[aria-expanded="true"] .bx-icon-menu {
    display: none;
}

.bx-burger[aria-expanded="true"] .bx-icon-close {
    display: block;
}

/* Drawer (mobile/tablet): full-screen layer clips the panel */
.bx-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    overflow: hidden;
    background: rgba(17, 28, 58, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background .35s, visibility .4s;
}

.bx-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    background: rgba(17, 28, 58, .5);
}

.bx-nav-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(380px, 88vw);
    padding: 88px 22px 28px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -30px 0 60px -30px rgba(17, 28, 58, .5);
    transform: translateX(-105%);
    transition: transform .4s var(--bx-ease);
    box-sizing: border-box;
}

html:not([dir="rtl"]) .bx-nav-panel {
    transform: translateX(105%);
}

.bx-nav.is-open .bx-nav-panel {
    transform: none;
}

.bx-nav-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-nav-list a {
    position: relative;
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--bx-line);
    color: var(--bridge-navy);
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
}

.bx-nav-list a[aria-current="page"] {
    color: var(--bridge-blue);
}

.bx-nav-extra {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.bx-nav-dept,
.bx-nav-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bx-tint);
    color: var(--bridge-navy);
    text-decoration: none;
}

.bx-nav-dept span {
    grid-column: 1 / -1;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-nav-dept a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bridge-navy);
    font-weight: 600;
    text-decoration: none;
}

.bx-nav-dept a + a {
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
}

body.bx-nav-open {
    overflow: hidden;
}

@media (min-width: 480px) {
    .bx-lang {
        padding-inline: 14px;
    }
}

@media (min-width: 768px) {
    :root {
        --bx-header-h: 78px;
    }

    .bx-logo {
        width: 80px;
        height: 62px;
    }

    .bx-header-cta {
        display: inline-flex;
    }
}

@media (min-width: 1200px) {
    .bx-burger {
        display: none;
    }

    .bx-nav {
        position: static;
        flex: 1;
        overflow: visible;
        background: none;
        visibility: visible;
        pointer-events: auto;
    }

    .bx-nav-panel {
        position: static;
        width: auto;
        padding: 0;
        overflow: visible;
        background: none;
        box-shadow: none;
        transform: none !important;
    }

    .bx-nav-list {
        display: flex;
        justify-content: center;
        gap: clamp(14px, 1.6vw, 28px);
    }

    .bx-nav-list a {
        padding: 8px 2px;
        border: 0;
        font-size: var(--fs-sm);
        white-space: nowrap;
    }

    .bx-nav-list a::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        height: 3px;
        border-radius: 3px;
        background: var(--bx-rainbow);
        transform: scaleX(0);
        transition: transform .3s var(--bx-ease);
    }

    .bx-nav-list a:hover::after,
    .bx-nav-list a[aria-current="page"]::after {
        transform: scaleX(1);
    }

    .bx-nav-list a[aria-current="page"] {
        color: var(--bridge-navy);
    }

    .bx-nav-extra {
        display: none;
    }

    body.bx-nav-open {
        overflow: auto;
    }
}

/* ---------------------------------------------------------
   Sections & bands
   --------------------------------------------------------- */

.bx-section {
    position: relative;
    padding-block: var(--bx-section);
}

.bx-section p {
    margin-top: 0;
}

.bx-band-tint {
    background: var(--bx-tint);
}

.bx-section-tight {
    padding-block: clamp(32px, 5vw, 64px);
}

.bx-band-navy {
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(55, 144, 186, .35), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(41, 117, 115, .35), transparent 42%),
        var(--bridge-navy);
    color: #fff;
}

.bx-band-navy p {
    color: rgba(255, 255, 255, .8);
}



/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.bx-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
    background:
        radial-gradient(circle at 85% 15%, rgba(55, 144, 186, .45), transparent 38%),
        radial-gradient(circle at 10% 90%, rgba(41, 117, 115, .38), transparent 40%),
        var(--bridge-navy);
    color: #fff;
    isolation: isolate;
}


.bx-hero-grid {
    display: grid;
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.bx-hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .85);
    font-size: var(--fs-xs);
    font-weight: 500;
}

.bx-hero-kicker span[lang="en"] {
    color: var(--bridge-yellow);
    font-weight: 600;
    letter-spacing: .14em;
}

.bx-hero-kicker-sep {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .45);
}

.bx-hero h1 {
    color: #fff;
}

.bx-hero .bx-mark {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

.bx-hero-lead {
    margin: 18px 0 28px;
    max-width: 56ch;
    color: rgba(255, 255, 255, .86);
    font-size: var(--fs-lead);
    line-height: 1.85;
}

.bx-hero-actions {
    display: grid;
    gap: 12px;
}

.bx-hero-lines {
    display: grid;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .7);
    font-size: var(--fs-sm);
}

.bx-hero-lines li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.bx-hero-lines a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, .45);
}

.bx-hero-text {
    animation: bxRise .9s var(--bx-ease) both .1s;
}

@keyframes bxRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* Visual: arch photo + rainbow arcs + logo "heads" */
.bx-hero-visual {
    position: relative;
    width: min(100% - 48px, 380px);
    margin-inline: auto;
}

/* Rainbow hugging the arch: arc centre = arch centre (frame r = 260/520 of width) */
.bx-arch-wrap {
    position: relative;
    margin-top: 16%;
}

.bx-hero-rainbow {
    position: absolute;
    top: 0;
    left: -17.31%;
    width: 134.62%;
    max-width: none;
    margin-top: -23.08%;
    z-index: 0;
    overflow: visible;
}

.bx-hero-rainbow path {
    fill: none;
    stroke-width: 20;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bxDraw 1.6s var(--bx-ease) forwards .3s;
}

.bx-hero-rainbow path:nth-child(2) { animation-delay: .5s; }
.bx-hero-rainbow path:nth-child(3) { animation-delay: .7s; }

.bx-arch {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--bx-arch);
    background: var(--bridge-navy-deep);
}

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

.bx-hero-arch {
    z-index: 1;
    aspect-ratio: 4 / 5;
    border: 6px solid #fff;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}

.bx-hero-arch img {
    object-position: 50% 70%;
    animation: bxZoom 16s ease-out both;
}

@keyframes bxZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.bx-blob {
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    animation: bxFloat 6s ease-in-out infinite alternate;
}

.bx-blob-blue { width: 34px; height: 34px; background: var(--bridge-blue); top: 30%; inset-inline-start: -2px; }
.bx-blob-teal { width: 28px; height: 28px; background: var(--bridge-teal); top: 44%; inset-inline-end: -4px; animation-delay: -2s; }
.bx-blob-yellow { width: 22px; height: 22px; background: var(--bridge-yellow); top: 4%; inset-inline-start: 46%; animation-delay: -4s; }

@keyframes bxFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

.bx-float {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.4;
    box-shadow: var(--bx-shadow);
}

.bx-float-top {
    top: 22%;
    inset-inline-end: -6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.bx-float-top b {
    color: var(--bridge-blue);
    font-size: var(--fs-sm);
}

.bx-float-bottom {
    bottom: 8%;
    inset-inline-start: -6px;
    max-width: 210px;
    background: var(--bridge-yellow);
}

.bx-float-bottom .bx-icon {
    color: var(--bridge-red);
}

/* Facts strip */
.bx-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}

.bx-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--bx-radius-sm);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.bx-facts .bx-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(253, 190, 17, .16);
    color: var(--bridge-yellow);
}

.bx-facts strong {
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
}

.bx-facts span {
    color: rgba(255, 255, 255, .68);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

@media (min-width: 480px) {
    .bx-hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .bx-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bx-hero-grid {
        grid-template-columns: 1.15fr .85fr;
    }

    .bx-hero-visual {
        width: min(100% - 80px, 400px);
    }

    .bx-facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .bx-float-top {
        inset-inline-end: -28px;
    }

    .bx-float-bottom {
        inset-inline-start: -36px;
    }
}

/* ---------------------------------------------------------
   Statement (about)
   --------------------------------------------------------- */

.bx-statement {
    overflow: hidden;
    background: var(--bridge-red);
    color: #fff;
    isolation: isolate;
}


.bx-statement .bx-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: var(--fs-h1);
    line-height: 1.35;
}

.bx-statement .bx-lead {
    color: rgba(255, 255, 255, .92);
}

.bx-split {
    display: grid;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.bx-pillars {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.bx-pillars li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 600;
}

.bx-pillar-n {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bridge-navy);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-split-media {
    position: relative;
    width: min(100%, 440px);
    margin-inline: auto;
}

.bx-arch-tall {
    aspect-ratio: 4 / 5;
    border: 8px solid rgba(255, 255, 255, .9);
}

.bx-circle-photo {
    position: absolute;
    bottom: -18px;
    inset-inline-start: -14px;
    width: 38%;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border: 6px solid var(--bridge-yellow);
    border-radius: 50%;
    box-shadow: var(--bx-shadow);
}

.bx-circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .bx-split {
        grid-template-columns: 1.1fr .9fr;
    }
}

/* ---------------------------------------------------------
   Programs
   --------------------------------------------------------- */

.bx-programs-grid {
    display: grid;
    gap: 24px;
}

.bx-program {
    --accent: var(--bridge-blue);
    display: flex;
    flex-direction: column;
    padding: 14px 14px 0;
    border-radius: var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
    transition: transform .35s var(--bx-ease), box-shadow .35s var(--bx-ease);
}

.bx-program-sped {
    --accent: var(--bridge-teal);
}

.bx-program:hover {
    transform: translateY(-6px);
    box-shadow: var(--bx-shadow);
}

.bx-program-media {
    aspect-ratio: 16 / 10;
    border-radius: 999px 999px 18px 18px / 220px 220px 18px 18px;
}

.bx-program-media img {
    transition: transform .8s var(--bx-ease);
}

.bx-program:hover .bx-program-media img {
    transform: scale(1.05);
}

.bx-program-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 20px 10px 26px;
}

.bx-tag {
    align-self: flex-start;
    margin: 0;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-program p {
    margin: 0;
    color: var(--bx-muted);
}

.bx-program .bx-tag,
.bx-glance-card .bx-tag {
    color: #fff;
}

.bx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 0;
    list-style: none;
}

html[dir="rtl"] .bx-chips[dir="ltr"] {
    justify-content: flex-end;
}

.bx-chips li {
    padding: 4px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-program-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: auto;
    padding-top: 6px;
}

@media (min-width: 900px) {
    .bx-programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .bx-program {
        padding: 18px 18px 0;
    }

    .bx-program-body {
        padding: 24px 12px 30px;
    }
}

/* ---------------------------------------------------------
   Admissions — the bridge
   --------------------------------------------------------- */

.bx-bridge {
    position: relative;
}

.bx-bridge-svg {
    display: none;
}

.bx-steps {
    position: relative;
    display: grid;
    gap: 22px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

/* mobile: vertical path */
.bx-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    inset-inline-start: 23px;
    border-inline-start: 3px dashed rgba(253, 190, 17, .45);
}

.bx-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
}

.bx-step-num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 0 0 7px var(--bridge-navy), 0 0 0 9px rgba(253, 190, 17, .35);
}

.bx-step .bx-h3 {
    color: #fff;
    align-self: end;
}

.bx-step p {
    margin: 4px 0 0;
    font-size: var(--fs-sm);
}

@media (min-width: 900px) {
    .bx-bridge {
        padding-top: 0;
    }

    .bx-bridge-svg {
        display: block;
        width: 100%;
        height: 150px;
        margin-bottom: -40px;
    }

    .bx-bridge-deck {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 2s var(--bx-ease) .2s;
    }

    .bx-bridge.is-visible .bx-bridge-deck {
        stroke-dashoffset: 0;
    }

    .bx-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .bx-steps::before {
        display: none;
    }

    .bx-step {
        display: block;
        text-align: center;
    }

    .bx-step:nth-child(1),
    .bx-step:nth-child(4) { margin-top: -6px; }
    .bx-step:nth-child(2),
    .bx-step:nth-child(3) { margin-top: -78px; }

    .bx-step-num {
        margin: 0 auto 16px;
        width: 56px;
        height: 56px;
    }

    .bx-step p {
        max-width: 26ch;
        margin-inline: auto;
    }
}

.bx-admissions-foot {
    display: grid;
    gap: 20px;
    padding: 20px;
    border-radius: var(--bx-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}

.bx-fees-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bx-fees-note .bx-icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgba(253, 190, 17, .16);
    color: var(--bridge-yellow);
}

.bx-fees-note p {
    margin: 0;
    font-size: var(--fs-sm);
}

.bx-fees-note strong {
    color: #fff;
    font-weight: 600;
}

.bx-admissions-actions {
    display: grid;
    gap: 12px;
}

@media (min-width: 640px) {
    .bx-admissions-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .bx-admissions-foot {
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 22px 26px;
    }
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.bx-cards {
    display: grid;
    gap: 20px;
}

@media (min-width: 600px) {
    .bx-cards-4,
    .bx-cards-3,
    .bx-cards-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bx-cards-4 { grid-template-columns: repeat(4, 1fr); }
    .bx-cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.bx-card {
    --accent: var(--bridge-blue);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    border-radius: var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
    transition: transform .35s var(--bx-ease), box-shadow .35s var(--bx-ease);
}

.bx-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
}

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

.bx-card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 50px;
    margin-bottom: 6px;
    border-radius: 999px 999px 12px 12px;
    background: color-mix(in srgb, var(--accent) 15%, #fff);
    color: var(--accent);
}

.bx-card-icon .bx-icon {
    width: 26px;
    height: 26px;
}

.bx-card p {
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.bx-card:nth-child(4n+1) { --accent: var(--bridge-blue); }
.bx-card:nth-child(4n+2) { --accent: #D9A300; }
.bx-card:nth-child(4n+3) { --accent: var(--bridge-teal); }
.bx-card:nth-child(4n+4) { --accent: var(--bridge-red); }

/* ---------------------------------------------------------
   Mosaic (facilities)
   --------------------------------------------------------- */

.bx-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
}

.bx-mosaic-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bridge-navy);
    text-decoration: none;
}

.bx-mosaic-item.is-wide {
    grid-column: 1 / -1;
    grid-row: span 2;
    border-radius: 999px 999px 18px 18px / 160px 160px 18px 18px;
}

.bx-mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--bx-ease);
}

.bx-mosaic-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 28, 58, .8), transparent 55%);
}

.bx-mosaic-item span {
    position: absolute;
    inset-inline: 14px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-mosaic-item:hover img {
    transform: scale(1.06);
}

@media (min-width: 768px) {
    .bx-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 190px;
        gap: 16px;
    }

    .bx-mosaic-item.is-wide {
        grid-column: span 2;
        border-radius: 999px 999px 20px 20px / 240px 240px 20px 20px;
    }

    .bx-mosaic-item span {
        inset-inline: 18px;
        bottom: 14px;
        font-size: var(--fs-base);
    }
}

@media (min-width: 1280px) {
    .bx-mosaic {
        grid-auto-rows: 220px;
    }
}

/* ---------------------------------------------------------
   News & follow
   --------------------------------------------------------- */

.bx-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
}

.bx-news-media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bx-tint);
}

.bx-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bx-news-media .bx-news-logo {
    width: 40%;
    height: auto;
    object-fit: contain;
}

.bx-news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 20px 22px 24px;
}

.bx-news-body time {
    color: var(--bridge-blue);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-news-body .bx-h3 a {
    color: var(--bridge-navy);
    text-decoration: none;
}

.bx-news-body p {
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
}

.bx-news-body .bx-link {
    align-self: flex-start;
    margin-top: auto;
}

.bx-follow {
    position: relative;
    display: grid;
    gap: 24px;
    padding: clamp(26px, 5vw, 52px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--bridge-navy);
    color: #fff;
    isolation: isolate;
}


.bx-follow .bx-title {
    margin-bottom: 8px;
    color: #fff;
}

.bx-follow .bx-lead {
    color: rgba(255, 255, 255, .8);
}

.bx-follow .bx-lead b {
    color: var(--bridge-yellow);
    font-weight: 600;
}

@media (min-width: 1024px) {
    .bx-follow {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* ---------------------------------------------------------
   Contact card
   --------------------------------------------------------- */

.bx-contact {
    padding-top: 0;
}

.bx-contact-card {
    position: relative;
    display: grid;
    gap: 28px;
    padding: clamp(26px, 5vw, 56px);
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(55, 144, 186, .55), transparent 45%),
        linear-gradient(135deg, var(--bridge-navy), #243B72);
    color: #fff;
    box-shadow: var(--bx-shadow);
    isolation: isolate;
}

.bx-contact-arcs {
    position: absolute;
    bottom: -6px;
    inset-inline-end: -40px;
    width: min(340px, 60%);
    opacity: .25;
    z-index: -1;
}

.bx-contact-card .bx-title {
    margin-bottom: 10px;
    color: #fff;
}

.bx-contact-card .bx-lead {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .82);
}

.bx-contact-actions {
    display: grid;
    gap: 12px;
}

.bx-contact-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-contact-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.bx-contact-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

.bx-contact-line {
    display: grid;
    flex: 1;
    min-width: 0;
}

.bx-contact-line small {
    color: rgba(255, 255, 255, .66);
    font-size: var(--fs-xs);
}

.bx-contact-line a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

html[dir="rtl"] .bx-contact-line a[dir="ltr"] {
    text-align: right;
}

.bx-contact-wa {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
}

@media (min-width: 640px) {
    .bx-contact-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .bx-contact-card {
        grid-template-columns: 1.15fr 1fr;
        align-items: center;
        gap: 40px;
    }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.bx-footer {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    padding-top: 64px;
    overflow: hidden;
    background: var(--bridge-navy-deep);
    color: rgba(255, 255, 255, .75);
    isolation: isolate;
}


.bx-footer-arc {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 6px;
    background: var(--bx-rainbow);
}

.bx-footer-grid {
    display: grid;
    gap: 32px;
    padding-bottom: 44px;
}

.bx-footer-logo {
    display: inline-block;
    width: 140px;
    margin-bottom: 14px;
}

.bx-footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.bx-footer-brand p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .7);
    font-size: var(--fs-sm);
}

.bx-footer-brand .bx-footer-slogan {
    margin-bottom: 6px;
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 600;
}

.bx-footer-col h2 {
    margin: 4px 0 16px;
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 600;
}

.bx-footer-col ul {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
}

.bx-footer-col a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .2s;
}

.bx-footer-col a:hover {
    color: var(--bridge-yellow);
}

.bx-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bx-footer-contact li > span {
    display: grid;
}

.bx-footer-contact small {
    color: rgba(255, 255, 255, .55);
    font-size: var(--fs-xs);
}

.bx-footer-contact .bx-icon {
    margin-top: 4px;
    color: var(--bridge-yellow);
}

html[dir="rtl"] .bx-footer-contact a[dir="ltr"] {
    text-align: right;
}

.bx-footer-contact .bx-btn {
    color: var(--bridge-navy);
}

.bx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.bx-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 18px;
    font-size: var(--fs-xs);
}

.bx-footer-bottom p {
    margin: 0;
}

.bx-lang-footer {
    min-height: 40px;
    color: #fff;
    border-color: rgba(255, 255, 255, .2);
}

.bx-lang-footer:hover {
    background: rgba(255, 255, 255, .08);
}

@media (min-width: 600px) {
    .bx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bx-footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
        gap: 40px;
    }
}

/* ---------------------------------------------------------
   WhatsApp (choose department)
   --------------------------------------------------------- */

.bx-wa {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    z-index: 900;
    display: grid;
    justify-items: end;
    gap: 10px;
}

html[dir="rtl"] .bx-wa {
    justify-items: start;
}

.bx-wa-float {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform .25s var(--bx-ease);
}

.bx-wa-float .bx-icon {
    width: 30px;
    height: 30px;
}

.bx-wa-float .bx-icon-close,
.bx-wa-float.is-open .bx-icon-whatsapp {
    display: none;
}

.bx-wa-float.is-open .bx-icon-close {
    display: block;
    width: 24px;
    height: 24px;
}

.bx-wa-float:hover {
    transform: scale(1.06);
}

.bx-wa-menu {
    display: grid;
    gap: 8px;
    width: min(270px, calc(100vw - 36px));
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--bx-shadow);
    box-sizing: border-box;
}

.bx-wa-menu[hidden] {
    display: none;
}

.bx-wa-menu p {
    margin: 0 4px 2px;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-wa-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #EAF8EF;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
}

.bx-wa-menu a .bx-icon {
    color: #1DA851;
}

.bx-wa-menu a span {
    display: grid;
}

.bx-wa-menu small {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    font-weight: 400;
}

body.journey-open .bx-wa,
body.bx-nav-open .bx-wa {
    display: none;
}

/* ---------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------- */

.bx-js .bx-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--bx-ease), transform .8s var(--bx-ease);
}

.bx-js .bx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .bx-js .bx-reveal {
        opacity: 1;
        transform: none;
    }

    .bx-arcs path,
    .bx-bridge-deck {
        stroke-dashoffset: 0 !important;
    }
}

/* ---------------------------------------------------------
   Journey overlay (Arabic interactive path chooser)
   --------------------------------------------------------- */

.journey-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    overflow-y: auto;
    background: var(--bx-canvas);
    overscroll-behavior: contain;
}

.journey-overlay[hidden] {
    display: none;
}

body.journey-open {
    overflow: hidden;
}

.journey-overlay .journey-nav {
    position: fixed;
}

.journey-close {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10001;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--bridge-navy);
    box-shadow: var(--bx-shadow-sm);
    cursor: pointer;
}

.journey-close svg {
    width: 22px;
    height: 22px;
}

.journey-overlay .welcome-screen {
    display: none;
}

/* The old minimal header/footer are replaced by the v2 ones. */
.site-header,
.bridge-footer {
    display: none !important;
}

/* =========================================================
   Inner pages
   ========================================================= */

.bx-page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 104px);
    background:
        radial-gradient(circle at 100% 0%, rgba(55, 144, 186, .45), transparent 42%),
        var(--bridge-navy);
    color: #fff;
    isolation: isolate;
}


.bx-page-hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.bx-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bx-page-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(270deg, rgba(17, 28, 58, .96) 0%, rgba(17, 28, 58, .88) 50%, rgba(17, 28, 58, .6) 100%);
}

html:not([dir="rtl"]) .bx-page-hero.has-image::before {
    background: linear-gradient(90deg, rgba(17, 28, 58, .96) 0%, rgba(17, 28, 58, .88) 50%, rgba(17, 28, 58, .6) 100%);
}

.bx-page-hero-arcs {
    position: absolute;
    bottom: -4px;
    left: -30px;
    z-index: -1;
    width: min(300px, 46vw);
    opacity: .9;
}

html:not([dir="rtl"]) .bx-page-hero-arcs {
    left: auto;
    right: -30px;
}


.bx-page-hero-inner {
    animation: bxRise .8s var(--bx-ease) both;
}

.bx-page-hero h1 {
    max-width: 20ch;
    margin: 0 0 14px;
    color: #fff;
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: var(--lh-tight);
}

.bx-page-hero-lead {
    max-width: 60ch;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: var(--fs-lead);
    line-height: 1.8;
}

.bx-page-hero-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

@media (min-width: 480px) {
    .bx-page-hero-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

.bx-page-hero .bx-kicker {
    color: var(--bridge-yellow);
}

.bx-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .6);
    font-size: var(--fs-xs);
}

.bx-crumbs a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.bx-crumbs a:hover {
    color: var(--bridge-yellow);
}

/* Intro paragraph under the page hero */
.bx-intro {
    padding-block: clamp(40px, 6vw, 72px) 0;
}

.bx-intro p {
    max-width: 70ch;
    margin: 0;
    color: var(--bridge-navy);
    font-size: var(--fs-lead);
    font-weight: 500;
    line-height: 1.9;
}

/* Callout (cream) */
.bx-callout {
    position: relative;
    display: grid;
    gap: 16px;
    padding: clamp(24px, 4vw, 44px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--bx-cream);
}

.bx-callout .bx-title {
    font-size: var(--fs-h2);
}

.bx-callout p {
    margin: 0;
    color: var(--bx-ink);
    font-size: var(--fs-lead);
}

.bx-callout-arcs {
    position: absolute;
    bottom: -6px;
    inset-inline-end: -20px;
    width: 220px;
    opacity: .35;
}

@media (min-width: 1024px) {
    .bx-callout {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

/* FAQ */
.bx-faq {
    display: grid;
    gap: 12px;
    max-width: 880px;
}

.bx-faq details {
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--bx-line);
    box-shadow: var(--bx-shadow-sm);
}

.bx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: var(--bridge-navy);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
}

.bx-faq summary::-webkit-details-marker {
    display: none;
}

.bx-faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bx-tint);
    color: var(--bridge-blue);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .3s var(--bx-ease);
}

.bx-faq details[open] summary::after {
    transform: rotate(45deg);
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

.bx-faq details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--bx-muted);
    line-height: 1.9;
}

/* Stage cards (international) */
.bx-stages {
    display: grid;
    gap: 16px;
}

@media (min-width: 560px) {
    .bx-stages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bx-stages {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.bx-stage {
    --accent: var(--bridge-blue);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 22px 22px;
    border-radius: 999px 999px var(--bx-radius) var(--bx-radius) / 120px 120px var(--bx-radius) var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
    text-align: center;
    border-top: 6px solid var(--accent);
}

.bx-stage:nth-child(2) { --accent: #D9A300; }
.bx-stage:nth-child(3) { --accent: var(--bridge-teal); }
.bx-stage:nth-child(4) { --accent: var(--bridge-red); }

.bx-stage small {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-stage strong {
    color: var(--accent);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.bx-stage p {
    margin: 0 0 8px;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
}

.bx-stage .bx-btn {
    margin-top: auto;
}

/* ---------------------------------------------------------
   Admissions page
   --------------------------------------------------------- */

.bx-glance {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .bx-glance {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.bx-glance-card {
    --accent: var(--bridge-blue);
    position: relative;
    display: grid;
    gap: 14px;
    padding: 30px 26px 26px;
    border-radius: var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
    border-top: 5px solid var(--accent);
}

.bx-glance-teal {
    --accent: var(--bridge-teal);
}

.bx-glance-card .bx-program-tag,
.bx-glance-card .bx-tag {
    position: static;
    justify-self: start;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-glance-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-glance-card li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--bridge-navy);
    font-weight: 500;
}

.bx-glance-card li .bx-icon {
    margin-top: 5px;
    color: var(--accent);
}

.bx-glance-card .bx-link {
    justify-self: start;
}

.bx-apply {
    background:
        radial-gradient(circle at 0% 0%, rgba(253, 190, 17, .14), transparent 35%),
        var(--bx-canvas);
}

.bx-apply-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.bx-apply-card {
    padding: clamp(20px, 4vw, 44px);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--bx-shadow);
}

.bx-apply-card .bx-title {
    margin-bottom: 6px;
}

.bx-apply-lead {
    margin: 0 0 24px;
    color: var(--bx-muted);
}

.bx-apply-side {
    display: grid;
    gap: 18px;
}

.bx-side-card {
    padding: 24px;
    border-radius: var(--bx-radius);
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
}

.bx-side-card h3 {
    margin: 0 0 14px;
    font-size: var(--fs-h3);
    font-weight: 600;
}

.bx-checklist {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.bx-checklist .bx-icon {
    flex: none;
    width: 26px;
    height: 26px;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #E3F1F0;
    color: var(--bridge-teal);
}

.bx-side-dark {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-side-dark h3 {
    color: #fff;
}

.bx-side-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

.bx-side-row small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: var(--fs-xs);
}

.bx-side-row .bx-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

@media (min-width: 1024px) {
    .bx-apply-grid {
        grid-template-columns: 1.6fr 1fr;
        gap: 28px;
    }

    .bx-apply-side {
        position: sticky;
        top: calc(var(--bx-header-h) + 20px);
    }
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */

.bx-form {
    position: relative;
}

.bx-form-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .bx-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .bx-field-full {
        grid-column: 1 / -1;
    }
}

.bx-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bx-field label,
.bx-field legend {
    padding: 0;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-req {
    color: var(--bridge-red);
}

.bx-field input,
.bx-field select,
.bx-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid #D5DDE8;
    border-radius: 14px;
    background: #FBFCFE;
    color: var(--bx-ink);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.bx-field textarea {
    min-height: 110px;
    resize: vertical;
}

.bx-field input:focus,
.bx-field select:focus,
.bx-field textarea:focus {
    outline: none;
    border-color: var(--bridge-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(55, 144, 186, .18);
}

.bx-field .is-invalid,
.bx-consent .is-invalid {
    border-color: var(--bridge-red);
    box-shadow: 0 0 0 4px rgba(221, 55, 46, .12);
}

html[dir="rtl"] .bx-field input[dir="ltr"] {
    text-align: right;
}

.bx-file {
    padding: 10px 12px !important;
}

.bx-choice-row {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

@media (min-width: 480px) {
    .bx-choice-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 640px) {
    .bx-choice-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bx-choice {
    position: relative;
    cursor: pointer;
}

.bx-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bx-choice span {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 2px solid #D5DDE8;
    border-radius: 16px;
    background: #FBFCFE;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.bx-choice strong {
    color: var(--bridge-navy);
    font-weight: 600;
}

.bx-choice small {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    text-align: start;
}

.bx-choice input:checked + span {
    border-color: var(--bridge-blue);
    background: var(--bx-tint);
    box-shadow: 0 0 0 4px rgba(55, 144, 186, .12);
}

.bx-choice-teal input:checked + span {
    border-color: var(--bridge-teal);
    background: #E3F1F0;
    box-shadow: 0 0 0 4px rgba(41, 117, 115, .12);
}

.bx-choice input:focus-visible + span {
    outline: 3px solid var(--bridge-yellow);
    outline-offset: 2px;
}

.bx-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    cursor: pointer;
}

.bx-consent input {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    accent-color: var(--bridge-teal);
}

.bx-hp {
    position: absolute !important;
    top: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
    white-space: nowrap;
}

.bx-form-error {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #FDECEB;
    color: #A3241D;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-form-error .bx-btn {
    margin-top: 10px;
}

.bx-form-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .bx-form-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
}

.bx-form-note {
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-form-success {
    padding: 32px 8px 8px;
    text-align: center;
}

.bx-form-success:focus {
    outline: none;
}

.bx-success-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #E3F1F0;
    color: var(--bridge-teal);
    animation: bxPop .5s var(--bx-ease) both;
}

.bx-success-icon .bx-icon {
    width: 38px;
    height: 38px;
}

@keyframes bxPop {
    from { transform: scale(.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.bx-form-success h3 {
    margin: 0 0 8px;
    font-size: var(--fs-h3);
}

.bx-form-success p {
    margin: 0;
    color: var(--bx-muted);
}

/* ---------------------------------------------------------
   Gallery & lightbox (existing markup, new look)
   --------------------------------------------------------- */

.bx-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .bx-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1280px) {
    .bx-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bx-gallery-grid .gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--bx-tint);
    cursor: zoom-in;
}

.bx-gallery-grid .gallery-thumb:first-child {
    border-radius: 999px 999px 18px 18px / 120px 120px 18px 18px;
}

.bx-gallery-grid .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--bx-ease);
}

.bx-gallery-grid .gallery-thumb:hover img {
    transform: scale(1.06);
}

.gallery-lightbox {
    background: rgba(17, 28, 58, .94) !important;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    border-radius: 50% !important;
}

/* Feature list rows (inner pages) */
.bx-features {
    display: grid;
    gap: 16px;
}

@media (min-width: 600px) {
    .bx-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bx-features-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .bx-features-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Simple prose (single post, default page) */
.bx-prose {
    max-width: 760px;
}

.bx-prose p,
.bx-prose li {
    color: var(--bx-ink);
    line-height: 1.95;
}

.bx-prose img {
    border-radius: var(--bx-radius);
}

/* ---------------------------------------------------------
   Explore: facility rows, link cards; news pagination; posts
   --------------------------------------------------------- */

.bx-card-link {
    color: inherit;
    text-decoration: none;
}

.bx-card-link .bx-link {
    align-self: flex-start;
    margin-top: auto;
}

.bx-facility-list {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
}

.bx-facility {
    display: grid;
    gap: 22px;
    align-items: center;
}

.bx-facility-media {
    width: min(100%, 420px);
    aspect-ratio: 5 / 4;
    margin-inline: auto;
    border: 6px solid #fff;
    box-shadow: var(--bx-shadow-sm);
}

.bx-facility-text {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.bx-facility-text .bx-pillar-n {
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
}

@media (min-width: 900px) {
    .bx-facility {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .bx-facility.is-flip .bx-facility-media {
        order: 2;
    }
}

.bx-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.bx-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--bridge-navy);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--bx-shadow-sm);
}

.bx-pagination .current {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-post-media {
    aspect-ratio: 16 / 9;
    margin-bottom: 28px;
    border-radius: 999px 999px var(--bx-radius) var(--bx-radius) / 260px 260px var(--bx-radius) var(--bx-radius);
}

/* =========================================================
   Delight layer
   ========================================================= */

/* Logged-in admins: keep the sticky header below the WP toolbar */
body.admin-bar .bx-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .bx-header {
        top: 0;
    }
}

/* Scroll bridge — rainbow reading progress under the header */
.bx-progress {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
}

.bx-progress i {
    display: block;
    height: 100%;
    background: var(--bx-rainbow);
    transform: scaleX(0);
    transform-origin: right center;
}

html:not([dir="rtl"]) .bx-progress i {
    transform-origin: left center;
}

/* Hero parallax (pointer) */
.bx-hero-visual {
    --px: 0;
    --py: 0;
}

.bx-arch-wrap {
    transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0);
    transition: transform .6s var(--bx-ease);
}

.bx-hero-visual .bx-float-top {
    translate: calc(var(--px) * 22px) calc(var(--py) * 16px);
    transition: translate .6s var(--bx-ease);
}

.bx-hero-visual .bx-float-bottom {
    translate: calc(var(--px) * 28px) calc(var(--py) * 20px);
    transition: translate .6s var(--bx-ease);
}

/* ---------- Walk across the bridge ---------- */
.bx-walk {
    position: relative;
}

.bx-walk-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 999px 999px 24px 24px / 200px 200px 24px 24px;
    background: var(--bridge-navy);
    box-shadow: var(--bx-shadow);
    outline-offset: 6px;
    touch-action: pan-y;
    user-select: none;
}

.bx-walk-photo {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .8s var(--bx-ease), transform 1.6s var(--bx-ease);
}

.bx-walk-photo.is-active {
    opacity: 1;
    transform: none;
}

.bx-walk-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.bx-walk-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 28, 58, .85), rgba(17, 28, 58, 0) 55%);
    pointer-events: none;
}

.bx-walk-caption {
    position: absolute;
    inset-inline: 18px;
    bottom: 16px;
    z-index: 2;
    max-width: 560px;
    color: #fff;
}

.bx-walk-caption.is-in {
    animation: bxRise .6s var(--bx-ease) both;
}

.bx-walk-count {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--bridge-yellow);
    color: var(--bridge-navy);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-walk-caption .bx-h3 {
    color: #fff;
    font-size: clamp(1.25rem, 1.05rem + 1vw, 1.875rem);
}

.bx-walk-caption p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: var(--fs-sm);
}

.bx-walk-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--bridge-navy);
    box-shadow: var(--bx-shadow-sm);
    cursor: pointer;
    transition: transform .25s var(--bx-ease), background .25s;
}

.bx-walk-nav:hover {
    transform: scale(1.08);
    background: var(--bridge-yellow);
}

/* RTL: "next" goes left */
.bx-walk-next { left: 12px; }
.bx-walk-prev { right: 12px; }
.bx-walk-prev .bx-icon { transform: scaleX(-1); }

html:not([dir="rtl"]) .bx-walk-next { left: auto; right: 12px; }
html:not([dir="rtl"]) .bx-walk-prev { right: auto; left: 12px; }
html:not([dir="rtl"]) .bx-walk-prev .bx-icon { transform: none; }
html:not([dir="rtl"]) .bx-walk-next .bx-icon { transform: scaleX(-1); }

.bx-walk-bridge {
    position: relative;
    height: 96px;
    margin: 18px 6px 0;
}

.bx-walk-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    overflow: visible;
}

.bx-walk-trail {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .9s var(--bx-ease);
}

.bx-walk-stops {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-walk-stops li {
    position: absolute;
    transform: translate(-50%, -50%);
}

.bx-walk-stops button {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.bx-walk-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #C9D6E6;
    color: var(--bridge-navy);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px -4px rgba(17, 28, 58, .5);
    transition: background .3s, transform .3s var(--bx-ease);
}

.bx-walk-stops li.is-done .bx-walk-dot {
    background: var(--bridge-blue);
    color: #fff;
}

.bx-walk-stops button[aria-current="step"] .bx-walk-dot {
    background: var(--bridge-yellow);
    transform: scale(1.25);
}

.bx-walk-label {
    position: absolute;
    top: 34px;
    color: var(--bridge-navy);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s;
}

.bx-walk-stops button[aria-current="step"] .bx-walk-label {
    opacity: 1;
}

.bx-walk-kid {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 34px;
    transform: translate(-50%, -128%);
    transition: left .9s var(--bx-ease), top .9s var(--bx-ease);
    filter: drop-shadow(0 6px 6px rgba(17, 28, 58, .35));
    animation: bxHop .9s ease-in-out infinite alternate;
    pointer-events: none;
}

.bx-walk-kid svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes bxHop {
    from { margin-top: 0; }
    to { margin-top: -5px; }
}

@media (min-width: 768px) {
    .bx-walk-stage {
        aspect-ratio: 16 / 8.2;
        border-radius: 999px 999px 28px 28px / 320px 320px 28px 28px;
    }

    .bx-walk-caption {
        inset-inline: 32px;
        bottom: 28px;
    }

    .bx-walk-nav {
        width: 54px;
        height: 54px;
        margin-top: -27px;
    }

    .bx-walk-next { left: 22px; }
    .bx-walk-prev { right: 22px; }
    html:not([dir="rtl"]) .bx-walk-next { right: 22px; }
    html:not([dir="rtl"]) .bx-walk-prev { left: 22px; }

    .bx-walk-bridge {
        height: 120px;
        margin-top: 24px;
    }

    .bx-walk-dot {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .bx-walk-label {
        top: 40px;
        opacity: .55;
    }

    .bx-walk-kid {
        width: 36px;
        height: 42px;
    }
}

/* Confetti */
.bx-confetti {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.bx-confetti i {
    position: fixed;
    width: 10px;
    height: 14px;
    border-radius: 3px;
    animation: bxBurst 1.5s cubic-bezier(.15, .7, .3, 1) forwards;
}

@keyframes bxBurst {
    0% { transform: translate(0, 0) rotate(0); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 767px) {
    .bx-walk-nav {
        top: 34%;
        width: 40px;
        height: 40px;
    }

    .bx-walk-next { left: 8px; }
    .bx-walk-prev { right: 8px; }
    html:not([dir="rtl"]) .bx-walk-next { right: 8px; left: auto; }
    html:not([dir="rtl"]) .bx-walk-prev { left: 8px; right: auto; }

    .bx-walk-caption {
        inset-inline: 14px;
        bottom: 12px;
    }

    .bx-walk-caption .bx-h3 {
        font-size: 1.125rem;
    }

    .bx-walk-caption p {
        font-size: .8125rem;
        line-height: 1.7;
    }
}

/* =========================================================
   CALM PREMIUM THEME — final layer (cream · navy · gold)
   ========================================================= */

/* Type: quieter weights, generous leading */
.bx-display,
.bx-title,
.bx-section h2,
.bx-page-hero h1 {
    font-weight: 600;
    letter-spacing: -.005em;
}

.bx-lang-en .bx-display,
.bx-lang-en .bx-title,
.bx-lang-en .bx-page-hero h1 {
    letter-spacing: -.02em;
}

.bx-h3 {
    font-weight: 600;
}

/* Key phrase: thin gold underline instead of boxes */
.bx-mark,
.bx-hero .bx-mark {
    padding: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--bx-gold);
    text-decoration-thickness: .08em;
    text-underline-offset: .28em;
}

.bx-hero .bx-mark {
    color: #F3D27A;
}

/* Kicker: short gold line + label */
.bx-kicker {
    gap: 12px;
    color: var(--bx-gold-ink);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .06em;
}

.bx-kicker-line {
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--bx-gold);
}

.bx-kicker-light,
.bx-head-light .bx-kicker,
.bx-page-hero .bx-kicker {
    color: #E9C766;
}

/* Buttons */
.bx-btn {
    font-weight: 500;
    letter-spacing: .01em;
}

.bx-btn-primary {
    background: #E8B634;
    color: var(--bridge-navy-deep);
    box-shadow: none;
}

.bx-btn-primary:hover {
    background: #F0C24A;
}

.bx-btn-blue,
.bx-btn-teal {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-btn-blue:hover,
.bx-btn-teal:hover,
.bx-btn-navy:hover {
    background: var(--bridge-navy-deep);
}

.bx-btn-outline-light {
    border-width: 1.5px;
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
}

.bx-link {
    border-bottom-width: 1.5px;
    border-bottom-color: var(--bx-gold);
    font-weight: 500;
}

/* Header */
.bx-topbar {
    background: var(--bridge-navy-deep);
}

.bx-topbar .bx-icon {
    color: #E9C766;
}

.bx-header {
    background: rgba(247, 244, 238, .94);
}

.bx-nav-list a {
    font-weight: 500;
}

.bx-nav-list a::after {
    height: 2px;
    background: var(--bx-gold);
}

.bx-burger,
.bx-nav-dept,
.bx-nav-line {
    background: #EFE9DE;
}

.bx-lang {
    border-color: var(--bx-line);
}

.bx-lang:hover {
    border-color: var(--bx-gold);
    background: #fff;
}

.bx-progress i {
    background: var(--bx-gold);
}

/* Hero */
.bx-hero {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 255, 255, .07), transparent 60%),
        var(--bridge-navy);
}

.bx-hero-kicker span[lang="en"] {
    color: #E9C766;
    font-weight: 500;
    letter-spacing: .18em;
}

.bx-hero-kicker-sep {
    background: var(--bx-gold);
    height: 1.5px;
}

.bx-hero-lead {
    color: rgba(255, 255, 255, .8);
}

.bx-hero-lines a {
    border-bottom-color: rgba(233, 199, 102, .5);
}

.bx-hero-visual {
    width: min(100%, 440px);
    margin-inline: auto;
}

.bx-hero-photo {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7);
}

.bx-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    pointer-events: none;
}

.bx-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 72%;
    animation: bxZoom 16s ease-out both;
}

.bx-hero-badge {
    position: absolute;
    bottom: 22px;
    inset-inline-start: -18px;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--bx-canvas);
    color: var(--bridge-navy);
    box-shadow: var(--bx-shadow);
    font-size: var(--fs-xs);
    translate: calc(var(--px, 0) * 18px) calc(var(--py, 0) * 12px);
    transition: translate .6s var(--bx-ease);
}

.bx-hero-badge b {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-hero-badge span {
    color: var(--bx-muted);
}

.bx-hero-photo {
    transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
    transition: transform .6s var(--bx-ease);
}

@media (max-width: 479px) {
    .bx-hero-badge {
        inset-inline-start: 10px;
        bottom: 12px;
    }
}

/* Facts: quiet row with hairlines */
.bx-facts {
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.bx-facts li {
    padding: 18px 4px;
    border: 0;
    border-radius: 0;
    background: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bx-facts .bx-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid rgba(233, 199, 102, .45);
    border-radius: 50%;
    background: none;
    color: #E9C766;
}

@media (min-width: 480px) {
    .bx-facts li:nth-child(odd) {
        padding-inline-end: 20px;
    }
}

@media (min-width: 1024px) {
    .bx-facts li {
        padding: 22px 20px 6px;
        border-bottom: 0;
    }

    .bx-facts li + li {
        border-inline-start: 1px solid rgba(255, 255, 255, .12);
    }

    .bx-facts li:first-child {
        padding-inline-start: 0;
    }
}

/* Statement (about): cream page, navy text, big photo */
.bx-statement {
    background: var(--bx-canvas);
    color: var(--bx-ink);
}

.bx-statement .bx-title {
    color: var(--bridge-navy);
}

.bx-statement .bx-lead {
    color: var(--bx-muted);
}

.bx-statement .bx-kicker,
.bx-statement .bx-kicker-light {
    color: var(--bx-gold-ink);
}

.bx-pillars li {
    padding: 16px 0;
    border-radius: 0;
    background: none;
    border-bottom: 1px solid var(--bx-line);
    color: var(--bridge-navy);
    font-weight: 500;
}

.bx-pillars li:first-child {
    border-top: 1px solid var(--bx-line);
}

.bx-pillar-n {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--bx-gold-ink);
    font-size: var(--fs-sm);
    font-weight: 600;
    min-width: 28px;
}

.bx-arch-tall {
    border: 0;
    box-shadow: var(--bx-shadow);
}

.bx-circle-photo {
    border: 6px solid var(--bx-canvas);
    box-shadow: var(--bx-shadow);
}

/* Programs */
.bx-programs {
    background: var(--bx-tint);
}

.bx-program {
    padding: 12px 12px 0;
    border: 1px solid var(--bx-line);
    box-shadow: none;
}

.bx-program:hover {
    box-shadow: var(--bx-shadow);
}

.bx-program-media {
    border-radius: 18px;
}

.bx-tag,
.bx-glance-card .bx-tag {
    padding: 4px 12px;
    border: 1px solid var(--bx-line);
    background: transparent;
    color: var(--bx-gold-ink);
}

.bx-program .bx-tag,
.bx-glance-card .bx-tag {
    color: var(--bx-gold-ink);
}

.bx-chips li {
    border: 1px solid var(--bx-line);
    background: transparent;
    color: var(--bridge-navy);
    font-weight: 500;
}

/* Navy bands */
.bx-band-navy {
    background:
        radial-gradient(900px 500px at 90% 0%, rgba(255, 255, 255, .06), transparent 60%),
        var(--bridge-navy);
}

.bx-step-num {
    background: transparent;
    color: #E9C766;
    font-weight: 500;
    border: 1.5px solid rgba(233, 199, 102, .7);
    box-shadow: 0 0 0 6px var(--bridge-navy);
}

.bx-steps::before {
    border-inline-start: 1.5px solid rgba(233, 199, 102, .35);
}

.bx-admissions-foot {
    background: transparent;
    border-color: rgba(255, 255, 255, .14);
}

.bx-fees-note .bx-icon {
    border: 1px solid rgba(233, 199, 102, .45);
    border-radius: 50%;
    background: none;
    color: #E9C766;
}

/* Cards */
.bx-card {
    border: 1px solid var(--bx-line);
    box-shadow: none;
}

.bx-card::before {
    display: none;
}

.bx-card:hover {
    box-shadow: var(--bx-shadow);
}

.bx-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--bx-line);
    background: var(--bx-canvas);
    color: var(--bridge-navy);
}

.bx-card-icon .bx-icon {
    width: 22px;
    height: 22px;
}

/* Walk across the bridge (calm) */
.bx-walk-stage {
    border-radius: 28px;
}

@media (min-width: 768px) {
    .bx-walk-stage {
        border-radius: 32px;
    }
}

.bx-walk-count {
    background: transparent;
    border: 1px solid rgba(233, 199, 102, .7);
    color: #F3D27A;
}

.bx-walk-nav {
    background: rgba(247, 244, 238, .92);
}

.bx-walk-nav:hover {
    background: #E8B634;
}

.bx-walk-dot {
    border: 2px solid var(--bx-canvas);
    background: #D8D0BF;
    box-shadow: none;
}

.bx-walk-stops li.is-done .bx-walk-dot {
    background: var(--bridge-navy);
}

.bx-walk-stops button[aria-current="step"] .bx-walk-dot {
    background: #E8B634;
    color: var(--bridge-navy-deep);
}

.bx-band-tint .bx-walk-dot {
    border-color: var(--bx-tint);
}

/* Follow & contact */
.bx-follow {
    background: var(--bx-tint);
    color: var(--bx-ink);
}

.bx-follow .bx-title {
    color: var(--bridge-navy);
}

.bx-follow .bx-lead {
    color: var(--bx-muted);
}

.bx-follow .bx-lead b {
    color: var(--bx-gold-ink);
}

.bx-follow .bx-kicker,
.bx-follow .bx-kicker-light {
    color: var(--bx-gold-ink);
}

.bx-social-pills a {
    border: 1px solid var(--bx-line);
    box-shadow: none;
    font-weight: 500;
}

.bx-contact-card {
    background: var(--bridge-navy);
}

.bx-contact-list li {
    background: transparent;
    border-color: rgba(255, 255, 255, .14);
}

.bx-contact-icon {
    border: 1px solid rgba(233, 199, 102, .5);
    border-radius: 50%;
    background: none;
    color: #E9C766;
}

.bx-contact-wa {
    width: 38px;
    height: 38px;
}

/* Footer */
.bx-footer-arc {
    height: 2px;
    background: var(--bx-gold);
}

.bx-footer-contact .bx-icon {
    color: #E9C766;
}

.bx-social-round a {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
}

.bx-social-round a:hover {
    background: #E8B634;
    border-color: #E8B634;
}

/* Inner pages */
.bx-page-hero {
    background: var(--bridge-navy);
}

.bx-page-hero.has-image::before {
    background: linear-gradient(270deg, rgba(14, 24, 56, .97) 0%, rgba(14, 24, 56, .9) 55%, rgba(14, 24, 56, .72) 100%);
}

html:not([dir="rtl"]) .bx-page-hero.has-image::before {
    background: linear-gradient(90deg, rgba(14, 24, 56, .97) 0%, rgba(14, 24, 56, .9) 55%, rgba(14, 24, 56, .72) 100%);
}

.bx-callout {
    border: 1px solid var(--bx-line);
    background: #fff;
}

.bx-faq details {
    box-shadow: none;
}

.bx-faq summary {
    font-weight: 500;
}

.bx-faq summary::after {
    background: transparent;
    border: 1px solid var(--bx-line);
    color: var(--bx-gold-ink);
}

.bx-faq details[open] summary::after {
    background: #E8B634;
    border-color: #E8B634;
}

.bx-stage {
    border: 1px solid var(--bx-line);
    border-top: 3px solid var(--bx-gold);
    border-radius: 22px;
    box-shadow: none;
}

.bx-stage strong {
    color: var(--bridge-navy);
    font-weight: 600;
}

.bx-glance-card {
    border: 1px solid var(--bx-line);
    border-top: 3px solid var(--bx-gold);
    box-shadow: none;
}

.bx-glance-card li .bx-icon,
.bx-checklist .bx-icon {
    background: none;
    border: 1px solid rgba(217, 166, 32, .6);
    color: var(--bx-gold-ink);
}

.bx-apply {
    background: var(--bx-tint);
}

.bx-apply-card,
.bx-side-card {
    border: 1px solid var(--bx-line);
    box-shadow: none;
}

.bx-side-dark {
    border: 0;
}

.bx-side-row .bx-icon {
    border: 1px solid rgba(233, 199, 102, .5);
    border-radius: 50%;
    background: none;
    color: #E9C766;
}

.bx-choice span {
    background: #fff;
    border-width: 1.5px;
}

.bx-choice input:checked + span,
.bx-choice-teal input:checked + span {
    border-color: var(--bridge-navy);
    background: var(--bx-canvas);
    box-shadow: 0 0 0 3px rgba(217, 166, 32, .25);
}

.bx-field input,
.bx-field select,
.bx-field textarea {
    background: #fff;
    border-color: var(--bx-line);
}

.bx-field input:focus,
.bx-field select:focus,
.bx-field textarea:focus {
    border-color: var(--bridge-navy);
    box-shadow: 0 0 0 3px rgba(217, 166, 32, .25);
}

.bx-success-icon {
    background: var(--bx-canvas);
    border: 1px solid var(--bx-gold);
    color: var(--bx-gold-ink);
}

.bx-gallery-grid .gallery-thumb:first-child {
    border-radius: 18px;
}

.bx-facility-media {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--bx-shadow);
}

.bx-facility-text .bx-pillar-n {
    background: none;
    color: var(--bx-gold-ink);
    font-size: var(--fs-h3);
}

.bx-post-media {
    border-radius: 24px;
}

/* Admissions steps — quiet timeline */
.bx-steps::before {
    inset-inline-start: 23px;
    border-inline-start: 1px solid rgba(233, 199, 102, .4);
}

.bx-step-num {
    width: 48px;
    height: 48px;
    font-size: var(--fs-base);
}

.bx-step p {
    color: rgba(255, 255, 255, .72);
}

@media (min-width: 900px) {
    .bx-steps {
        gap: 32px;
        padding-top: 0;
    }

    .bx-steps::before {
        display: block;
        top: 28px;
        bottom: auto;
        inset-inline: 28px calc(25% - 8px);
        border: 0;
        border-top: 1px solid rgba(233, 199, 102, .4);
    }

    .bx-step,
    .bx-step:nth-child(n) {
        margin-top: 0;
        text-align: start;
    }

    .bx-step-num {
        width: 56px;
        height: 56px;
        margin: 0 0 22px;
        box-shadow: 0 0 0 10px var(--bridge-navy);
    }

    .bx-step p {
        max-width: 30ch;
        margin-inline: 0;
    }
}

/* =========================================================
   Round 2 (client notes): logo lockup, plain headings,
   natural photos, photo-strip tour, lighter page heroes
   ========================================================= */

/* Logo lockup: official mark + readable school name */
.bx-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    overflow: visible;
    color: var(--bridge-navy);
    text-decoration: none;
}

.bx-logo img.bx-logo-mark {
    width: auto;
    height: 46px;
    object-fit: contain;
    transform: none;
}

.bx-logo-name {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--bx-line);
    line-height: 1.25;
    white-space: nowrap;
}

.bx-logo-ar {
    font-size: 15px;
    font-weight: 600;
}

.bx-logo-en {
    font-size: 12px;
    font-weight: 500;
    color: var(--bx-muted);
    letter-spacing: .01em;
}

@media (min-width: 420px) {
    .bx-logo-name {
        display: flex;
    }

    .bx-lang-en .bx-logo-ar {
        order: 2;
        font-size: 12px;
        font-weight: 500;
        color: var(--bx-muted);
    }

    .bx-lang-en .bx-logo-en {
        order: 1;
        font-size: 13px;
        font-weight: 600;
        color: var(--bridge-navy);
    }
}

@media (min-width: 420px) and (max-width: 599px) {
    .bx-logo-en,
    .bx-lang-en .bx-logo-ar {
        display: none;
    }

    .bx-logo-ar {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .bx-logo img.bx-logo-mark {
        height: 54px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .bx-logo-name {
        display: none;
    }
}

.bx-header-actions .bx-btn,
.bx-lang {
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .bx-nav-list {
        gap: clamp(12px, 1.2vw, 24px);
    }
}

/* Footer logo: official stacked logo, large enough to read */
.bx-footer-logo img {
    width: 230px;
    height: auto;
}

/* Headings: no highlight boxes/underlines */
.bx-mark,
.bx-hero .bx-mark {
    text-decoration: none;
    color: inherit;
}

.bx-hero .bx-display {
    color: #fff;
}

.bx-hero-kicker {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
    letter-spacing: .02em;
}

.bx-lang-en .bx-hero-kicker {
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: var(--fs-xs);
}

/* Statement: one natural photo with soft corners */
.bx-statement .bx-split-media {
    padding: 0;
}

.bx-statement .bx-arch-tall {
    border-radius: 28px;
    aspect-ratio: 4 / 5;
}

.bx-statement .bx-arch-tall img {
    border-radius: inherit;
}

/* Programs media: soft rectangle, not an arch */
.bx-program-media,
.bx-arch {
    border-radius: 22px;
}

/* Follow block: a single button */
.bx-follow .bx-btn {
    justify-self: start;
}

.bx-follow .bx-btn .bx-icon {
    width: 18px;
    height: 18px;
}

/* Photo tour: thumbnails instead of the bridge drawing */
.bx-walk-stops {
    position: static;
    display: flex;
    gap: 12px;
    margin: 18px 0 0;
    padding: 2px 2px 10px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.bx-walk-stops li,
.bx-walk-stops li:nth-child(n) {
    position: static;
    flex: 0 0 132px;
    transform: none;
    scroll-snap-align: center;
}

.bx-walk-stops button {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: start;
    font: inherit;
    color: inherit;
}

.bx-walk-thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 14px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    opacity: .62;
    transition: opacity .25s, outline-color .25s;
}

.bx-walk-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bx-walk-stops button:hover .bx-walk-thumb {
    opacity: .9;
}

.bx-walk-stops button[aria-current="step"] .bx-walk-thumb {
    opacity: 1;
    outline-color: var(--bridge-navy);
}

.bx-walk-label {
    display: flex;
    gap: 6px;
    align-items: baseline;
    position: static;
    transform: none;
    width: auto;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    font-weight: 500;
    white-space: normal;
}

.bx-walk-n {
    color: var(--bx-gold-ink);
    font-weight: 600;
}

.bx-walk-stops button[aria-current="step"] .bx-walk-label {
    color: var(--bridge-navy);
    font-weight: 600;
}

.bx-walk-stops button:focus-visible {
    outline: none;
}

.bx-walk-stops button:focus-visible .bx-walk-thumb {
    outline-color: var(--bx-gold);
}

@media (min-width: 1024px) {
    .bx-walk-stops {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        overflow: visible;
        gap: 14px;
    }

    .bx-walk-stops li,
    .bx-walk-stops li:nth-child(n) {
        flex: none;
    }
}

.bx-walk-bridge,
.bx-walk-svg,
.bx-walk-kid {
    display: none;
}

/* Inner page heroes: the photo shows on the side opposite the text */
.bx-page-hero {
    background: #101A33;
}

.bx-page-hero.has-image::before {
    background: linear-gradient(180deg, rgba(10, 16, 32, .62) 0%, rgba(10, 16, 32, .86) 100%);
}

html:not([dir="rtl"]) .bx-page-hero.has-image::before {
    background: linear-gradient(180deg, rgba(10, 16, 32, .62) 0%, rgba(10, 16, 32, .86) 100%);
}

@media (min-width: 900px) {
    .bx-page-hero.has-image::before {
        background: linear-gradient(270deg, rgba(10, 16, 32, .9) 0%, rgba(10, 16, 32, .8) 40%, rgba(10, 16, 32, .3) 72%, rgba(10, 16, 32, .08) 100%);
    }

    html:not([dir="rtl"]) .bx-page-hero.has-image::before {
        background: linear-gradient(90deg, rgba(10, 16, 32, .9) 0%, rgba(10, 16, 32, .8) 40%, rgba(10, 16, 32, .3) 72%, rgba(10, 16, 32, .08) 100%);
    }

    .bx-page-hero.has-image .bx-page-hero-inner > * {
        max-width: 600px;
    }
}

.bx-page-hero-arcs {
    display: none;
}

.bx-footer-logo {
    width: 230px;
    max-width: 100%;
}

.bx-walk-label,
.bx-walk-stops button .bx-walk-label {
    opacity: 1;
    top: auto;
}

/* =========================================================
   V3 — school colors on white & beige, motion, intro
   (red · blue · yellow · teal from the logo; navy for text)
   ========================================================= */
:root {
    --c-red: #DE362F;
    --c-red-d: #C22B25;
    --c-blue: #358FB9;
    --c-blue-d: #2A7AA0;
    --c-yellow: #FDBE10;
    --c-teal: #217573;
    --c-teal-d: #195F5D;
    --t-red: #FDEBE9;
    --t-blue: #E6F2F8;
    --t-yellow: #FFF4D2;
    --t-teal: #E2F0EF;
    --i-yellow: #A87800;

    --bridge-navy: #1B2B57;
    --bridge-navy-deep: #142145;
    --bridge-blue: #358FB9;
    --bridge-teal: #217573;
    --bridge-red: #DE362F;
    --bridge-yellow: #FDBE10;

    --bx-canvas: #FFFFFF;
    --bx-tint: #F8F2E9;
    --bx-cream: #F8F2E9;
    --bx-line: #ECE2D2;
    --bx-ink: #1B2B57;
    --bx-muted: #5B6480;
    --bx-gold: var(--c-red);
    --bx-gold-ink: var(--c-red);
    --bx-shadow: 0 30px 60px -38px rgba(27, 43, 87, .38);
    --bx-shadow-sm: 0 14px 30px -22px rgba(27, 43, 87, .35);
    --bx-brand-bar: linear-gradient(90deg, var(--c-blue) 0 25%, var(--c-yellow) 25% 50%, var(--c-red) 50% 75%, var(--c-teal) 75% 100%);
    --accent: var(--c-blue);
    --accent-ink: var(--c-blue);
    --accent-tint: var(--t-blue);
}

html:not([dir="rtl"]) {
    --bx-brand-bar: linear-gradient(90deg, var(--c-blue) 0 25%, var(--c-yellow) 25% 50%, var(--c-red) 50% 75%, var(--c-teal) 75% 100%);
}

body,
body.bx-lang-ar,
body.bx-lang-en {
    background: #FFFFFF;
    color: var(--bx-ink);
}

/* Ambient background motion (very soft logo-colored glows) */
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 18% 28%, rgba(53, 143, 185, .10), transparent),
        radial-gradient(closest-side at 82% 18%, rgba(253, 190, 16, .12), transparent),
        radial-gradient(closest-side at 74% 82%, rgba(222, 54, 47, .07), transparent),
        radial-gradient(closest-side at 22% 86%, rgba(33, 117, 115, .09), transparent);
    animation: bxAmbient 34s ease-in-out infinite alternate;
}

@keyframes bxAmbient {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(4%, -3%, 0) rotate(8deg); }
    100% { transform: translate3d(-3%, 4%, 0) rotate(-6deg); }
}

/* Accent per item: blue · yellow · red · teal (the logo order) */
.bx-a1 { --accent: var(--c-blue); --accent-ink: var(--c-blue-d); --accent-tint: var(--t-blue); }
.bx-a2 { --accent: var(--c-yellow); --accent-ink: var(--i-yellow); --accent-tint: var(--t-yellow); }
.bx-a3 { --accent: var(--c-red); --accent-ink: var(--c-red); --accent-tint: var(--t-red); }
.bx-a4 { --accent: var(--c-teal); --accent-ink: var(--c-teal); --accent-tint: var(--t-teal); }

.bx-cards > :nth-child(4n+1),
.bx-facts > li:nth-child(4n+1),
.bx-steps > li:nth-child(4n+1),
.bx-stages > :nth-child(4n+1),
.bx-glance > :nth-child(4n+1) { --accent: var(--c-blue); --accent-ink: var(--c-blue-d); --accent-tint: var(--t-blue); }

.bx-cards > :nth-child(4n+2),
.bx-facts > li:nth-child(4n+2),
.bx-steps > li:nth-child(4n+2),
.bx-stages > :nth-child(4n+2),
.bx-glance > :nth-child(4n+2) { --accent: var(--c-yellow); --accent-ink: var(--i-yellow); --accent-tint: var(--t-yellow); }

.bx-cards > :nth-child(4n+3),
.bx-facts > li:nth-child(4n+3),
.bx-steps > li:nth-child(4n+3),
.bx-stages > :nth-child(4n+3),
.bx-glance > :nth-child(4n+3) { --accent: var(--c-red); --accent-ink: var(--c-red); --accent-tint: var(--t-red); }

.bx-cards > :nth-child(4n+4),
.bx-facts > li:nth-child(4n+4),
.bx-steps > li:nth-child(4n+4),
.bx-stages > :nth-child(4n+4),
.bx-glance > :nth-child(4n+4) { --accent: var(--c-teal); --accent-ink: var(--c-teal); --accent-tint: var(--t-teal); }

/* Brand bar: the four logo colors as a tiny signature */
.bx-kicker-line,
.bx-hero-kicker-sep {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: var(--bx-brand-bar);
}

.bx-kicker,
.bx-statement .bx-kicker,
.bx-statement .bx-kicker-light,
.bx-follow .bx-kicker {
    color: var(--bx-muted);
    font-weight: 600;
    letter-spacing: .02em;
}

.bx-kicker-light,
.bx-head-light .bx-kicker,
.bx-page-hero .bx-kicker {
    color: rgba(255, 255, 255, .85);
}

/* Buttons: logo red for the main action; program colors */
.bx-btn-primary {
    background: var(--c-red);
    color: #fff;
    box-shadow: 0 16px 30px -18px rgba(222, 54, 47, .75);
}

.bx-btn-primary:hover {
    background: var(--c-red-d);
    color: #fff;
}

.bx-btn-blue { background: var(--c-blue); color: #fff; }
.bx-btn-blue:hover { background: var(--c-blue-d); }
.bx-btn-teal { background: var(--c-teal); color: #fff; }
.bx-btn-teal:hover { background: var(--c-teal-d); }
.bx-btn-navy { background: var(--bridge-navy); color: #fff; }

.bx-btn-outline {
    border: 1.5px solid var(--bx-line);
    background: #fff;
    color: var(--bridge-navy);
}

.bx-btn-outline:hover {
    border-color: var(--bridge-navy);
    background: #fff;
    color: var(--bridge-navy);
}

.bx-link {
    border-bottom-color: var(--c-red);
}

.bx-progress i {
    background: var(--bx-brand-bar);
}

/* ---------- Header: stacked official logo ---------- */
.bx-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--bx-line);
}

.bx-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--bx-brand-bar);
}

.bx-logo {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    overflow: visible;
    color: var(--bridge-navy);
    text-decoration: none;
}

.bx-lockup {
    display: inline-grid;
    justify-items: center;
    color: var(--bridge-navy);
    line-height: 1.2;
}

.bx-lockup-icon {
    display: block;
    width: auto;
    height: 26px;
}

.bx-lockup-word {
    display: block;
    width: 82px;
    height: auto;
    margin-top: 2px;
}

.bx-lockup-ar,
.bx-lockup-en {
    display: none;
    white-space: nowrap;
}

.bx-lockup-ar {
    font-size: 14px;
    font-weight: 600;
    margin-top: 7px;
}

.bx-lockup-en {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--bx-muted);
    letter-spacing: .01em;
    margin-top: 1px;
}

@media (min-width: 768px) {
    .bx-lockup-icon { height: 30px; }
    .bx-lockup-word { width: 94px; }
}

@media (min-width: 1200px) {
    .bx-header-inner {
        position: relative;
    }

    .bx-logo {
        align-self: flex-start;
        margin-bottom: calc(var(--bx-header-h) - 170px);
        padding: 16px 20px 16px;
        border-radius: 0 0 26px 26px;
        background: #fff;
        box-shadow: 0 22px 40px -28px rgba(27, 43, 87, .45);
        transition: padding .35s var(--bx-ease), margin .35s var(--bx-ease), box-shadow .35s;
    }

    .bx-logo .bx-lockup-icon { height: 52px; transition: height .35s var(--bx-ease); }
    .bx-logo .bx-lockup-word { width: 150px; margin-top: 6px; transition: width .35s var(--bx-ease); }
    .bx-logo .bx-lockup-ar,
    .bx-logo .bx-lockup-en { display: block; }

    .bx-header.is-scrolled .bx-logo {
        align-self: center;
        margin-bottom: 0;
        padding: 0;
        background: none;
        box-shadow: none;
    }

    .bx-header.is-scrolled .bx-lockup-icon { height: 28px; }
    .bx-header.is-scrolled .bx-lockup-word { width: 88px; margin-top: 2px; }
    .bx-header.is-scrolled .bx-lockup-ar,
    .bx-header.is-scrolled .bx-lockup-en { display: none; }

    .bx-nav-list li.is-more {
        display: none;
    }

    .bx-nav-list {
        gap: clamp(18px, 2vw, 34px);
    }

    .bx-nav-list a {
        font-size: 15.5px;
    }

    .bx-nav-list a::after {
        height: 3px;
        background: var(--bx-brand-bar);
    }
}

.bx-burger,
.bx-nav-dept,
.bx-nav-line {
    background: var(--bx-tint);
}

/* ---------- Hero: light, colorful, moving ---------- */
.bx-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bx-tint) 100%);
    color: var(--bx-ink);
}

.bx-hero > .bx-container {
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {
    .bx-hero {
        padding-top: clamp(110px, 9vw, 140px);
    }
}

.bx-hero .bx-display {
    color: var(--bridge-navy);
}

.bx-hero-kicker {
    color: var(--bx-muted);
}

.bx-hero-lead {
    color: var(--bx-muted);
}

.bx-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bx-blobs i {
    position: absolute;
    width: min(60vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    animation: bxBlob 24s ease-in-out infinite alternate;
    will-change: transform;
}

.bx-blobs i:nth-child(1) { background: radial-gradient(closest-side, rgba(53, 143, 185, .30), transparent); top: -22%; inset-inline-end: -12%; }
.bx-blobs i:nth-child(2) { background: radial-gradient(closest-side, rgba(253, 190, 16, .32), transparent); bottom: -30%; inset-inline-start: 18%; animation-duration: 28s; animation-delay: -6s; }
.bx-blobs i:nth-child(3) { background: radial-gradient(closest-side, rgba(222, 54, 47, .16), transparent); top: 20%; inset-inline-start: -18%; animation-duration: 31s; animation-delay: -12s; }
.bx-blobs i:nth-child(4) { background: radial-gradient(closest-side, rgba(33, 117, 115, .18), transparent); bottom: -10%; inset-inline-end: 22%; animation-duration: 26s; animation-delay: -3s; }

@keyframes bxBlob {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(8%, 6%, 0) scale(1.12); }
    66% { transform: translate3d(-6%, 10%, 0) scale(.94); }
    100% { transform: translate3d(5%, -8%, 0) scale(1.06); }
}

.bx-hero-visual {
    position: relative;
    width: min(100%, 460px);
}

.bx-hero-photo {
    position: relative;
    z-index: 1;
    border-radius: 34px;
    box-shadow: 0 40px 80px -46px rgba(27, 43, 87, .6);
}

.bx-hero-photo::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.bx-hero-shape {
    position: absolute;
    z-index: 0;
    inset: 7% -7% -6% 9%;
    border-radius: 40px;
    background: var(--c-blue);
    transform: rotate(-5deg);
    animation: bxSway 9s ease-in-out infinite alternate;
}

html:not([dir="rtl"]) .bx-hero-shape {
    inset: 7% 9% -6% -7%;
    transform: rotate(5deg);
}

@keyframes bxSway {
    from { transform: rotate(-5deg) translate3d(0, 0, 0); }
    to { transform: rotate(-2deg) translate3d(-6px, 8px, 0); }
}

.bx-chip {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff;
    color: var(--bridge-navy);
    box-shadow: 0 22px 40px -24px rgba(27, 43, 87, .5);
    font-size: var(--fs-xs);
    animation: bxFloat 6s ease-in-out infinite;
}

.bx-chip i {
    grid-row: span 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-yellow);
    box-shadow: 0 0 0 5px var(--t-yellow);
}

.bx-chip b {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-chip span {
    color: var(--bx-muted);
}

.bx-chip-a {
    bottom: 26px;
    inset-inline-start: -22px;
}

.bx-chip-b {
    top: 30px;
    inset-inline-end: -26px;
    animation-delay: -3s;
}

.bx-chip-b i {
    background: var(--c-teal);
    box-shadow: 0 0 0 5px var(--t-teal);
}

@keyframes bxFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 599px) {
    .bx-chip-a { inset-inline-start: 8px; bottom: 12px; }
    .bx-chip-b { inset-inline-end: 8px; top: 12px; }
    .bx-hero-shape { inset: 5% -3% -4% 6%; }
    html:not([dir="rtl"]) .bx-hero-shape { inset: 5% 6% -4% -3%; }
}

.bx-hero-badge {
    display: none;
}

/* Facts row on the light hero */
.bx-facts {
    border-top: 1px solid var(--bx-line);
}

.bx-facts li {
    border-color: var(--bx-line);
}

.bx-facts li + li {
    border-color: var(--bx-line);
}

.bx-facts strong {
    color: var(--bridge-navy);
}

.bx-facts span {
    color: var(--bx-muted);
}

.bx-facts .bx-icon {
    border: 0;
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent-ink);
}

/* ---------- Statement ---------- */
.bx-statement {
    background: #fff;
}

.bx-pillars li:nth-child(1) .bx-pillar-n { color: var(--c-blue); }
.bx-pillars li:nth-child(2) .bx-pillar-n { color: var(--c-red); }
.bx-pillars li:nth-child(3) .bx-pillar-n { color: var(--c-teal); }

.bx-pillar-n {
    font-weight: 700;
}

.bx-statement .bx-arch-tall {
    box-shadow: 0 40px 70px -44px rgba(27, 43, 87, .55);
}

/* ---------- Programs ---------- */
.bx-programs,
.bx-band-tint {
    background: var(--bx-tint);
}

.bx-program {
    border: 0;
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
    transition: transform .4s var(--bx-ease), box-shadow .4s;
}

.bx-program:hover {
    transform: translateY(-6px);
    box-shadow: var(--bx-shadow);
}

.bx-program-intl { --accent: var(--c-blue); --accent-ink: var(--c-blue-d); --accent-tint: var(--t-blue); }
.bx-program-sped { --accent: var(--c-teal); --accent-ink: var(--c-teal); --accent-tint: var(--t-teal); }

.bx-tag,
.bx-program .bx-tag {
    border: 0;
    background: var(--accent-tint, var(--t-blue));
    color: var(--accent-ink, var(--c-blue-d));
    font-weight: 600;
}

.bx-chips li {
    border-color: var(--bx-line);
    background: var(--bx-tint);
}

.bx-program-media img {
    transition: transform 1s var(--bx-ease);
}

.bx-program:hover .bx-program-media img {
    transform: scale(1.05);
}

/* ---------- Admission steps: colorful & balanced ---------- */
.bx-band-steps {
    background: #fff;
}

.bx-steps::before {
    border-inline-start: 2px dashed var(--bx-line);
}

.bx-step-num {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-h3);
    font-weight: 700;
    box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--bx-line);
}

.bx-steps > li:nth-child(4n+2) .bx-step-num {
    color: var(--bridge-navy);
}

.bx-step .bx-h3 {
    color: var(--bridge-navy);
}

.bx-step p {
    color: var(--bx-muted);
}

@media (min-width: 900px) {
    .bx-steps::before {
        inset-inline: 12.5% 12.5%;
        top: 28px;
        border: 0;
        border-top: 2px dashed var(--bx-line);
    }

    .bx-step,
    .bx-step:nth-child(n) {
        text-align: center;
    }

    .bx-step-num {
        margin: 0 auto 22px;
    }

    .bx-step p {
        max-width: 24ch;
        margin-inline: auto;
    }
}

.bx-admissions-foot {
    border: 0;
    background: var(--bx-tint);
}

.bx-fees-note p {
    color: var(--bx-ink);
}

.bx-fees-note strong {
    color: var(--bridge-navy);
}

.bx-fees-note .bx-icon {
    border: 0;
    border-radius: 14px;
    background: var(--t-red);
    color: var(--c-red);
}

/* ---------- Feature items (no boxes, colored icon tiles) ---------- */
.bx-cards {
    gap: 40px 32px;
}

.bx-card,
.bx-card:hover {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.bx-card::before {
    display: none;
}

.bx-card-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border: 0;
    border-radius: 22px;
    background: var(--accent-tint);
    color: var(--accent-ink);
    transition: transform .5s var(--bx-ease), border-radius .5s var(--bx-ease);
}

.bx-card-icon .bx-icon {
    width: 26px;
    height: 26px;
}

.bx-card:hover .bx-card-icon {
    transform: rotate(-8deg) scale(1.06);
    border-radius: 50%;
}

.bx-card .bx-h3 {
    margin-bottom: 8px;
    color: var(--bridge-navy);
}

.bx-card p {
    color: var(--bx-muted);
}

.bx-card::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 18px;
    border-radius: 3px;
    background: var(--accent);
    transition: width .5s var(--bx-ease);
}

.bx-card:hover::after {
    width: 72px;
}

/* News cards keep a box */
.bx-news-card::after {
    display: none;
}

/* Stage / glance cards */
.bx-stage,
.bx-glance-card {
    border: 1px solid var(--bx-line);
    border-top: 4px solid var(--accent);
    background: #fff;
}

.bx-glance-card .bx-tag {
    background: var(--accent-tint);
    color: var(--accent-ink);
}

/* ---------- Tour ---------- */
.bx-walk-count {
    border: 0;
    background: var(--c-red);
    color: #fff;
}

.bx-walk-nav:hover {
    background: var(--c-yellow);
}

.bx-walk-stops button[aria-current="step"] .bx-walk-thumb {
    outline-color: var(--c-red);
}

.bx-walk-n {
    color: var(--c-red);
}

/* ---------- Contact card: beige, soft moving color ---------- */
.bx-contact-card {
    position: relative;
    overflow: hidden;
    background: var(--bx-tint);
    color: var(--bx-ink);
    isolation: isolate;
}

.bx-contact-card > :not(.bx-blobs) {
    position: relative;
    z-index: 1;
}

.bx-blobs-soft i {
    width: min(70vw, 520px);
    opacity: .9;
}

.bx-contact-card .bx-title {
    color: var(--bridge-navy);
}

.bx-contact-card .bx-lead {
    color: var(--bx-muted);
}

.bx-contact-list li {
    border: 0;
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
}

.bx-contact-line small,
.bx-contact-line span {
    color: var(--bx-muted);
}

.bx-contact-line b,
.bx-contact-line strong,
.bx-contact-line a {
    color: var(--bridge-navy);
}

.bx-contact-list li:nth-child(1) .bx-contact-icon { background: var(--t-blue); color: var(--c-blue-d); }
.bx-contact-list li:nth-child(2) .bx-contact-icon { background: var(--t-teal); color: var(--c-teal); }
.bx-contact-list li:nth-child(3) .bx-contact-icon { background: var(--t-red); color: var(--c-red); }

.bx-contact-icon {
    border: 0;
}

/* ---------- Footer: beige, navy logo ---------- */
.bx-footer {
    position: relative;
    background: var(--bx-tint);
    color: var(--bx-ink);
}

.bx-brand-stripe {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 5px;
}

.bx-brand-stripe i:nth-child(1) { background: var(--c-blue); }
.bx-brand-stripe i:nth-child(2) { background: var(--c-yellow); }
.bx-brand-stripe i:nth-child(3) { background: var(--c-red); }
.bx-brand-stripe i:nth-child(4) { background: var(--c-teal); }

.bx-footer-arc {
    display: none;
}

.bx-footer-logo {
    width: auto;
}

.bx-lockup-footer .bx-lockup-icon { height: 54px; }
.bx-lockup-footer .bx-lockup-word { width: 156px; margin-top: 6px; }
.bx-lockup-footer .bx-lockup-ar,
.bx-lockup-footer .bx-lockup-en { display: block; }

.bx-footer h2,
.bx-footer-slogan {
    color: var(--bridge-navy);
}

.bx-footer-brand p,
.bx-footer-col a,
.bx-footer-contact li,
.bx-footer-contact span {
    color: var(--bx-muted);
}

.bx-footer-col a:hover {
    color: var(--c-red);
}

.bx-footer-contact .bx-icon {
    color: var(--c-red);
}

.bx-footer-contact a[dir="ltr"] {
    color: var(--bridge-navy);
}

.bx-social-round a {
    border: 1px solid var(--bx-line);
    background: #fff;
    color: var(--bridge-navy);
}

.bx-social-round a:hover {
    border-color: var(--c-red);
    background: var(--c-red);
    color: #fff;
}

.bx-footer-bottom {
    border-top: 1px solid var(--bx-line);
    background: #F2EADD;
}

.bx-footer-bottom p {
    color: var(--bx-muted);
}

.bx-footer .bx-lang {
    border-color: var(--bx-line);
    background: #fff;
    color: var(--bridge-navy);
}

/* ---------- Inner pages ---------- */
.bx-page-hero .bx-kicker-line {
    background: var(--bx-brand-bar);
}

.bx-faq details[open] summary::after {
    border-color: var(--c-red);
    background: var(--c-red);
    color: #fff;
}

.bx-faq summary::after {
    color: var(--c-red);
}

.bx-callout {
    border: 0;
    background: var(--bx-tint);
}

.bx-apply {
    background: var(--bx-tint);
}

.bx-side-dark {
    background: var(--bridge-navy);
}

.bx-choice input:checked + span,
.bx-choice-teal input:checked + span {
    border-color: var(--c-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(222, 54, 47, .16);
}

.bx-field input:focus,
.bx-field select:focus,
.bx-field textarea:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(53, 143, 185, .2);
}

.bx-glance-card li .bx-icon,
.bx-checklist .bx-icon {
    border: 0;
    background: var(--t-teal);
    color: var(--c-teal);
}

.bx-success-icon {
    border: 0;
    background: var(--t-teal);
    color: var(--c-teal);
}

/* WhatsApp chooser stays WhatsApp-green */

/* ---------- Intro ---------- */
.bx-intro {
    display: none;
}

.bx-intro-on .bx-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    pointer-events: auto;
    animation: bxIntroGone 0s linear 4.1s forwards;
}

@keyframes bxIntroGone {
    to { visibility: hidden; pointer-events: none; }
}

.bx-intro-strips {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.bx-intro-strips i {
    animation: bxStripUp .75s cubic-bezier(.7, 0, .2, 1) forwards;
}

.bx-intro-strips i:nth-child(1) { background: var(--c-blue); animation-delay: 3.05s; }
.bx-intro-strips i:nth-child(2) { background: var(--c-yellow); animation-delay: 3.13s; }
.bx-intro-strips i:nth-child(3) { background: var(--c-red); animation-delay: 3.21s; }
.bx-intro-strips i:nth-child(4) { background: var(--c-teal); animation-delay: 3.29s; }

@keyframes bxStripUp {
    to { transform: translate3d(0, -101%, 0); }
}

.bx-intro-panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #fff;
    animation: bxPanelUp .8s cubic-bezier(.7, 0, .2, 1) 2.85s forwards;
}

@keyframes bxPanelUp {
    to { transform: translate3d(0, -101%, 0); }
}

.bx-intro-logo {
    display: grid;
    justify-items: center;
    color: var(--bridge-navy);
    text-align: center;
}

.bx-intro-icon {
    width: min(50vw, 240px);
    height: auto;
    overflow: visible;
}

.bx-intro-icon path {
    transform-box: fill-box;
}

.bx-intro-icon .bi-arc {
    transform-origin: 50% 100%;
    clip-path: inset(0 50% 0 50%);
    animation: bxArcOpen .7s cubic-bezier(.3, .8, .2, 1) .15s forwards;
}

@keyframes bxArcOpen {
    to { clip-path: inset(0 0 0 0); }
}

.bx-intro-icon .bi-blueArc,
.bx-intro-icon .bi-tealArc {
    opacity: 0;
    transform-origin: 50% 100%;
    animation: bxSideArc .7s cubic-bezier(.3, .8, .2, 1) forwards;
}

.bx-intro-icon .bi-blueArc { --sx: -40px; animation-delay: .45s; }
.bx-intro-icon .bi-tealArc { --sx: 40px; animation-delay: .55s; }

@keyframes bxSideArc {
    from { opacity: 0; transform: translate3d(var(--sx), 20px, 0) rotate(calc(var(--sx) * .4deg)); }
    to { opacity: 1; transform: none; }
}

.bx-intro-icon .bi-blueHead,
.bx-intro-icon .bi-tealHead,
.bx-intro-icon .bi-yHead {
    opacity: 0;
    transform-origin: 50% 50%;
    animation: bxPop .55s cubic-bezier(.3, 1.6, .5, 1) forwards;
}

.bx-intro-icon .bi-blueHead { animation-delay: .95s; }
.bx-intro-icon .bi-tealHead { animation-delay: 1.05s; }
.bx-intro-icon .bi-yHead { animation-delay: 1.35s; }

@keyframes bxPop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.bx-intro-icon .bi-yBody {
    opacity: 0;
    transform-origin: 50% 100%;
    animation: bxCheer .6s cubic-bezier(.3, 1.5, .5, 1) 1.15s forwards;
}

@keyframes bxCheer {
    from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.6); }
    to { opacity: 1; transform: none; }
}

.bx-intro-icon .bi-cap {
    opacity: 0;
    transform-origin: 50% 50%;
    animation: bxCapDrop .8s cubic-bezier(.3, 1.4, .5, 1) 1.55s forwards;
}

@keyframes bxCapDrop {
    0% { opacity: 0; transform: translate3d(0, -160px, 0) rotate(-28deg); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: none; }
}

.bx-intro-word-wrap {
    display: block;
    overflow: hidden;
    margin-top: 14px;
}

.bx-intro-word {
    display: block;
    width: min(70vw, 330px);
    height: auto;
}

.bx-intro-word .bw {
    transform-box: fill-box;
    transform: translate3d(0, 110%, 0);
    animation: bxLetter .55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.bx-intro-word .bw-1 { animation-delay: 1.8s; }
.bx-intro-word .bw-2 { animation-delay: 1.86s; }
.bx-intro-word .bw-3 { animation-delay: 1.92s; }
.bx-intro-word .bw-4 { animation-delay: 1.98s; }
.bx-intro-word .bw-5 { animation-delay: 2.04s; }
.bx-intro-word .bw-6 { animation-delay: 2.1s; }

@keyframes bxLetter {
    to { transform: none; }
}

.bx-intro-ar,
.bx-intro-en {
    opacity: 0;
    animation: bxFadeUp .5s ease forwards;
}

.bx-intro-ar {
    margin-top: 14px;
    font-size: clamp(17px, 4.6vw, 24px);
    font-weight: 600;
    animation-delay: 2.3s;
}

.bx-intro-en {
    margin-top: 2px;
    font-size: clamp(12px, 3.2vw, 15px);
    font-weight: 500;
    color: var(--bx-muted);
    letter-spacing: .02em;
    animation-delay: 2.4s;
}

@keyframes bxFadeUp {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
}

.bx-intro-line {
    position: absolute;
    bottom: clamp(40px, 10vh, 90px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 120px;
    height: 4px;
    overflow: hidden;
    border-radius: 4px;
    transform: translateX(-50%);
}

.bx-intro-line i {
    transform: scaleX(0);
    animation: bxBar .5s ease forwards;
}

.bx-intro-line i:nth-child(1) { background: var(--c-blue); animation-delay: .2s; }
.bx-intro-line i:nth-child(2) { background: var(--c-yellow); animation-delay: .7s; }
.bx-intro-line i:nth-child(3) { background: var(--c-red); animation-delay: 1.2s; }
.bx-intro-line i:nth-child(4) { background: var(--c-teal); animation-delay: 1.7s; }

@keyframes bxBar {
    to { transform: scaleX(1); }
}

.bx-intro-skip {
    position: absolute;
    z-index: 2;
    top: 18px;
    inset-inline-end: 18px;
    padding: 8px 16px;
    border: 1px solid var(--bx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--bx-muted);
    font: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    animation: bxPanelUp .8s cubic-bezier(.7, 0, .2, 1) 2.85s forwards;
}

.bx-intro.is-skipped {
    display: none !important;
}

/* Hero waits for the intro */
.bx-intro-on .bx-hero-text,
.bx-intro-on .bx-hero-visual {
    animation-delay: 3.2s;
}

/* Reduced motion: no ambient or decorative movement */
@media (prefers-reduced-motion: reduce) {
    body::before,
    .bx-blobs i,
    .bx-hero-shape,
    .bx-chip {
        animation: none !important;
    }
}

.bx-footer-brand .bx-footer-slogan {
    color: var(--bridge-navy);
}

.bx-footer .bx-brand-stripe {
    position: absolute;
    inset: 0 0 auto;
}

@media (min-width: 900px) {
    .bx-step p {
        max-width: 30ch;
    }
}

/* Keep the header sticky: body must not become a scroll container */
html {
    overflow-x: hidden;
}

body,
body.bx-lang-ar,
body.bx-lang-en {
    overflow-x: visible;
}

@supports (overflow: clip) {
    html,
    body,
    body.bx-lang-ar,
    body.bx-lang-en {
        overflow-x: clip;
    }
}

/* Side contact card: white with colored icons (no navy block) */
.bx-side-dark {
    border: 1px solid var(--bx-line);
    background: #fff;
    color: var(--bx-ink);
}

.bx-side-dark h3 {
    color: var(--bridge-navy);
}

.bx-side-row {
    border-top-color: var(--bx-line);
    color: var(--bridge-navy);
}

.bx-side-row small {
    color: var(--bx-muted);
}

.bx-side-row .bx-icon {
    border: 0;
    border-radius: 12px;
}

.bx-side-dark .bx-side-row:nth-of-type(1) .bx-icon { background: var(--t-blue); color: var(--c-blue-d); }
.bx-side-dark .bx-side-row:nth-of-type(2) .bx-icon { background: var(--t-teal); color: var(--c-teal); }
.bx-side-dark .bx-side-row:nth-of-type(3) .bx-icon { background: var(--t-red); color: var(--c-red); }

/* Inner page hero clears the logo tab on desktop */
@media (min-width: 1200px) {
    .bx-page-hero {
        padding-top: clamp(120px, 10vw, 150px);
    }
}

.bx-lockup-footer .bx-lockup-ar { font-size: 16px; }
.bx-lockup-footer .bx-lockup-en { font-size: 12px; }
.bx-lockup-footer .bx-lockup-word { width: 176px; }

@media (min-width: 1200px) {
    .bx-logo .bx-lockup-en { font-size: 11px; }
}

/* =========================================================
   V4 — one calm blue family (no multicolor), even type scale,
   centered section heads, animated admissions, small bridge
   ========================================================= */
:root {
    --c-blue: #2C7BB0;
    --c-blue-d: #21658F;
    --c-sky: #5FA6D2;
    --t-blue: #EAF3FA;
    --t-navy: #ECEFF6;

    /* every old accent now maps to the same blue family */
    --c-red: var(--c-blue);
    --c-red-d: var(--c-blue-d);
    --c-yellow: var(--c-blue);
    --c-teal: var(--bridge-navy);
    --c-teal-d: #142145;
    --t-red: var(--t-blue);
    --t-yellow: var(--t-blue);
    --t-teal: var(--t-navy);
    --i-yellow: var(--c-blue-d);
    --bridge-blue: var(--c-blue);
    --bridge-teal: var(--bridge-navy);
    --bridge-red: var(--c-blue);
    --bridge-yellow: var(--c-blue);
    --bx-gold: var(--c-blue);
    --bx-gold-ink: var(--c-blue);
    --bx-brand-bar: var(--c-blue);
    --accent: var(--c-blue);
    --accent-ink: var(--c-blue-d);
    --accent-tint: var(--t-blue);

    /* even type scale */
    --fs-xs: .875rem;                                    /* 14 */
    --fs-sm: 1rem;                                       /* 16 */
    --fs-base: 1.0625rem;                                /* 17 */
    --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); /* 17 → 19 */
    --fs-h3: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem); /* 19 → 22 */
    --fs-h2: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);    /* 28 → 40 */
}

html:not([dir="rtl"]) {
    --bx-brand-bar: var(--c-blue);
}

.bx-a1, .bx-a2, .bx-a3, .bx-a4,
.bx-cards > *, .bx-facts > li, .bx-steps > li, .bx-stages > *, .bx-glance > *,
.bx-program-intl, .bx-program-sped {
    --accent: var(--c-blue);
    --accent-ink: var(--c-blue-d);
    --accent-tint: var(--t-blue);
}

/* no stripes / multicolor lines anywhere */
.bx-header::before,
.bx-brand-stripe,
.bx-intro-line,
.bx-intro-strips,
.bx-card::after {
    display: none !important;
}

.bx-kicker-line,
.bx-hero-kicker-sep {
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-blue);
}

.bx-kicker {
    color: var(--c-blue);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .02em;
}

.bx-page-hero .bx-kicker,
.bx-kicker-light {
    color: #CFE3F2;
}

.bx-page-hero .bx-kicker-line {
    background: #CFE3F2;
}

/* ambient + blobs in blue & sand */
body::before {
    background:
        radial-gradient(closest-side at 18% 28%, rgba(44, 123, 176, .09), transparent),
        radial-gradient(closest-side at 82% 18%, rgba(226, 206, 175, .22), transparent),
        radial-gradient(closest-side at 74% 82%, rgba(95, 166, 210, .08), transparent),
        radial-gradient(closest-side at 22% 86%, rgba(27, 43, 87, .05), transparent);
}

.bx-blobs i:nth-child(1) { background: radial-gradient(closest-side, rgba(44, 123, 176, .24), transparent); }
.bx-blobs i:nth-child(2) { background: radial-gradient(closest-side, rgba(230, 210, 178, .55), transparent); }
.bx-blobs i:nth-child(3) { background: radial-gradient(closest-side, rgba(95, 166, 210, .18), transparent); }
.bx-blobs i:nth-child(4) { background: radial-gradient(closest-side, rgba(27, 43, 87, .08), transparent); }

/* buttons: blue */
.bx-btn-primary {
    background: var(--c-blue);
    box-shadow: 0 16px 30px -18px rgba(44, 123, 176, .8);
}

.bx-btn-primary:hover {
    background: var(--c-blue-d);
}

.bx-btn-teal,
.bx-btn-navy {
    background: var(--bridge-navy);
    color: #fff;
}

.bx-btn-teal:hover,
.bx-btn-navy:hover {
    background: #142145;
}

.bx-link {
    border-bottom-color: var(--c-blue);
}

.bx-progress i {
    background: var(--c-blue);
}

.bx-nav-list a::after {
    background: var(--c-blue) !important;
}

/* ---------- Even type ---------- */
.bx-title,
.bx-section h2.bx-title {
    font-size: var(--fs-h2);
    line-height: 1.35;
}

.bx-lead {
    font-size: var(--fs-lead);
    color: var(--bx-muted);
}

.bx-h3 {
    font-size: var(--fs-h3);
    line-height: 1.45;
}

.bx-card p,
.bx-step p,
.bx-stage p,
.bx-program p,
.bx-pillars li,
.bx-faq details p,
.bx-callout p {
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* ---------- Centered section heads ---------- */
.bx-head:not(.bx-head-row) {
    justify-items: center;
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.bx-head:not(.bx-head-row) .bx-kicker {
    justify-content: center;
}

.bx-head:not(.bx-head-row) .bx-lead {
    margin-inline: auto;
}

.bx-statement .bx-head,
.bx-split .bx-head {
    justify-items: start;
    text-align: start;
    margin-inline: 0;
}

.bx-faq {
    max-width: 860px;
    margin-inline: auto;
}

.bx-faq details[open] summary::after {
    border-color: var(--c-blue);
    background: var(--c-blue);
}

.bx-faq summary::after {
    color: var(--c-blue);
}

/* feature items: centered, one blue */
.bx-card {
    text-align: center;
}

.bx-card-icon {
    margin-inline: auto;
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-card .bx-h3 {
    font-size: var(--fs-h3);
}

/* stage / glance cards without colored top lines */
.bx-stage,
.bx-glance-card {
    border-top: 1px solid var(--bx-line);
    transition: transform .4s var(--bx-ease), box-shadow .4s;
}

.bx-stage:hover,
.bx-glance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bx-shadow-sm);
}

.bx-stage .bx-btn {
    background: var(--c-blue);
}

.bx-stage .bx-btn:hover {
    background: var(--c-blue-d);
}

/* ---------- Header logo: no colored line, blue progress ---------- */
.bx-header {
    border-bottom: 1px solid var(--bx-line);
}

/* ---------- Hero: the school name is the headline ---------- */
.bx-hero-kicker {
    color: var(--c-blue);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-hero-name {
    color: var(--bridge-navy);
    font-size: clamp(2.375rem, 1.7rem + 3vw, 4.25rem);
    line-height: 1.25;
}

.bx-lang-en .bx-hero-name {
    font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.75rem);
    line-height: 1.12;
    letter-spacing: -.02em;
}

.bx-hero-tagline {
    margin: 14px 0 0;
    color: var(--c-blue);
    font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem);
    font-weight: 600;
    line-height: 1.5;
}

.bx-hero-lead {
    margin-top: 14px;
}

.bx-hero-shape {
    background: linear-gradient(160deg, var(--c-sky), var(--c-blue));
}

.bx-chip i,
.bx-chip-b i {
    background: var(--c-blue);
    box-shadow: 0 0 0 5px var(--t-blue);
}

.bx-facts .bx-icon {
    background: var(--t-blue);
    color: var(--c-blue-d);
}

/* small bridge over the four facts */
.bx-facts-wrap {
    position: relative;
}

.bx-facts-bridge {
    display: none;
}

@media (min-width: 1024px) {
    .bx-facts-wrap {
        margin-top: clamp(40px, 5vw, 64px);
    }

    .bx-facts-bridge {
        display: block;
        width: 100%;
        height: 64px;
        overflow: visible;
    }

    .bx-facts-bridge path {
        fill: none;
        stroke: var(--c-blue);
        stroke-linecap: round;
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        vector-effect: non-scaling-stroke;
    }

    .bx-fb-arch { stroke-width: 2.5; opacity: .9; animation: bxDraw 1.6s var(--bx-ease) .5s forwards; }
    .bx-fb-hangers { stroke-width: 1.2; opacity: .45; animation: bxDraw 1.2s ease 1.3s forwards; }
    .bx-fb-deck { stroke-width: 2; opacity: .35; animation: bxDraw 1.4s ease .2s forwards; }

    .bx-intro-on .bx-fb-arch { animation-delay: 3.9s; }
    .bx-intro-on .bx-fb-hangers { animation-delay: 4.7s; }
    .bx-intro-on .bx-fb-deck { animation-delay: 3.6s; }

    .bx-facts-bridge + .bx-facts {
        margin-top: 0;
        border-top: 0;
    }

    .bx-facts-bridge + .bx-facts li {
        position: relative;
        padding-top: 22px;
        border-bottom: 0;
    }

    .bx-facts-bridge + .bx-facts li::before {
        content: "";
        position: absolute;
        top: -5px;
        left: 50%;
        width: 9px;
        height: 9px;
        margin-left: -4.5px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 0 0 2px var(--c-blue);
    }

    .bx-facts-bridge + .bx-facts li {
        justify-content: center;
    }
}

@keyframes bxDraw {
    to { stroke-dashoffset: 0; }
}

/* ---------- Statement / programs: blue only ---------- */
.bx-pillars li .bx-pillar-n,
.bx-pillars li:nth-child(n) .bx-pillar-n {
    color: var(--c-blue);
}

.bx-program-sped .bx-tag {
    background: var(--t-navy);
    color: var(--bridge-navy);
}

/* ---------- Admissions journey (animated) ---------- */
.bx-band-steps {
    background: linear-gradient(180deg, #fff 0%, var(--bx-tint) 100%);
}

.bx-journey {
    position: relative;
    margin-bottom: 36px;
}

.bx-journey .bx-steps {
    position: relative;
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-journey .bx-steps::before {
    display: none;
}

.bx-journey-track {
    position: absolute;
    top: 26px;
    bottom: 26px;
    inset-inline-start: 25px;
    width: 2px;
    background: var(--bx-line);
}

.bx-journey-fill {
    position: absolute;
    inset: 0;
    background: var(--c-blue);
    transform: scaleY(0);
    transform-origin: top;
}

.bx-journey .bx-step,
.bx-journey .bx-step:nth-child(n) {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    margin: 0;
    text-align: start;
}

.bx-journey .bx-step-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border: 2px solid var(--bx-line);
    border-radius: 50%;
    background: #fff;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    font-weight: 700;
    box-shadow: none;
    transition: background-color .4s, color .4s, border-color .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.bx-step-card {
    padding: 20px 22px;
    border: 1px solid var(--bx-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 36px -30px rgba(27, 43, 87, .45);
    transition: transform .6s var(--bx-ease), opacity .6s var(--bx-ease), box-shadow .3s;
}

.bx-step-card:hover {
    box-shadow: var(--bx-shadow-sm);
}

.bx-step-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-step-icon .bx-icon {
    width: 22px;
    height: 22px;
}

.bx-journey .bx-step .bx-h3 {
    margin-bottom: 6px;
    color: var(--bridge-navy);
}

.bx-journey .bx-step p {
    margin: 0;
    max-width: none;
    color: var(--bx-muted);
}

/* animation states (only when JS is on) */
.bx-js .bx-journey .bx-step-card {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
}

.bx-js .bx-journey.is-on .bx-step-card {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * .22s + .1s);
}

.bx-js .bx-journey.is-on .bx-step-num {
    border-color: var(--c-blue);
    background: var(--c-blue);
    color: #fff;
    transform: scale(1.06);
    transition-delay: calc(var(--i) * .22s);
}

.bx-js .bx-journey.is-on .bx-journey-fill {
    transform: none;
    transition: transform 1.2s var(--bx-ease) .1s;
}

.bx-journey.is-on .bx-step:last-child .bx-step-num {
    animation: bxPulse 2.4s ease-in-out 1.4s infinite;
}

@keyframes bxPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(44, 123, 176, .35); }
    50% { box-shadow: 0 0 0 10px rgba(44, 123, 176, 0); }
}

@media (min-width: 1200px) {
    .bx-journey .bx-steps {
        grid-template-columns: repeat(var(--n, 4), 1fr);
        gap: 18px;
    }

    .bx-journey-track {
        top: 25px;
        bottom: auto;
        inset-inline: calc(50% / var(--n, 4));
        width: auto;
        height: 2px;
    }

    .bx-journey-fill {
        transform: scaleX(0);
        transform-origin: right;
    }

    html:not([dir="rtl"]) .bx-journey-fill {
        transform-origin: left;
    }

    .bx-journey .bx-step,
    .bx-journey .bx-step:nth-child(n) {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bx-journey .bx-step-num {
        margin-bottom: 18px;
    }

    .bx-step-card {
        width: 100%;
        flex: 1;
        padding: 24px 20px;
    }
}

.bx-admissions-foot {
    background: #fff;
    border: 1px solid var(--bx-line);
}

.bx-fees-note .bx-icon {
    background: var(--t-blue);
    color: var(--c-blue-d);
}

/* ---------- Tour: autoplay timer ---------- */
.bx-walk-count {
    background: var(--c-blue);
}

.bx-walk-nav:hover {
    background: #fff;
    color: var(--c-blue);
}

.bx-walk-stops button[aria-current="step"] .bx-walk-thumb {
    outline-color: var(--c-blue);
}

.bx-walk-n {
    color: var(--c-blue);
}

.bx-walk-thumb {
    position: relative;
}

.bx-walk-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--c-blue);
    transform: scaleX(0);
    transform-origin: right;
}

html:not([dir="rtl"]) .bx-walk-thumb::after {
    transform-origin: left;
}

.bx-walk.is-playing .bx-walk-stops button[aria-current="step"] .bx-walk-thumb::after {
    animation: bxTimer var(--walk-delay, 5000ms) linear forwards;
}

@keyframes bxTimer {
    to { transform: none; }
}

.bx-walk-stage::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 0 auto;
    height: 3px;
    background: rgba(255, 255, 255, .85);
    transform: scaleX(0);
    transform-origin: right;
}

html:not([dir="rtl"]) .bx-walk-stage::before {
    transform-origin: left;
}

.bx-walk.is-playing .bx-walk-stage::before {
    animation: bxTimer var(--walk-delay, 5000ms) linear forwards;
}

.bx-walk-photo.is-active img {
    animation: bxKen 6s ease-out both;
}

@keyframes bxKen {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* ---------- Contact / footer / forms: blue ---------- */
.bx-contact-list li:nth-child(n) .bx-contact-icon {
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-footer-col a:hover {
    color: var(--c-blue);
}

.bx-footer-contact .bx-icon {
    color: var(--c-blue);
}

.bx-social-round a:hover {
    border-color: var(--c-blue);
    background: var(--c-blue);
}

.bx-side-dark .bx-side-row:nth-of-type(n) .bx-icon {
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-choice input:checked + span,
.bx-choice-teal input:checked + span {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(44, 123, 176, .16);
}

.bx-glance-card li .bx-icon,
.bx-checklist .bx-icon,
.bx-success-icon {
    background: var(--t-blue);
    color: var(--c-blue-d);
}

/* ---------- Intro: logo flies into the header ---------- */
.bx-intro-panel,
.bx-intro-skip {
    animation: bxIntroFade .6s ease 3.6s forwards;
}

@keyframes bxIntroFade {
    to { opacity: 0; }
}

.bx-intro-panel {
    transition: background-color .7s ease .1s;
}

.bx-intro-logo {
    transform-origin: 0 0;
    transition: transform .95s cubic-bezier(.65, 0, .25, 1);
}

.bx-intro-ar,
.bx-intro-en {
    transition: opacity .35s ease;
}

.bx-intro.is-leaving .bx-intro-panel {
    background-color: rgba(255, 255, 255, 0);
}

.bx-intro.is-leaving .bx-intro-skip {
    opacity: 0;
}

.bx-intro-on .bx-lockup-header {
    opacity: 0;
}

.bx-lockup-header {
    transition: opacity .35s ease;
}

.bx-intro.fade-names .bx-intro-ar,
.bx-intro.fade-names .bx-intro-en {
    animation: bxFadeOut .3s ease forwards;
}

@keyframes bxFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (min-width: 1024px) {
    .bx-facts-bridge path {
        vector-effect: none;
    }

    .bx-fb-arch { stroke-width: 2.4; }
    .bx-fb-hangers { stroke-width: 1.2; }
    .bx-fb-deck { stroke-width: 1.8; }
}

/* center every section head (action goes under the text) */
.bx-head-row {
    justify-items: center;
    text-align: center;
}

.bx-head-row .bx-head-text {
    display: grid;
    justify-items: center;
}

.bx-head-row .bx-kicker {
    justify-content: center;
}

.bx-head-row .bx-lead {
    margin-inline: auto;
}

@media (min-width: 768px) {
    .bx-head-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .bx-facts-bridge + .bx-facts li,
    .bx-facts-bridge + .bx-facts li + li {
        border: 0;
    }
}

/* ---------- Contact page ---------- */
.bx-contact-page {
    padding-bottom: 0;
}

.bx-dept-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 768px) {
    .bx-dept-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.bx-dept-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 28px 22px;
    border: 1px solid var(--bx-line);
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 40px -34px rgba(27, 43, 87, .45);
    transition: transform .4s var(--bx-ease), box-shadow .4s;
}

.bx-dept-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bx-shadow-sm);
}

.bx-dept-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 20px;
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-dept-icon .bx-icon {
    width: 26px;
    height: 26px;
}

.bx-dept-card .bx-h3 {
    color: var(--bridge-navy);
}

.bx-dept-num {
    margin: 0 0 12px;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
}

.bx-dept-num bdi {
    color: var(--bridge-navy);
    font-size: var(--fs-lead);
    font-weight: 600;
}

.bx-dept-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.bx-dept-actions .bx-btn {
    min-height: 44px;
    padding-inline: 18px;
}

.bx-dept-actions .bx-icon {
    width: 18px;
    height: 18px;
}

.bx-map-card {
    padding: 0;
    overflow: hidden;
}

.bx-map-card iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.bx-side-card .bx-social-round {
    margin-top: 12px;
}

@media (min-width: 600px) {
    .bx-choice-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bx-dept-card h2.bx-h3,
.bx-section .bx-dept-card h2.bx-h3 {
    margin: 0;
    font-size: var(--fs-h3);
    line-height: 1.45;
}

/* =========================================================
   V5 — touches: logo colors on cards/stages/steps only,
   card grids, light motion, whole phrases
   ========================================================= */
:root {
    --lg-blue: #358FB9;
    --lg-blue-ink: #23709A;
    --lg-blue-tint: #E6F2F9;
    --lg-yellow: #FDBE10;
    --lg-yellow-ink: #A57A00;
    --lg-yellow-tint: #FFF5D6;
    --lg-red: #DE362F;
    --lg-red-ink: #C0302A;
    --lg-red-tint: #FDECEA;
    --lg-teal: #217573;
    --lg-teal-ink: #1C6563;
    --lg-teal-tint: #E2F1F0;
}

/* footer button: white text */
.bx-footer-contact .bx-btn-primary,
.bx-btn-primary,
.bx-btn-primary:hover {
    color: #fff;
}

/* logo-color sets for cards, stages, steps */
.bx-cards > .bx-card:nth-child(4n+1),
.bx-stages > .bx-stage:nth-child(4n+1),
.bx-journey .bx-step:nth-child(4n+1) { --k: var(--lg-blue); --k-ink: var(--lg-blue-ink); --k-tint: var(--lg-blue-tint); }
.bx-cards > .bx-card:nth-child(4n+2),
.bx-stages > .bx-stage:nth-child(4n+2),
.bx-journey .bx-step:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.bx-cards > .bx-card:nth-child(4n+3),
.bx-stages > .bx-stage:nth-child(4n+3),
.bx-journey .bx-step:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.bx-cards > .bx-card:nth-child(4n+4),
.bx-stages > .bx-stage:nth-child(4n+4),
.bx-journey .bx-step:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

/* ---------- Feature cards: four together, colored, animated ---------- */
.bx-cards {
    gap: 22px;
    align-items: stretch;
}

.bx-cards > .bx-card,
.bx-cards > .bx-card:hover {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 26px 30px;
    overflow: hidden;
    border: 1px solid var(--bx-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
    text-align: center;
}

.bx-cards > .bx-card {
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
}

.bx-cards > .bx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -34px rgba(27, 43, 87, .5);
}

.bx-cards > .bx-card::before {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--k, var(--c-blue));
    transform: scaleX(.25);
    transition: transform .6s var(--bx-ease);
}

.bx-cards > .bx-card:hover::before,
.bx-js .bx-cards > .bx-card.is-visible::before {
    transform: scaleX(1);
}

.bx-js .bx-cards > .bx-card.is-visible::before {
    transition-delay: .35s;
}

.bx-cards > .bx-card .bx-card-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: var(--k-tint, var(--t-blue));
    color: var(--k-ink, var(--c-blue-d));
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s, border-radius .4s;
}

.bx-cards > .bx-card:hover .bx-card-icon {
    background: var(--k, var(--c-blue));
    color: #fff;
    border-radius: 50%;
    transform: translateY(-4px) rotate(-8deg);
}

.bx-cards > .bx-card .bx-h3 {
    margin: 0 0 10px;
    color: var(--bridge-navy);
    font-size: var(--fs-h3);
}

.bx-cards > .bx-card p {
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* staggered entrance */
.bx-js .bx-cards > .bx-reveal:nth-child(2),
.bx-js .bx-stages > .bx-reveal:nth-child(2) { transition-delay: .1s; }
.bx-js .bx-cards > .bx-reveal:nth-child(3),
.bx-js .bx-stages > .bx-reveal:nth-child(3) { transition-delay: .2s; }
.bx-js .bx-cards > .bx-reveal:nth-child(4),
.bx-js .bx-stages > .bx-reveal:nth-child(4) { transition-delay: .3s; }
.bx-js .bx-cards > .bx-reveal:hover,
.bx-js .bx-stages > .bx-reveal:hover { transition-delay: 0s; }

/* explore start cards: centered pill link in the card color */
.bx-card-link {
    text-decoration: none;
    color: inherit;
}

.bx-card-link .bx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 9px 20px;
    border: 1.5px solid var(--k, var(--c-blue));
    border-radius: 999px;
    color: var(--k-ink, var(--c-blue-d));
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background-color .3s, color .3s;
}

.bx-card-link .bx-link .bx-icon {
    width: 18px;
    height: 18px;
    transition: transform .3s var(--bx-ease);
}

.bx-card-link:hover .bx-link {
    background: var(--k, var(--c-blue));
    color: #fff;
}

.bx-card-link:hover .bx-link .bx-icon {
    transform: translateX(-4px);
}

html:not([dir="rtl"]) .bx-card-link:hover .bx-link .bx-icon {
    transform: translateX(4px) scaleX(-1);
}

.bx-card-link p {
    flex: 1;
}

/* ---------- Stage cards: logo colors back ---------- */
.bx-stages > .bx-stage {
    border: 1px solid var(--bx-line);
    border-top: 5px solid var(--k, var(--c-blue));
}

.bx-stages > .bx-stage small {
    color: var(--k-ink, var(--c-blue-d));
    font-weight: 600;
}

.bx-stages > .bx-stage strong {
    color: var(--bridge-navy);
}

.bx-stages > .bx-stage .bx-btn {
    background: var(--c-blue);
    color: #fff;
}

/* ---------- Admission steps: colored numbers + travelling light ---------- */
.bx-js .bx-journey.is-on .bx-step-num {
    border-color: var(--k, var(--c-blue));
    background: var(--k, var(--c-blue));
    color: #fff;
}

.bx-js .bx-journey.is-on .bx-step:nth-child(4n+2) .bx-step-num {
    color: var(--bridge-navy);
}

.bx-journey .bx-step-icon {
    background: var(--k-tint, var(--t-blue));
    color: var(--k-ink, var(--c-blue-d));
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}

.bx-journey .bx-step-card:hover .bx-step-icon {
    transform: translateY(-4px) rotate(-6deg);
}

.bx-journey .bx-step-card {
    border-top: 4px solid var(--k, var(--c-blue));
}

.bx-journey-fill {
    background: linear-gradient(var(--jdir, 270deg), var(--lg-blue), var(--lg-yellow), var(--lg-red), var(--lg-teal));
}

html:not([dir="rtl"]) .bx-journey-fill {
    --jdir: 90deg;
}


/* ---------- Hero: words assemble softly ---------- */
.bx-w {
    display: inline-block;
}

.bx-js .bx-split .bx-w {
    opacity: 0;
    transform: translate3d(0, .45em, 0);
    filter: blur(6px);
    animation: bxWord .8s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--d) + .15s);
}

.bx-intro-on .bx-split .bx-w {
    animation-delay: calc(var(--d) + 3.35s);
}

@keyframes bxWord {
    to { opacity: 1; transform: none; filter: none; }
}

.bx-js .bx-hero-text {
    animation: none;
}

.bx-js .bx-hero-kicker,
.bx-js .bx-hero-lead,
.bx-js .bx-hero-actions {
    opacity: 0;
    animation: bxFadeUp .8s ease forwards;
}

.bx-js .bx-hero-kicker { animation-delay: .05s; }
.bx-js .bx-hero-lead { animation-delay: 1.15s; }
.bx-js .bx-hero-actions { animation-delay: 1.35s; }
.bx-intro-on .bx-hero-kicker { animation-delay: 3.25s; }
.bx-intro-on .bx-hero-lead { animation-delay: 4.35s; }
.bx-intro-on .bx-hero-actions { animation-delay: 4.55s; }

/* name + tagline: hidden until split into words (falls back to a fade) */
.bx-js .bx-hero-name,
.bx-js .bx-hero-tagline {
    opacity: 0;
    animation: bxFadeUp .7s ease .9s forwards;
}

.bx-intro-on .bx-hero-name,
.bx-intro-on .bx-hero-tagline {
    animation-delay: 4.1s;
}

.bx-js .bx-hero-name.bx-split,
.bx-js .bx-hero-tagline.bx-split {
    opacity: 1;
    animation: none;
}

/* hero bridge: a light travels across the arch */
.bx-fb-dot {
    fill: #fff;
    stroke: var(--c-blue);
    stroke-width: 2;
    opacity: 0;
    animation: bxDotIn .4s ease 2.4s forwards;
}

.bx-intro-on .bx-fb-dot {
    animation-delay: 5.6s;
}

@keyframes bxDotIn {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bx-js .bx-split .bx-w,
    .bx-js .bx-hero-name,
    .bx-js .bx-hero-tagline,
    .bx-js .bx-hero-lead,
    .bx-js .bx-hero-actions,
    .bx-js .bx-hero-kicker {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }

    .bx-journey-track::after,
    .bx-fb-dot {
        display: none;
    }
}

.bx-hero .bx-display.bx-hero-name,
.bx-hero-tagline {
    display: block;
}

/* =========================================================
   Intro hand-off: hero animations wait (paused) during the
   intro and start the moment the logo begins to fly
   ========================================================= */
.bx-intro-on .bx-hero-text { animation-delay: 0s; }
.bx-intro-on .bx-hero-visual { animation-delay: .25s; }
.bx-intro-on .bx-hero-kicker { animation-delay: .05s; }
.bx-intro-on .bx-hero-lead { animation-delay: 1.15s; }
.bx-intro-on .bx-hero-actions { animation-delay: 1.35s; }
.bx-intro-on .bx-hero-name,
.bx-intro-on .bx-hero-tagline { animation-delay: .9s; }
.bx-intro-on .bx-split .bx-w { animation-delay: calc(var(--d) + .15s); }
.bx-intro-on .bx-fb-dot { animation-delay: 2.4s; }

@media (min-width: 1024px) {
    .bx-intro-on .bx-fb-arch { animation-delay: .5s; }
    .bx-intro-on .bx-fb-hangers { animation-delay: 1.3s; }
    .bx-intro-on .bx-fb-deck { animation-delay: .2s; }
}

.bx-intro-on:not(.bx-intro-play) .bx-hero-visual,
.bx-intro-on:not(.bx-intro-play) .bx-hero-kicker,
.bx-intro-on:not(.bx-intro-play) .bx-hero-lead,
.bx-intro-on:not(.bx-intro-play) .bx-hero-actions,
.bx-intro-on:not(.bx-intro-play) .bx-hero-name,
.bx-intro-on:not(.bx-intro-play) .bx-hero-tagline,
.bx-intro-on:not(.bx-intro-play) .bx-split .bx-w,
.bx-intro-on:not(.bx-intro-play) .bx-facts-bridge path,
.bx-intro-on:not(.bx-intro-play) .bx-fb-dot {
    animation-play-state: paused;
}

.bx-intro-on.bx-intro-done .bx-lockup-header {
    opacity: 1;
}

/* =========================================================
   Text assembles (site-wide): words rise and sharpen in order
   ========================================================= */
.bx-words .bx-w {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, .4em, 0);
    filter: blur(5px);
}

.bx-words.is-in .bx-w {
    animation: bxWord .65s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--i) * var(--step, .03s) + .05s);
}

/* inner-page heroes: keep hidden until assembled (fallback fade if JS fails) */
.bx-js .bx-page-hero .page-hero-title,
.bx-js .bx-page-hero-lead {
    opacity: 0;
    animation: bxFadeUp .7s ease .9s forwards;
}

.bx-js .bx-page-hero .page-hero-title.bx-words,
.bx-js .bx-page-hero-lead.bx-words {
    opacity: 1;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .bx-words .bx-w {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }

    .bx-js .bx-page-hero .page-hero-title,
    .bx-js .bx-page-hero-lead {
        opacity: 1;
        animation: none;
    }
}

/* =========================================================
   V6 — colored, animated details: hero bridge dots, pillars,
   admission ball that "hits" each number
   ========================================================= */

/* hero facts: each fact has its own logo color */
.bx-facts > li:nth-child(4n+1) { --k: var(--lg-blue); --k-ink: var(--lg-blue-ink); --k-tint: var(--lg-blue-tint); }
.bx-facts > li:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.bx-facts > li:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.bx-facts > li:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

.bx-facts > li .bx-icon {
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}

.bx-facts > li:hover .bx-icon {
    background: var(--k);
    color: #fff;
    transform: translateY(-3px) rotate(-8deg);
}

@media (min-width: 1024px) {
    .bx-facts-bridge + .bx-facts li::before {
        width: 12px;
        height: 12px;
        margin-left: -6px;
        top: -7px;
        background: #fff;
        box-shadow: 0 0 0 2.5px var(--k);
        animation: bxFactDot 4.8s ease-in-out infinite;
    }

    .bx-facts-bridge + .bx-facts li:nth-child(1)::before { animation-delay: 2.6s; }
    .bx-facts-bridge + .bx-facts li:nth-child(2)::before { animation-delay: 3.2s; }
    .bx-facts-bridge + .bx-facts li:nth-child(3)::before { animation-delay: 3.8s; }
    .bx-facts-bridge + .bx-facts li:nth-child(4)::before { animation-delay: 4.4s; }

    .bx-intro-on:not(.bx-intro-play) .bx-facts-bridge + .bx-facts li::before {
        animation-play-state: paused;
    }
}

@keyframes bxFactDot {
    0%, 22%, 100% { transform: scale(1); background: #fff; }
    8% { transform: scale(1.55); background: var(--k); box-shadow: 0 0 0 2.5px var(--k), 0 0 0 9px color-mix(in srgb, var(--k) 22%, transparent); }
    14% { transform: scale(1.15); background: var(--k); }
}

/* statement pillars: colored numbers, bars grow in order, hover nudge */
.bx-pillars li:nth-child(1) { --k: var(--lg-blue); }
.bx-pillars li:nth-child(2) { --k: var(--lg-yellow); --k-num: var(--lg-yellow-ink); }
.bx-pillars li:nth-child(3) { --k: var(--lg-red); }
.bx-pillars li:nth-child(4) { --k: var(--lg-teal); }

.bx-pillars li {
    position: relative;
    transition: transform .4s var(--bx-ease), color .3s;
}

.bx-pillars li .bx-pillar-n,
.bx-pillars li:nth-child(n) .bx-pillar-n {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--k) 14%, #fff);
    color: var(--k-num, var(--k));
    font-weight: 700;
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}

.bx-pillars li::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--k);
    transition: width .9s var(--bx-ease);
}

.bx-js .bx-reveal.is-visible .bx-pillars li::after,
.bx-pillars li:hover::after {
    width: 100%;
}

.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(1)::after { transition-delay: .3s; }
.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(2)::after { transition-delay: .55s; }
.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(3)::after { transition-delay: .8s; }

.bx-js .bx-reveal .bx-pillars li .bx-pillar-n {
    transform: scale(0);
}

.bx-js .bx-reveal.is-visible .bx-pillars li .bx-pillar-n {
    transform: none;
}

.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(1) .bx-pillar-n { transition-delay: .25s; }
.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(2) .bx-pillar-n { transition-delay: .5s; }
.bx-js .bx-reveal.is-visible .bx-pillars li:nth-child(3) .bx-pillar-n { transition-delay: .75s; }

.bx-pillars li:hover {
    transform: translateX(-6px);
}

html:not([dir="rtl"]) .bx-pillars li:hover {
    transform: translateX(6px);
}

.bx-pillars li:hover .bx-pillar-n {
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
    transition-delay: 0s;
}

/* =========================================================
   Footer — tidy columns, aligned contact rows
   ========================================================= */
.bx-footer {
    padding-top: clamp(56px, 6vw, 80px);
}

.bx-footer-grid {
    gap: 40px 32px;
    align-items: start;
    padding-bottom: clamp(40px, 5vw, 56px);
}

@media (min-width: 768px) {
    .bx-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .bx-footer-grid {
        grid-template-columns: 1.25fr 1fr 1fr 1.35fr;
        gap: 48px;
    }
}

/* brand column: everything aligned to the same edge */
.bx-footer-brand {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 0;
}

.bx-footer-brand .bx-footer-logo {
    margin-bottom: 18px;
}

.bx-footer-brand .bx-footer-slogan {
    margin: 0 0 4px;
    color: var(--bridge-navy);
    font-size: var(--fs-base);
    font-weight: 600;
}

.bx-footer-brand p {
    margin: 0 0 18px;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
}

.bx-footer-brand .bx-social-round {
    margin: 0;
}

/* column headings with a short blue line under them */
.bx-footer-col h2 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--bridge-navy);
    font-size: var(--fs-base);
    font-weight: 700;
}

.bx-footer-col h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-blue);
}

.bx-footer-col ul {
    gap: 12px;
    margin: 0;
    font-size: var(--fs-sm);
}

.bx-footer-col ul a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3D4868;
    transition: color .25s, transform .25s var(--bx-ease);
}

.bx-footer-col ul a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bx-line);
    transition: background-color .25s;
}

.bx-footer-col ul a:hover {
    color: var(--c-blue);
    transform: translateX(-4px);
}

html:not([dir="rtl"]) .bx-footer-col ul a:hover {
    transform: translateX(4px);
}

.bx-footer-col ul a:hover::before {
    background: var(--c-blue);
}

/* contact rows: icon · label/number · WhatsApp */
.bx-footer-contact .bx-fc {
    gap: 12px;
}

.bx-footer-contact .bx-fc-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--bx-line);
    border-radius: 16px;
    background: #fff;
}

.bx-fc-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-fc-icon .bx-icon,
.bx-footer-contact .bx-fc-icon .bx-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    color: inherit;
}

.bx-fc-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bx-fc-text small {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-footer-contact .bx-fc-text a {
    color: var(--bridge-navy);
    font-weight: 600;
    text-align: start;
}

.bx-footer-contact .bx-fc-text a::before {
    display: none;
}

.bx-footer-contact .bx-fc-text a:hover {
    color: var(--c-blue);
    transform: none;
}

.bx-fc-wa {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.bx-fc-wa:hover {
    transform: scale(1.1);
}

.bx-fc-wa .bx-icon,
.bx-footer-contact .bx-fc-wa .bx-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    color: #fff;
}

.bx-footer-contact .bx-fc-item:last-child {
    grid-template-columns: 40px 1fr;
}

/* bottom bar */
.bx-footer-bottom-inner {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
}

.bx-footer-contact a::before,
.bx-footer-contact .bx-fc-wa::before {
    display: none !important;
}

@media (max-width: 767px) {
    .bx-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 20px;
    }

    .bx-footer-brand,
    .bx-footer-contact {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   V7 — school data: 6-step journey, fees, ages, documents,
   team, licence
   ========================================================= */

/* ---------- Admission journey: any number of steps ---------- */
.bx-journey {
    max-width: 820px;
    margin-inline: auto;
}

.bx-journey .bx-steps {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1200px) {
    .bx-journey {
        max-width: none;
    }

    .bx-journey .bx-steps {
        grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    }

    .bx-journey .bx-step-card {
        padding: 22px 16px;
    }

    .bx-journey .bx-step .bx-h3 {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .bx-journey .bx-step p {
        font-size: var(--fs-sm);
        line-height: 1.75;
    }
}

/* the ball is drawn by JS and travels number to number */
.bx-journey-ball {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px var(--c-blue), 0 0 16px 4px rgba(53, 143, 185, .55);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.bx-journey .bx-steps {
    z-index: 1;
}

.bx-js .bx-journey.is-on .bx-step .bx-step-num,
.bx-js .bx-journey.is-on .bx-step .bx-step-card,
.bx-journey.is-on .bx-step:last-child .bx-step-num {
    animation: none;
}

.bx-js .bx-journey.is-on .bx-step.is-hit .bx-step-num {
    animation: bxNumPop .75s ease-out;
}

.bx-js .bx-journey.is-on .bx-step.is-hit .bx-step-card {
    animation: bxCardPop .9s ease-out;
}

@keyframes bxNumPop {
    0% { transform: scale(1.06); }
    25% { transform: scale(1.32) rotate(-6deg); box-shadow: 0 0 0 10px color-mix(in srgb, var(--k, #358FB9) 25%, transparent); }
    50% { transform: scale(.94) rotate(3deg); }
    75% { transform: scale(1.1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k, #358FB9) 12%, transparent); }
    100% { transform: scale(1.06); box-shadow: 0 0 0 0 transparent; }
}

@keyframes bxCardPop {
    0%, 100% { transform: none; }
    35% { transform: translate3d(0, -6px, 0); box-shadow: 0 26px 40px -30px rgba(27, 43, 87, .5); }
}

@media (prefers-reduced-motion: reduce) {
    .bx-journey-ball {
        display: none;
    }

    .bx-js .bx-journey.is-on .bx-step.is-hit .bx-step-num,
    .bx-js .bx-journey.is-on .bx-step.is-hit .bx-step-card {
        animation: none;
    }
}

/* ---------- Fees ---------- */
.bx-fee-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .bx-fee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bx-fee-card {
    --k: var(--lg-blue);
    --k-ink: var(--lg-blue-ink);
    --k-tint: var(--lg-blue-tint);
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--bx-line);
    border-top: 5px solid var(--k);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
}

.bx-fee-card.bx-fee-sped {
    --k: var(--lg-teal);
    --k-ink: var(--lg-teal-ink);
    --k-tint: var(--lg-teal-tint);
}

.bx-js .bx-fee-grid > .bx-reveal:nth-child(2) {
    transition-delay: .12s;
}

.bx-fee-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -34px rgba(27, 43, 87, .5);
    transition-delay: 0s;
}

.bx-fee-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.bx-fee-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s, border-radius .4s;
}

.bx-fee-icon .bx-icon {
    width: 26px;
    height: 26px;
}

.bx-fee-card:hover .bx-fee-icon {
    border-radius: 50%;
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg);
}

.bx-fee-head .bx-h3 {
    margin: 0;
    color: var(--bridge-navy);
}

.bx-fee-head p {
    margin: 4px 0 0;
    color: var(--k-ink);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-fee-rows {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.bx-fee-rows li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px dashed var(--bx-line);
}

.bx-fee-stage b {
    display: block;
    color: var(--bridge-navy);
    font-size: 1.1rem;
    font-weight: 800;
}

.bx-fee-stage small,
.bx-fee-amount small {
    display: block;
    margin-top: 2px;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-fee-amount {
    text-align: end;
}

.bx-fee-amount b {
    display: block;
    color: var(--k-ink);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.bx-fee-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 24px;
    padding: 18px 24px;
    border: 1px solid var(--bx-line);
    border-radius: 22px;
    background: var(--bx-tint);
}

.bx-fee-foot p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--bridge-navy);
    font-weight: 600;
}

.bx-fee-foot p .bx-icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--lg-yellow-ink);
}

/* ---------- Ages ---------- */
.bx-ages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .bx-ages {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .bx-ages {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.bx-age {
    --k: var(--lg-blue);
    --k-ink: var(--lg-blue-ink);
    --k-tint: var(--lg-blue-tint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 14px 20px;
    border: 1px solid var(--bx-line);
    border-radius: 24px;
    background: #fff;
    text-align: center;
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
}

.bx-age:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.bx-age:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.bx-age:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

.bx-js .bx-ages > .bx-reveal:nth-child(2) { transition-delay: .08s; }
.bx-js .bx-ages > .bx-reveal:nth-child(3) { transition-delay: .16s; }
.bx-js .bx-ages > .bx-reveal:nth-child(4) { transition-delay: .24s; }
.bx-js .bx-ages > .bx-reveal:nth-child(5) { transition-delay: .32s; }
.bx-js .bx-ages > .bx-reveal:nth-child(6) { transition-delay: .4s; }

.bx-age:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 40px -30px rgba(27, 43, 87, .45);
    transition-delay: 0s;
}

.bx-age b {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 64px;
    margin-bottom: 8px;
    padding: 0 10px;
    border-radius: 22px;
    background: var(--k-tint);
    color: var(--k-ink);
    font-size: 1.05rem;
    font-weight: 800;
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s, border-radius .4s;
}

.bx-age:hover b {
    border-radius: 50%;
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg);
}

.bx-age:nth-child(4n+2):hover b {
    color: var(--bridge-navy);
}

.bx-age span {
    color: var(--bx-muted);
    font-size: var(--fs-sm);
}

.bx-age strong {
    color: var(--bridge-navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.bx-age small {
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bx-tint);
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

/* ---------- Documents ---------- */
.bx-docs {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .bx-docs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .bx-docs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bx-doc {
    --k: var(--lg-blue);
    --k-ink: var(--lg-blue-ink);
    --k-tint: var(--lg-blue-tint);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 20px;
    background: #fff;
    color: var(--bridge-navy);
    font-weight: 600;
    line-height: 1.6;
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
}

.bx-doc:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.bx-doc:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.bx-doc:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

.bx-js .bx-docs > .bx-reveal:nth-child(3n+2) { transition-delay: .1s; }
.bx-js .bx-docs > .bx-reveal:nth-child(3n+3) { transition-delay: .2s; }

.bx-doc:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -30px rgba(27, 43, 87, .45);
    transition-delay: 0s;
}

.bx-doc-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}

.bx-doc-icon .bx-icon {
    width: 22px;
    height: 22px;
}

.bx-doc:hover .bx-doc-icon {
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg);
}

/* ---------- Stage cards: age + fee lines ---------- */
.bx-stage-meta {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 14px 0 18px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--bx-line);
    list-style: none;
}

.bx-stage-meta li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-stage-meta .bx-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--k-ink, var(--c-blue-d));
}

/* feature cards: fee line under the text */
.bx-cards > .bx-card .bx-card-meta {
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--k-tint, var(--t-blue));
    color: var(--k-ink, var(--c-blue-d));
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* ---------- Team ---------- */
.bx-member .bx-member-role {
    margin: -4px 0 12px;
    color: var(--k-ink, var(--c-blue-d));
    font-weight: 700;
}

.bx-member-quals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.bx-member-quals li {
    padding: 4px 12px;
    border: 1px solid var(--bx-line);
    border-radius: 999px;
    background: var(--bx-tint);
    color: var(--bridge-navy);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.6;
}

.bx-cards > .bx-card.bx-member-team p {
    color: var(--bx-muted);
    font-weight: 500;
}

.bx-js .bx-team-grid > .bx-reveal:nth-child(5) { transition-delay: .1s; }
.bx-js .bx-team-grid > .bx-reveal:nth-child(6) { transition-delay: .2s; }

/* ---------- Licensed categories + licence badge ---------- */
.bx-cat-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .bx-cat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .bx-cat-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bx-cat {
    --k: var(--lg-blue);
    --k-tint: var(--lg-blue-tint);
    --k-ink: var(--lg-blue-ink);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 18px;
    background: #fff;
    color: var(--bridge-navy);
    font-weight: 700;
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
    transition-delay: calc(var(--i, 0) * .07s);
}

.bx-cat:nth-child(4n+2) { --k: var(--lg-yellow); --k-tint: var(--lg-yellow-tint); --k-ink: var(--lg-yellow-ink); }
.bx-cat:nth-child(4n+3) { --k: var(--lg-red); --k-tint: var(--lg-red-tint); --k-ink: var(--lg-red-ink); }
.bx-cat:nth-child(4n+4) { --k: var(--lg-teal); --k-tint: var(--lg-teal-tint); --k-ink: var(--lg-teal-ink); }

.bx-cat .bx-icon {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}

.bx-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -30px rgba(27, 43, 87, .45);
    transition-delay: 0s;
}

.bx-cat:hover .bx-icon {
    background: var(--k);
    color: #fff;
    transform: scale(1.1) rotate(-8deg);
}

.bx-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 0;
    padding: 10px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.6;
}

.bx-licensed .bx-license-badge {
    display: flex;
    width: fit-content;
    margin: 28px auto 0;
}

.bx-license-badge .bx-icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--lg-yellow-ink);
}

.bx-footer-bottom .bx-footer-license {
    opacity: .8;
}

@media (max-width: 767px) {
    .bx-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Contact: national address ---------- */
.bx-naddr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 4px 0 18px;
}

.bx-naddr div {
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--bx-tint);
    text-align: center;
}

.bx-naddr div:nth-child(3) {
    grid-column: 1 / -1;
}

.bx-naddr dt {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-naddr dd {
    margin: 0;
    color: var(--bridge-navy);
    font-weight: 700;
}

/* journey line: one calm color (no multicolor lines) */
.bx-journey-fill,
html:not([dir="rtl"]) .bx-journey-fill {
    background: color-mix(in srgb, var(--c-blue) 55%, #fff);
}

.bx-fee-stage,
.bx-fee-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bx-fee-amount {
    align-items: flex-end;
}

.bx-pillars + .bx-license-badge {
    margin-top: 26px;
}

/* contact: two department cards, then the location card full width */
@media (min-width: 768px) {
    .bx-dept-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bx-dept-loc {
        grid-column: 1 / -1;
    }

    .bx-dept-loc .bx-naddr {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: 920px;
    }

    .bx-dept-loc .bx-naddr div:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 599px) {
    .bx-cards > .bx-card.bx-member,
    .bx-cards > .bx-card.bx-member:hover {
        padding: 26px 18px 22px;
    }

    .bx-cards > .bx-card.bx-member .bx-card-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
        border-radius: 18px;
    }

    .bx-license-badge {
        border-radius: 18px;
        text-align: center;
    }
}

/* =========================================================
   Hero — banner variant (full-width photo, text on the sky)
   ========================================================= */
.bx-hero.bx-hero-banner {
    padding-top: 0;
    background: var(--bx-tint);
}

.bx-hero-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.bx-hero-media {
    position: relative;
    order: 2;
    display: block;
    margin-top: -90px;
    overflow: hidden;
}

.bx-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 45% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 26%);
}

.bx-hero-banner .bx-hero-grid {
    position: relative;
    z-index: 1;
    display: block;
    padding-top: clamp(28px, 6vw, 48px);
}

.bx-hero-banner .bx-hero-text {
    max-width: 600px;
}

.bx-hero-chips {
    display: none;
}

/* phones: the photo comes first as the banner, the text follows */
@media (max-width: 767.98px) {
    .bx-hero-media {
        order: 0;
        margin-top: 0;
    }

    .bx-hero-media img {
        aspect-ratio: 1 / 1;
        object-position: 45% 88%;
        -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    }

    .bx-hero-banner .bx-hero-grid {
        margin-top: -34px;
        padding-top: 0;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .bx-hero-media img {
        aspect-ratio: 2.4 / 1;
        object-position: 30% 100%;
    }
}

@media (min-width: 1024px) {
    .bx-hero-stage {
        display: block;
        min-height: max(600px, 41.6vw);
        max-height: 860px;
    }

    /* the photo keeps its own proportions at the top of the stage;
       a light veil sits on the text side and the bottom fades into the beige */
    .bx-hero-media {
        position: absolute;
        inset: 0 0 auto 0;
        z-index: -1;
        margin: 0;
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    }

    .bx-hero-media img {
        height: auto;
        aspect-ratio: 2.4 / 1;
        object-position: 0% 60%;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .bx-hero-media::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to left, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .78) 44%, rgba(255, 255, 255, 0) 55%);
    }

    .bx-hero-banner .bx-hero-grid {
        display: flex;
        align-items: center;
        min-height: inherit;
        padding-block: 120px 72px;
    }

    .bx-hero-banner .bx-hero-text {
        max-width: 520px;
    }

    .bx-hero-banner .bx-hero-lead {
        color: #3A4668;
    }

    /* text sits on the sky side (right) in both languages */
    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        margin-left: auto;
    }

    .bx-hero-banner .bx-hero-name {
        font-size: clamp(3rem, 4.4vw, 4.4rem);
        line-height: 1.12;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-grid {
        padding-top: 64px;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        max-width: 560px;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-name {
        font-size: clamp(2.6rem, 3.4vw, 3.5rem);
    }

    .bx-hero-chips {
        position: absolute;
        inset: 0;
        display: block;
        pointer-events: none;
    }

    .bx-hero-banner .bx-chip {
        position: absolute;
        pointer-events: auto;
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .bx-hero-banner .bx-chip-b {
        top: 14%;
        bottom: auto;
        inset-inline-start: auto;
        inset-inline-end: 6%;
    }

    .bx-hero-banner .bx-chip-a {
        top: auto;
        bottom: 20%;
        inset-inline-start: auto;
        inset-inline-end: 0;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-chip-b {
        top: auto;
        bottom: 38%;
        right: auto;
        left: 0;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-chip-a {
        right: auto;
        left: 0;
    }

    .bx-hero-banner .bx-facts-wrap {
        margin-top: -36px;
    }
}

/* the photo settles in slowly when the page opens */
.bx-hero-media img {
    animation: bxHeroSettle 2.4s cubic-bezier(.2, .7, .2, 1) both;
    transform-origin: 30% 70%;
}

@keyframes bxHeroSettle {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: none; }
}

.bx-intro-on .bx-hero-media img { animation-delay: .1s; }
.bx-intro-on .bx-hero-chips .bx-chip { animation-delay: 1.6s; }

.bx-intro-on:not(.bx-intro-play) .bx-hero-media img,
.bx-intro-on:not(.bx-intro-play) .bx-hero-chips .bx-chip {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .bx-hero-media img {
        animation: none;
    }
}

/* =========================================================
   Team — home brief + "Our team" page
   ========================================================= */
.bx-team-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .bx-team-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .bx-team-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

.bx-person {
    --k: var(--lg-blue);
    --k-ink: var(--lg-blue-ink);
    --k-tint: var(--lg-blue-tint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 12px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease), opacity .8s var(--bx-ease);
}

.bx-person:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.bx-person:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.bx-person:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

.bx-js .bx-team-strip > .bx-reveal {
    transition-delay: calc(var(--i, 0) * .08s);
}

.bx-person:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -30px rgba(27, 43, 87, .45);
    transition-delay: 0s;
}

.bx-person-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s;
}

.bx-person-icon .bx-icon {
    width: 24px;
    height: 24px;
}

.bx-person:hover .bx-person-icon {
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
}

.bx-person b {
    color: var(--bridge-navy);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
}

.bx-person small {
    color: var(--k-ink);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.6;
}

.bx-team-more {
    display: flex;
    justify-content: center;
    margin: 32px 0 0;
}

.bx-team-more .bx-btn .bx-icon {
    width: 18px;
    height: 18px;
}

html:not([dir="rtl"]) .bx-team-more .bx-btn .bx-icon {
    transform: scaleX(-1);
}

/* team page */
.bx-cards-2.bx-team-grid {
    max-width: 880px;
    margin-inline: auto;
}

.bx-shadow-card {
    display: grid;
    gap: 22px;
    align-items: start;
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--bx-line);
    border-top: 5px solid var(--lg-teal);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
}

@media (min-width: 768px) {
    .bx-shadow-card {
        grid-template-columns: auto 1fr;
        gap: 32px;
    }
}

.bx-shadow-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: var(--lg-teal-tint);
    color: var(--lg-teal-ink);
}

.bx-shadow-icon .bx-icon {
    width: 34px;
    height: 34px;
}

.bx-shadow-card .bx-title {
    margin: 6px 0 10px;
}

.bx-shadow-card .bx-lead {
    margin: 0 0 18px;
}

.bx-shadow-card .bx-member-quals {
    justify-content: flex-start;
}

.bx-team-brief .bx-team-more {
    margin-top: 36px;
}


/* 1024–1199: compact header (no hanging logo), narrower text column */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .bx-hero-banner .bx-hero-grid,
    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-grid {
        padding-top: 44px;
    }

    .bx-hero-banner .bx-hero-text,
    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        max-width: 440px;
    }

    .bx-hero-banner .bx-hero-name {
        font-size: 2.9rem;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-name {
        font-size: 2.4rem;
    }

    .bx-hero-chips {
        display: none;
    }

    .bx-hero-media::after {
        background: linear-gradient(to left, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 40%, rgba(255, 255, 255, .7) 46%, rgba(255, 255, 255, 0) 56%);
    }
}

.bx-age small {
    border-radius: 12px;
    line-height: 1.5;
}

/* =========================================================
   Contact rows — one look everywhere (header menu, closing
   CTA cards, footer): icon · label + number · WhatsApp
   ========================================================= */
.bx-fc {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-fc-item,
.bx-contact-list .bx-fc-item,
.bx-footer-contact .bx-fc-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--bx-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    color: var(--bridge-navy);
    text-align: start;
}

.bx-fc-item.bx-fc-address,
.bx-footer-contact .bx-fc-item.bx-fc-address {
    grid-template-columns: 40px minmax(0, 1fr);
}

.bx-fc-item .bx-fc-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--t-blue);
    color: var(--c-blue-d);
}

.bx-fc-item .bx-fc-icon .bx-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    color: inherit;
}

.bx-fc-item .bx-fc-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.bx-fc-item .bx-fc-text small {
    grid-column: auto;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.bx-fc-item .bx-fc-text a {
    display: block;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.5;
    text-align: start;
    text-decoration: none;
}

.bx-fc-item .bx-fc-text a::before {
    display: none;
}

.bx-fc-item .bx-fc-text a:hover {
    color: var(--c-blue);
    transform: none;
}

.bx-fc-item .bx-fc-wa {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}

.bx-fc-item .bx-fc-wa::before {
    display: none !important;
}

.bx-fc-item .bx-fc-wa:hover {
    transform: scale(1.1);
}

.bx-fc-item .bx-fc-wa .bx-icon {
    width: 18px;
    height: 18px;
    margin: 0;
    color: #fff;
}

/* header menu: rows sit on the menu's tint, so give them the same white card */
.bx-nav-extra .bx-fc-item {
    width: 100%;
}

/* =========================================================
   Nav: "Explore the school" dropdown (about, tour, team,
   gallery, news)
   ========================================================= */
.bx-sub-toggle {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bridge-navy);
    cursor: pointer;
}

.bx-sub-toggle .bx-icon {
    transition: transform .3s var(--bx-ease);
}

.has-sub.is-open > .bx-sub-toggle .bx-icon {
    transform: rotate(180deg);
}

.bx-sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-nav-list .bx-sub a::after {
    display: none !important;
}

/* drawer (phones, tablets): accordion */
@media (max-width: 1199.98px) {
    .bx-nav-list > li.has-sub {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        border-bottom: 1px solid var(--bx-line);
    }

    .bx-nav-list > li.has-sub > a {
        border-bottom: 0;
    }

    .bx-sub-toggle {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--bx-tint);
    }

    .bx-sub-toggle .bx-icon {
        width: 18px;
        height: 18px;
    }

    .bx-sub {
        grid-column: 1 / -1;
        display: none;
        margin: 0 0 12px;
        padding-inline-start: 14px;
        border-inline-start: 2px solid var(--bx-line);
    }

    .has-sub.is-open > .bx-sub {
        display: block;
    }

    .bx-nav-list .bx-sub a {
        padding: 10px 4px;
        border-bottom: 0;
        color: var(--bx-muted);
        font-size: 1rem;
        font-weight: 500;
    }

    .bx-nav-list .bx-sub a[aria-current="page"] {
        color: var(--c-blue-d);
        font-weight: 700;
    }
}

/* desktop: dropdown panel on hover, focus or click */
@media (min-width: 1200px) {
    .bx-nav-list > li.has-sub {
        position: relative;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .bx-sub-toggle {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }

    .bx-sub-toggle:hover,
    .bx-sub-toggle:focus-visible {
        background: var(--bx-tint);
    }

    .bx-sub-toggle .bx-icon {
        width: 14px;
        height: 14px;
    }

    .has-sub:hover > .bx-sub-toggle .bx-icon {
        transform: rotate(180deg);
    }

    .bx-sub {
        position: absolute;
        top: calc(100% + 12px);
        inset-inline-start: -18px;
        z-index: 40;
        min-width: 220px;
        padding: 8px;
        border: 1px solid var(--bx-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 26px 46px -24px rgba(27, 43, 87, .35);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, 8px, 0);
        transition: opacity .25s var(--bx-ease), transform .25s var(--bx-ease), visibility 0s linear .25s;
    }

    /* keeps the menu open while the pointer crosses the gap */
    .bx-sub::before {
        content: "";
        position: absolute;
        inset: -14px 0 auto;
        height: 14px;
    }

    .has-sub:hover > .bx-sub,
    .has-sub:focus-within > .bx-sub,
    .has-sub.is-open > .bx-sub {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition-delay: 0s;
    }

    .bx-nav-list .bx-sub a {
        display: block;
        padding: 10px 14px;
        border-radius: 12px;
        color: var(--bridge-navy);
        font-size: var(--fs-sm);
        font-weight: 600;
        white-space: nowrap;
        transition: background-color .2s, color .2s;
    }

    .bx-nav-list .bx-sub a:hover,
    .bx-nav-list .bx-sub a:focus-visible,
    .bx-nav-list .bx-sub a[aria-current="page"] {
        background: var(--bx-tint);
        color: var(--c-blue-d);
    }

    /* parent shows the underline while you are on one of its pages */
    .bx-nav-list > li.is-current-parent > a::after {
        transform: scaleX(1);
    }
}

/* The header blur lives on a pseudo-element: a backdrop-filter on the header
   itself traps the fixed mobile menu inside the 72px header bar. */
.bx-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.bx-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}

/* =========================================================
   Hero banner on laptops/desktops: the photo fills the left
   ~64% and fades out, the text sits on a calm background on
   the right — nothing overlaps the children.
   ========================================================= */
@media (min-width: 1024px) {
    .bx-hero-stage {
        min-height: clamp(560px, 44vw, 820px);
        max-height: none;
        background: linear-gradient(180deg, #fff 0%, var(--bx-tint) 100%);
    }

    .bx-hero-media {
        inset: 0 auto 0 0;
        width: 64%;
        height: 100%;
        -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-composite: intersect;
    }

    .bx-hero-media img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: 18% 55%;
    }

    .bx-hero-media::after,
    .bx-hero-banner .bx-hero-media::after {
        display: none;
    }

    .bx-hero-banner .bx-hero-grid {
        min-height: clamp(560px, 44vw, 820px);
    }

    .bx-hero-banner .bx-hero-text,
    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        max-width: min(520px, 38vw);
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        margin-left: auto;
    }

    .bx-hero-banner .bx-hero-name {
        font-size: clamp(2.8rem, 3.9vw, 4.2rem);
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-name {
        font-size: clamp(2.3rem, 2.9vw, 3.3rem);
    }

    /* the two small cards sit on the photo's left edge, away from the faces */
    .bx-hero-banner .bx-hero-grid {
        position: static;
    }

    .bx-hero-chips {
        position: absolute;
        inset: 0;
        display: block;
        pointer-events: none;
    }

    .bx-hero-banner .bx-chip-b,
    html:not([dir="rtl"]) .bx-hero-banner .bx-chip-b {
        top: 16%;
        bottom: auto;
        right: auto;
        left: 2.5%;
    }

    .bx-hero-banner .bx-chip-a,
    html:not([dir="rtl"]) .bx-hero-banner .bx-chip-a {
        top: auto;
        bottom: 20%;
        right: auto;
        left: 2.5%;
    }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
    .bx-hero-chips {
        display: none;
    }
}

@media (min-width: 1024px) {
    .bx-hero-banner .bx-chip-a {
        display: none;
    }
}

/* =========================================================
   "Choose your path" overlay — same look as the rest of the
   site: white→beige, logo colours in the cards, blue buttons
   ========================================================= */
.journey-overlay,
.journey-overlay .path-selection,
.journey-overlay .path-journey {
    background: linear-gradient(180deg, #fff 0%, var(--bx-tint) 100%);
}

.journey-overlay,
.journey-overlay button,
.journey-overlay input,
.journey-overlay select,
.journey-overlay textarea,
.journey-overlay label,
.journey-overlay .path-card-title,
.journey-overlay .journey-step-option,
.journey-overlay .journey-back,
.journey-overlay .registration-input,
.journey-overlay .registration-field label,
.journey-overlay .path-progress-label {
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

.journey-overlay .journey-close {
    width: 46px;
    height: 46px;
    border: 1px solid var(--bx-line);
    box-shadow: 0 14px 28px -20px rgba(27, 43, 87, .5);
    transition: transform .3s var(--bx-ease), background-color .2s;
}

.journey-overlay .journey-close:hover {
    background: var(--bx-tint);
    transform: rotate(90deg);
}

.journey-logo-icon {
    display: block;
    width: auto;
    height: 46px;
}

.journey-overlay .journey-back {
    border-color: var(--bx-line);
    background: #fff;
    color: var(--bridge-navy);
}

/* path cards */
.journey-overlay .path-selection-title {
    margin-bottom: 36px;
    color: var(--bridge-navy);
    font-size: var(--fs-h2);
}

.journey-overlay .path-grid {
    gap: 18px;
}

.journey-overlay .path-card {
    --k: var(--lg-blue);
    --k-ink: var(--lg-blue-ink);
    --k-tint: var(--lg-blue-tint);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 30px 18px 26px;
    border: 1px solid var(--bx-line);
    border-top: 5px solid var(--k);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
    text-align: center;
    transition: transform .5s var(--bx-ease), box-shadow .5s var(--bx-ease);
}

.journey-overlay .path-card:nth-child(4n+2) { --k: var(--lg-yellow); --k-ink: var(--lg-yellow-ink); --k-tint: var(--lg-yellow-tint); }
.journey-overlay .path-card:nth-child(4n+3) { --k: var(--lg-red); --k-ink: var(--lg-red-ink); --k-tint: var(--lg-red-tint); }
.journey-overlay .path-card:nth-child(4n+4) { --k: var(--lg-teal); --k-ink: var(--lg-teal-ink); --k-tint: var(--lg-teal-tint); }

.journey-overlay .path-selection.is-active .path-card {
    animation: bxPathIn .6s var(--bx-ease) both;
}

.journey-overlay .path-selection.is-active .path-card:nth-child(2) { animation-delay: .08s; }
.journey-overlay .path-selection.is-active .path-card:nth-child(3) { animation-delay: .16s; }
.journey-overlay .path-selection.is-active .path-card:nth-child(4) { animation-delay: .24s; }

@keyframes bxPathIn {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to { opacity: 1; transform: none; }
}

.journey-overlay .path-card:hover,
.journey-overlay .path-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -34px rgba(27, 43, 87, .5);
}

.path-card-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    border-radius: 22px;
    background: var(--k-tint);
    color: var(--k-ink);
    transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s, color .3s, border-radius .4s;
}

.path-card-icon .bx-icon {
    width: 28px;
    height: 28px;
}

.journey-overlay .path-card:hover .path-card-icon {
    border-radius: 50%;
    background: var(--k);
    color: #fff;
    transform: rotate(-8deg);
}

.journey-overlay .path-card-title {
    color: var(--bridge-navy);
    font-size: 1.15rem;
    font-weight: 800;
}

.path-card-desc {
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.journey-overlay .browse-site-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 11px 22px;
    border: 1px solid var(--bx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--bridge-navy);
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
}

.journey-overlay .browse-site-link:hover {
    border-color: var(--c-blue);
    color: var(--c-blue-d);
}

/* the steps */
.journey-overlay .mini-bridge-pillar {
    fill: var(--c-blue);
}

.journey-overlay #miniBridgeLight {
    fill: #fff;
    stroke: var(--c-blue);
    stroke-width: 2;
    filter: drop-shadow(0 0 4px rgba(53, 143, 185, .6));
}

.journey-overlay .path-progress-label {
    color: var(--bx-muted);
}

.journey-overlay .journey-step-title {
    color: var(--bridge-navy);
    font-size: var(--fs-h2);
}

.journey-overlay .journey-step-text {
    color: var(--bx-muted);
    font-size: var(--fs-lead);
    line-height: 1.9;
}

.journey-overlay .journey-step-option {
    --k: var(--lg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 20px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 18px 36px -32px rgba(27, 43, 87, .45);
    animation: bxPathIn .5s var(--bx-ease) both;
}

.journey-overlay .journey-step-option::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--k);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 18%, transparent);
}

.journey-overlay .journey-step-option:nth-child(4n+2) { --k: var(--lg-yellow); animation-delay: .07s; }
.journey-overlay .journey-step-option:nth-child(4n+3) { --k: var(--lg-red); animation-delay: .14s; }
.journey-overlay .journey-step-option:nth-child(4n+4) { --k: var(--lg-teal); animation-delay: .21s; }

.journey-overlay .journey-step-option:hover,
.journey-overlay .journey-step-option:focus-visible {
    border-color: var(--k);
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -30px rgba(27, 43, 87, .5);
}

.journey-overlay .journey-step-continue,
.journey-overlay .registration-form button[type="submit"] {
    padding: 14px 34px;
    border: 0;
    border-radius: 999px;
    background: var(--c-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 28px -18px rgba(44, 123, 176, .9);
}

.journey-overlay .journey-step-continue:hover,
.journey-overlay .registration-form button[type="submit"]:hover {
    background: var(--c-blue-d);
}

/* the short form inside the journey */
.journey-overlay .registration-form {
    border: 1px solid var(--bx-line);
    border-radius: 26px;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
}

.journey-overlay .registration-field label {
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.journey-overlay .registration-input,
.journey-overlay .registration-textarea {
    border: 1px solid var(--bx-line);
    border-radius: 14px;
    background: #fff;
    color: var(--bridge-navy);
}

.journey-overlay .registration-input:focus,
.journey-overlay .registration-textarea:focus {
    border-color: var(--c-blue);
    box-shadow: 0 0 0 4px rgba(44, 123, 176, .14);
}

.journey-overlay .registration-file-label {
    border: 1.5px dashed var(--bx-line);
    border-radius: 14px;
    background: var(--bx-tint);
    color: var(--bridge-navy);
}

@media (max-width: 899px) {
    .journey-overlay .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-overlay .path-card {
        padding: 22px 12px 18px;
    }

    .path-card-icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-overlay .path-card,
    .journey-overlay .journey-step-option {
        animation: none !important;
    }
}

/* keep every step inside the screen on phones */
.journey-overlay .path-journey-inner {
    grid-template-columns: minmax(0, 1fr);
}

.journey-overlay .journey-step-card,
.journey-overlay .step-body,
.journey-overlay .registration-form,
.journey-overlay .registration-field,
.journey-overlay .registration-input {
    min-width: 0;
    max-width: 100%;
}

.journey-overlay .registration-form {
    width: min(100%, 420px);
}

/* laptops with short screens (e.g. 1920×1080 at 150% → 1280×~590):
   the whole hero, buttons included, fits on the first screen */
@media (min-width: 1024px) and (max-height: 820px) {
    .bx-hero-stage,
    .bx-hero-banner .bx-hero-grid {
        min-height: calc(100svh - 80px);
    }

    .bx-hero-banner .bx-hero-grid {
        padding-block: 96px 36px;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-grid {
        padding-block: 28px 36px;
    }

    .bx-hero-banner .bx-hero-name {
        font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-name {
        font-size: clamp(2rem, 2.6vw, 2.7rem);
    }

    .bx-hero-banner .bx-hero-tagline {
        font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    }

    .bx-hero-banner .bx-hero-lead {
        margin-top: 10px;
        font-size: 1rem;
        line-height: 1.75;
    }

    .bx-hero-banner .bx-hero-actions {
        margin-top: 20px;
    }

    html:not([dir="rtl"]) .bx-hero-banner .bx-hero-text {
        max-width: min(540px, 42vw);
    }
}

/* English: the logo card hangs on the left, where the small card would sit */
@media (min-width: 1024px) {
    html:not([dir="rtl"]) .bx-hero-chips {
        display: none;
    }
}

/* closing CTA: even space above and below the card */
.bx-contact {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
}

.bx-section:not(.bx-band-tint):not(.bx-band-steps) + .bx-contact {
    padding-top: 0;
}

/* tablets (iPad mini / iPad portrait): the photo is the banner on top,
   the text follows below it — like phones, with a wider photo */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .bx-hero-media {
        order: 0;
        margin-top: 0;
    }

    .bx-hero-media img {
        aspect-ratio: 16 / 10;
        max-height: 62svh;
        object-position: 22% 60%;
        -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    }

    .bx-hero-banner .bx-hero-grid {
        margin-top: -40px;
        padding-top: 0;
    }
}

/* card rows: a last card that sits alone is centred, not left at the side */
.bx-cards {
    --cols: 1;
    --cgap: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--cgap);
}

.bx-cards > * {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--cgap)) / var(--cols));
    min-width: 0;
}

@media (min-width: 600px) {
    .bx-cards-2,
    .bx-cards-3,
    .bx-cards-4 {
        --cols: 2;
    }
}

@media (min-width: 1024px) {
    .bx-cards-3 { --cols: 3; }
    .bx-cards-4 { --cols: 4; }
}

.bx-side-card .bx-fc {
    margin-top: 6px;
}

/* CV picker: same language as the page, whatever the browser's language */
.bx-file-pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px;
    border: 1.5px dashed var(--bx-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.bx-file-pick input.bx-file {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.bx-file-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--t-blue);
    color: var(--c-blue-d);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.bx-file-btn .bx-icon {
    width: 16px;
    height: 16px;
}

.bx-file-name {
    min-width: 0;
    overflow: hidden;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bx-file-pick:hover,
.bx-file-pick:focus-within {
    border-color: var(--c-blue);
}

.bx-file-pick:focus-within {
    box-shadow: 0 0 0 4px rgba(44, 123, 176, .14);
}

.bx-file-pick.has-file .bx-file-name {
    color: var(--bridge-navy);
    font-weight: 600;
}

/* =========================================================
   V8 — official ages (birth dates), notes
   ========================================================= */
@media (min-width: 700px) {
    .bx-ages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .bx-ages {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bx-age {
    gap: 2px;
    padding: 26px 16px 22px;
}

.bx-age .bx-age-name {
    color: var(--bridge-navy);
    font-size: var(--fs-base, 1rem);
    font-weight: 700;
}

.bx-age .bx-age-label {
    margin-top: 12px;
    color: var(--k-ink);
    font-size: var(--fs-xs);
    font-style: normal;
    font-weight: 700;
    letter-spacing: .02em;
}

.bx-age .bx-age-dates {
    display: grid;
    gap: 2px;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.5;
}

.bx-age .bx-age-dates span {
    color: var(--bridge-navy);
    font-size: inherit;
}

.bx-age .bx-age-hijri {
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--bx-tint);
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    line-height: 1.6;
}

.bx-age-notes {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin: 28px auto 0;
    padding: 0;
    list-style: none;
}

.bx-age-notes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--bx-line);
    border-radius: 18px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.bx-age-note-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--lg-yellow-tint);
    color: var(--lg-yellow-ink);
}

.bx-age-notes li + li .bx-age-note-icon {
    background: var(--lg-red-tint);
    color: var(--lg-red-ink);
}

.bx-age-note-icon .bx-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 559px) {
    .bx-ages {
        gap: 12px;
    }

    .bx-age {
        padding: 20px 10px 16px;
    }

    .bx-age b {
        min-width: 54px;
        height: 54px;
        font-size: .95rem;
    }

    .bx-age .bx-age-dates {
        font-size: .9rem;
    }

    .bx-age .bx-age-hijri {
        padding: 4px 8px;
    }
}

@media (max-width: 359px) {
    .bx-ages {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* teaching staff card (team page) */
.bx-staff-card {
    border-top-color: var(--lg-blue);
}

.bx-staff-card .bx-shadow-icon {
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
}

/* contact rows: email and hours (no WhatsApp column) */
.bx-fc-item.bx-fc-email,
.bx-fc-item.bx-fc-hours,
.bx-footer-contact .bx-fc-item.bx-fc-email,
.bx-footer-contact .bx-fc-item.bx-fc-hours {
    grid-template-columns: 40px minmax(0, 1fr);
}

.bx-fc-item .bx-fc-text .bx-fc-value {
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.5;
}

.bx-fc-item.bx-fc-email .bx-fc-text a {
    overflow-wrap: anywhere;
}

/* stage cards: birth-date range under a small label, kept on one line */
.bx-stage-meta .bx-stage-born > span {
    display: grid;
    gap: 0;
    line-height: 1.45;
    text-align: start;
}

.bx-stage-meta .bx-stage-born small {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.bx-stage-meta .bx-stage-born bdi {
    display: block;
    min-width: 0;
}

.bx-stage-meta .bx-stage-born bdi span {
    white-space: nowrap;
}

.bx-stage-meta .bx-stage-born {
    min-width: 0;
}

.bx-age .bx-age-hijri > span {
    white-space: nowrap;
}

@media (max-width: 559px) {
    .bx-age .bx-age-hijri {
        align-self: stretch;
        padding: 5px 6px;
        font-size: .72rem;
    }

    .bx-age .bx-age-hijri > span {
        display: block;
        white-space: normal;
    }
}

/* =========================================================
   V9 — ages: calculator + birth-date table (admissions)
   ========================================================= */
.bx-agecalc {
    max-width: 920px;
    margin: 0 auto 28px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--bx-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
}

.bx-agecalc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.bx-agecalc-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
}

.bx-agecalc-icon .bx-icon {
    width: 26px;
    height: 26px;
}

.bx-agecalc-head .bx-h3 {
    margin: 0 0 4px;
}

.bx-agecalc-head p {
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.bx-agecalc-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.bx-agecalc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bx-agecalc-row input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 54px;
    padding: 10px 16px;
    border: 1.5px solid var(--bx-line);
    border-radius: 14px;
    background: #fff;
    color: var(--bridge-navy);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    box-sizing: border-box;
}

.bx-agecalc-row input:focus {
    outline: none;
    border-color: var(--bridge-navy);
    box-shadow: 0 0 0 3px rgba(55, 144, 186, .2);
}

.bx-agecalc-row .bx-btn {
    flex: 0 0 auto;
    min-height: 54px;
}

@media (max-width: 559px) {
    .bx-agecalc-row .bx-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.bx-agecalc-result {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--bx-line);
}

.bx-agecalc-result[hidden] {
    display: none;
}

.bx-agecalc-result p {
    margin: 0;
}

.bx-agecalc-age {
    color: var(--bridge-navy);
    font-size: var(--fs-base);
}

.bx-agecalc-age b {
    color: var(--c-blue, #2C7BB0);
}

.bx-agecalc-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--lg-blue-tint);
}

.bx-agecalc-stage.is-none {
    grid-template-columns: minmax(0, 1fr) auto;
    background: var(--lg-yellow-tint);
}

.bx-agecalc-code {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 64px;
    padding: 0 12px;
    border-radius: 20px;
    background: var(--lg-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.bx-agecalc-text small {
    display: block;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-agecalc-text strong {
    display: block;
    color: var(--bridge-navy);
    font-size: 1.25rem;
    font-weight: 800;
}

.bx-agecalc-text p {
    margin-top: 4px;
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.bx-agecalc-note {
    margin-top: 12px !important;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-agecalc-result.is-error p {
    color: var(--bridge-red);
    font-weight: 700;
}

@media (max-width: 599px) {
    .bx-agecalc-stage,
    .bx-agecalc-stage.is-none {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .bx-agecalc-stage.is-none {
        grid-template-columns: minmax(0, 1fr);
    }

    .bx-agecalc-stage .bx-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .bx-agecalc-code {
        min-width: 54px;
        height: 54px;
        font-size: .9rem;
    }
}

/* birth-date table */
.bx-agetable-wrap {
    max-width: 920px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--bx-line);
    border-radius: 24px;
    background: #fff;
}

.bx-agetable {
    width: 100%;
    border-collapse: collapse;
    color: var(--bridge-navy);
    text-align: start;
}

.bx-agetable thead th {
    padding: 14px 20px;
    background: var(--bx-tint);
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 800;
    text-align: start;
}

.bx-agetable tbody tr {
    border-top: 1px solid var(--bx-line);
    transition: background-color .3s;
}

.bx-agetable tbody th,
.bx-agetable tbody td {
    padding: 14px 20px;
    font-size: var(--fs-sm);
    text-align: start;
    vertical-align: middle;
}

.bx-agetable tbody th {
    font-weight: 700;
}

.bx-agetable tbody th b {
    display: inline-grid;
    place-items: center;
    min-width: 56px;
    margin-inline-end: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
}

.bx-agetable tbody tr:nth-child(2) th b { background: var(--lg-yellow-tint); color: var(--lg-yellow-ink); }
.bx-agetable tbody tr:nth-child(3) th b { background: var(--lg-red-tint); color: var(--lg-red-ink); }
.bx-agetable tbody tr:nth-child(4) th b,
.bx-agetable tbody tr.is-cond th b { background: var(--lg-teal-tint); color: var(--lg-teal-ink); }

.bx-agetable tbody th em {
    display: block;
    margin-top: 6px;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    font-style: normal;
    font-weight: 600;
    line-height: 1.6;
}

.bx-agetable-dates span {
    display: block;
    white-space: nowrap;
    line-height: 1.75;
}

.bx-agetable thead th:first-child {
    width: 38%;
}

.bx-agetable td:nth-child(2) {
    font-weight: 700;
}

.bx-agetable td:nth-child(3) {
    color: var(--bx-muted);
}

.bx-agetable tbody tr.is-match {
    background: var(--lg-blue-tint);
}

.bx-agetable tbody tr.is-match th,
.bx-agetable tbody tr.is-match td {
    color: var(--bridge-navy);
}

.bx-agetable-wrap + .bx-age-notes {
    max-width: 920px;
    margin-top: 16px;
}

/* phones: each row becomes a small card */
@media (max-width: 679px) {
    .bx-agetable thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .bx-agetable,
    .bx-agetable tbody,
    .bx-agetable tr,
    .bx-agetable th,
    .bx-agetable td {
        display: block;
    }

    .bx-agetable tbody tr {
        padding: 14px 16px;
    }

    .bx-agetable tbody tr:first-child {
        border-top: 0;
    }

    .bx-agetable tbody th,
    .bx-agetable tbody td {
        padding: 0;
    }

    .bx-agetable tbody th {
        margin-bottom: 8px;
    }

    .bx-agetable tbody td {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
        padding: 3px 0;
    }

    .bx-agetable tbody td::before {
        content: attr(data-label);
        color: var(--bx-muted);
        font-size: var(--fs-xs);
        font-weight: 600;
        line-height: 1.9;
    }

    .bx-agetable-dates span {
        white-space: normal;
        line-height: 1.7;
    }
}

.bx-agetable-wrap + .bx-age-notes li:only-child .bx-age-note-icon {
    background: var(--lg-teal-tint);
    color: var(--lg-teal-ink);
}

@media (max-width: 479px) {
    .bx-agecalc-stage,
    .bx-agecalc-stage.is-none {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .bx-agecalc-code {
        justify-self: start;
        min-width: 0;
        height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        font-size: .85rem;
    }
}

/* conditional dates inside the Grade 1 row */
.bx-agetable-sub {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--bx-line);
}

.bx-agetable-sub i {
    display: inline-block;
    margin-bottom: 4px;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--lg-yellow-tint);
    color: var(--lg-yellow-ink);
    font-size: var(--fs-xs);
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 679px) {
    .bx-agetable tbody td .bx-agetable-sub {
        grid-column: 2;
        margin-top: 6px;
        padding-top: 6px;
    }
}

/* =========================================================
   V10 — fees before / after discount
   ========================================================= */
.bx-fee-amount s {
    display: block;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration-color: var(--bridge-red, #DD372E);
    text-decoration-thickness: 2px;
    font-variant-numeric: tabular-nums;
}

.bx-fee-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--bx-line);
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.bx-fee-extra .bx-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--lg-teal-ink);
}

.bx-stage-meta .bx-stage-fee s {
    margin-inline-end: 4px;
    color: var(--bx-muted);
    font-weight: 600;
    text-decoration-color: var(--bridge-red, #DD372E);
    text-decoration-thickness: 2px;
}

/* ages notes: year note (blue) + Special Education (teal) */
.bx-agetable-wrap + .bx-age-notes li:first-child .bx-age-note-icon {
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
}

.bx-agetable-wrap + .bx-age-notes li + li .bx-age-note-icon {
    background: var(--lg-teal-tint);
    color: var(--lg-teal-ink);
}

/* hours row: clinic services line */
.bx-fc-item .bx-fc-text .bx-fc-note {
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

/* contact page: "main school line" tag under International */
.bx-dept-tag {
    display: inline-block;
    margin: -4px 0 6px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* =========================================================
   V11 — privacy policy page, privacy links
   ========================================================= */
.bx-legal {
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--bx-line);
    border-radius: 28px;
    background: #fff;
    color: var(--bridge-navy);
    font-size: var(--fs-base);
    line-height: 1.95;
}

.bx-legal > p,
.bx-legal li {
    color: #3B4664;
}

.bx-legal-updated {
    display: inline-block;
    margin: 0 0 14px;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--bx-tint);
    color: var(--bx-muted) !important;
    font-size: var(--fs-xs);
    font-weight: 700;
}

.bx-legal h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 10px;
    color: var(--bridge-navy);
    font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.5;
}

.bx-legal-num {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
    font-size: .95rem;
    font-weight: 800;
}

.bx-legal ul {
    margin: 0 0 12px;
    padding-inline-start: 22px;
}

.bx-legal li {
    margin-bottom: 6px;
}

.bx-legal li::marker {
    color: var(--c-blue, #2C7BB0);
}

.bx-legal a {
    color: var(--c-blue, #2C7BB0);
    font-weight: 700;
}

.bx-legal-table {
    margin: 6px 0 14px;
    overflow: hidden;
    border: 1px solid var(--bx-line);
    border-radius: 18px;
}

.bx-legal-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.bx-legal-table th,
.bx-legal-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--bx-line);
    text-align: start;
    vertical-align: top;
}

.bx-legal-table thead th {
    border-top: 0;
    background: var(--bx-tint);
    font-weight: 800;
}

.bx-legal-table tbody th {
    width: 24%;
    font-weight: 800;
}

@media (max-width: 639px) {
    .bx-legal-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .bx-legal-table table,
    .bx-legal-table tbody,
    .bx-legal-table tr,
    .bx-legal-table th,
    .bx-legal-table td {
        display: block;
        width: auto;
    }

    .bx-legal-table tbody tr + tr {
        border-top: 1px solid var(--bx-line);
    }

    .bx-legal-table tbody th {
        padding-bottom: 4px;
        border: 0;
    }

    .bx-legal-table tbody td {
        padding-top: 2px;
        border: 0;
    }

    .bx-legal-table tbody td::before {
        content: attr(data-label) ": ";
        color: var(--bx-muted);
        font-weight: 700;
    }
}

.bx-legal-contact {
    margin-top: 8px;
}

.bx-legal .bx-legal-contact {
    padding: 0;
}

.bx-legal .bx-fc-item a {
    color: var(--bridge-navy);
}

/* footer + forms */
.bx-footer-bottom .bx-footer-privacy {
    color: inherit;
    font-size: var(--fs-xs);
    opacity: .85;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bx-footer-bottom .bx-footer-privacy:hover {
    opacity: 1;
}

.bx-form-privacy {
    margin: 4px 0 12px;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
    line-height: 1.7;
}

.bx-form-privacy a {
    color: var(--c-blue, #2C7BB0);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* contact: keep both department cards' buttons on one line (International has an extra tag) */
.bx-dept-grid > .bx-dept-card:not(.bx-dept-loc) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bx-dept-grid > .bx-dept-card:not(.bx-dept-loc) .bx-dept-actions {
    margin-top: auto;
}

.bx-agetable-wrap + .bx-age-notes li:only-child .bx-age-note-icon {
    background: var(--lg-teal-tint);
    color: var(--lg-teal-ink);
}

/* news posts: WordPress button block in the site's blue button style */
.bx-prose .wp-block-buttons {
    margin: 22px 0 18px;
}

.bx-prose .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--c-blue, #2C7BB0);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 26px -16px rgba(44, 123, 176, .9);
    transition: transform .3s var(--bx-ease), background-color .3s;
}

.bx-prose .wp-block-button__link:hover {
    background: var(--c-blue-d, #1F5F8A);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================
   V12 — one button style for the whole site:
   white at rest, blue on hover / keyboard focus / press
   ========================================================= */
.bx-btn,
.bx-btn.bx-btn-primary,
.bx-btn.bx-btn-blue,
.bx-btn.bx-btn-navy,
.bx-btn.bx-btn-outline,
.bx-btn.bx-btn-outline-light,
.start-journey,
.journey-step-continue {
    border: 1px solid var(--bx-line, #E8DFD0) !important;
    background: #fff !important;
    color: var(--bridge-navy, #1B2B57) !important;
    box-shadow: 0 10px 22px -16px rgba(27, 43, 87, .45) !important;
    transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s !important;
}

.bx-btn:hover,
.bx-btn:focus-visible,
.bx-btn:active,
.start-journey:hover,
.start-journey:focus-visible,
.start-journey:active,
.journey-step-continue:hover,
.journey-step-continue:focus-visible,
.journey-step-continue:active {
    border-color: var(--c-blue, #2C7BB0) !important;
    background: var(--c-blue, #2C7BB0) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px -16px rgba(44, 123, 176, .9) !important;
}

.bx-btn .bx-icon,
.start-journey .bx-icon,
.journey-step-continue .bx-icon {
    color: inherit !important;
}

.bx-btn[disabled],
.bx-btn:disabled,
.journey-step-continue:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.bx-btn[disabled]:hover,
.bx-btn:disabled:hover,
.journey-step-continue:disabled:hover {
    border-color: var(--bx-line, #E8DFD0) !important;
    background: #fff !important;
    color: var(--bridge-navy, #1B2B57) !important;
}

/* V13 — main actions stay blue (a bit darker on hover); secondary buttons
   stay white and turn blue on hover (rules above) */
.bx-btn.bx-btn-primary,
.bx-btn.bx-btn-blue,
.bx-btn.bx-btn-navy,
.start-journey,
.journey-step-continue {
    border-color: var(--c-blue, #2C7BB0) !important;
    background: var(--c-blue, #2C7BB0) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px -16px rgba(44, 123, 176, .9) !important;
}

.bx-btn.bx-btn-primary:hover,
.bx-btn.bx-btn-primary:focus-visible,
.bx-btn.bx-btn-primary:active,
.bx-btn.bx-btn-blue:hover,
.bx-btn.bx-btn-blue:focus-visible,
.bx-btn.bx-btn-blue:active,
.bx-btn.bx-btn-navy:hover,
.bx-btn.bx-btn-navy:focus-visible,
.bx-btn.bx-btn-navy:active,
.start-journey:hover,
.start-journey:focus-visible,
.start-journey:active,
.journey-step-continue:hover,
.journey-step-continue:focus-visible,
.journey-step-continue:active {
    border-color: #1F6390 !important;
    background: #1F6390 !important;
    color: #fff !important;
}

.bx-btn.bx-btn-primary[disabled],
.bx-btn.bx-btn-primary:disabled,
.journey-step-continue:disabled {
    border-color: var(--c-blue, #2C7BB0) !important;
    background: var(--c-blue, #2C7BB0) !important;
    color: #fff !important;
}

/* =========================================================
   V14 — tidy line breaks everywhere
   - every sentence of a lead / intro starts on its own line
   - headings, centred intros and short card texts: balanced lines
   - longer start-aligned text: full lines, no lonely last word
   ========================================================= */
p,
li,
dd,
td {
    text-wrap: pretty;
}

.bx-sent {
    display: block;
    text-wrap: balance;
}

h1, h2, h3, h4,
.bx-title,
.bx-h3,
.bx-head .bx-lead,
.bx-kicker,
.bx-btn,
small,
label,
figcaption,
th,
.bx-card p,
.bx-stage p,
.bx-step p,
.bx-person small,
.bx-member-role,
.bx-age-name,
.bx-checklist li,
.bx-doc span,
.bx-fee-head p,
.path-card-title,
.path-card-desc {
    text-wrap: balance;
}

/* =========================================================
   V15 — single news post: article card + side cards
   ========================================================= */
.bx-post {
    background: linear-gradient(180deg, var(--bx-tint, #F8F2E9) 0%, #fff 70%);
}

.bx-post-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .bx-post-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
    }
}

.bx-post-card {
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--bx-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 26px 46px -40px rgba(27, 43, 87, .45);
}

.bx-post-card .bx-prose {
    max-width: none;
}

.bx-post-card .bx-prose p {
    font-size: var(--fs-base);
}

.bx-post-lead {
    margin: 0 0 22px;
    padding: 16px 20px;
    border-inline-start: 4px solid var(--c-blue, #2C7BB0);
    border-radius: 14px;
    background: var(--lg-blue-tint, #E6F2F8);
    color: var(--bridge-navy);
    font-size: clamp(1.02rem, .96rem + .3vw, 1.15rem);
    font-weight: 600;
    line-height: 1.9;
}

.bx-post-back {
    margin: 26px 0 0;
    padding-top: 20px;
    border-top: 1px dashed var(--bx-line);
}

.bx-post-side {
    display: grid;
    gap: 18px;
}

@media (min-width: 992px) {
    .bx-post-side {
        position: sticky;
        top: 110px;
    }
}

.bx-post-side .bx-side-card {
    padding: 24px;
    border: 1px solid var(--bx-line);
    border-radius: 24px;
    background: #fff;
}

.bx-post-side .bx-side-card h3 {
    margin: 0 0 14px;
    color: var(--bridge-navy);
    font-size: 1.12rem;
    font-weight: 800;
}

.bx-post-meta {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.bx-post-meta li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bx-post-meta small {
    display: block;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-post-meta b {
    color: var(--bridge-navy);
    font-size: var(--fs-sm);
}

.bx-post-meta-icon,
.bx-post-team-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--lg-blue-tint);
    color: var(--lg-blue-ink);
}

.bx-post-meta-icon .bx-icon,
.bx-post-team-icon .bx-icon {
    width: 18px;
    height: 18px;
}

.bx-post-side .bx-btn {
    width: 100%;
    justify-content: center;
}

.bx-post-team {
    background: linear-gradient(160deg, #fff 0%, var(--lg-blue-tint, #E6F2F8) 100%) !important;
}

.bx-post-team-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #fff;
}

.bx-post-team p {
    margin: 0 0 16px;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* =========================================================
   V16 — Sentences break between clauses, not mid-phrase
   (script wraps each clause — split at ، ؛ — . ؟ — in .bx-cl;
   a clause moves to the next line whole when it does not fit)
   ========================================================= */
.bx-cl {
    display: inline-block;
    max-width: 100%;
}

.bx-cl.bx-cl-long {
    display: inline;
}

/* a long sentence never starts at the end of the previous line */
.bx-cl-long.bx-cl-new::before {
    content: "";
    display: block;
}

/* =========================================================
   V17 — Admission steps in three phases (two steps each):
   التقديم ← التقييم والبرنامج ← الالتحاق
   ========================================================= */
.bx-phases {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-phase {
    --ph: #3790BA;
    --ph-ink: #2A7AA0;
    position: relative;
    padding: 22px 22px 8px;
    border: 1px solid var(--bx-line);
    border-top: 4px solid var(--ph);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--bx-shadow-sm);
}

.bx-phase-teal { --ph: #297573; --ph-ink: #297573; }
.bx-phase-gold { --ph: #D9A620; --ph-ink: #8A6A12; }

.bx-phase-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--bx-line);
}

.bx-phase-badge {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ph);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
}

.bx-phase-gold .bx-phase-badge {
    color: var(--bridge-navy);
}

.bx-phase-name {
    margin: 0;
    max-width: none;
}

.bx-phase-name small {
    display: block;
    color: var(--bx-muted);
    font-size: var(--fs-xs);
}

.bx-phase-name b {
    display: block;
    color: var(--bridge-navy);
    font-size: var(--fs-h3);
    line-height: 1.4;
}

.bx-phase-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bx-phase-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 16px 0;
}

.bx-phase-step + .bx-phase-step {
    border-top: 1px solid #F1ECE3;
}

.bx-phase-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ph);
    border-radius: 50%;
    background: #fff;
    color: var(--ph-ink);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.bx-phase-step h3 {
    margin: 6px 0 4px;
    color: var(--bridge-navy);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.bx-phase-step p {
    max-width: none;
    margin: 0;
    color: var(--bx-muted);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.bx-phase-arrow {
    display: none;
}

@media (min-width: 900px) {
    .bx-phases {
        grid-template-columns: repeat(3, 1fr);
    }

    .bx-phase-arrow {
        position: absolute;
        top: 34px;
        inset-inline-end: -22px;
        z-index: 2;
        display: block;
        width: 22px;
        height: 22px;
        color: var(--bx-gold);
    }

    html:not([dir="rtl"]) .bx-phase-arrow {
        transform: scaleX(-1);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .bx-phases {
        max-width: 620px;
        margin-inline: auto;
    }
}
