/* IITianMentors – public site styles
   Palette: Navy #0B2447 · Royal blue #1D4E9E · Gold #C5A15B · Ivory #FAF7EF · White · Ink #20242C */
:root {
  --navy: #0B2447;
  --navy-deep: #061630;
  --royal: #1D4E9E;
  --navy-mid: #123566;
  --navy-rgb: 11, 36, 71;
  --royal-rgb: 29, 78, 158;
  --deep-rgb: 6, 22, 48;
  /* gradient + surface tokens (colour themes can override these) */
  --grad: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  --hdr-bg: rgba(var(--navy-rgb), .97);
  --btn-bg: var(--navy);
  --gold: #C5A15B;
  --gold-hi: #C5A15B;              /* gold used on dark/coloured areas; brightened by lighter colour themes for contrast */
  --gold-text: #8A6D2F;            /* gold darkened for text on light backgrounds (AA contrast) */
  --gold-soft: rgba(197, 161, 91, .14);
  --white: #FFFFFF;
  --grey: #F3F5F9;
  --ivory: #FAF7EF;
  --ink: #20242C;
  --muted: #5B6270;
  --line: #E3E7EE;
  --danger: #B3261E;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(var(--navy-rgb), .05), 0 10px 30px rgba(var(--navy-rgb), .07);
  --shadow-lg: 0 2px 4px rgba(var(--navy-rgb), .06), 0 22px 50px rgba(var(--navy-rgb), .14);
  --header-h: 76px;
}

