/* ============================================================================
   Birlik International School — Stylesheet
   A clean, modern, responsive design system.
   Palette: deep navy + teal + warm gold.
   ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */
:root {
    --navy:        #0e3a4f;
    --navy-dark:   #0a2c3d;
    --navy-700:    #11475e;
    --teal:        #1a7a93;
    --teal-light:  #e7f2f5;
    --gold:        #e8a23d;
    --gold-dark:   #c9821f;
    --gold-soft:   #fbf0dc;

    --ink:         #15242c;
    --body:        #3c4d55;
    --muted:       #6a7b83;
    --line:        #e4ecef;
    --bg:          #ffffff;
    --bg-soft:     #f4f8fa;
    --bg-softer:   #eef4f6;

    --radius:      14px;
    --radius-sm:   10px;
    --radius-lg:   22px;
    --shadow-sm:   0 1px 2px rgba(14,58,79,.06), 0 2px 6px rgba(14,58,79,.05);
    --shadow:      0 6px 24px rgba(14,58,79,.10);
    --shadow-lg:   0 18px 48px rgba(14,58,79,.16);

    --container:   1180px;
    --gutter:      22px;

    --ff-head: "Poppins", "Segoe UI", system-ui, sans-serif;
    --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --t: .25s cubic-bezier(.4, 0, .2, 1);
}

/* -------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* -------------------------------------------------------------- 3. Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.icon { flex: none; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------- 4. Buttons */
.btn {
    --bg: var(--navy); --fg: #fff;
    display: inline-flex; align-items: center; gap: .55em;
    background: var(--bg); color: var(--fg);
    font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
    padding: 14px 26px; border-radius: 999px;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
    box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); }
.btn svg { transition: transform var(--t); }
.btn:hover svg.icon--arrow-right { transform: translateX(3px); }
.btn--primary { --bg: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-dark); --fg: #fff; }
.btn--teal { --bg: var(--teal); }
.btn--outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--outline:hover { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* -------------------------------------------------------------- 5. Topbar */
.topbar { background: var(--navy-dark); color: #cfe0e6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cfe0e6; }
.topbar__item:hover { color: var(--gold); }
.topbar__item svg { width: 15px; height: 15px; }
.topbar__social { display: flex; gap: 6px; align-items: center; }
.topbar__portal { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: var(--gold); color: var(--navy-dark); font-weight: 600; font-size: .82rem; margin-right: 4px; }
.topbar__portal:hover { background: #fff; color: var(--navy-dark); transform: translateY(-1px); }
.topbar__portal svg { width: 14px; height: 14px; }
.topbar__social-link {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    color: #cfe0e6; background: rgba(255,255,255,.08);
}
.topbar__social-link svg { width: 16px; height: 16px; }
.topbar__social-link:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-1px); }

/* -------------------------------------------------------------- 6. Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: auto; height: 46px; border-radius: 10px; }
.brand--image .brand__logo { height: 56px; border-radius: 0; }   /* real logo lockup */
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-head); font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: -.01em; }
.brand__tagline { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }

.primary-nav__list { display: flex; align-items: center; gap: 4px; }
.primary-nav__link {
    display: block; padding: 10px 14px; border-radius: 8px;
    color: var(--ink); font-weight: 500; font-size: .96rem; position: relative;
}
.primary-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
    background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.primary-nav__link:hover { color: var(--navy); background: var(--bg-soft); }
.primary-nav__link.is-active { color: var(--navy); }
.primary-nav__link.is-active::after { transform: scaleX(1); }
.primary-nav__cta { margin-left: 8px; }

