/* ==========================================================================
   Loyola English Medium School, Lalpania — Main stylesheet
   Colours are taken from the school crest. Edit the tokens below to retheme.
   ========================================================================== */

:root {
  --navy-950: #060E3A;
  --navy-900: #0A1452;
  --navy: #0D1B6B;
  --blue: #1D4FB8;
  --blue-500: #2E6FD8;
  --gold: #F2B400;
  --gold-600: #D89B00;
  --gold-100: #FFF5D6;
  --sky: #EAF2FD;
  --sky-200: #D7E6FA;
  --gray-50: #F6F7FA;
  --gray-100: #EEF0F5;
  --gray-200: #E1E5EE;
  --gray-400: #A3ABBD;
  --ink: #1A2233;
  --muted: #566078;
  --white: #FFFFFF;
  --success: #12805C;
  --danger: #C2362B;

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

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 82, .06), 0 2px 8px rgba(10, 20, 82, .05);
  --shadow: 0 6px 24px rgba(10, 20, 82, .09);
  --shadow-lg: 0 18px 50px rgba(10, 20, 82, .16);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video, iframe { display: block; max-width: 100%; }
.media-frame__img picture, .principal__photo .frame picture, .video-card__thumb picture { width: 100%; height: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.22; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy-950); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--gray-50); }
.section--sky { background: linear-gradient(180deg, var(--sky) 0%, #F4F8FE 100%); }
.section--navy { background: var(--navy-900); color: #DDE3F5; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); }
.section--navy .eyebrow, .on-dark .eyebrow, .principal .eyebrow, .cta-band .eyebrow, .vm-card--vision .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section--navy .section-head p { color: #C6CEE6; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-size: .95rem; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-950); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: #FFC21A; --btn-bd: #FFC21A; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--ghost-light { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn[disabled], .btn.is-loading { opacity: .75; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--blue); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #C9D1EA; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar__group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar__item svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
a.topbar__item:hover { color: var(--white); }
.topbar__item strong { color: var(--white); font-weight: 600; }

/* ---------- Brand header ---------- */
.brandbar { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.brandbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: 74px; height: 74px; object-fit: contain; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(1rem, 1.9vw, 1.42rem); line-height: 1.15; letter-spacing: .02em; display: block; }
.brand__sub { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.brand__sub::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.brandbar__actions { display: flex; align-items: center; gap: 22px; }
.header-call { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.header-call__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.header-call__icon svg { width: 18px; height: 18px; }
.header-call small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.2; }
.header-call span { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); }

/* ---------- Main navigation ---------- */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 2px 0 var(--gold); transition: box-shadow .3s; }
.navbar.is-stuck { box-shadow: 0 2px 0 var(--gold), 0 10px 30px rgba(6, 14, 58, .25); }
.navbar .container { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.navbar__mini { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: 0; width: 0; overflow: hidden; transition: opacity .3s, width .3s; }
.navbar.is-stuck .navbar__mini { opacity: 1; width: 46px; }
.navbar__mini img { width: 40px; height: 40px; background: var(--white); border-radius: 50%; padding: 3px; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px; height: 58px; padding: 0 15px; background: none; border: 0;
  color: #E6EAF7; font-family: var(--font-head); font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; position: relative; white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 10px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__item:hover > .nav__link, .nav__link[aria-expanded="true"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--gold); }
.nav__link .chev { width: 12px; height: 12px; transition: transform .25s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px;
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius); border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s, transform .22s var(--ease), visibility .22s;
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
@media (hover: hover) and (min-width: 1100px) {
  .nav__item--has-sub:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; transition: background .2s, color .2s, padding .2s;
}
.dropdown a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-200); transition: background .2s; flex: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--sky); color: var(--navy); padding-left: 18px; }
.dropdown a:hover::before { background: var(--gold); }
.navbar__cta { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--navy); cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-close { display: none; }
.nav-backdrop { display: none; }

/* ---------- Mobile navigation ---------- */
@media (max-width: 1099px) {
  .brandbar .container { min-height: 78px; }
  .brand img { width: 58px; height: 58px; }
  .header-call { display: none; }
  .brandbar__actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .navbar { position: static; background: none; box-shadow: none; }
  .navbar.is-stuck { box-shadow: none; }
  .navbar .container { min-height: 0; padding: 0; }
  .navbar__mini { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 300; background: var(--white);
    transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
    box-shadow: var(--shadow-lg); visibility: hidden;
  }
  body.nav-open .nav { transform: none; visibility: visible; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--gray-100); }
  .nav__head img { width: 46px; height: 46px; }
  .nav__head strong { font-family: var(--font-head); color: var(--navy); font-size: .92rem; line-height: 1.2; flex: 1; }
  .nav-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--gray-200); background: var(--white); color: var(--navy); cursor: pointer; }
  .nav-close svg { width: 22px; height: 22px; }
  .nav__list { flex-direction: column; padding: 10px 12px; gap: 0; }
  .nav__link { width: 100%; height: auto; padding: 14px 12px; color: var(--navy); justify-content: space-between; border-bottom: 1px solid var(--gray-100); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__link, .nav__item:hover > .nav__link { color: var(--navy); }
  .nav__link:hover, .nav__link[aria-expanded="true"], .nav__item:hover > .nav__link[aria-expanded="true"] { color: var(--blue); }
  .nav__link[aria-current="page"], .nav__link.is-active { color: var(--blue); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 10px; min-width: 0; display: none; background: var(--gray-50); }
  .nav__item.is-open > .dropdown { display: block; }
  .dropdown a { padding: 11px 12px; }
  .navbar__cta { display: block; padding: 16px 18px 26px; margin-top: auto; }
  .navbar__cta .btn { width: 100%; }
  .navbar__cta p { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 250; background: rgba(6, 14, 58, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .site-header { position: sticky; top: 0; z-index: 120; box-shadow: 0 2px 0 var(--gold); }
}
@media (min-width: 1100px) { .nav__head { display: none; } }
@media (max-width: 1099px) { .site-header .nav-wrap { display: contents; } }
@media (max-width: 640px) {
  .topbar__group--ids { display: none; }
  .topbar .container { justify-content: center; }
  .brand__name { font-size: .98rem; }
  .brand__sub { font-size: .76rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 32%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(6, 14, 58, .9) 0%, rgba(6, 14, 58, .55) 30%, rgba(6, 14, 58, 0) 58%),
    linear-gradient(90deg, rgba(6, 14, 58, .82) 0%, rgba(6, 14, 58, .6) 34%, rgba(6, 14, 58, .12) 62%, rgba(6, 14, 58, 0) 75%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 80px clamp(90px, 10vw, 140px); }
.hero__content { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
  font-family: var(--font-head); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
}
.hero__badge span { background: var(--gold); color: var(--navy-950); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .74rem; letter-spacing: .08em; }
.hero h1 { color: var(--white); margin-bottom: 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #E3E8F6; max-width: 620px; margin-bottom: 30px; }
.hero__motto { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__motto span { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #CFD7EE; display: inline-flex; align-items: center; gap: 10px; }
.hero__motto span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero .anim { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .anim:nth-child(2) { animation-delay: .12s; } .hero .anim:nth-child(3) { animation-delay: .24s; }
.hero .anim:nth-child(4) { animation-delay: .36s; } .hero .anim:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }
@media (max-width: 720px) {
  .hero { min-height: 0; display: block; }
  .hero__media { position: relative; height: 56vw; min-height: 230px; }
  .hero::before { display: none; }
  .hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--navy-900), transparent); }
  .hero__inner { padding-block: 8px 84px; }
  .hero .btn { flex: 1 1 100%; }
}

/* ---------- Page hero (internal pages) ---------- */
.page-hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy-900); overflow: hidden; }
.page-hero__media, .page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; object-position: center 35%; opacity: .32; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(10, 20, 82, .96) 0%, rgba(10, 20, 82, .8) 50%, rgba(10, 20, 82, .55) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: #D2DAF0; max-width: 640px; font-size: 1.06rem; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .86rem; color: #B9C3E2; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.4); }
.page-hero__line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0 30%, var(--blue-500) 30% 100%); z-index: 2; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* ---------- Welcome / media frame ---------- */
.media-frame { position: relative; }
.media-frame__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.media-frame__img img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 46%; height: 46%; border-radius: var(--radius-lg); border: 3px solid var(--gold); z-index: -1; }
.media-frame__badge {
  position: absolute; right: -14px; bottom: -26px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 300px;
}
.media-frame__badge img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.media-frame__badge strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .98rem; line-height: 1.25; }
.media-frame__badge small { color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) { .media-frame__badge { right: 10px; left: 10px; max-width: none; bottom: -30px; } .media-frame::before { display: none; } }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D89B00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checklist--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .checklist--2 { grid-template-columns: 1fr; } }