/* on coloured areas the highlight gold may be brighter than on white */
.site-header, .announce, .hero, .page-hero, .section.navy, .site-footer, .final-cta, .float-call { --gold: var(--gold-hi); }
.brand svg, .brand svg g { stroke: var(--gold); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.wrap { width: min(1360px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.muted-note { color: var(--muted); font-size: .92rem; }
.hide-xs { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.45rem; border-radius: 10px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; text-align: center; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-primary { background: var(--btn-bg); color: #fff; box-shadow: 0 6px 18px rgba(var(--navy-rgb), .22); }
.btn-primary:hover { background: var(--royal); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(197, 161, 91, .35); }
.btn-gold:hover { background: #D4B36F; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--royal); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.arrow-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.arrow-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.arrow-link:hover .icon { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1rem; }
.cta-row.center-row { justify-content: center; }
.cta-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 1.5rem; }

/* ---------- announcement + header ---------- */
.announce { background: var(--navy-deep); color: #fff; font-size: .9rem; padding: .55rem 0; }
.announce .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; align-items: center; text-align: center; }
.announce strong { color: var(--gold); }
.announce a { color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.announce a .icon { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--hdr-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(197, 161, 91, .28); }
.nav-bar { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand-link { text-decoration: none; margin-right: auto; }
.main-nav ul { display: flex; align-items: center; gap: .15rem; }
.main-nav a { display: block; padding: .5rem .8rem; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .94rem; font-weight: 500; border-radius: 8px; position: relative; }
.main-nav a:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.has-sub { position: relative; }
.has-sub > a { display: flex; align-items: center; gap: .2rem; }
.sub-ico { width: 16px; height: 16px; }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--navy-deep); border: 1px solid rgba(197, 161, 91, .35); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; display: none !important; flex-direction: column; align-items: stretch !important; gap: 0 !important; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.sub a { padding: .6rem .8rem; }
.sub a::after { display: none; }
.main-nav .nav-cta-inmenu { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; width: 44px; height: 44px; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.main-nav .btn-gold, .main-nav .btn-gold:hover { color: var(--navy); background: var(--gold); }
.nav-cta { padding: .62rem 1.1rem; font-size: .9rem; white-space: nowrap; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-cta { order: 2; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy-deep); border-bottom: 1px solid rgba(197, 161, 91, .3); box-shadow: var(--shadow-lg); padding: .8rem 20px 1.2rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .85rem .6rem; font-size: 1.02rem; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .has-sub .sub, .sub-ico { display: none !important; }
  .main-nav .nav-cta-inmenu { display: flex; justify-content: center; margin-top: 1rem; border: 1.5px solid transparent; border-radius: 10px; color: var(--navy); }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .hide-xs { display: none; }
  .nav-bar { gap: .6rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, rgba(197, 161, 91, .22), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(var(--royal-rgb), .8), transparent 60%),
  var(--grad); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 76px 0 92px; }
.hero h1, .page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.9vw, 3.7rem); letter-spacing: -.015em; margin-bottom: .45em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9rem; }
.eyebrow.on-dark { color: var(--gold); }
.hero-sub { font-size: 1.12rem; color: rgba(255, 255, 255, .86); max-width: 56ch; }
.hero-sub.strong { color: #fff; font-family: var(--serif); font-size: 1.35rem; }
.hero-sub2 { color: rgba(255, 255, 255, .72); max-width: 56ch; }
.hero-points { display: grid; gap: .7rem; margin: 1.5rem 0 .4rem; }
.hero-points li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.hero-points .icon { color: var(--gold); flex: none; }
.hero-note { color: rgba(255, 255, 255, .7); font-size: .92rem; margin: 1.1rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-media { position: relative; }
.hero-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(197, 161, 91, .45); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); aspect-ratio: 5 / 4; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.hero-badge { position: absolute; left: -22px; bottom: 28px; background: #fff; color: var(--navy); border-radius: 14px; padding: .85rem 1.1rem; display: flex; gap: .8rem; align-items: center; box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; }
.hero-badge .icon { color: var(--gold-text); width: 28px; height: 28px; }
.hero-badge strong { display: block; font-size: .95rem; }
.tagline-band { background: #fff; border-bottom: 1px solid var(--line); }
.tagline-band p { margin: 0; padding: 1.15rem 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--navy); }
.tagline-band p::before, .tagline-band p::after { content: '◆'; color: var(--gold); font-size: .6em; font-style: normal; margin: 0 .9em; vertical-align: .15em; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 64px; gap: 40px; }
  .hero-badge { left: 14px; bottom: 14px; }
}

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--grey); }
.section.navy { background: var(--grad); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
@media (max-width: 720px) { .section { padding: 60px 0; } }
.section-head { max-width: 760px; margin: 0 auto 3rem; }
.section-head.center { text-align: center; }
.h-section { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.h-small { font-size: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.section.navy .lead { color: rgba(255, 255, 255, .78); }
.sub-h { font-size: 1.4rem; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.center-prose { margin-inline: auto; text-align: center; font-size: 1.08rem; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-card, .fact-card, .vm-card, .res-card, .cur-card, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; }
.feature-card:hover, .res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(197, 161, 91, .6); }
.feature-card h3, .fact-card h2, .vm-card h2, .res-card h3, .cur-card h3 { font-size: 1.2rem; }
.feature-card p, .fact-card p, .res-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature-card.slim { padding: 24px; }
.f-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-text); margin-bottom: 1.1rem; flex: none; }
.f-ico .icon { width: 26px; height: 26px; }
.res-card .btn, .res-card .badge { margin-top: 1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-media::before { content: ''; position: absolute; inset: 0; border: 1px solid rgba(197, 161, 91, .5); border-radius: inherit; z-index: 1; pointer-events: none; }
.split-media img { width: 100%; }
.split-rev .split-media { order: 2; }
.split.stretch { align-items: stretch; }
.split.stretch .split-media img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split-rev .split-media { order: 0; } }
.tag-quote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-text); border-left: 3px solid var(--gold); padding-left: 1rem; }
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.6rem 0 1.8rem; }
.mini-cards li { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; font-weight: 600; font-size: .94rem; color: var(--navy); }
.mini-cards .icon { color: var(--gold-text); flex: none; }
.mini-h { font-family: var(--sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-text); margin: 1.4rem 0 .7rem; font-weight: 700; }

.check-list { display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.check-list .icon { width: 18px; height: 18px; color: var(--gold-text); stroke-width: 2.6; flex: none; margin-top: .28rem; }
.check-list.two-col { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); column-gap: 1.2rem; }

/* ---------- program cards ---------- */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 960px) { .program-grid { grid-template-columns: 1fr; } }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc-media { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--navy); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.program-card:hover .pc-media img { transform: scale(1.04); }
.pc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(var(--deep-rgb), .7)); }
.pc-no { position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; background: var(--navy); border: 1px solid var(--gold); padding: .3rem .7rem; border-radius: 999px; }
.pc-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.pc-level { color: var(--gold-text); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.pc-body h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.pc-body h3 a { color: inherit; text-decoration: none; }
.pc-headline { font-weight: 600; color: var(--royal); margin-bottom: .5rem; }
.pc-summary { color: var(--muted); font-size: .97rem; }
.pc-closing { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--navy); border-left: 3px solid var(--gold); padding-left: .9rem; margin: 1.5rem 0 1.3rem; }
.pc-body .arrow-link { margin-top: auto; align-self: flex-start; }
.journey { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 1rem 0 0; }
.journey li { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; background: var(--grey); color: var(--navy); border: 1px solid var(--line); display: flex; align-items: center; }
.journey li:not(:last-child)::after { content: '→'; margin-left: .5rem; color: var(--gold-text); }
.journey li.goal { background: var(--gold); border-color: var(--gold); }