/* Dropdown navigation */
.primary-nav__item { position: relative; }
.primary-nav__item > .primary-nav__link { display: inline-flex; align-items: center; gap: 5px; }
.primary-nav__caret { transition: transform var(--t); flex: none; }
.primary-nav__toggle { display: none; }
.primary-nav__sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 120; }
.primary-nav__sub::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.primary-nav__item.has-children:hover > .primary-nav__sub,
.primary-nav__item.has-children:focus-within > .primary-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav__item.has-children:hover > .primary-nav__link .primary-nav__caret { transform: rotate(180deg); }
.primary-nav__sub a { display: block; padding: 10px 14px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.primary-nav__sub a::after { display: none; }
.primary-nav__sub a:hover { background: var(--bg-soft); color: var(--navy); }
.primary-nav__sub a.is-active { background: var(--teal-light); color: var(--navy); }

@media (max-width: 860px) {
    .primary-nav__item { position: static; }
    .primary-nav__item.has-children { display: flex; flex-wrap: wrap; align-items: center; }
    .primary-nav__item.has-children > .primary-nav__link { flex: 1; }
    .primary-nav__caret { display: none; }
    .primary-nav__toggle { display: grid; place-items: center; width: 46px; height: 46px; color: var(--navy); border-radius: 10px; flex: none; }
    .primary-nav__toggle:hover { background: var(--bg-soft); }
    .primary-nav__toggle svg { transition: transform var(--t); }
    .primary-nav__item.is-open .primary-nav__toggle svg { transform: rotate(180deg); }
    .primary-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 2px 0 6px 14px; min-width: 0; width: 100%; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .primary-nav__sub::before { display: none; }
    .primary-nav__item.is-open > .primary-nav__sub { max-height: 380px; }
    .primary-nav__sub a { padding: 11px 12px; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* -------------------------------------------------------------- 7. Hero */
.hero { position: relative; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, var(--navy-700) 44%, var(--teal) 118%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0); background-size: 26px 26px; opacity: .6; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(232,162,61,.32), transparent 65%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 92px 0 100px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); color: #fff; padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero__eyebrow svg { width: 16px; height: 16px; color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; margin: 22px 0 18px; }
.hero h1 span { color: var(--gold); }
.hero__lead { font-size: 1.16rem; color: #d9e6ea; max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--ff-head); font-size: 1.7rem; color: var(--gold); }
.hero__trust small { font-size: .85rem; color: #b9cdd4; }

.hero__media { position: relative; }
.hero__card {
    background: transparent; border: 0;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero__card img, .hero__video { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; display: block; }
.hero__videoframe { position: relative; width: 100%; aspect-ratio: 4/3.4; }
.hero__videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Instagram embeds are portrait cards with their own chrome — give them a taller
   frame and a white backing so the reel/video sits neatly in the hero. */
.hero__videoframe--insta { aspect-ratio: 4/5; background: #fff; }
.hero__badge {
    margin-top: 22px;
    background: #fff; color: var(--navy);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
    display: flex; gap: 16px;
}
.hero__badge-row { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.hero__badge-row + .hero__badge-row { border-left: 1px solid var(--line); padding-left: 16px; }
@media (max-width: 980px) {
    .hero__badge { flex-direction: column; gap: 13px; }
    .hero__badge-row + .hero__badge-row { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 13px; }
}
.hero__badge-text { display: flex; flex-direction: column; min-width: 0; }
.hero__badge .hero__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); flex: none; }
.hero__badge .hero__badge-icon--navy { background: #e6eef2; color: var(--navy); }
.hero__badge b { display: block; font-family: var(--ff-head); font-size: .95rem; line-height: 1.2; white-space: nowrap; }
.hero__badge small { color: var(--muted); font-size: .8rem; }

.hero-curve { display: block; width: 100%; height: 56px; color: var(--bg); margin-top: -1px; }

/* -------------------------------------------------------------- 8. Section heads */
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-family: var(--ff-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.8rem, 3.3vw, 2.5rem); margin: 14px 0 14px; letter-spacing: -.02em; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* -------------------------------------------------------------- 9. Cards / grids */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--teal-light); color: var(--teal); margin-bottom: 20px; }
.feature-card:hover .feature-card__icon { background: var(--gold-soft); color: var(--gold-dark); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .98rem; }

/* program cards */
.program-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line); transition: transform var(--t), box-shadow var(--t); display: flex; flex-direction: column; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.program-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity 1s ease; }
.program-card:hover .program-card__media img { transform: scale(1.06); }
.program-card__ages { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--navy); font-family: var(--ff-head); font-weight: 600; font-size: .8rem; padding: 6px 13px; border-radius: 999px; }
.program-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.program-card__body h3 { font-size: 1.3rem; margin-bottom: 9px; }
.program-card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.program-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-family: var(--ff-head); font-weight: 600; font-size: .92rem; }
.program-card__link svg { width: 17px; height: 17px; transition: transform var(--t); }
.program-card__link:hover { color: var(--gold-dark); }
.program-card__link:hover svg { transform: translateX(4px); }

/* detailed alternating program rows */
.program-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.program-row + .program-row { margin-top: 64px; }
.program-row:nth-child(even) .program-row__media { order: 2; }
.program-row__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.program-row__chip { display: inline-block; background: var(--gold-soft); color: var(--gold-dark); font-family: var(--ff-head); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.program-row h3 { font-size: 1.7rem; margin-bottom: 14px; }
.program-row p { color: var(--body); }

/* news cards */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t); height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity 1s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__cat { position: absolute; top: 13px; left: 13px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.news-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.news-card__date svg { width: 15px; height: 15px; }
.news-card__body h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.news-card__body p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.news-card__more { margin-top: auto; color: var(--teal); font-weight: 600; font-family: var(--ff-head); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.news-card__more svg { width: 16px; height: 16px; transition: transform var(--t); }
.news-card__more:hover svg { transform: translateX(3px); }

/* faculty cards */
.faculty-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: transform var(--t), box-shadow var(--t); }
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.faculty-card__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 0 0 5px var(--bg-soft); }
.faculty-card h3 { font-size: 1.14rem; }
.faculty-card__role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; margin: 4px 0 12px; }
.faculty-card__bio { color: var(--muted); font-size: .92rem; }

/* -------------------------------------------------------------- 10. Stats band */
.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__value { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--gold); line-height: 1; }
.stat__label { color: #c4d5db; margin-top: 8px; font-size: .98rem; }
.stat + .stat, .stats__grid > div { position: relative; }

/* -------------------------------------------------------------- 11. Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media--stack img:first-child { grid-column: 1 / -1; }
.split p + p { margin-top: 16px; }
.check-list { margin-top: 22px; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.check-list svg { flex: none; margin-top: 3px; width: 22px; height: 22px; color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; }

.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform var(--t), box-shadow var(--t); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 16px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: .96rem; }

/* -------------------------------------------------------------- 12. Testimonials */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; height: 100%; }
.testimonial__quote-icon { color: var(--gold); opacity: .5; width: 38px; height: 38px; margin-bottom: 8px; }
.testimonial p { font-size: 1.04rem; color: var(--ink); font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; }
.testimonial__name { font-family: var(--ff-head); font-weight: 600; color: var(--ink); font-size: .96rem; }

