/* ============================================================
   INFANT JESUS MATRIC. HR. SEC. SCHOOL — Traditional redesign
   House style per client brief: navy base · gold + red (crest) accents
   · teal support · cream/sky bands · dense, colourful, card-and-icon.
   Type: Montserrat (headings) · Open Sans (body) · Dancing Script (tagline)
   NOTE: the "Academic Programme" section is left UNTOUCHED — its markup
   and styles (Bricolage Grotesque + orange stage-track) are preserved
   verbatim and self-contained near the bottom of this file.
   ============================================================ */
:root {
  --navy: #0c2551;
  --navy-2: #081a3d;
  --royal: #1b47b8;
  --gold: #e8b23a;
  --gold-2: #c9971f;
  --gold-soft: #fdf3d6;
  --red: #d81f26;        /* crest red — CTA */
  --red-2: #b3161c;
  --teal: #12a08c;
  --cream: #fbf3e2;
  --cream-2: #fdf8ef;
  --sky: #eef3ff;
  --nink: #0f2147;       /* headings */
  --text: #4a5670;
  --muted: #7a869e;
  --line: #e4e9f2;
  --paper: #ffffff;

  /* preserved for the untouched Academic Programme section */
  --ij-orange: #ff5a1f;
  --ij-orange-s: #fff1ea;
  --ij-ink: #15171c;
  --ij-ink-soft: #565d6b;
  --ij-shadow: 0 18px 44px -22px rgba(20,24,45,.30), 0 6px 16px -10px rgba(20,24,45,.14);

  --shadow-sm: 0 4px 14px rgba(12,37,81,.07);
  --shadow-md: 0 14px 34px rgba(12,37,81,.12);
  --shadow-lg: 0 26px 60px rgba(12,37,81,.18);
  --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --max: 1180px;
  --max-head: 1380px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--paper);
  line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h4 { font-family: 'Montserrat', sans-serif; color: var(--nink); margin: 0 0 .6rem; line-height: 1.14; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-transform: uppercase; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); text-transform: uppercase; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1rem; text-align: justify; }