/* ---------- Info cards (at a glance) ---------- */
.glance { margin-top: calc(var(--section-y) * -0.45); position: relative; z-index: 3; }
.info-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  display: flex; gap: 16px; align-items: flex-start; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.info-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sky-200); }
.info-card:hover::after { transform: scaleX(1); }
.icon-badge { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--gold { background: var(--gold-100); color: var(--gold-600); }
.info-card small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.info-card strong { display: block; font-family: var(--font-head); font-size: 1.16rem; color: var(--navy); line-height: 1.3; font-weight: 600; word-break: break-word; }

/* ---------- Principal ---------- */
.principal { position: relative; background: var(--navy-900); color: #D5DCF0; overflow: hidden; isolation: isolate; }
.principal::before {
  content: ""; position: absolute; z-index: -1; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%;
  border: 60px solid rgba(242, 180, 0, .07);
}
.principal::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.principal__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.principal__photo { position: relative; max-width: 440px; }
.principal__photo .frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative; }
.principal__photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.principal__photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.principal__name { position: absolute; left: 20px; right: 20px; bottom: -26px; background: var(--white); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); }
.principal__name strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.principal__name span { font-size: .86rem; color: var(--muted); }
.principal h2 { color: var(--white); }
.quote-mark { width: 54px; height: 54px; color: var(--gold); opacity: .9; margin-bottom: 8px; }
.principal blockquote { margin: 0 0 26px; font-size: clamp(1.04rem, 1.4vw, 1.16rem); line-height: 1.85; color: #E1E6F5; }
.signature { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.signature::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.signature strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.05rem; }
.signature span { font-size: .88rem; color: #AEB8D8; }
@media (max-width: 860px) { .principal__grid { grid-template-columns: 1fr; } .principal__photo { margin: 0 auto 30px; width: 100%; max-width: 380px; } }

/* ---------- Feature (approach) cards ---------- */
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; height: 100%; position: relative;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card .icon-badge { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 22px; background: var(--navy); color: var(--gold); transition: background .3s, color .3s; }
.feature-card:hover .icon-badge { background: var(--gold); color: var(--navy); }
.feature-card .icon-badge svg { width: 28px; height: 28px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature-card__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--gray-100); line-height: 1; }

/* ---------- Mini cards (academics) ---------- */
.mini-card { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--gray-200); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.mini-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.mini-card h3 { font-size: 1.04rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.mini-card h3 svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }
.mini-card p { font-size: .93rem; color: var(--muted); margin: 0; }
.placeholder-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #11835d; background: #4ee9b6; border: 1px dashed #19d081; padding: 3px 10px; border-radius: 999px; vertical-align: middle; 
}
.placeholder-tag a{
  text-decoration: none;
  color: inherit;
}
.editable-note { font-size: .86rem; color: var(--muted); background: var(--gray-50); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 24px; }