/* -------------------------------------------------------------- 13. Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity 1s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__caption { position: absolute; inset: auto 0 0 0; padding: 30px 18px 16px; color: #fff; font-family: var(--ff-head); font-weight: 600; background: linear-gradient(transparent, rgba(10,44,61,.85)); opacity: 0; transform: translateY(8px); transition: var(--t); }
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------- 14. Page hero (inner) */
.page-hero { position: relative; background: linear-gradient(120deg, var(--navy), var(--navy-700) 62%, var(--teal)); color: #fff; padding: 64px 0 70px; text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 24px 24px; }
.page-hero__inner { position: relative; max-width: 720px; margin-inline: auto; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { color: #d4e3e8; margin-top: 14px; font-size: 1.1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 18px; font-size: .88rem; color: #aec6cf; }
.breadcrumb a { color: #d4e3e8; }
.breadcrumb a:hover { color: var(--gold); }

/* -------------------------------------------------------------- 15. CTA band */
.cta-band { background: linear-gradient(120deg, var(--gold), var(--gold-dark)); color: var(--navy-dark); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 52px 0; flex-wrap: wrap; }
.cta-band__title { color: var(--navy-dark); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band__text { color: #5a3f12; margin-top: 6px; font-size: 1.05rem; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--gold { --bg: var(--navy); --fg: #fff; }
.cta-band .btn--gold:hover { background: var(--navy-dark); }
.cta-band .btn--ghost-light { color: var(--navy-dark); box-shadow: inset 0 0 0 1.5px rgba(10,44,61,.4); }
.cta-band .btn--ghost-light:hover { background: var(--navy-dark); color: #fff; box-shadow: none; }

/* -------------------------------------------------------------- 16. Footer */
.site-footer { background: var(--navy-dark); color: #b6c8cf; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.brand--footer { color: #fff; margin-bottom: 18px; align-items: center; gap: 14px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer:hover { color: #fff; }
.footer-logo-chip { display: inline-grid; place-items: center; background: #fff; padding: 9px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.brand--footer .brand__logo { height: 46px; }
.brand--footer.brand--image .brand__logo { height: 60px; }
.site-footer__desc { color: #9fb4bc; margin-bottom: 18px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #cfe0e6; }
.site-footer__social a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }
.site-footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer__links li + li, .site-footer__contact li + li { margin-top: 11px; }
.site-footer__links a { color: #b6c8cf; }
.site-footer__links a:hover { color: var(--gold); padding-left: 4px; }
.site-footer__contact li { display: flex; gap: 11px; align-items: flex-start; }
.site-footer__contact svg { flex: none; margin-top: 3px; color: var(--gold); width: 18px; height: 18px; }
.site-footer__contact a { color: #b6c8cf; }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; flex-wrap: wrap; font-size: .86rem; color: #8ba3ab; }

/* Newsletter signup (footer) */
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: 10px; font: inherit; font-size: .92rem; }
.newsletter input::placeholder { color: #8ba3ab; }
.newsletter input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
.newsletter button { flex: none; width: 46px; border-radius: 10px; background: var(--gold); color: var(--navy-dark); display: grid; place-items: center; transition: background var(--t); }
.newsletter button:hover { background: #fff; }
.newsletter__msg { font-size: .85rem; margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; }
.newsletter__msg--ok { background: rgba(46,204,113,.16); color: #8ef0b0; }
.newsletter__msg--error { background: rgba(231,76,60,.16); color: #f6b3ab; }

/* -------------------------------------------------------------- 17. Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg-soft); transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(26,122,147,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -5000px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.alert { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.alert svg { flex: none; margin-top: 2px; }
.alert--success { background: #e7f6ec; color: #1c6b3a; border: 1px solid #b9e4c7; }
.alert--error { background: #fdecec; color: #b03030; border: 1px solid #f4c4c4; }

/* contact info list */
.contact-info { display: grid; gap: 22px; }
.contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--teal-light); color: var(--teal); flex: none; }
.contact-info__item h4 { font-size: 1.04rem; margin-bottom: 3px; }
.contact-info__item p, .contact-info__item a { color: var(--muted); font-size: .97rem; }
.contact-info__item a:hover { color: var(--gold-dark); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); display: block; }
.map-card { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy), var(--navy-700) 70%, var(--teal)); color: #fff; box-shadow: var(--shadow-lg); transition: transform var(--t), box-shadow var(--t); }
.map-card:hover { transform: translateY(-3px); color: #fff; }
.map-card__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; flex: none; }
.map-card__text { display: flex; flex-direction: column; line-height: 1.3; }
.map-card__text b { font-family: var(--ff-head); font-size: 1.1rem; }
.map-card__text small { color: rgba(255,255,255,.75); margin-top: 3px; }
.map-card__go { margin-left: auto; flex: none; transition: transform var(--t); }
.map-card:hover .map-card__go { transform: translateX(5px); }

/* -------------------------------------------------------------- 18. Misc */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 14px; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.lead { font-size: 1.18rem; color: var(--ink); }

/* Rendered rich-text content (from the admin editor) */
.prose-content > :first-child { margin-top: 0; }
.prose-content > :last-child { margin-bottom: 0; }
.prose-content p { margin: 0 0 14px; }
.prose-content h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.prose-content h4 { font-size: 1.1rem; margin: 18px 0 8px; }
.prose-content ul, .prose-content ol { margin: 0 0 14px; padding-left: 22px; }
.prose-content li { margin-bottom: 6px; }
.prose-content a { color: var(--teal); text-decoration: underline; }
.prose-content blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }

/* Fee table */
.fee-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.fee-table th { text-align: left; background: var(--navy); color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .85rem; padding: 14px 18px; white-space: nowrap; }
.fee-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.fee-amount { font-family: var(--ff-head); font-weight: 600; color: var(--gold-dark); }

/* Accreditation strip */
.accred { background: var(--bg-soft); border-block: 1px solid var(--line); }
.accred__inner { display: flex; align-items: center; justify-content: center; gap: 16px 40px; flex-wrap: wrap; padding: 26px 0; text-align: center; }
.accred__badge { display: inline-flex; align-items: center; gap: 12px; }
.accred__badge .accred__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); flex: none; }
.accred__badge b { font-family: var(--ff-head); color: var(--navy); display: block; }
.accred__badge small { color: var(--muted); font-size: .85rem; }

/* Director welcome */
.director__media { position: relative; }
.director__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.director__sign { font-family: var(--ff-head); font-weight: 700; color: var(--navy); margin-top: 14px; }
.director__role { color: var(--gold-dark); font-weight: 600; font-size: .92rem; }

/* Activity / club category groups */
.activity-group { margin-bottom: 46px; }
.activity-group:last-child { margin-bottom: 0; }
.activity-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; color: var(--navy); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.activity-group__title svg { color: var(--gold-dark); flex: none; }

/* Image slideshow (multiple images per item) */
.slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.slides__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.slides__img.is-active { opacity: 1; }
.slides__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; z-index: 3; }
.slides__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background var(--t); }
.slides__dot.is-active { background: #fff; }
.slides-box { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16/10; }

/* Video embeds (YouTube / Vimeo) */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-dark); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--insta { aspect-ratio: 4/5; max-width: 400px; margin-inline: auto; background: #fff; border: 1px solid var(--line); }
.video-embed--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--navy-dark), var(--teal)); color: #fff; text-align: center; padding: 20px; }
.video-embed__play { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; padding-left: 4px; transition: var(--t); }
.video-embed--placeholder:hover .video-embed__play { background: var(--gold); color: var(--navy-dark); transform: scale(1.06); }
.video-embed__label { font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; padding: 0 8px; }

/* Social feed embed (official Facebook Page plugin) */
.social-embed { display: flex; justify-content: center; }
.social-embed iframe { max-width: 100%; width: 500px; height: 640px; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }

/* Carousel (alumni & general) */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; -ms-overflow-style: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 268px; scroll-snap-align: start; }
.carousel__btn { position: absolute; top: 38%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 1.7rem; line-height: 1; padding-bottom: 4px; z-index: 3; transition: var(--t); }
.carousel__btn:hover { background: var(--navy); color: #fff; }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: var(--t); }
.carousel__dot.is-active { background: var(--gold); width: 22px; border-radius: 5px; }

/* Alumni card */
.alumni-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: transform var(--t), box-shadow var(--t); }
.alumni-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.alumni-card__photo { position: relative; aspect-ratio: 3/3.4; overflow: hidden; background: var(--bg-softer); }
.alumni-card__body { padding: 18px 16px 22px; text-align: center; }
.alumni-card__body h3 { font-size: 1.15rem; color: var(--navy); }
.alumni-card__course { color: var(--gold-dark); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.alumni-card__uni { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.alumni-card__year { color: var(--ink); font-weight: 600; font-size: .82rem; margin-top: 6px; }

/* WhatsApp / chat float — right side, expands on hover */
.wa-float { position: fixed; right: 22px; bottom: 22px; left: auto; z-index: 95; display: inline-flex; align-items: center; flex-direction: row-reverse; height: 58px; background: #25D366; color: #fff; border-radius: 999px; box-shadow: 0 8px 26px rgba(37,211,102,.45); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.wa-float svg { flex: none; width: 58px; height: 58px; padding: 15px; }
.wa-float__label { white-space: nowrap; max-width: 0; opacity: 0; font-weight: 600; font-size: .95rem; transition: max-width var(--t), opacity var(--t), padding var(--t); }
.wa-float:hover .wa-float__label { max-width: 170px; opacity: 1; padding-left: 20px; }
@media (max-width: 560px) { .carousel__btn { display: none; } .wa-float { right: 16px; bottom: 16px; } }

.site-footer__admin { color: rgba(255,255,255,.45); text-decoration: none; }
.site-footer__admin:hover { color: var(--gold); }
.topbar__portal--alt { background: rgba(255,255,255,.16); color: #fff; }
.topbar__portal--alt:hover { background: #fff; color: var(--navy-dark); }

.back-to-top { position: fixed; right: 22px; bottom: 90px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--navy-dark); }

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Motion: reveal-on-scroll + variants ---------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-46px); }
.reveal--right { transform: translateX(46px); }
.reveal--zoom  { transform: scale(.9); }
.reveal--fade  { transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* Auto-stagger: direct children animate in sequence (no per-child markup) */
[data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: .06s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .14s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .22s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .30s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .38s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: .46s; }

/* Hero: gentle ken-burns on the image for a premium, living feel */
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.hero__card img { animation: kenburns 22s ease-in-out infinite alternate; }

/* Large feature images lift softly on hover */
.split__media img, .program-row__media img { transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .6s ease; }
.split:hover > .split__media img, .program-row:hover .program-row__media img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Buttons get a subtle press + sheen on hover (defined inline-safe) */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }

/* -------------------------------------------------------------- 19. Responsive */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 80px; }
    .hero__media { max-width: 460px; margin-inline: auto; }
    .split, .program-row, .program-row:nth-child(even) .program-row__media { grid-template-columns: 1fr; }
    .program-row__media { order: -1 !important; }
    .split__media { order: -1; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw); background: #fff; box-shadow: var(--shadow-lg); padding: 96px 24px 32px; transform: translateX(100%); transition: transform var(--t); overflow-y: auto; }
    .primary-nav.is-open { transform: translateX(0); }
    .primary-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-nav__link { padding: 14px 16px; border-radius: 10px; }
    .primary-nav__link::after { display: none; }
    .primary-nav__link.is-active { background: var(--bg-soft); }
    .primary-nav__cta { margin: 14px 0 0; }
    .primary-nav__cta .btn { width: 100%; justify-content: center; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(10,44,61,.5); z-index: 99; opacity: 0; visibility: hidden; transition: var(--t); }
    .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 60px 0; }
    .grid--3 { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar__contact { gap: 14px; }
    .topbar__item span { display: none; }
    .topbar__item svg { width: 16px; height: 16px; }
    /* Compact topbar: external-link pills become icon-only so EduPage + Library
       + Career Identify and the social icons all fit without overflowing. */
    .topbar__portal span { display: none; }
    .topbar__portal { padding: 6px 9px; margin-right: 2px; gap: 0; }
    .topbar__portal svg { width: 15px; height: 15px; }
    .topbar__social { gap: 5px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
    .hero__badge { position: static; transform: none; left: auto; margin-top: 18px; max-width: none; width: auto; }
}

@media (max-width: 480px) {
    .grid--2, .grid--4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .brand__tagline { display: none; }
    .brand--image .brand__logo { height: 46px; }
    .form-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
    .hero__card img { animation: none !important; }
    .btn::after { display: none !important; }
}

/* ============================================================ 20. Design polish */
/* Softer, layered shadows + a hairline ring token for crisp, professional edges */
:root {
    --shadow-sm: 0 1px 2px rgba(14,58,79,.05), 0 3px 10px rgba(14,58,79,.06);
    --shadow:    0 5px 16px rgba(14,58,79,.08), 0 16px 36px rgba(14,58,79,.09);
    --shadow-lg: 0 12px 32px rgba(14,58,79,.12), 0 30px 64px rgba(14,58,79,.16);
    --ring:      0 0 0 1px rgba(14,58,79,.07);
}

/* Clean, frameless feature photos — soft rounded corners + gentle depth (no border) */
.split__media img,
.program-row__media img,
.director__media img {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.slides-box, .gallery-item, .alumni-card__photo { box-shadow: var(--shadow); }
.hero__card { border: 0; box-shadow: var(--shadow-lg); }

/* Gradient accent underline beneath every section title */
.section-title::after {
    content: ""; display: block; height: 4px; width: 62px; border-radius: 999px;
    margin: 18px 0 0; background: linear-gradient(90deg, var(--gold), var(--teal));
}
.section-head--center .section-title::after { margin-left: auto; margin-right: auto; }

/* Feature cards: animated gradient top accent + lively icon */
.feature-card { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); overflow: hidden; }
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon { transition: transform .45s cubic-bezier(.22,.61,.36,1), background .3s ease, color .3s ease; }
.feature-card:hover .feature-card__icon { transform: translateY(-3px) rotate(-4deg); }

/* Program / news cards: larger radius + hairline ring for a designed finish */
.program-card, .news-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); }

/* Accreditation badges lift gently on hover */
.accred__badge { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.accred__badge:hover { transform: translateY(-3px); }
.accred__badge:hover .accred__icon { background: var(--gold); color: var(--navy-dark); }
.accred__icon { transition: background .3s ease, color .3s ease; }

@media (max-width: 760px) {
    .section-title::after { width: 50px; height: 3px; margin-top: 14px; }
}

/* ============================================================ 21. Premium pass */
/* ---- Hero: living background — drifting gradient, glass orbs, dot grid ---- */
.hero { background-size: 170% 170%; animation: heroDrift 26s ease-in-out infinite alternate; }
@keyframes heroDrift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.13) 1.2px, transparent 1.7px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(185deg, rgba(0,0,0,.55), transparent 72%);
    mask-image: linear-gradient(185deg, rgba(0,0,0,.55), transparent 72%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__orbs span { position: absolute; border-radius: 50%; filter: blur(58px); opacity: .5; animation: orbFloat 16s ease-in-out infinite alternate; }
.hero__orbs span:nth-child(1) { width: 430px; height: 430px; left: -90px; top: -130px; background: radial-gradient(circle, var(--teal) 0%, transparent 70%); }
.hero__orbs span:nth-child(2) { width: 380px; height: 380px; right: 8%; bottom: -160px; opacity: .3; background: radial-gradient(circle, var(--gold) 0%, transparent 70%); animation-duration: 21s; animation-delay: -7s; }
.hero__orbs span:nth-child(3) { width: 260px; height: 260px; right: -70px; top: 26%; opacity: .35; background: radial-gradient(circle, #8fd8e6 0%, transparent 70%); animation-duration: 26s; animation-delay: -13s; }
@keyframes orbFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(44px, 34px, 0) scale(1.14); } }

/* ---- Glassmorphism accents ---- */
.hero__eyebrow { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__trust div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 18px; border-radius: 14px; }
.hero__badge { background: rgba(255,255,255,.9); backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); border-color: rgba(255,255,255,.6); }
.stats { position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 30px 30px; }
.stats__grid { position: relative; z-index: 1; }
.stats__grid > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; padding: 22px 12px; transition: transform .4s cubic-bezier(.22,.61,.36,1), background .3s ease; }
.stats__grid > div:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.testimonial { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); border-top: 3px solid var(--gold); }
.carousel__item--t { min-width: min(420px, 88%); scroll-snap-align: start; }
.carousel__item--t .testimonial { height: 100%; }