.container { max-width: var(--max); margin-inline: auto; padding: 0 28px; }
.section { padding: clamp(30px, 3.6vw, 52px) 0; position: relative; }
.center { text-align: center; }
.white { color: #fff !important; }
.light { color: rgba(255,255,255,.82) !important; }
.script { font-family: 'Dancing Script', cursive; font-weight: 700; }
.a-gold { color: var(--gold); } .a-red { color: var(--red); } .a-teal { color: var(--teal); }

/* Section-heading convention */
.sec-head { margin-bottom: clamp(34px, 4vw, 54px); }
.sec-head.center { text-align: center; }
/* Eyebrow = pill chip with a gold diamond (distinct from dash-flanked style) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  background: #fff; border: 1px solid var(--line);
  padding: .45rem 1.05rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
.eyebrow .dash { display: none; }
.eyebrow.light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--gold); box-shadow: none; }
.eyebrow.light::before { background: var(--red); }

/* Heading accent word: contrasting underline, not just a colour swap */
h1 .a-gold, h1 .a-red, h1 .a-teal,
h2 .a-red, h2 .a-teal { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .16em; text-decoration-color: var(--gold); }
h1 .a-gold, h2 .a-gold { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .16em; text-decoration-color: var(--red); }
.sec-sub { max-width: 640px; margin: .5rem 0 0; color: var(--muted); }
.sec-head.center .sec-sub { margin-inline: auto; }

/* Body/description paragraphs are justified by default (see `p` rule above).
   Restore alignment for centred or non-body paragraphs. */
.stage p { text-align: center; }
.footer-about p { text-align: left; }
.hero-tagline { text-align: left; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; padding: .9rem 1.6rem; border-radius: var(--r-pill); border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn .i { width: 1.05em; height: 1.05em; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(216,31,38,.3); }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(232,178,58,.34); }
.btn-gold:hover { background: var(--gold-2); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ============ Top utility bar ============ */
.topbar { background: var(--navy-2); color: rgba(255,255,255,.88); font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 1.35rem; max-width: var(--max-head); }
.topbar-contacts { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-contacts a, .topbar-contacts span { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.88); }
.topbar-contacts .i { width: 17px; height: 17px; }
.topbar-contacts .i { color: var(--gold); }
.topbar .sep { color: rgba(255,255,255,.22); }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.topbar-contact { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 36px; padding: .4rem 1.1rem; font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.42); border-radius: var(--r-pill); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.topbar-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-contact:hover { background: var(--gold); color: var(--navy-2); border-color: var(--gold); }
.nav-contact { display: none; }
.topbar-notice,
.topbar-careers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .4rem 1.05rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.topbar-notice::after,
.topbar-careers::after {
  content: "";
  position: absolute;
  inset: auto 16px 5px 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.topbar-notice,
.topbar-careers,
.topbar-careers.active {
  background: var(--gold);
  color: var(--navy-2);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 18px rgba(232,178,58,.2);
}
.topbar-notice { min-width: 178px; }
.topbar-careers { min-width: 112px; padding: .4rem 1.25rem; }
.topbar-notice { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.topbar-careers { border-radius: var(--r-pill); }
.topbar-notice:hover,
.topbar-careers:hover {
  background: #fff;
  color: var(--red);
  border-color: var(--gold);
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(216,31,38,.12);
}
.topbar-notice:hover::after,
.topbar-careers:hover::after {
  transform: scaleX(1);
}

/* ============ Header ============ */
.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: var(--shadow-sm); border-bottom: 3px solid var(--gold); transition: box-shadow .25s ease; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: .55rem clamp(.35rem, 1vw, .8rem); gap: clamp(1rem, 1.6vw, 1.6rem); max-width: var(--max-head); }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; flex: 0 0 auto; }
.brand img { width: 70px; height: 70px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--red); font-size: clamp(1.18rem, 1.7vw, 1.45rem); line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; }
.brand-text small { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 1.3vw, 1.55rem); flex: 1 1 auto; min-width: 0; }
.nav a { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: clamp(1rem, 1.05vw, 1.08rem); color: var(--nink); position: relative; transition: color .2s ease; white-space: nowrap; }
.nav-careers { display: none; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .25s var(--ease); }
.nav a:not(.nav-cta):hover { color: var(--red); }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { background: var(--red); color: #fff !important; padding: .68rem 1.35rem; border-radius: var(--r-pill); box-shadow: 0 8px 18px rgba(216,31,38,.3); }
.nav-cta:hover { background: var(--red-2); transform: translateY(-2px); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--navy); border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO (video) ============ */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(8,20,50,.42) 0%, rgba(8,20,50,.2) 45%, rgba(8,20,50,.06) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(64px, 9vw, 124px) 0; max-width: 720px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); padding: .45rem 1.05rem; border-radius: var(--r-pill); margin-bottom: 1.1rem; }
.hero-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); flex: none; }
.hero-eyebrow .dash { display: none; }
.hero h1 { color: var(--gold); font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: .3rem; text-shadow: 0 3px 18px rgba(8,20,50,.28); }
.hero h1 .a-gold { color: var(--gold); }
.hero-tagline { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--gold); margin: .1rem 0 1rem; }
.hero-lead { color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
/* feature badge band overlapping hero */
.hero-badges { position: relative; z-index: 3; margin-top: -74px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: #fff; border-radius: var(--r-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-lg); }
.hbadge { display: flex; align-items: center; gap: .8rem; }
.hbadge + .hbadge { border-left: 1px solid var(--line); padding-left: 1rem; }
.hbadge-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.hbadge-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbadge b { font-family: 'Montserrat', sans-serif; font-size: .96rem; color: var(--nink); display: block; line-height: 1.1; }
.hbadge span { font-size: .76rem; color: var(--muted); }
.bg-red { background: var(--red); } .bg-navy { background: var(--navy); } .bg-gold { background: var(--gold); color: var(--navy) !important; } .bg-teal { background: var(--teal); }

/* ============ VISION / MISSION / VALUES ============ */
.section-vmv { background: var(--cream); }
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vmv-card { --vmv-accent: var(--gold-2); --vmv-soft: var(--gold-soft); --vmv-hover-bg: linear-gradient(135deg, #f8cb51 0%, #e7a51c 100%); --vmv-hover-ink: var(--navy-2); --vmv-hover-copy: rgba(8,26,61,.82); position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.4rem 1.8rem 2rem; box-shadow: var(--shadow-md); overflow: hidden; isolation: isolate; }
.vmv-card:nth-child(2) { --vmv-accent: var(--red); --vmv-soft: #fdeaea; --vmv-hover-bg: linear-gradient(135deg, #e7353c 0%, #b91420 100%); --vmv-hover-ink: #fff; --vmv-hover-copy: rgba(255,255,255,.88); }
.vmv-card:nth-child(3) { --vmv-accent: var(--teal); --vmv-soft: #dbf5f0; --vmv-hover-bg: linear-gradient(135deg, #21b7a3 0%, #087d75 100%); --vmv-hover-ink: #fff; --vmv-hover-copy: rgba(255,255,255,.88); }
.vmv-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--vmv-hover-bg); opacity: 0; transition: opacity .3s ease; }
.vmv-ghost { position: absolute; z-index: 1; right: 1rem; top: .1rem; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 5.4rem; line-height: 1; color: var(--cream); pointer-events: none; transition: color .25s ease; }
.vmv-ic { position: relative; width: 58px; height: 58px; border-radius: 16px; background: var(--vmv-soft); color: var(--vmv-accent); display: grid; place-items: center; margin-bottom: 1rem; }
.vmv-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vmv-card h3 { position: relative; z-index: 1; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.3rem; margin: 0 0 .5rem; transition: color .25s ease; }
.vmv-card p { position: relative; z-index: 1; color: var(--text); margin: 0; font-size: .95rem; transition: color .25s ease; }

/* ============ ABOUT ============ */
.section-about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
.about-collage { position: relative; padding: 24px 24px 32px 0; }
.about-img-main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: clamp(320px, 40vw, 430px); object-fit: cover; }
.about-img-sub { position: absolute; right: -6px; bottom: -8px; width: 46%; border-radius: 18px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-md); }
.about-img-sub img { width: 100%; height: 168px; object-fit: cover; }
.about-years { position: absolute; left: -14px; top: 16px; z-index: 3; background: var(--navy); color: #fff; border-radius: 16px; padding: .9rem 1.1rem; text-align: center; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.about-years b { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; font-weight: 900; display: block; line-height: 1; color: var(--gold); }
.about-years span { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.about-confetti { position: absolute; color: var(--gold); font-size: 1.3rem; opacity: .6; }
.about-confetti.c1 { right: 8px; top: 0; } .about-confetti.c2 { left: 42%; bottom: 8px; color: var(--red); }
.about-text .lead { font-size: 1.08rem; color: var(--nink); font-weight: 600; }
.about-text h2 { text-transform: none; }
.tick-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.tick-list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--nink); }
.tick-list .i { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: none; }

/* ============ HERITAGE (dark band + stats) ============ */
.heritage { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, rgba(8,20,50,.94), rgba(8,26,61,.9)); }
.heritage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 2px, transparent 2px); background-size: 26px 26px; }
.heritage .container { position: relative; }
.heritage-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.heritage-head h2 { color: #fff; text-transform: none; margin: 0; }
.heritage-copy p { color: rgba(255,255,255,.82); margin: 0; }
.heritage-copy strong { color: #fff; }
/* wide image banner with the charism quote overlaid */
.heritage-banner { position: relative; margin: 0 0 clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid rgba(255,255,255,.1); }
.heritage-banner img { width: 100%; height: clamp(300px, 40vw, 440px); object-fit: cover; object-position: center 30%; display: block; }
.heritage-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(8,20,50,.92)); }
.heritage-badge { position: absolute; left: 18px; top: 18px; z-index: 2; background: var(--red); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem 1rem; border-radius: var(--r-pill); }
.heritage-quote { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.2rem, 3vw, 2rem); max-width: 900px; color: #fff; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.42; }
.hq-mark { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--gold); font-size: 2.6rem; line-height: 0; margin-right: .15rem; vertical-align: -.35em; }
/* connected stat bar (single bordered strip with dividers) */
.heritage-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.04); }
.hstat { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.hstat:last-child { border-right: 0; }
.hstat b { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 900; color: var(--gold); display: block; line-height: 1; }
.hstat span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.72); }