/* ---------- Campus band ---------- */
.campus-band { position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.campus-band picture, .campus-band picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.campus-band picture img { object-fit: cover; object-position: center 40%; transition: transform 1.2s var(--ease); }
.campus-band:hover picture img { transform: scale(1.03); }
.campus-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(6, 14, 58, .88) 0%, rgba(6, 14, 58, .25) 50%, rgba(6, 14, 58, 0) 75%); }
.campus-band__content { position: relative; z-index: 1; padding: clamp(24px, 4vw, 44px); color: #E3E8F6; max-width: 680px; }
.campus-band__content h3 { color: var(--white); font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.campus-band__content p { margin-bottom: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .84rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.pill svg { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Activity cards ---------- */
.activity-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; display: flex; align-items: flex-end; isolation: isolate; color: var(--white); text-decoration: none; box-shadow: var(--shadow); }
.activity-card picture, .activity-card img { position: absolute; inset: 0; width: 100%; height: 100%; }
.activity-card img { object-fit: cover; transition: transform .8s var(--ease); }
.activity-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(6, 14, 58, .9) 0%, rgba(6, 14, 58, .55) 32%, rgba(6, 14, 58, 0) 60%); transition: background .4s; }
.activity-card:hover img { transform: scale(1.07); }
.activity-card__body { position: relative; z-index: 1; padding: 22px; width: 100%; }
.activity-card__tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-950); background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.activity-card h3 { color: var(--white); margin-bottom: 6px; font-size: 1.16rem; }
.activity-card p { font-size: .88rem; color: #D4DBEF; margin-bottom: 10px; }
.activity-card .link-arrow { color: var(--gold); font-size: .86rem; }
.activity-card:hover { color: var(--white); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); cursor: zoom-in; border: 0; padding: 0; grid-column: span 4; grid-row: span 2; }
.gallery-item--wide { grid-column: span 8; grid-row: span 3; }
.gallery-item--tall { grid-row: span 3; }
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; }
.gallery-item img { object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 82, .0); transition: background .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(10, 20, 82, .25); }
.gallery-item__cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.94); color: var(--navy); font-family: var(--font-head); font-size: .86rem; font-weight: 600; text-align: left; transform: translateY(8px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.gallery-item__cap svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.gallery-item:hover .gallery-item__cap, .gallery-item:focus-visible .gallery-item__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item__cap { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item, .gallery-item--tall { grid-column: span 1; grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; grid-row: span 2; }
}
.gallery-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-full .gallery-item { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.gallery-full .gallery-item[hidden] { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); color: var(--ink); font-family: var(--font-head); font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(4, 8, 32, .94); padding: 60px 70px; }
.lightbox.is-open { display: flex; animation: fadeIn .25s ease; }
.lightbox__figure { margin: 0; max-width: 1200px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__figure img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__figure figcaption { color: #DDE3F5; font-size: .95rem; text-align: center; }
.lightbox__figure figcaption span { color: var(--gold); margin-left: 10px; font-size: .85rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 12px 84px; } .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Notices ---------- */
.notice-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .notice-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .notice-board { grid-template-columns: 1fr; } }
.notice-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; position: relative; }
.notice-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.notice-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.notice-date { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.notice-date svg { width: 16px; height: 16px; color: var(--blue); }
.notice-cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.notice-cat--admission { background: var(--gold-100); color: #8A5A00; }
.notice-cat--holiday { background: #E7F6EF; color: #0E6B4D; }
.notice-cat--event { background: #F3ECFC; color: #6A3BB0; }
.notice-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.notice-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.notice-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.notice-card__foot button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; }
.notice-attach { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.notice-attach svg { width: 15px; height: 15px; }
.notice-card__more { display: none; font-size: .93rem; color: var(--ink); background: var(--gray-50); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.notice-card.is-expanded .notice-card__more { display: block; }
.notice-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gray-400); }
.search-field input { width: 100%; min-height: 48px; padding: 10px 16px 10px 46px; border-radius: 999px; border: 1.5px solid var(--gray-200); background: var(--white); }
.search-field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(29, 79, 184, .12); }
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--gray-200); border-radius: var(--radius); color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; color: var(--gray-400); margin: 0 auto 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; background: var(--navy); color: #D6DDF2; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; inset: auto -80px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,180,0,.22), rgba(242,180,0,0) 70%); }
.cta-band::after { content: ""; position: absolute; z-index: -1; left: clamp(40px, 6vw, 72px); top: 0; width: 90px; height: 4px; background: var(--gold); }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 620px; font-size: 1.06rem; }
.cta-band__logo { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 300px; opacity: .06; z-index: -1; filter: grayscale(1) brightness(3); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.contact-item small { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.contact-item a, .contact-item span { font-family: var(--font-head); font-weight: 500; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--blue); text-decoration: underline; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); aspect-ratio: 16 / 10; background: var(--gray-100); position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 12px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.form-card h3 { font-size: 1.35rem; }
.form-card > p { color: var(--muted); font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--gray-50);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(29, 79, 184, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #FFF7F6; }
.field__error { display: none; font-size: .8rem; color: var(--danger); margin-top: 5px; }
.field.is-invalid .field__error { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .93rem; align-items: flex-start; gap: 10px; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-status.is-success { display: flex; background: #E8F6F0; color: var(--success); border: 1px solid #BFE5D4; }
.form-status.is-error { display: flex; background: #FDEEEC; color: var(--danger); border: 1px solid #F4C9C4; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Content pages ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.value-card { text-align: center; padding: 36px 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-200); transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-card .icon-badge { margin: 0 auto 18px; width: 70px; height: 70px; border-radius: 50%; }
.value-card .icon-badge svg { width: 32px; height: 32px; }
.value-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.value-card--love .icon-badge { background: #E3EEFD; color: var(--blue); }
.value-card--merit .icon-badge { background: var(--gold-100); color: var(--gold-600); }
.value-card--service .icon-badge { background: #F1E9FB; color: #7040B8; }
.vm-card { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); height: 100%; }
.vm-card--vision { background: var(--navy); color: #D6DDF2; }
.vm-card--vision h3 { color: var(--white); }
.vm-card--mission { background: var(--gold-100); border: 1px solid #F3DB93; }
.vm-card .icon-badge { margin-bottom: 18px; }
.vm-card--vision .icon-badge { background: rgba(255,255,255,.1); color: var(--gold); }
.vm-card ul { margin: 0; padding-left: 1.1em; }
.vm-card li { margin-bottom: .5em; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
table.data th { background: var(--navy); color: var(--white); text-align: left; font-family: var(--font-head); font-weight: 500; padding: 14px 18px; font-size: .9rem; }
table.data td { padding: 13px 18px; border-top: 1px solid var(--gray-100); color: var(--ink); }
table.data tr:nth-child(even) td { background: var(--gray-50); }
table.data td.muted { color: var(--muted); font-style: italic; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 82px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 700; }
.steps h3 { font-size: 1.06rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.rule-group { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; height: 100%; }
.rule-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--gold-100); }
.rule-group h3 .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.rule-group h3 .icon-badge svg { width: 20px; height: 20px; }
.rule-group ol { margin: 0; padding-left: 1.2em; color: var(--ink); }
.rule-group li { margin-bottom: .55em; font-size: .95rem; }
.rule-group li::marker { color: var(--gold-600); font-weight: 700; }

.subnav { position: sticky; top: 58px; z-index: 50; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 16px; font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--navy); border-bottom-color: var(--gold); }
@media (max-width: 1099px) { .subnav { top: 80px; } }

.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); display: grid; place-items: center; cursor: pointer; border: 0; padding: 0; width: 100%; overflow: hidden; }
.video-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .6s var(--ease); }
.video-card__thumb:hover img { opacity: .9; transform: scale(1.04); }
.video-card__play { position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 50%; background: var(--gold); color: var(--navy-950); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(242, 180, 0, .25); transition: transform .3s var(--ease); }
.video-card__thumb:hover .video-card__play { transform: scale(1.08); }
.video-card__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-card__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__body { padding: 18px 20px; }
.video-card__body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.video-card__body p { margin: 0; font-size: .88rem; color: var(--muted); }
.video-card--placeholder .video-card__thumb { cursor: default; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); }
.video-card--placeholder .video-card__play { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #AEB8D8; font-size: .94rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold) 0 25%, var(--blue) 25% 100%); }
.footer-main { padding-block: clamp(56px, 7vw, 80px) 40px; display: grid; grid-template-columns: 1.4fr .8fr 1.1fr 1fr; gap: 36px; }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; text-decoration: none; }
.footer-brand img { width: 64px; height: 64px; background: var(--white); border-radius: 50%; padding: 5px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-head); color: var(--white); font-size: 1.04rem; line-height: 1.25; }
.site-footer h2 { font-size: .86rem; color: var(--white); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.site-footer h2::before { content: ""; width: 20px; height: 2px; background: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D1EA; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: "›"; color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-info li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-info span:last-child { color: var(--white); font-weight: 500; text-align: right; }
.footer-motto { margin-top: 18px; font-family: var(--font-head); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 20px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-950); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #FFC21A; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-lg { margin-top: clamp(32px, 4vw, 48px); }
.text-center { text-align: center; }
.center-row { display: flex; justify-content: center; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero .anim { opacity: 1; transform: none; }
}

@media print {
  .topbar, .navbar, .nav-toggle, .to-top, .site-footer, .lightbox, .cta-band { display: none !important; }
  body { color: #000; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 900px) { .split > .media-frame { margin-bottom: 30px; } }
@media (max-width: 420px) {
  .glance .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .glance .info-card { flex-direction: column; gap: 10px; padding: 16px; }
  .glance .icon-badge { width: 40px; height: 40px; }
  .glance .info-card strong { font-size: .98rem; }
}