/* ---- Icon micro-interactions ---- */
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }
.topbar__social-link svg, .site-footer__social a svg { transition: transform .3s ease; }
.topbar__social-link:hover svg { transform: scale(1.18) rotate(-8deg); }
.site-footer__social a:hover svg { transform: scale(1.18) rotate(-8deg); }
.site-footer__links a { transition: padding-left .25s ease, color .2s ease; }
.site-footer__links a:hover { padding-left: 6px; }

/* ---- Accessibility: visible keyboard focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* ---- Announcement bar (editable in Site Settings) ---- */
.announce { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); color: var(--navy-dark); font-size: .9rem; position: relative; z-index: 101; }
.announce__inner { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.announce__icon { display: grid; place-items: center; flex: none; }
.announce p { font-weight: 600; }
.announce a { color: var(--navy-dark); font-weight: 700; text-decoration: underline; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.announce button { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-dark); font-size: 1.2rem; line-height: 1; }
.announce button:hover { background: rgba(10,44,61,.12); }

/* ---- Global search (glass modal) ---- */
.nav-search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); border: 1.5px solid var(--line); background: transparent; transition: var(--t); cursor: pointer; }
.nav-search:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 860px) {
    .primary-nav__item--search { margin-top: 8px; }
    .nav-search { width: 100%; height: 46px; border-radius: 10px; }
}
.search-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 9vh 18px 18px; }
.search-modal[hidden] { display: none; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(8,28,38,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.search-modal__panel { position: relative; width: min(640px, 100%); background: rgba(255,255,255,.92); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255,255,255,.7); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: searchIn .28s cubic-bezier(.22,.61,.36,1); }
@keyframes searchIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.search-modal__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-modal__bar input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; }
.search-modal__close { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 1.35rem; line-height: 1; }
.search-modal__close:hover { background: var(--bg-soft); color: var(--navy); }
.search-modal__results { max-height: min(52vh, 460px); overflow-y: auto; padding: 8px; }
.search-modal__hint { padding: 22px 14px; text-align: center; color: var(--muted); font-size: .95rem; }
.search-res { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--ink); }
.search-res:hover { background: var(--bg-soft); color: var(--ink); }
.search-res__type { flex: none; margin-top: 2px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--teal-light); color: var(--teal); padding: 3px 9px; border-radius: 999px; }
.search-res b { display: block; font-family: var(--ff-head); font-size: .98rem; }
.search-res small { color: var(--muted); display: block; margin-top: 2px; }