/* ============ HIGHER SECONDARY GROUPS ============ */
.section-groups { background: var(--sky); }
.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.group-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.group-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.group-media { position: relative; height: 170px; overflow: hidden; }
.group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.group-card:hover .group-media img { transform: scale(1.06); }
.group-tag { position: absolute; left: 14px; bottom: 14px; background: var(--navy); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: var(--r-pill); }
.group-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.group-body h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--navy); font-size: 1.2rem; margin: 0 0 .7rem; }
.group-subjects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .9rem; }
.group-subjects span { font-size: .72rem; font-weight: 700; background: var(--sky); color: var(--royal); border: 1px solid #dbe6ff; border-radius: var(--r-pill); padding: .3rem .7rem; }
.group-body p { margin: auto 0 0; font-size: .86rem; color: var(--text); }
.group-body p b { color: var(--red); }

/* ============ FACILITIES (image tiles, title on photo, hover-reveal) ============ */
.section-facilities { background: var(--paper); }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fac-tile { position: relative; height: 320px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.fac-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fac-tile:hover img { transform: scale(1.08); }
.fac-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,55,.05) 0%, rgba(9,22,55,.12) 42%, rgba(9,22,55,.9) 100%); transition: background .3s ease; }
.fac-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: .35rem .8rem; border-radius: var(--r-pill); }
.fac-num { position: absolute; top: 8px; right: 16px; z-index: 2; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.4rem; color: rgba(255,255,255,.32); line-height: 1; }
.fac-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: #fff; }
.fac-info h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #fff; font-size: 1.2rem; margin: 0; }
.fac-info h3::after { content: ""; display: block; width: 30px; height: 3px; border-radius: 3px; background: var(--gold); margin-top: .55rem; }
.fac-info p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s ease, margin-top .3s ease; }
.fac-tile:hover .fac-info p { max-height: 90px; opacity: 1; margin-top: .55rem; }
.fac-tile:nth-child(1) .fac-tag { background: var(--red); }
.fac-tile:nth-child(2) .fac-tag { background: var(--royal); }
.fac-tile:nth-child(3) .fac-tag { background: var(--teal); }
.fac-tile:nth-child(4) .fac-tag { background: var(--gold-2); }
.fac-tile:nth-child(5) .fac-tag { background: var(--red); }
.fac-tile:nth-child(6) .fac-tag { background: var(--royal); }
.fac-tile:nth-child(7) .fac-tag { background: var(--teal); }
.fac-tile:nth-child(8) .fac-tag { background: var(--gold-2); }
.fac-tile:nth-child(9) .fac-tag { background: var(--navy); }
@media (hover: none) { .fac-info p { max-height: 90px; opacity: 1; margin-top: .55rem; } .fac-tile::after { background: linear-gradient(180deg, rgba(9,22,55,.1), rgba(9,22,55,.92)); } }