/* ---------- faculty ---------- */
.faculty-spot, .profile { display: grid; grid-template-columns: 340px 1fr; gap: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px; }
@media (max-width: 900px) { .faculty-spot, .profile { grid-template-columns: 1fr; padding: 24px; gap: 28px; } }
.fs-photo, .profile-photo { align-self: start; }
.fs-photo img, .profile-photo img { width: 100%; border-radius: var(--r); aspect-ratio: 6 / 7; object-fit: cover; }
.monogram { aspect-ratio: 6 / 7; border-radius: var(--r); display: grid; place-items: center; position: relative; overflow: hidden; background:
  radial-gradient(circle at 70% 20%, rgba(197, 161, 91, .28), transparent 55%), linear-gradient(160deg, var(--navy), var(--royal)); }
.monogram::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(197, 161, 91, .55); border-radius: 12px; }
.monogram span { font-family: var(--serif); font-size: 5rem; color: var(--gold); letter-spacing: .04em; }
.faculty-spot h3, .profile-name { font-size: 2rem; margin-bottom: .2rem; }
.aka { font-size: .6em; color: var(--gold-text); font-weight: 500; }
.fs-title { font-weight: 600; color: var(--royal); margin-bottom: 1rem; }
.philosophy { margin: 1.6rem 0; padding: 1.2rem 1.4rem; background: var(--grey); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--navy); }
.philosophy span { display: block; font: 700 .72rem var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .4rem; }
.facts { display: grid; gap: .6rem; margin: 1.2rem 0 0; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chips a { display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: var(--gold-soft); color: var(--navy); font-size: .88rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(197, 161, 91, .4); }
.chips a:hover { background: var(--gold); }
.chips-nav { justify-content: center; margin-bottom: 2.5rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.step::after { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--gold), transparent); }
.step-n { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- mission cards ---------- */
.mvc-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(197, 161, 91, .3); border-radius: var(--r); padding: 36px 32px; }
.mvc-card h3 { color: var(--gold); font-size: 1.5rem; }
.mvc-card p { margin: 0; color: rgba(255, 255, 255, .84); }