/* ---- Cambridge pathway strip ---- */
.cam-path { padding-bottom: 26px; }
.cam-path__track { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cam-path__step { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-sm), var(--ring); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.cam-path__step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cam-path__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-light); color: var(--teal); flex: none; }
.cam-path__step b { display: block; font-family: var(--ff-head); color: var(--navy); line-height: 1.2; }
.cam-path__step small { color: var(--muted); font-size: .82rem; }
.cam-path__step--gold { border-color: var(--gold); }
.cam-path__step--gold .cam-path__icon { background: var(--gold-soft); color: var(--gold-dark); }
.cam-path__arrow { align-self: center; color: var(--gold-dark); flex: none; }
@media (max-width: 760px) {
    .cam-path__track { display: grid; grid-template-columns: 1fr 1fr; }
    .cam-path__arrow { display: none; }
}
@media (max-width: 480px) { .cam-path__track { grid-template-columns: 1fr; } }

/* ---- Event calendar ---- */
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); overflow: hidden; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cal__head h2 { font-size: 1.3rem; }
.cal__nav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); font-size: 1.2rem; }
.cal__nav:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { padding: 10px 6px; text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.cal__day { min-height: 92px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; font-size: .82rem; }
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day--blank { background: var(--bg-soft); }
.cal__num { font-weight: 600; color: var(--muted); }
.cal__day--today { background: var(--teal-light); }
.cal__day--today .cal__num { color: var(--teal); font-weight: 800; }
.cal__ev { display: block; margin-top: 5px; background: var(--gold-soft); color: var(--gold-dark); border-radius: 7px; padding: 3px 7px; font-size: .74rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
    .cal__day { min-height: 58px; padding: 5px; }
    .cal__ev { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; margin: 4px auto 0; }
}

/* ---- Download centre ---- */
.dl-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; color: var(--ink); }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.dl-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-light); color: var(--teal); flex: none; }
.dl-card b { display: block; font-family: var(--ff-head); }
.dl-card small { color: var(--muted); }
.dl-card__meta { margin-left: auto; flex: none; font-size: .76rem; font-weight: 700; color: var(--gold-dark); background: var(--gold-soft); border-radius: 999px; padding: 4px 11px; text-transform: uppercase; }