/* ============ WHY CHOOSE US (navy icon grid) ============ */
.section-why { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.section-why::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 2px, transparent 2px); background-size: 26px 26px; }
.section-why .container { position: relative; }
.section-why .eyebrow { color: var(--gold); }
.section-why h2 { color: #fff; }
.section-why .sec-sub { color: rgba(255,255,255,.78); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.why-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 1.7rem 1.5rem; transition: transform .25s var(--ease), background .25s ease; }
.why-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.why-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.why-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card:nth-child(1) .why-ic { background: var(--red); }
.why-card:nth-child(2) .why-ic { background: var(--royal); }
.why-card:nth-child(3) .why-ic { background: var(--gold); color: var(--navy); }
.why-card:nth-child(4) .why-ic { background: var(--teal); }
.why-card:nth-child(5) .why-ic { background: var(--red); }
.why-card:nth-child(6) .why-ic { background: var(--royal); }
.why-card h4 { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.06rem; margin: 0 0 .3rem; }
.why-card p { color: rgba(255,255,255,.72); margin: 0; font-size: .88rem; }

/* ============ STATS band ============ */
.stats { position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 3.6vw, 46px) 0;
  background: linear-gradient(120deg, rgba(8,20,50,.9), rgba(12,37,81,.86)), url('assets/school-3.webp') center/cover; }
.stats::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 2px, transparent 2px); background-size: 26px 26px; }
.stats-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 0 1rem; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.16); }
.stat-ic { width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: 16px; background: rgba(232,178,58,.16); display: grid; place-items: center; }
.stat-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat b { font-family: 'Montserrat', sans-serif; font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; color: var(--gold); display: block; line-height: 1; }
.stat-lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.84); font-weight: 600; }

/* ============================================================
   ACADEMIC PROGRAMME — PRESERVED VERBATIM (untouched)
   Self-contained so the surrounding redesign never alters it.
   ============================================================ */
.academic { padding: 88px 0; background: #fff; }
.academic .section-head { margin-bottom: 50px; }
.academic .section-head.center { text-align: center; }
.academic .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ij-orange); }
.academic .kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.academic .section-title { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; color: var(--ij-ink); letter-spacing: -.02em; line-height: 1.04; font-size: clamp(30px, 3.4vw, 44px); margin: 16px 0 14px; text-transform: none; }
.academic .section-sub { font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: 18.5px; line-height: 1.6; max-width: 760px; color: var(--ij-ink-soft); text-transform: none; }
.academic .section-head.center .section-sub { margin-inline: auto; }
.academic .section-head.center .section-title { margin-inline: auto; max-width: 880px; }
.academic-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 20px; }
.academic-track::before { content: ""; position: absolute; left: 12%; right: 12%; top: 105px; height: 3px; background: repeating-linear-gradient(90deg, var(--ij-orange) 0 10px, transparent 10px 20px); }
.stage { position: relative; z-index: 1; text-align: center; }
.stage-node { width: 210px; height: 210px; margin: 0 auto 24px; border-radius: 50%; border: 5px solid #fff; background: #fff; box-shadow: 0 0 0 4px var(--ij-orange-s), var(--ij-shadow); overflow: hidden; }
.stage-node img { width: 100%; height: 100%; object-fit: cover; }
.stage-year { display: inline-block; background: var(--ij-orange); color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.stage h3 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; font-weight: 800; color: var(--ij-ink); font-size: 25px; margin: 0 0 8px; line-height: 1.1; letter-spacing: -.01em; }
.stage p { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; color: var(--ij-ink-soft); max-width: 250px; margin: 0 auto; line-height: 1.6; }
/* ===== end preserved Academic Programme ===== */

/* ============ ACTIVITIES / STUDENT LIFE (bento on navy) ============ */
.section-life { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.life-scribble { position: absolute; z-index: 0; color: rgba(232,178,58,.16); font-size: 5rem; line-height: 1; }
.life-scribble.s1 { top: 8%; left: 3%; } .life-scribble.s2 { bottom: 10%; right: 5%; font-size: 4rem; }
.life-head { position: relative; z-index: 1; text-align: center; margin-bottom: clamp(34px, 4.5vw, 54px); }
.life-head h2 { text-transform: none; }
.life-sub { max-width: 580px; margin: .5rem auto 0; color: rgba(255,255,255,.8); }
.bento { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 178px; gap: 1rem; }
.bento-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bento-tile:hover img { transform: scale(1.06); }
.bento-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,20,50,.82)); }
.bento-tile figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.02rem; }
.bento-tile figcaption::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: 7px; }
.bento-tile.big { grid-column: span 2; grid-row: span 2; }
.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.8rem; }
.chips span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .78rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: .45rem 1rem; border-radius: var(--r-pill); }

/* ============ TESTIMONIALS ============ */
.section-tst { background: var(--cream); }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tst-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 2.2rem 1.7rem 1.7rem; box-shadow: var(--shadow-md); border-bottom: 4px solid var(--gold); }
.tst-card:nth-child(2) { border-bottom-color: var(--red); }
.tst-card:nth-child(3) { border-bottom-color: var(--teal); }
.tst-quote { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3.4rem; line-height: .7; color: var(--gold); opacity: .5; }
.tst-card blockquote { margin: .2rem 0 1.2rem; color: var(--nink); font-size: .98rem; }
.tst-who { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.tst-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .95rem; flex: none; background: var(--navy); }
.tst-card:nth-child(2) .tst-av { background: var(--red); }
.tst-card:nth-child(3) .tst-av { background: var(--teal); }
.tst-who b { font-family: 'Montserrat', sans-serif; color: var(--navy); display: block; font-size: .95rem; }
.tst-who span { font-size: .8rem; color: var(--muted); }