/* ---------- faculty cards (home / about) ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .fac-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.fac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.fac-photo { display: block; }
.fac-photo img, .fac-photo .monogram { width: 100%; border-radius: 0; aspect-ratio: 6 / 7; object-fit: cover; object-position: 50% 22%; display: block; }
.fac-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.fac-body h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.fac-body h3 a { color: inherit; }
.fac-subj { color: var(--muted); font-size: .95rem; margin: 0 0 .8rem; }
.fac-body .chips { margin-bottom: 1rem; }
.fac-body .arrow-link { margin-top: auto; }
.fs-photo img, .profile-photo img { object-position: 50% 22%; }

/* ---------- selective intake + admission-by-potential ---------- */
.intake-grid { margin-top: 8px; align-items: stretch; }
.intake-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(197, 161, 91, .3); border-radius: var(--r); padding: 34px 32px; display: flex; flex-direction: column; }
.intake-card p { margin: 0 0 1rem; color: rgba(255, 255, 255, .84); }
.intake-tag { color: var(--gold) !important; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.intake-card .intake-num { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; color: #fff; margin-bottom: 1rem; }
.intake-num small { display: block; font-family: var(--sans, inherit); font-size: .9rem; font-weight: 500; color: rgba(255, 255, 255, .7); margin-top: .25rem; }
.intake-card .intake-link { margin: auto 0 0; padding-top: .5rem; }
.potential { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-top: 32px; padding: 30px 34px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.potential-copy { flex: 1 1 380px; }
.potential h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.potential p { margin: 0 0 .6rem; color: var(--muted); }
.potential .potential-note { font-family: var(--serif); font-style: italic; color: var(--navy); margin: 0; }
.potential.on-dark { background: rgba(255, 255, 255, .06); border-color: rgba(197, 161, 91, .3); border-left-color: var(--gold); box-shadow: none; }
.potential.on-dark h3 { color: var(--gold); }
.potential.on-dark p { color: rgba(255, 255, 255, .84); }
.potential.on-dark .potential-note { color: #fff; }
.potential-wrap .potential { margin: 0 0 32px; }
@media (max-width: 640px) { .potential { padding: 24px 22px; } .potential-cta, .potential-cta .btn { width: 100%; text-align: center; } }

/* ---------- results / testimonials ---------- */
.empty-state { text-align: center; border: 2px dashed #D9CFCB; border-radius: var(--r-lg); padding: 48px 24px; color: var(--muted); background: #fff; max-width: 760px; margin: 0 auto; }
.empty-state .icon { width: 40px; height: 40px; color: var(--gold-text); margin: 0 auto .6rem; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { margin: 0; }
.result-card, .t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); margin: 0; }
.rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: .3rem .75rem; border-radius: 999px; background: var(--navy); color: #fff; }
.badge.muted { background: var(--grey); color: var(--muted); border: 1px solid var(--line); font-weight: 600; letter-spacing: 0; }
.rc-year { color: var(--muted); font-weight: 600; }
.rc-score { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--gold-text); margin: 0 0 .2rem; line-height: 1.1; }
.result-card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.rc-detail { color: var(--muted); font-size: .92rem; }
.result-card blockquote { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-style: italic; color: var(--ink); }
.t-card .q-ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: .6rem; }
.t-card blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; }
.t-card figcaption { display: flex; gap: .8rem; align-items: center; }
.t-card figcaption strong { display: block; }
.t-card small { color: var(--muted); }
.t-card img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; }
.video-lite { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: linear-gradient(135deg, var(--navy), var(--royal)); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; box-shadow: var(--shadow); font: inherit; }
.video-lite .play { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; transition: transform .2s; }
.video-lite:hover .play { transform: scale(1.08); }
.video-lite .v-name { font-weight: 600; }
.video-lite small { color: rgba(255, 255, 255, .7); }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 2rem; box-shadow: var(--shadow); }
.filter { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; min-width: 150px; }
.filter.grow { flex: 1; min-width: 220px; }
.filter select, .filter input { font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid #D3C9C5; background: #fff; }
.res-cat { margin-bottom: 3.2rem; }
.res-cat h2 { font-size: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.4rem; }

/* ---------- page hero / crumbs ---------- */
.page-hero { color: #fff; background: radial-gradient(800px 400px at 90% -20%, rgba(197, 161, 91, .2), transparent 60%), var(--grad); padding: 68px 0; }
.page-hero-in { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.page-hero:has(.ph-media) .page-hero-in { grid-template-columns: .9fr 1.1fr; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.ph-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(197, 161, 91, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
@media (max-width: 900px) { .page-hero:has(.ph-media) .page-hero-in { grid-template-columns: 1fr; } .page-hero { padding: 48px 0; } }
.crumbs { background: var(--grey); border-bottom: 1px solid var(--line); font-size: .86rem; }
.crumbs ol { display: flex; flex-wrap: wrap; padding: .75rem 0; gap: .4rem; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: #A59C99; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--muted); }
.fact-card h2 { font-size: 1.1rem; }
.curriculum { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cur-card h3 { color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: .3rem; margin-bottom: 1rem; }
.panel h3 { font-size: 1.25rem; }
.narrow { max-width: 860px; }
.vm-card { padding: 36px; }
.vm-card p { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.g-item.wide { grid-column: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .g-item.wide { grid-column: auto; aspect-ratio: 16 / 10; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; color: var(--gold-text); transition: transform .25s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq[open] { border-color: rgba(197, 161, 91, .7); }
.faq-a { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- forms ---------- */
.enquiry-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .enquiry-grid { grid-template-columns: 1fr; gap: 36px; } }
.enquiry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) { .enquiry-card { padding: 22px 18px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.req { color: var(--danger); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .8rem .95rem; border: 1px solid #CFC3BF; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(197, 161, 91, .35); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.help { color: var(--muted); font-size: .8rem; }
.err { color: var(--danger); font-size: .84rem; margin: 0; min-height: 0; }
.err:empty { display: none; }
/* assessment date: month calendar (online assessment: any day from tomorrow can be picked) */
.field .lbl { font-size: .88rem; font-weight: 600; color: var(--navy); }
.cal { border: 1px solid #CFC3BF; border-radius: 12px; background: #fff; padding: 12px; max-width: 420px; width: 100%; }
.field.invalid .cal { border-color: var(--danger); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--navy); text-align: center; }
.cal-nav { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 400 1.5rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.cal-nav:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--gold); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow span { text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cal-day { height: 42px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font: 500 .95rem var(--sans); padding: 0; cursor: pointer; }
.cal-day:disabled { color: #B3B8C2; cursor: not-allowed; }
.cal-day:not(:disabled):hover { background: var(--gold-soft); border-color: rgba(197, 161, 91, .55); }
.cal-day.sel, .cal-day.sel:hover { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.cal-day:focus-visible, .cal-nav:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(197, 161, 91, .55); }
.cal-day.today:not(.sel) { border-color: var(--gold); font-weight: 700; }
.cal-picked { margin: 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.slot-note { display: block; color: var(--navy); font-weight: 600; }
.slot-note[hidden] { display: none; }
.cal-picked:empty { display: none; }
.fixed-val { margin: 0; font-size: 1rem; color: var(--ink); }
@media (max-width: 400px) { .cal { padding: 8px; } .cal-dow, .cal-grid { gap: 2px; } }
.form-error { background: #FDECEA; color: var(--danger); border: 1px solid #F3B8B3; padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }
.consent-note { font-size: .84rem; color: var(--muted); margin: 1.2rem 0; }
.form-section { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin: 0 0 24px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.form-section legend { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--navy); padding: 0 .6rem; display: flex; align-items: center; gap: .7rem; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 700 .9rem var(--sans); }
.check-row { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; font-size: .95rem; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form-success { text-align: center; padding: 48px 28px; border: 1px solid rgba(197, 161, 91, .6); background: linear-gradient(180deg, #fff, #FBF7EE); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-success[hidden] { display: none; }
.ok-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.form-success h3 { font-size: 1.6rem; }
.ref-line { font-size: 1.05rem; background: #fff; border: 1px dashed var(--gold); border-radius: 10px; display: inline-block; padding: .6rem 1.2rem; }
.ref-line[hidden] { display: none; }
.track-result { margin-top: 2rem; padding: 1.8rem; border: 1px solid rgba(197, 161, 91, .6); background: #FBF7EE; border-radius: var(--r); }
.track-result h2 { margin-bottom: .4rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1.1rem; margin: 1.4rem 0 1.8rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .f-ico { margin: 0; width: 46px; height: 46px; }
.info-list strong { display: block; color: var(--navy); }
.map { margin-top: 1.8rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.promo { background: var(--gold-soft); border-bottom: 1px solid rgba(197, 161, 91, .4); }
.promo-in { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; padding: 1.4rem 0; }
.promo-in h2 { font-size: 1.4rem; margin: 0; }
.promo-in p { margin: 0; }
.promo-in img { height: 70px; width: auto; border-radius: 10px; }

/* ---------- final CTA / footer ---------- */
.final-cta { text-align: center; color: #fff; padding: 88px 0; background: radial-gradient(700px 360px at 50% 0%, rgba(197, 161, 91, .25), transparent 65%), var(--grad); }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); max-width: 22ch; margin-inline: auto; }
.final-cta p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin-inline: auto; font-size: 1.08rem; }
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .74); padding-top: 64px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.f-h { font: 700 .76rem var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: .55rem; }
.f-tag { margin: 1rem 0 1.2rem; font-family: var(--serif); font-style: italic; color: rgba(255, 255, 255, .86); font-size: 1.08rem; }
.f-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.f-contact .icon { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: .25rem; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; }
.f-social li { margin: 0; }
.f-social a, .f-social .muted { display: inline-block; border: 1px solid rgba(255, 255, 255, .22); padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; }
.f-social .muted { opacity: .45; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; font-size: .86rem; }
.f-bottom p { margin: 0; }

/* floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-wa { display: inline-flex; align-items: center; gap: .6rem; background: #25D366; color: #fff; padding: .85rem 1.1rem .85rem .95rem; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); transition: transform .2s; }
.float-wa:hover { transform: translateY(-3px) scale(1.02); color: #fff; }
.float-wa .icon { width: 28px; height: 28px; }
.float-call { display: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
@media (max-width: 900px) { .float-call { display: flex; } .float-wa span { display: none; } .float-wa { padding: .85rem; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- logo (gold on navy, as on the signage) ---------- */
.logo-mark { flex: none; display: block; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.wm { font: 600 1.5rem/1 'Poppins', var(--sans); letter-spacing: -.012em; color: var(--gold); white-space: nowrap; }
.brand-stacked { flex-direction: column; align-items: flex-start; gap: .9rem; }
.brand-stacked .wm { font-size: 1.7rem; }
@media (max-width: 560px) { .wm { font-size: 1.22rem; } .brand { gap: .5rem; } .brand .logo-mark { height: 38px; width: auto; } }

/* ---------- About: bento photo layout (no empty cells) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 360px; gap: 20px; grid-template-areas: "a a b b" "a a c d" "e e f f"; }
.bento-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); background: var(--navy); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.bento-item:hover img { transform: scale(1.05); }
.b-a { grid-area: a; } .b-b { grid-area: b; } .b-c { grid-area: c; } .b-d { grid-area: d; } .b-e { grid-area: e; } .b-f { grid-area: f; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; grid-template-areas: "a a" "b b" "c d" "e e" "f f"; } }
@media (max-width: 520px) { .bento { grid-auto-rows: 210px; } }

/* ---------- WhatsApp button: gentle attention pulse every ~3s ---------- */
.float-wa { position: relative; isolation: isolate; }
.float-wa::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: #25D366; z-index: -1; opacity: 0; animation: waRipple 3s ease-out infinite; }
.float-wa .icon { animation: waWiggle 3s ease-in-out infinite; transform-origin: 50% 65%; }
.float-wa:hover::before, .float-wa:hover .icon { animation-play-state: paused; }
@keyframes waRipple { 0% { transform: scale(1); opacity: .55; } 40% { transform: scale(1.28, 1.7); opacity: 0; } 100% { transform: scale(1.28, 1.7); opacity: 0; } }
@keyframes waWiggle { 0%, 34%, 100% { transform: none; } 4% { transform: rotate(-16deg) scale(1.1); } 9% { transform: rotate(14deg) scale(1.1); } 14% { transform: rotate(-11deg) scale(1.08); } 19% { transform: rotate(9deg); } 24% { transform: rotate(-4deg); } 29% { transform: none; } }

/* ---------- WhatsApp "Chat with us" message tag ---------- */
.wa-tip { position: relative; width: min(268px, calc(100vw - 96px)); background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(var(--navy-rgb), .28), 0 0 0 1px rgba(var(--navy-rgb), .06); margin-bottom: 2px; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 85% 100%; transition: opacity .35s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; }
.wa-tip[hidden] { display: none; }
.wa-tip.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-tip::after { content: ''; position: absolute; right: 26px; bottom: -7px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; box-shadow: 3px 3px 5px rgba(var(--navy-rgb), .08); }
.wa-tip-link { display: block; text-decoration: none; color: var(--ink); border-radius: 16px; overflow: hidden; }
.wa-tip-head { display: flex; align-items: center; gap: .5rem; background: #128C4A; color: #fff; font-weight: 600; font-size: .86rem; padding: .6rem 2.4rem .6rem .9rem; }
.wa-tip-head small { font-weight: 500; opacity: .85; margin-left: auto; }
.wa-dot { width: 9px; height: 9px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 0 rgba(124, 255, 178, .8); animation: waDot 1.8s ease-out infinite; }
.wa-tip-msg { display: block; padding: .8rem .95rem .95rem; font-size: .93rem; line-height: 1.45; }
.wa-tip-msg strong { font-size: 1rem; color: var(--navy); }
.wa-tip-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.wa-tip-close:hover { background: rgba(255, 255, 255, .32); }
.wa-tip-close .icon { width: 16px; height: 16px; }
@keyframes waDot { 0% { box-shadow: 0 0 0 0 rgba(124, 255, 178, .7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(124, 255, 178, 0); } }
@media (prefers-reduced-motion: reduce) { .wa-tip { transition: opacity .2s; transform: none; } }

/* =====================================================================
   Background treatments
   1) ivory graph-paper on alternate light sections
   2) curved section edges (home + every page banner / call-to-action band)
   3) frosted-glass cards over a classroom photo (Selective Intake)
   4) framed mentor portraits
   ===================================================================== */

/* 1 · ivory + graph-paper (fine 32px squares, stronger line every 160px) */
.section.alt {
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(var(--navy-rgb), .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .07) 1px, transparent 1px),
    linear-gradient(rgba(var(--navy-rgb), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}

/* 2 · curved edges. The curve is painted in the colour of the neighbouring section, so no layout changes. */
.curve-t, .curve-b { position: relative; --curve: 52px; --wave-t: #fff; --wave-b: #fff; }
.alt + .curve-t { --wave-t: var(--ivory); }
.curve-b:has(+ .alt) { --wave-b: var(--ivory); }
.curve-b:has(+ .crumbs) { --wave-b: var(--grey); }
.curve-b::after, .curve-t::before { content: ''; position: absolute; left: 0; right: 0; height: var(--curve); pointer-events: none; z-index: 1; }
.curve-b::after { bottom: -1px; background: radial-gradient(ellipse 50% 100% at 50% 0, transparent 99.4%, var(--wave-b) 100%); }
.curve-t::before { top: -1px; background: radial-gradient(ellipse 50% 100% at 50% 100%, transparent 99.4%, var(--wave-t) 100%); }
@media (max-width: 720px) { .curve-t, .curve-b { --curve: 28px; } }

/* 3 · Selective Intake: classroom photo under a deep-blue wash, frosted-glass cards, watermark numerals */
.section.navy.intake-photo {
  background:
    linear-gradient(180deg, rgba(var(--deep-rgb), .86) 0%, rgba(var(--navy-rgb), .68) 50%, rgba(var(--deep-rgb), .9) 100%),
    url('/images/classroom-mathematics-1600.webp') center / cover no-repeat;
}
.intake-card, .potential.on-dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.potential.on-dark { border-left: 4px solid var(--gold); }
.intake-card { position: relative; overflow: hidden; }
.intake-card > * { position: relative; z-index: 1; }
.intake-card::before { content: attr(data-mark); position: absolute; right: 16px; top: -14px; z-index: 0; font: 600 9rem/1 var(--serif); letter-spacing: -.04em; color: rgba(197, 161, 91, .15); pointer-events: none; }

/* 4 · framed portraits: offset gold frame behind a white-edged photo; ivory graph-paper mat on the cards */
.fs-photo, .profile-photo { position: relative; padding: 0 16px 16px 0; }
.fs-photo::before, .profile-photo::before { content: ''; position: absolute; top: 16px; left: 16px; right: 0; bottom: 0; border: 2px solid var(--gold); border-radius: var(--r); }
.fs-photo > *, .profile-photo > * { position: relative; z-index: 1; }
.fs-photo img, .profile-photo img, .fs-photo .monogram, .profile-photo .monogram { border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.fac-photo {
  padding: 16px; border-bottom: 1px solid var(--line); background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(var(--navy-rgb), .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--navy-rgb), .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.fac-photo img, .fac-photo .monogram { border-radius: 12px; border: 5px solid #fff; box-shadow: 0 0 0 1px rgba(197, 161, 91, .7), 0 12px 28px rgba(var(--navy-rgb), .2); }

/* links on dark (navy) sections must stay readable */
.section.navy .arrow-link { color: #fff; border-bottom-color: var(--gold); }
.section.navy .arrow-link:hover { color: var(--gold); }
.fac-body h3 a { text-decoration: none; }

/* centred form + filter buttons */
.form > .btn[type="submit"] { display: flex; width: fit-content; margin-inline: auto; }
.filters .filter-actions { flex-basis: 100%; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- learning assessment page ---------- */
.opt-group { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-group > legend { font-size: .88rem; font-weight: 600; color: var(--navy); padding: 0; margin-bottom: .7rem; }
.opt-group .check-row { margin-bottom: .6rem; font-weight: 400; }
.opt-group .other-wrap { margin: -.1rem 0 .6rem 2.2rem; max-width: 440px; }
.opt-group .other-wrap input { font: inherit; font-size: 1rem; padding: .7rem .9rem; border: 1px solid #CFC3BF; border-radius: 10px; background: #fff; width: 100%; }
.opt-group .other-wrap input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(197, 161, 91, .35); }
.opt-group.invalid > legend { color: var(--danger); }
.sec-note { margin: 1.2rem 0 0; }
.mt-s { margin-top: 1rem; text-align: center; }
.aim-list { gap: .9rem; margin-bottom: 1.8rem; }
.aim-list li { font-size: 1.02rem; }
.aim-list strong { color: var(--navy); }
.review { display: grid; margin: 0 0 1.6rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--grey); text-align: left; }
.review > div { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); }
.review > div:last-child { border-bottom: 0; }
.review dt { font-weight: 600; color: var(--navy); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review .total { background: #fff; }
.review .total dd { font-weight: 700; color: var(--navy); }
@media (max-width: 560px) { .review > div { grid-template-columns: 1fr; gap: .1rem; } }

/* keep the top menu on one line now that it has 8 items */
.main-nav a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1340px) {
  .nav-bar { gap: .6rem; }
  .main-nav a { padding: .5rem .5rem; font-size: .88rem; }
  .main-nav a[aria-current="page"]::after { left: .5rem; right: .5rem; }
  .nav-cta { padding: .6rem .9rem; font-size: .86rem; }
}

/* ---------- admission readiness assessment: stepper form, fee card, payment result ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cond[hidden], .other-wrap[hidden], .step-panel[hidden] { display: none; }
.cond { display: contents; }
.stepper { list-style: none; display: flex; gap: .4rem; margin: 0 0 1.6rem; padding: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; position: relative; font-size: .8rem; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper .step-no { background: #fff; color: var(--muted); border: 2px solid var(--line); position: relative; z-index: 1; }
.stepper li.current { color: var(--navy); }
.stepper li.current .step-no { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.stepper li.done .step-no { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.stepper li.done::before, .stepper li.current::before { background: var(--gold); }
@media (max-width: 560px) { .stepper .step-name { display: none; } .stepper li.current .step-name { display: block; position: absolute; top: 38px; white-space: nowrap; } .stepper { margin-bottom: 2.4rem; } }
.step-actions { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.assessment-form .form-section > legend { max-width: 100%; }
.phone-row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 8px; }
.sub-h { margin: 1.8rem 0 .8rem; font-size: 1.15rem; }
.fee-panel { text-align: center; }
.fee-amount { font: 700 2.4rem/1.1 var(--serif); color: var(--navy); margin: .2rem 0 .8rem; }
.fee-amount small { font: 500 1rem var(--sans); color: var(--muted); }
.fee-note { color: var(--muted); margin: 0 0 1rem; }
.after-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.after-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.after-steps h3 { font-size: 1.15rem; margin: .1rem 0 .3rem; }
.after-steps p { margin: 0 0 .6rem; }
.confirm-card .review { max-width: 600px; margin: 1.4rem auto; }
.confirm-card p { max-width: 58ch; margin-inline: auto; }
.confirm-card h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.ok-ico.wait { background: var(--gold-soft); color: var(--gold-text); }
.mock-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.closed-note h3 { margin-bottom: .6rem; }