/* ---- Posters page + 10-second welcome splash ---- */
.poster-grid { columns: 3 280px; column-gap: 20px; }
.poster-card { break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm), var(--ring); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; }
.poster-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.poster-card img { display: block; width: 100%; height: auto; }
.poster-card figcaption { padding: 12px 16px; font-family: var(--ff-head); font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }

.poster-splash { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.poster-splash[hidden] { display: none; }
.poster-splash__backdrop { position: absolute; inset: 0; background: rgba(8,28,38,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.poster-splash__panel { position: relative; max-width: min(540px, 92vw); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); animation: searchIn .35s cubic-bezier(.22,.61,.36,1); }
.poster-splash__panel img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #fff; }
.poster-splash__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(10,30,40,.55); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(4px); }
.poster-splash__close:hover { background: var(--gold); color: var(--navy-dark); }
.poster-splash__bar { height: 5px; background: var(--bg-soft); }
.poster-splash__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width 10s linear; }
@media (prefers-reduced-motion: reduce) {
    .poster-splash__panel { animation: none !important; }
    .poster-splash__bar span { transition: none !important; }
}

/* ---- Checkpoint toppers ---- */
.topper-grid { margin-bottom: 40px; }
.topper-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); padding: 26px 18px 20px; text-align: center; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.topper-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.topper-card__rank { position: absolute; top: 12px; left: 12px; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-family: var(--ff-head); font-weight: 800; box-shadow: var(--shadow-sm); }
.topper-card__photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid var(--teal-light); box-shadow: var(--shadow-sm); display: block; }
.topper-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.topper-card__total { display: inline-block; background: var(--teal-light); color: var(--teal); font-family: var(--ff-head); font-weight: 800; border-radius: 999px; padding: 4px 14px; margin-bottom: 12px; }
.topper-card__scores { list-style: none; margin: 0; padding: 10px 6px 0; border-top: 1px dashed var(--line); display: grid; gap: 5px; }
.topper-card__scores li { display: flex; justify-content: space-between; font-size: .9rem; }
.topper-card__scores span { color: var(--muted); }
.topper-card__scores b { color: var(--ink); }