/* ============ GALLERY (peek carousel with arrows) ============ */
.section-gallery { background: var(--paper); }
.gal-carousel { position: relative; }
.gcar-track { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1.4rem; scrollbar-width: none; scroll-behavior: smooth; }
.gcar-track::-webkit-scrollbar { display: none; }
.gcar-slide { position: relative; flex: 0 0 auto; width: min(70%, 760px); scroll-snap-align: center; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.gcar-slide img { width: 100%; height: clamp(320px, 46vw, 500px); object-fit: cover; display: block; }
.gcar-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,20,50,.88)); }
.gcar-slide figcaption { position: absolute; left: 1.6rem; bottom: 1.5rem; right: 1.6rem; z-index: 1; color: #fff; }
.gcar-tag { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gcar-slide figcaption b { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.6rem); display: block; margin-top: .2rem; }
.gcar-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background .2s ease, transform .2s ease; }
.gcar-nav:hover { background: var(--red); transform: translateY(-50%) scale(1.06); }
.gcar-nav svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gcar-prev { left: -14px; } .gcar-next { right: -14px; }
.gallery-foot { display: flex; justify-content: center; margin-top: 1.4rem; }

/* ============ ADMISSIONS CTA ============ */
.cta { position: relative; overflow: hidden; color: #fff; padding: clamp(42px, 5.5vw, 66px) 0; background: linear-gradient(120deg, var(--red), var(--red-2)); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 2px, transparent 2px); background-size: 24px 24px; opacity: .5; }
.cta::after { content: ""; position: absolute; right: -8%; top: -40%; width: 46%; height: 180%; background: radial-gradient(circle, rgba(232,178,58,.4), transparent 62%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: center; }
.cta .eyebrow.light { color: #fff; }
.cta h2 { margin-bottom: .5rem; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.cta-actions .btn { width: 100%; justify-content: center; }
.cta .btn-gold { background: #fff; color: var(--red-2); }
.cta .btn-gold:hover { background: var(--navy); color: #fff; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-2); color: #aeb9d4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding: clamp(44px, 6vw, 72px) 28px 2.4rem; }
.footer-logo { width: 84px; height: 84px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); object-fit: contain; margin-bottom: 1.1rem; }
.footer-about, .footer-col { min-width: 0; }
.footer-about b { font-family: 'Montserrat', sans-serif; color: #fff; font-size: 1.02rem; display: block; margin-bottom: .6rem; line-height: 1.3; }
.footer-about p { font-size: .9rem; color: #93a0c2; }
.footer-col h4 { font-family: 'Montserrat', sans-serif; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { font-size: 13px; font-weight: 600; color: #c3cce0; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--nink); min-width: 0; }
.contact-list li > span, .contact-list li a { min-width: 0; overflow-wrap: anywhere; }
.contact-list .i { color: var(--gold-2); margin-top: 4px; flex: none; }
.footer .contact-list li { color: #aeb9d4; }
.footer .contact-list .i { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .82rem; }
.footer-bottom-inner { display: flex;  gap: 1rem; flex-wrap: wrap; color: #8493ba; }
.footer-bottom b { color: var(--gold); }

/* ============ Floating buttons ============ */
.fab-stack { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70; display: flex; flex-direction: column; gap: .7rem; transition: opacity .2s ease, visibility .2s ease; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow-md); transition: transform .2s ease; }
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-call { background: var(--royal); } .fab-wa { background: var(--teal); }
.fab-top { background: var(--red); opacity: 0; visibility: hidden; transform: translateY(10px); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* ============ Hover enhancements (site-wide) ============ */
.vmv-card { transition: transform .25s var(--ease), box-shadow .25s ease; }
.vmv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vmv-card:hover::before { opacity: 1; }
.vmv-card:hover h3 { color: var(--vmv-hover-ink); }
.vmv-card:hover p { color: var(--vmv-hover-copy); }
.vmv-card:hover .vmv-ghost { color: rgba(255,255,255,.2); }
.vmv-ic, .why-ic, .stat-ic { transition: transform .3s var(--ease), background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.vmv-card:hover .vmv-ic { background: rgba(255,255,255,.94); color: var(--vmv-accent); transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 22px rgba(8,26,61,.16); }
.why-card:hover .why-ic { transform: rotate(-6deg) scale(1.06); }

.stat { transition: transform .25s var(--ease); }
.stat:hover { transform: translateY(-4px); }
.stat:hover .stat-ic { transform: scale(1.12); }

.hstat { transition: background .25s ease; }
.hstat:hover { background: rgba(255,255,255,.1); }

.about-img-main, .about-img-sub, .heritage-banner, .gcar-slide { }
.about-img-main img, .about-img-sub img, .heritage-banner img, .gcar-slide img { transition: transform .6s var(--ease); }
.about-img-main:hover img, .about-img-sub:hover img, .heritage-banner:hover img, .gcar-slide:hover img { transform: scale(1.05); }
.about-years, .heritage-badge { transition: transform .25s var(--ease); }
.about-collage:hover .about-years, .heritage-media:hover .heritage-badge { transform: translateY(-3px) scale(1.04); }

.brand img { transition: transform .25s var(--ease); }
.brand:hover img { transform: scale(1.06); }

.topbar-contacts a { transition: color .2s ease; }
.topbar-contacts a:hover { color: var(--gold); }

.tick-list li { transition: transform .2s ease; }
.tick-list li:hover { transform: translateX(5px); }
.tick-list li:hover .i { transform: scale(1.12); }
.tick-list .i { transition: transform .2s ease; }

.group-subjects span { transition: transform .2s ease, background .2s ease, color .2s ease; }
.group-subjects span:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.gallery-foot .btn, .about-text .btn { }
.eyebrow { transition: transform .25s var(--ease); }
.sec-head:hover .eyebrow, .heritage-head:hover .eyebrow { transform: translateY(-2px); }

.footer-logo { transition: transform .25s var(--ease); }
.footer-about:hover .footer-logo { transform: rotate(-4deg) scale(1.04); }
.contact-list li { transition: transform .2s ease, color .2s ease; }
.contact-list li:hover { transform: translateX(4px); }
.footer .contact-list li:hover { color: #fff; }

/* ============================================================
   DROPDOWN NAV + INNER PAGES
   ============================================================ */
.nav .has-drop { position: relative; display: inline-flex; align-items: center; }
.nav .drop-toggle { display: inline-flex; align-items: center; gap: .25rem; }
.nav .drop-toggle svg { width: 13px; height: 13px; margin-left: 3px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav .dropdown { position: absolute; top: calc(100% + 12px); left: -8px; min-width: 244px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: .5rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 70; }
.nav .dropdown::before { content: ""; position: absolute; top: -7px; left: 26px; width: 13px; height: 13px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
/* rightmost dropdowns open right-aligned so they never overflow the viewport edge */
.nav .has-drop:nth-last-of-type(-n+2) .dropdown { left: auto; right: -8px; }
.nav .has-drop:nth-last-of-type(-n+2) .dropdown::before { left: auto; right: 26px; }
.nav .has-drop:hover .dropdown, .nav .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav .dropdown a { display: block; padding: .6rem .85rem; border-radius: 9px; font-size: .92rem; font-weight: 600; color: var(--nink); white-space: nowrap; }
.nav .dropdown a::after { display: none !important; }
.nav .dropdown a:hover { background: var(--gold-soft); color: var(--red); padding-left: 1.1rem; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(248px, 23vw, 304px);
  color: #fff;
  padding: clamp(48px, 6.2vw, 83px) 0 clamp(40px, 4.8vw, 62px);
  background: var(--navy);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(120deg, rgba(8,20,50,.5), rgba(8,26,61,.3)), var(--ph-img, none); background-size: cover; background-position: center; }
.page-hero::after { display: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0 0 .7rem; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; align-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .45; }

/* Prose + content blocks */
.prose { max-width: 920px; }
.prose > p { margin: 0 0 1.1rem; font-size: 1.02rem; color: var(--text); }
.prose h3 { font-family: 'Montserrat', sans-serif; color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2rem 0 .8rem; }
.lead-lg { font-size: 1.16rem !important; color: var(--nink) !important; font-weight: 600; }
.rule { height: 3px; width: 60px; background: var(--gold); border-radius: 3px; margin: 0 0 1.4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.split-media img { width: 100%; height: clamp(300px, 40vw, 430px); object-fit: cover; transition: transform .6s var(--ease); }
.split-media:hover img { transform: scale(1.05); }

.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--nink); font-weight: 600; }
.check-list .i { color: #fff; background: var(--teal); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: none; margin-top: 3px; }
.vm-detail-section .sec-head {
  max-width: 980px;
  margin-inline: auto;
}
.vm-detail-section .check-list {
  max-width: 1120px;
  margin: 1rem auto 0;
  align-items: start;
}
.vm-detail-section .check-list li {
  align-items: center;
}

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-n { width: 46px; height: 46px; border-radius: 12px; background: var(--red); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.step:nth-child(2n) .step-n { background: var(--royal); }
.step h4 { color: var(--navy); margin: 0 0 .2rem; }
.step p { margin: 0; font-size: .9rem; }

.doc-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.doc-grid li { display: flex; gap: .6rem; align-items: center; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; font-weight: 600; color: var(--nink); font-size: .92rem; }
.doc-grid .i { color: var(--gold-2); flex: none; }

.info-table { width: 100%; border-collapse: collapse; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-table th { background: var(--navy); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; text-align: left; padding: 1rem 1.2rem; font-size: .88rem; letter-spacing: .03em; }
.info-table td { padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--nink); }
.info-table tr:last-child td { border-bottom: 0; }
.info-table tr:nth-child(even) td { background: var(--cream-2); }

.callout { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden; }
.callout::after { content: ""; position: absolute; right: -6%; top: -40%; width: 40%; height: 180%; background: radial-gradient(circle, rgba(232,178,58,.28), transparent 60%); }
.callout > * { position: relative; }
.callout h3 { color: #fff; margin: 0 0 .5rem; }
.callout p { color: rgba(255,255,255,.85); margin: 0; }
.motto-quote { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); color: var(--red); text-align: center; }

/* Tile grid — vivid icon cards (clubs, committees, activities, programmes) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 1.2rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.45rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: .95rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.tile:hover .tile-ic { transform: rotate(-6deg) scale(1.06); }
.tile-ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--nink); margin: 0 0 .4rem; font-size: 1.06rem; }
.tile p { margin: 0; color: var(--text); font-size: .9rem; line-height: 1.6; }
.tile:nth-child(6n+1) .tile-ic { background: var(--red); }
.tile:nth-child(6n+2) .tile-ic { background: var(--royal); }
.tile:nth-child(6n+3) .tile-ic { background: var(--gold-2); }
.tile:nth-child(6n+4) .tile-ic { background: var(--teal); }
.tile:nth-child(6n+5) .tile-ic { background: #8a2be2; }
.tile:nth-child(6n) .tile-ic { background: var(--navy); }

/* Leader / policy cards — accent left border with title + copy */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.leaders.stack { grid-template-columns: 1fr; }
.leader { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold-2); border-radius: var(--r-lg); padding: 1.7rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.leader:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leader:nth-child(4n+2) { border-left-color: var(--red); }
.leader:nth-child(4n+3) { border-left-color: var(--royal); }
.leader:nth-child(4n) { border-left-color: var(--teal); }
.leader-photo { width: 100%; height: 340px; border-radius: 14px; object-fit: cover; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.leader-role { display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .35rem; }
.leader h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--nink); font-size: 1.2rem; margin: 0 0 .7rem; }
.leader p { margin: 0 0 .8rem; color: var(--text); font-size: .94rem; line-height: 1.7; }
.leader p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .leaders { grid-template-columns: 1fr; } }

.career-apply { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f7faff 100%); }
.career-apply-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(2rem, 5vw, 4.6rem); align-items: center; }
.career-apply .eyebrow { margin-bottom: 1rem; }
.career-apply .rule { width: 72px; margin-bottom: 1.8rem; }
.career-apply .steps { gap: 1.15rem; }
.career-apply .step {
  min-height: 160px;
  align-items: start;
  border-color: rgba(27,71,184,.12);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 16px 34px rgba(12,37,81,.08);
}
.career-apply .step:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(12,37,81,.13); }
.career-apply .step-n { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 10px 18px rgba(216,31,38,.18); }
.career-apply .step:nth-child(2n) .step-n { box-shadow: 0 10px 18px rgba(27,71,184,.18); }
.career-apply .step h4 { font-size: 1rem; line-height: 1.24; }
.career-apply .step p { line-height: 1.62; color: #33405d; }
.career-apply .callout {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(8,26,61,.2);
}
.career-apply .callout::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 62%, rgba(255,255,255,.08) 62% 100%); pointer-events: none; }
.career-apply .callout::after { right: -18%; top: -45%; width: 58%; height: 190%; background: radial-gradient(circle, rgba(232,178,58,.32), transparent 62%); }
.career-apply .callout h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .9rem; }
.career-apply .callout p { max-width: 520px; font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,.9); }
.career-apply .callout .btn { align-self: flex-start; min-width: 190px; justify-content: center; }

.section.alt { background: var(--cream); }
.section.sky { background: var(--sky); }
.nav a.active,
.nav a[active],
.nav .drop-toggle.active { color: var(--red); }
.nav .dropdown a.active { color: var(--red); background: var(--gold-soft); }
.contact-2 .contact-list li { color: var(--nink); font-weight: 600; }
.contact-2 .contact-list .i { color: var(--gold-2); }

/* Photo grid (gallery page) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.photo-grid figure:hover img { transform: scale(1.08); }
.photo-grid figure::after { content: ""; position: absolute; inset: 6px; border: 2px solid transparent; border-radius: calc(var(--r) - 4px); transition: border-color .25s; pointer-events: none; }
.photo-grid figure:hover::after { border-color: var(--gold); }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; background: linear-gradient(transparent, rgba(8,20,50,.86)); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .84rem; opacity: 0; transform: translateY(8px); transition: .25s ease; }
.photo-grid figure:hover figcaption { opacity: 1; transform: none; }

/* Contact page */
.ct-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ct-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.ct-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ct-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; margin: 0 auto .8rem; }
.ct-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-tile b { font-family: 'Montserrat', sans-serif; color: var(--navy); display: block; margin-bottom: .2rem; }
.ct-tile span { font-size: .9rem; color: var(--text); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--cream-2); color: var(--nink); transition: border .2s ease, background .2s ease; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.4rem); align-items: start; }

/* ============ ZOHO FORMS ============ */
.zoho-form-section { background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.zoho-form-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.zoho-form-head .sec-head { margin: 0; }
.zoho-form-head .sec-sub { margin-inline: 0; max-width: 700px; }
.zoho-form-shell { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.zoho-form-shell::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--gold), var(--red), var(--royal), var(--teal)); }
.zoho-form-shell iframe { display: block; width: 100%; height: var(--zoho-height, 900px); border: 0; background: #fff; }
.zoho-form-fallback { flex: none; }

@media (min-width: 1241px) and (max-width: 1460px) {
  .brand img { width: 62px; height: 62px; }
  .brand-text b { font-size: clamp(1.02rem, 1.35vw, 1.2rem); }
  .brand-text small { font-size: .56rem; }
  .nav { gap: clamp(1.15rem, 1.85vw, 2rem); }
  .nav a { font-size: clamp(1rem, 1.1vw, 1.12rem); }
  .nav-cta { padding: .58rem 1rem; }
}

@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-tiles { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .contact-2 { grid-template-columns: 1fr; }
  .zoho-form-head { align-items: flex-start; flex-direction: column; }
  .zoho-form-shell { border-radius: 14px; }
  .zoho-form-shell iframe { height: var(--zoho-mobile-height, var(--zoho-height, 900px)); }
}

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  body.nav-open { overflow: hidden; }
  .topbar-contacts .sep, .topbar .hide-sm { display: none; }
  .topbar-inner { justify-content: center; flex-wrap: wrap; gap: .2rem .7rem; text-align: center; }
  .topbar-careers, .topbar-contact { display: none; }
  .header-inner { flex-wrap: nowrap; padding-inline: clamp(1rem, 3vw, 1.6rem); }
  .brand-text b { font-size: 1.14rem; }
  .nav { display: none; position: fixed; z-index: 90; top: var(--mobile-nav-top, 104px); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; height: auto; max-height: none; overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; touch-action: pan-y; padding: .75rem clamp(20px, 5vw, 44px) calc(2rem + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .nav.open { display: flex; }
  .nav .nav-careers, .nav .nav-contact { display: block; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin: .6rem 0; }
  .nav-toggle { display: flex; flex: 0 0 auto; }
  .nav .has-drop { display: block; }
  .nav .drop-toggle { display: flex; justify-content: space-between; width: 100%; }
  .nav .drop-toggle svg { transition: transform .2s ease; }
  .nav .has-drop.open .drop-toggle svg { transform: rotate(180deg); }
  .nav .dropdown { position: static; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 1rem; min-width: 0; transition: max-height .25s ease, opacity .2s ease, padding .2s ease, visibility .2s; }
  .nav .has-drop.open .dropdown { max-height: 260px; opacity: 1; visibility: visible; padding: .15rem 0 .45rem 1rem; }
  .nav .dropdown::before { display: none; }
  .nav .dropdown a { padding: .8rem 0; font-size: .96rem; }
  body.nav-open .fab-stack { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 1000px) {
  .vmv-grid { grid-template-columns: 1fr; }
  .heritage-intro { grid-template-columns: 1fr; gap: 1.1rem; align-items: start; }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tile.big { grid-column: span 2; grid-row: span 1; }
  /* Academic (untouched behaviour preserved) */
  .academic-track { grid-template-columns: 1fr 1fr; gap: 40px; }
  .academic-track::before { display: none; }
  .stage-node { width: 200px; height: 200px; }
  .career-apply-grid { grid-template-columns: 1fr; gap: 2rem; }
  .career-apply .callout { min-height: 0; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 78px; padding-block: .75rem; }
  .nav { padding-bottom: calc(2.2rem + env(safe-area-inset-bottom)); }
  .brand { gap: .65rem; }
  .brand img { width: 58px; height: 58px; }
  .brand-text b { font-size: .92rem; }
  .brand-text small { font-size: .54rem; letter-spacing: .07em; }
  .page-hero {
    min-height: 207px;
    padding: 40px 0 35px;
  }
  .hero-badges { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hbadge + .hbadge { border-left: 0; padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: 1fr; }
  .fac-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .heritage-stats { grid-template-columns: 1fr 1fr; }
  .hstat:nth-child(2) { border-right: 0; }
  .hstat:nth-child(1), .hstat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .check-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .career-apply .steps { grid-template-columns: 1fr 1fr; }
  .career-apply .step { min-height: 150px; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .stat + .stat::before { display: none; }
  .gcar-slide { width: 86%; }
  .gcar-prev { left: 2px; } .gcar-next { right: 2px; }
  .gcar-nav { width: 46px; height: 46px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; } .cta-actions .btn { width: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; padding: 42px 88px 2rem 22px; }
  .footer-about b, .footer-about p, .footer-col a, .contact-list li { overflow-wrap: anywhere; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .academic-track { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: clamp(1.85rem, 9vw, 2.25rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 2rem); }
  .brand { flex: 1 1 auto; }
  .brand img { width: 54px; height: 54px; }
  .brand-text b { font-size: .88rem; }
  .brand-text small { font-size: .5rem; }
  .hero-actions, .cta-actions { align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn, .gallery-foot .btn, .about-text .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-badges, .photo-grid, .ct-tiles, .doc-grid, .bento { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 190px; }
  .ct-tile span { overflow-wrap: anywhere; }
  .callout { padding: 1.45rem 1.25rem; }
  .career-apply .steps { grid-template-columns: 1fr; }
  .career-apply .step { min-height: 0; padding: 1.1rem; }
  .career-apply .callout { border-radius: 18px; padding: 1.45rem 1.25rem; }
  .career-apply .callout::before { background: linear-gradient(180deg, transparent 0 58%, rgba(255,255,255,.08) 58% 100%); }
  .callout .btn {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    justify-content: space-between;
    gap: .75rem;
    padding: .82rem 1.1rem;
    font-size: .72rem;
    letter-spacing: .04em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .callout .btn .i { flex: none; }
  .stage-node { width: min(200px, 74vw); height: min(200px, 74vw); }
  .gcar-slide { width: 92%; }
  .footer-grid { padding: 42px 76px 2.2rem 24px; }
  .fab-stack { right: .85rem; bottom: .85rem; gap: .55rem; }
  .fab { width: 44px; height: 44px; }
}