/* ---- House system (portal + public standings) ---- */
.house-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.house-card--btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; border-radius: 16px; border: 2px solid var(--hc); background: var(--hcs); cursor: pointer; transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease; font: inherit; }
.house-card--btn:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.house-card--btn b { font-family: var(--ff-head); color: var(--hc); font-size: 1.05rem; }
.house-card--btn small { color: var(--muted); }
.house-card__crest { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--hc); color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; flex: none; box-shadow: 0 0 0 4px var(--hcs); }
.house-card__crest--sm { width: 38px; height: 38px; font-size: 1rem; box-shadow: 0 0 0 3px var(--hcs); }
.house-board { display: flex; flex-direction: column; gap: 12px; }
.house-row { display: flex; align-items: center; gap: 14px; }
.house-row--mine { background: var(--gold-soft); border-radius: 12px; padding: 8px 10px; margin: -8px -10px; }
.house-row__rank { width: 26px; text-align: center; font-family: var(--ff-head); font-weight: 800; color: var(--muted); flex: none; }
.house-row__main { flex: 1; min-width: 0; }
.house-row__main b { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 5px; }
.house-row__bar { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.house-row__bar span { display: block; height: 100%; border-radius: 999px; background: var(--hc); min-width: 4px; transition: width .8s cubic-bezier(.22,.61,.36,1); }
.house-row__pts { font-family: var(--ff-head); font-weight: 800; color: var(--ink); flex: none; }

/* Public House System section (student-life) */
.houses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.house-tile { border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--hc), color-mix(in srgb, var(--hc) 72%, #000)); box-shadow: var(--shadow), var(--ring); transition: transform .35s cubic-bezier(.22,.61,.36,1); position: relative; overflow: hidden; }
.house-tile::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 26px 26px; pointer-events: none; }
.house-tile:hover { transform: translateY(-5px); }
.house-tile__crest { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4); font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem; }
.house-tile h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.house-tile__score { font-family: var(--ff-head); font-weight: 800; font-size: 2rem; line-height: 1.1; }
.house-tile small { display: block; color: rgba(255,255,255,.75); font-size: .82rem; margin-top: 2px; }
.house-tile--lead .house-tile__crest { background: var(--gold); border-color: #fff; color: var(--navy-dark); }

/* ---- House Competition Centre (arena) ---- */
.arena-hero { background-size: 170% 170%; animation: heroDrift 22s ease-in-out infinite alternate; }
.arena-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); padding: 26px; }
.arena-panel--pulse { animation: arenaPulse 0.8s ease 2; }
@keyframes arenaPulse { 50% { box-shadow: 0 0 0 6px var(--gold-soft), var(--shadow); transform: scale(1.01); } }
.arena-panel__title { font-size: 1.05rem; margin-bottom: 12px; }
.arena-join { margin-top: -34px; position: relative; z-index: 5; padding-bottom: 0; }
.arena-join__row input { width: 100%; max-width: 420px; padding: 13px 18px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.05rem; }
.arena-join__row input:focus { outline: none; border-color: var(--teal); }
.arena-input--shake { animation: arenaShake .5s ease; border-color: #c0392b !important; }
@keyframes arenaShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.arena-player { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.arena-player b { font-family: var(--ff-head); font-size: 1.1rem; display: block; }
.arena-player small { color: var(--muted); }
.arena-player .btn { margin-left: auto; }

.arena-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.arena-tab { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: var(--t); }
.arena-tab:hover { border-color: var(--teal); color: var(--teal); }
.arena-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.arena-level { display: inline-block; margin-left: 9px; background: var(--gold-soft); color: var(--gold-dark); font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; vertical-align: 2px; }

.arena-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--ring); padding: 26px 22px; cursor: pointer; transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .3s ease; position: relative; }
.arena-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.arena-card__icon { font-size: 2.1rem; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--teal-light); margin-bottom: 14px; }
.arena-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.arena-card p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.arena-card__pts { display: inline-block; background: var(--gold-soft); color: var(--gold-dark); font-family: var(--ff-head); font-weight: 800; font-size: .85rem; padding: 5px 13px; border-radius: 999px; }

.arena-feed { list-style: none; margin: 0; padding: 0; }
.arena-feed li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--line); animation: feedIn .5s cubic-bezier(.22,.61,.36,1); }
.arena-feed li:last-child { border-bottom: 0; }
@keyframes feedIn { from { opacity: 0; transform: translateY(8px); } }
.arena-feed__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.arena-feed__txt { flex: 1; font-size: .94rem; color: var(--ink); }
.arena-feed__txt b { color: var(--navy); }
.arena-feed li small { color: var(--muted); white-space: nowrap; }
.arena-feed__empty { color: var(--muted); justify-content: center; }

.arena-modal { position: fixed; inset: 0; z-index: 350; display: flex; align-items: center; justify-content: center; padding: 20px; }
.arena-modal[hidden] { display: none; }
.arena-modal__backdrop { position: absolute; inset: 0; background: rgba(8,28,38,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.arena-modal__panel { position: relative; width: min(620px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px 26px; animation: searchIn .3s cubic-bezier(.22,.61,.36,1); }
.arena-modal__close { position: absolute; top: 12px; right: 12px; }
.arena-game__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.arena-game__hud { display: flex; gap: 8px; }
.arena-result { text-align: center; padding: 14px 6px; }
.arena-result h3 { font-size: 1.35rem; margin: 12px 0 8px; }
.arena-result p { color: var(--muted); margin-bottom: 10px; }
.arena-result__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.arena-quiz__title { font-size: 1.25rem; margin-bottom: 4px; }
.arena-quiz__meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.arena-quiz__q { margin-bottom: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.arena-quiz__q:first-of-type { border-top: 0; padding-top: 0; }

.arena-memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.arena-memory__title { font-size: 1.25rem; margin-bottom: 4px; }
.arena-memory__moves { color: var(--muted); margin-bottom: 16px; }
.arena-memory__card { font-size: 1.9rem; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-soft); cursor: pointer; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.arena-memory__card:hover { transform: translateY(-2px); }
.arena-memory__card.is-open { background: #fff; border-color: var(--teal); }
.arena-memory__card.is-found { background: var(--gold-soft); border-color: var(--gold); cursor: default; }

.arena-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 500; background: #fff; color: var(--ink); font-weight: 600; padding: 15px 24px; border-radius: 999px; box-shadow: var(--shadow-lg); border-left: 6px solid var(--tc, var(--gold)); max-width: min(560px, 92vw); animation: toastIn .4s cubic-bezier(.22,.61,.36,1); }
.arena-toast--big { font-size: 1.05rem; padding: 18px 28px; }
.arena-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(14px); transition: all .4s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(18px); } }
.arena-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 490; overflow: hidden; }
.arena-confetti i { position: absolute; top: -16px; display: block; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* Homepage competition centre */
.home-arena { position: relative; }
.home-arena .house-board { margin-top: 8px; }
.home-arena__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 640px) {
    .arena-memory { grid-template-columns: repeat(3, 1fr); }
    .arena-player .btn { margin-left: 0; }
}

/* ---- Premium pass: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hero, .hero__orbs span { animation: none !important; }
    .search-modal__panel { animation: none !important; }
}
