/* =========================================================
   CONCEPT A — MODERN ISLAMIC EDUCATIONAL
   Deep green + gold from the school logo and banner, ivory paper,
   restrained geometric star lattice, arch-framed photography.
   ========================================================= */
:root {
  --green-950: #08271F;
  --green-900: #0C3429;
  --green-800: #104236;
  --green-700: #17574A;
  --green-600: #236A5C;           /* logo green */
  --gold-600: #A5842F;
  --gold-500: #B8973F;            /* logo gold */
  --gold-400: #CFB36D;
  --gold-200: #EBDFBC;
  --ivory: #FBF8F1;
  --sand: #F4EDDF;
  --white: #FFFFFF;
  --ink: #1A2A24;
  --muted: #56655E;
  --line: rgba(184, 151, 63, .38);
  --line-soft: rgba(26, 42, 36, .1);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  --radius: 14px;
  --arch: 999px 999px 14px 14px;
  --shadow: 0 18px 50px -24px rgba(12, 52, 41, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23CFB36D' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Cpath d='M40 14.5L65.5 40 40 65.5 14.5 40z'/%3E%3Cpath d='M40 0v14.5M40 65.5V80M0 40h14.5M65.5 40H80M22 22L0 0M58 22L80 0M22 58L0 80M58 58l22 22'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--green-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.urdu { font-family: var(--urdu); direction: rtl; line-height: 2; font-weight: 500; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 700 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow.center::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow .icon { width: 14px; height: 14px; }
.title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); color: var(--green-900); }
.title em { font-style: italic; color: var(--gold-600); font-weight: 500; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.head-center { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.head-center .lede { margin-inline: auto; }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-500); margin: 1.25rem auto 0;
}
.divider::before, .divider::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.divider::after { transform: scaleX(-1); }
.divider .icon { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold-500); --fg: var(--green-950);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.6em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 800 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, color .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); background: var(--gold-400); }
.btn .icon { width: 18px; height: 18px; }
.btn--green { --bg: var(--green-700); --fg: var(--ivory); }
.btn--green:hover { background: var(--green-800); }
.btn--ghost { --bg: transparent; --fg: var(--ivory); border-color: rgba(251, 248, 241, .45); }
.btn--ghost:hover { background: rgba(251, 248, 241, .1); }
.btn--outline { --bg: transparent; --fg: var(--green-800); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: var(--ivory); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--green-700);
  font: 800 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--gold-400);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--green-950); color: rgba(251, 248, 241, .82); font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--gold-400); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar .badge-open { color: var(--gold-400); font-weight: 700; letter-spacing: .06em; }
.topbar .badge-open::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); margin-right: .6em; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(207,179,109,.2); }
.social { display: flex; gap: 6px; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s; }
.social a:hover { background: rgba(207, 179, 109, .16); }
.social .icon { width: 16px; height: 16px; }
.social a.is-pending { opacity: .55; cursor: default; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .96);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(12, 52, 41, .5); }
.header__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; transition: min-height .3s; }
.header.is-scrolled .header__main { min-height: 74px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: auto; transition: width .3s; }
.header.is-scrolled .brand img { width: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font: 700 1.28rem/1.05 var(--serif); color: var(--green-900); letter-spacing: .04em; text-transform: uppercase; }
.brand__sub { font: 700 .66rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-top: 5px; }
.brand__urdu { font-family: var(--urdu); font-size: 1.05rem; color: var(--green-700); line-height: 1.6; margin: 0 0 -4px; direction: rtl; }
.header__urdu {
  font-family: var(--urdu); font-size: 1.55rem; color: var(--green-800); line-height: 1.9; direction: rtl;
  padding-inline: 26px; border-inline: 1px solid var(--line); text-align: center;
}
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; font-size: .78rem; color: var(--muted); }
.header__phone strong { color: var(--green-900); font-size: 1rem; }

.nav { border-top: 1px solid var(--line-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nav a {
  display: block; padding: 14px 15px; text-decoration: none; position: relative;
  font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-900);
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; background: var(--gold-500);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .25s;
}
.nav a:hover, .nav a.is-active { color: var(--gold-600); }
.nav a:hover::after, .nav a.is-active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  /* backdrop-filter would trap the fixed mobile menu inside the header */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .header__urdu, .header__phone { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--green-900); cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav {
    position: fixed; inset: 0; top: var(--header-h, 74px); background: var(--green-900); color: var(--ivory);
    border: 0; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
  }
  .nav::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .07; pointer-events: none; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; padding: 18px var(--gutter) 120px; position: relative; }
  .nav a { color: var(--ivory); font: 500 1.7rem/1 var(--serif); letter-spacing: 0; text-transform: none; padding: 16px 0; border-bottom: 1px solid rgba(207,179,109,.18); }
  .nav a::after { display: none; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 1180px) { .topbar__left .hide-md { display: none; } }
@media (max-width: 720px) {
  .topbar { display: none; }
  .header__main { min-height: 72px; }
  .brand img { width: 36px; }
  .brand__name { font-size: 1.02rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .14em; }
  .brand__urdu { display: none; }
  .header__cta .btn { display: none; }
  .hide-sm { display: none; }
  .hl h3 { font-size: 1.12rem; }
  .welcome__star { left: -8px; width: 64px; height: 64px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: var(--ivory); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--pattern); background-size: 88px; opacity: .08; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 78% 40%, rgba(35,106,92,.55), transparent 70%), linear-gradient(180deg, transparent 70%, rgba(8,39,31,.6));
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(44px, 6vw, 76px) clamp(110px, 12vw, 140px); }
.hero__urdu { font-family: var(--urdu); font-size: clamp(1.5rem, 2.6vw, 2.05rem); color: var(--gold-400); direction: rtl; text-align: left; line-height: 2; margin-bottom: .3rem; }
.hero__tag { font: 700 .76rem/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(251,248,241,.7); display: flex; align-items: center; gap: 12px; margin-bottom: 1.6rem; flex-wrap: wrap; }
.hero__tag span + span::before { content: '◆'; color: var(--gold-500); font-size: .55rem; margin-right: 12px; vertical-align: 2px; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 600; color: var(--ivory); margin-bottom: .45em; line-height: 1.04; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-400); }
.hero__sub { font: 500 1.35rem/1.45 var(--serif); font-style: italic; color: var(--gold-200); margin-bottom: 1.1rem; max-width: 34ch; }
.hero__text { color: rgba(251,248,241,.78); max-width: 54ch; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__arch {
  position: relative; aspect-ratio: 4 / 5.2; border-radius: var(--arch); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__media::before {
  content: ''; position: absolute; inset: -16px -16px 22px 22px; border: 1px solid var(--gold-400); border-radius: var(--arch); opacity: .7;
}
.hero__media::after {
  content: ''; position: absolute; left: 50%; top: -46px; width: 28px; height: 28px; transform: translateX(-50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFB36D' stroke-width='1.3'%3E%3Crect x='5.3' y='5.3' width='13.4' height='13.4'/%3E%3Cpath d='M12 2.5l9.5 9.5-9.5 9.5L2.5 12z'/%3E%3C/svg%3E");
}
.hero__card {
  position: absolute; left: -38px; bottom: 36px; z-index: 2; max-width: 250px;
  background: var(--ivory); color: var(--ink); border-radius: 12px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.45;
}
.hero__card .icon { color: var(--gold-600); width: 22px; height: 22px; margin-top: 2px; }
.hero__card strong { display: block; font: 700 1.05rem/1.2 var(--serif); color: var(--green-900); margin-bottom: 2px; }

/* ---------- Quick highlights ---------- */
.highlights { position: relative; z-index: 2; margin-top: -76px; }
.highlights__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.hl { padding: 28px 18px 26px; text-align: center; position: relative; }
.hl + .hl::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.hl__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--green-700); position: relative;
}
.hl__icon::before {
  content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold-400); transform: rotate(45deg); border-radius: 6px; transition: transform .5s ease;
}
.hl__icon::after { content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold-200); border-radius: 6px; }
.hl:hover .hl__icon::before { transform: rotate(135deg); }
.hl__icon .icon { width: 24px; height: 24px; position: relative; z-index: 1; }
.hl h3 { font-size: 1.22rem; color: var(--green-900); margin-bottom: .25em; }
.hl p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 1020px) {
  .highlights__grid { grid-template-columns: repeat(3, 1fr); }
  .hl:nth-child(4)::before { display: none; }
  .hl:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .highlights { margin-top: -56px; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .hl { padding: 22px 12px; }
  .hl:nth-child(odd)::before { display: none; }
  .hl:nth-child(4)::before { display: block; }
  .hl:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Welcome ---------- */
.welcome .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.welcome__media { position: relative; padding: 0 0 60px 0; }
.welcome__main { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; width: 82%; box-shadow: var(--shadow); }
.welcome__main img { width: 100%; height: 100%; object-fit: cover; }
.welcome__inset {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid var(--ivory); box-shadow: var(--shadow);
}
.welcome__inset img { width: 100%; height: 100%; object-fit: cover; }
.welcome__star { position: absolute; left: -26px; top: 40px; width: 90px; height: 90px; color: var(--gold-400); opacity: .9; }
.welcome h3.sub { font: italic 500 1.55rem/1.3 var(--serif); color: var(--gold-600); margin-bottom: 1.2rem; }
.welcome p { color: var(--muted); }
.welcome .link-arrow { margin-top: .8rem; }

/* ---------- Why choose us ---------- */
.why { background: var(--sand); }
.why::before { content: ''; position: absolute; inset: 0; background: var(--pattern); background-size: 120px; opacity: .12; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 45%); mask-image: linear-gradient(180deg, #000, transparent 45%); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.why-card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 30px 30px; position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.why-card__num { position: absolute; top: 26px; right: 28px; font: 600 1rem/1 var(--serif); color: var(--gold-500); letter-spacing: .1em; }
.why-card__icon { width: 54px; height: 54px; border-radius: 50% 50% 8px 8px; background: var(--green-800); color: var(--gold-400); display: grid; place-items: center; margin-bottom: 22px; }
.why-card__icon .icon { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.5rem; color: var(--green-900); }
.why-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.why-card--wide {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--green-900); color: var(--ivory); border-color: transparent; padding: 26px 30px; overflow: hidden;
}
.why-card--wide::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .06; }
.why-card--wide > * { position: relative; }
.why-card--wide .why-card__icon { margin: 0; background: rgba(207,179,109,.14); }
.why-card--wide h3 { color: var(--ivory); margin-bottom: .15em; }
.why-card--wide p { color: rgba(251,248,241,.75); }
.why-card--wide img { width: 190px; height: 104px; object-fit: cover; border-radius: 10px; object-position: 90% 20%; }
@media (max-width: 960px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .why__grid { grid-template-columns: 1fr; }
  .why-card--wide { grid-template-columns: auto 1fr; }
  .why-card--wide img { display: none; }
}

/* ---------- Approach ---------- */
.approach__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; text-align: center; padding: 58px 22px 34px; border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, var(--white), var(--ivory)); border: 1px solid var(--line);
}
.step::before {
  content: ''; position: absolute; inset: 8px; border-radius: 999px 999px 10px 10px; border: 1px dashed rgba(184,151,63,.28); pointer-events: none;
}
.step__icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--green-800); color: var(--gold-400); }
.step__icon .icon { width: 26px; height: 26px; }
.step__n { font: 700 .72rem/1 var(--sans); letter-spacing: .24em; color: var(--gold-600); }
.step h3 { font-size: 2rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-900); margin: .35em 0 .3em; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }
.approach__statement { text-align: center; font: italic 500 clamp(1.35rem, 2.4vw, 1.8rem)/1.45 var(--serif); color: var(--green-800); max-width: 44ch; margin: 56px auto 0; }
@media (max-width: 960px) { .approach__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .approach__grid { grid-template-columns: 1fr; } .step { padding-top: 44px; } }

/* ---------- Academics ---------- */
.academics { background: var(--white); }
.academics__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.academics__head > div { max-width: 640px; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stage { border: 1px solid var(--line-soft); border-radius: 18px; overflow: hidden; background: var(--ivory); display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s; }
.stage:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.stage__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.stage__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.stage:hover .stage__media img { transform: scale(1.05); }
.stage__label {
  position: absolute; left: 18px; bottom: 16px; background: var(--ivory); color: var(--green-900); border-radius: 999px;
  padding: 7px 14px; font: 800 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.stage__body { padding: 26px 26px 30px; flex: 1; }
.stage h3 { font-size: 1.85rem; color: var(--green-900); margin-bottom: .1em; }
.stage__grades { font: 700 .82rem/1.4 var(--sans); color: var(--gold-600); letter-spacing: .06em; margin-bottom: 1.1rem; }
.focus { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.focus li { display: flex; gap: 12px; align-items: baseline; font-size: .96rem; color: var(--ink); }
.focus li::before { content: ''; width: 7px; height: 7px; flex: none; background: var(--gold-500); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 960px) { .stage-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Oxford ---------- */
.oxford { background: var(--ivory); overflow: hidden; }
.oxford__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.oxford__badge {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px 14px 16px; border: 1px solid var(--line); border-radius: 999px; margin-top: 12px; background: var(--white);
}
.oxford__badge .icon { width: 30px; height: 30px; color: var(--green-700); }
.oxford__badge span { font: 700 .82rem/1.35 var(--sans); color: var(--green-900); }
.pillars { display: grid; gap: 0; border-left: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 26px 0 26px 34px; position: relative; }
.pillar + .pillar { border-top: 1px solid var(--line-soft); }
.pillar::before { content: ''; position: absolute; left: -6px; top: 38px; width: 11px; height: 11px; background: var(--gold-500); transform: rotate(45deg); outline: 5px solid var(--ivory); }
.pillar__n { font: 600 3rem/1 var(--serif); color: var(--gold-400); width: 60px; }
.pillar h3 { font-size: 1.5rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-900); margin-bottom: .3em; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .oxford__inner { grid-template-columns: 1fr; } }

/* ---------- Campus ---------- */
.campus { background: var(--green-900); color: var(--ivory); overflow: hidden; }
.campus::before { content: ''; position: absolute; inset: 0; background: var(--pattern); background-size: 96px; opacity: .06; }
.campus .wrap { position: relative; }
.campus .title { color: var(--ivory); }
.campus .title em { color: var(--gold-400); }
.campus .lede { color: rgba(251,248,241,.75); }
.campus .eyebrow { color: var(--gold-400); }
.campus__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.campus__sub { font: italic 500 1.4rem/1.4 var(--serif); color: var(--gold-200); margin-bottom: 1rem; }
.facilities { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 34px; }
.facility { display: flex; gap: 14px; padding: 18px; border: 1px solid rgba(207,179,109,.22); border-radius: 12px; background: rgba(251,248,241,.03); }
.facility .icon { width: 26px; height: 26px; color: var(--gold-400); flex: none; margin-top: 2px; }
.facility h3 { font-size: 1.2rem; color: var(--ivory); margin-bottom: .15em; }
.facility p { font-size: .88rem; color: rgba(251,248,241,.7); margin: 0; line-height: 1.5; }
.campus__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; }
.mosaic figure:first-child { grid-row: span 2; border-radius: var(--arch); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(8,39,31,.78); color: var(--ivory); font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: rgba(251,248,241,.92); color: var(--green-800); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(251,248,241,.2); transition: transform .3s, box-shadow .3s;
}
.play:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 16px rgba(251,248,241,.16); }
.play .icon { width: 26px; height: 26px; margin-left: 4px; }
@media (max-width: 980px) { .campus__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facilities { grid-template-columns: 1fr; } .mosaic { grid-template-rows: 170px 170px; } }

/* ---------- Admissions ---------- */
.admissions { background: var(--sand); }
.frame {
  position: relative; background: var(--ivory); border: 1px solid var(--green-700); border-radius: 6px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold-400), var(--shadow);
}
.frame__corner { position: absolute; width: 64px; height: 64px; color: var(--gold-500); pointer-events: none; }
.frame__corner--tl { top: 10px; left: 10px; }
.frame__corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.frame__corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.frame__corner--br { bottom: 10px; right: 10px; transform: scale(-1); }
.admissions__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.admissions__open { display: inline-block; font-family: var(--urdu); color: var(--green-700); font-size: 1.3rem; direction: rtl; line-height: 1.8; }
.admissions .title { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: .1em; }
.admissions__grades { font: 800 .82rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 1.2rem; }
.process { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.process::before { content: ''; position: absolute; top: 33px; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-400) 0 6px, transparent 6px 12px); }
.process li { text-align: center; position: relative; padding: 0 8px; }
.process__n {
  width: 66px; height: 66px; margin: 0 auto 16px; display: grid; place-items: center; position: relative;
  font: 600 1.35rem/1 var(--serif); color: var(--ivory);
}
.process__n::before { content: ''; position: absolute; inset: 9px; background: var(--green-700); transform: rotate(45deg); border-radius: 6px; box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--gold-400); }
.process__n span { position: relative; }
.process h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 800; letter-spacing: .18em; color: var(--green-900); margin-bottom: .35em; }
.process p { font-size: .92rem; color: var(--muted); margin: 0; }
.admissions__split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; border-top: 1px solid var(--line); padding-top: 44px; }
.admissions__msg p { font: italic 500 1.45rem/1.45 var(--serif); color: var(--green-800); }
.admissions__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 1.6rem; }
.admissions__contact { display: grid; gap: 10px; font-size: .95rem; }
.admissions__contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-800); font-weight: 700; }
.admissions__contact .icon { color: var(--gold-600); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .process::before { display: none; }
  .admissions__split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .frame__corner { width: 40px; height: 40px; } }

/* ---------- Enquiry form ---------- */
.form { background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; padding: 28px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form h3 { grid-column: 1 / -1; font-size: 1.5rem; color: var(--green-900); margin: 0; }
.form .note { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); margin: -8px 0 0; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--green-900); }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--sans); color: var(--ink); background: var(--ivory); border: 1px solid rgba(26,42,36,.18);
  border-radius: 10px; padding: 13px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(184,151,63,.2); }
.form .btn { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 22px 18px; } }

/* ---------- Fees ---------- */
.fees .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.fee-card {
  position: relative; text-align: center; padding: 50px 30px 40px; border-radius: 999px 999px 18px 18px;
  background: var(--green-900); color: var(--ivory); overflow: hidden; box-shadow: var(--shadow);
}
.fee-card::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .08; }
.fee-card::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(207,179,109,.5); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.fee-card > * { position: relative; }
.fee-card__label { font: 800 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-400); margin-top: 28px; }
.fee-card__amount { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1.1 var(--serif); margin: 14px 0 6px; color: var(--ivory); }
.fee-card__amount small { font-size: .5em; color: var(--gold-400); display: block; letter-spacing: .12em; }
.fee-card__note { font-size: .82rem; color: rgba(251,248,241,.7); max-width: 32ch; margin: 12px auto 24px; line-height: 1.55; }
@media (max-width: 860px) { .fees .wrap { grid-template-columns: 1fr; } .fee-card { max-width: 420px; margin-inline: auto; width: 100%; } }

/* ---------- Student life ---------- */
.life { background: var(--white); }
.life__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.life-card { position: relative; border-radius: 999px 999px 16px 16px; overflow: hidden; aspect-ratio: 3 / 3.7; isolation: isolate; }
.life-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.life-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(8,39,31,.92)); }
.life-card:hover img { transform: scale(1.06); }
.life-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: var(--ivory); }
.life-card .icon { width: 22px; height: 22px; color: var(--gold-400); margin-bottom: 8px; }
.life-card h3 { font-size: 1.55rem; color: var(--ivory); margin-bottom: .2em; }
.life-card p { font-size: .88rem; color: rgba(251,248,241,.8); margin: 0; line-height: 1.5; }
@media (max-width: 960px) { .life__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .life__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .life__grid::-webkit-scrollbar { display: none; }
  .life-card { scroll-snap-align: start; }
}

/* ---------- Values ---------- */
.values { background: var(--green-950); color: var(--ivory); overflow: hidden; }
.values::before { content: ''; position: absolute; inset: 0; background: var(--pattern); background-size: 110px; opacity: .08; }
.values .wrap { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.values .title { color: var(--ivory); }
.values .title em { color: var(--gold-400); }
.values .eyebrow { color: var(--gold-400); }
.values__media { position: relative; }
.values__media .arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; }
.values__media img { width: 100%; height: 100%; object-fit: cover; }
.values__media .inset { position: absolute; right: -24px; bottom: -24px; width: 48%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 6px solid var(--green-950); }
.values__intro { color: rgba(251,248,241,.72); margin-bottom: 30px; }
.value-list { list-style: none; margin: 0; padding: 0; }
.value { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(207,179,109,.2); }
.value:last-child { border-bottom: 1px solid rgba(207,179,109,.2); }
.value .icon { width: 30px; height: 30px; color: var(--gold-400); transition: transform .6s ease; }
.value:hover .icon { transform: rotate(45deg); }
.value h3 { font-size: 1.55rem; color: var(--ivory); margin-bottom: .15em; }
.value p { color: rgba(251,248,241,.72); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .values .wrap { grid-template-columns: 1fr; } .values__media { max-width: 420px; } }

/* ---------- Principal ---------- */
.principal .wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.principal__seal {
  aspect-ratio: 4 / 5; border-radius: var(--arch); background: var(--green-900); position: relative; overflow: hidden;
  display: grid; place-items: center; color: var(--ivory); text-align: center; padding: 30px;
}
.principal__seal::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .1; }
.principal__seal::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(207,179,109,.5); border-radius: var(--arch); }
.principal__seal > div { position: relative; z-index: 1; }
.principal__seal img { width: 88px; margin: 0 auto 18px; }
.principal__seal .ph { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,248,241,.5); }
.letter { position: relative; }
.letter .icon-quote { display: block; width: 48px; height: 48px; color: var(--gold-400); margin-bottom: 12px; }
.letter p.eyebrow { font: 700 .78rem/1 var(--sans); color: var(--gold-600); }
.letter p { font: 500 1.3rem/1.6 var(--serif); color: var(--ink); }
.letter p.salutation { font-style: italic; color: var(--green-700); }
.signature { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.signature strong { display: block; font: 600 1.6rem/1.1 var(--serif); color: var(--green-900); }
.signature span { font: 700 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
@media (max-width: 860px) { .principal .wrap { grid-template-columns: 1fr; } .principal__seal { max-width: 300px; aspect-ratio: 4 / 4.4; } }

/* ---------- Achievements ---------- */
.achievements { background: var(--sand); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ach { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px; text-align: center; }
.ach .icon { width: 34px; height: 34px; color: var(--green-700); margin: 0 auto 14px; }
.ach h3 { font-size: 1.35rem; color: var(--green-900); }
.ach p { font-size: .9rem; color: var(--muted); margin: 0; }
.ach-note { text-align: center; margin: 30px auto 0; font-size: .92rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 960px) { .ach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ach-grid { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px 20px 24px; }
.news-card__cat { font: 800 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.news-card__title { font-size: 1.35rem; color: var(--green-900); margin: .55em 0 .4em; }
.news-card__text { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }
@media (max-width: 1020px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--green-900); border-radius: 999px; padding: 10px 18px; min-height: 42px;
  font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
}
.chip:hover { border-color: var(--gold-500); }
.chip.is-active { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }
.gallery-grid { columns: 4 240px; column-gap: 14px; }
.gallery-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; position: relative; cursor: zoom-in; break-inside: avoid; background: var(--sand); }
.gallery-item img { width: 100%; height: auto; transition: transform .7s, filter .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__cat { position: absolute; left: 10px; top: 10px; background: rgba(251,248,241,.92); color: var(--green-900); font: 800 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: .3s; }
.gallery-item:hover .gallery-item__cat, .gallery-item:focus-visible .gallery-item__cat { opacity: 1; transform: none; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; color: var(--ivory); }
dialog::backdrop { background: rgba(8, 39, 31, .88); backdrop-filter: blur(4px); }
.lb { display: grid; gap: 12px; justify-items: center; }
.lb img { max-height: 80vh; width: auto; border-radius: 10px; }
.lb__cap { font-size: .9rem; opacity: .85; text-align: center; }
.dlg-btn { position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(251,248,241,.3); background: rgba(8,39,31,.6); color: var(--ivory); display: grid; place-items: center; cursor: pointer; }
.dlg-btn:hover { background: var(--gold-500); color: var(--green-950); }
.dlg-btn .icon { width: 22px; height: 22px; }
.dlg-close { top: 18px; right: 18px; }
.dlg-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.dlg-next { right: 18px; top: 50%; transform: translateY(-50%); }
.video-dlg video { max-height: 86vh; width: auto; max-width: 94vw; border-radius: 12px; background: #000; }

/* ---------- Final CTA ---------- */
.final { position: relative; color: var(--ivory); text-align: center; overflow: hidden; padding-block: clamp(96px, 13vw, 160px); isolation: isolate; }
.final__bg { position: absolute; inset: 0; z-index: -2; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,39,31,.86), rgba(12,52,41,.93)); }
.final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pattern); opacity: .07; }
.final .title { color: var(--ivory); font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.final .title em { color: var(--gold-400); }
.final p { color: rgba(251,248,241,.8); max-width: 56ch; margin-inline: auto; font-size: 1.12rem; }
.final__badge { display: inline-block; margin: 8px 0 32px; padding: 10px 22px; border: 1px solid var(--gold-400); border-radius: 999px; color: var(--gold-200); font: 800 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.final__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-list { list-style: none; margin: 28px 0 30px; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list .ci { width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--green-700); display: grid; place-items: center; }
.contact-list .ci .icon { width: 20px; height: 20px; }
.contact-list h3 { font: 800 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin: 2px 0 4px; }
.contact-list p, .contact-list a { margin: 0; font-size: 1rem; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-700); text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact__btns .btn { padding-inline: 1em; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; position: relative; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 420px) { .contact__btns { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(251,248,241,.72); position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; background: var(--pattern); opacity: .05; }
.footer .wrap { position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 72px 48px; }
.footer__brand { display: flex; gap: 18px; align-items: flex-start; }
.footer__brand img { width: 64px; }
.footer__name { font: 700 1.4rem/1.15 var(--serif); color: var(--ivory); letter-spacing: .04em; text-transform: uppercase; }
.footer__urdu { font-family: var(--urdu); color: var(--gold-400); font-size: 1.2rem; direction: rtl; text-align: left; line-height: 2; }
.footer__tag { font: italic 500 1.15rem/1.4 var(--serif); color: var(--gold-200); margin-top: 8px; }
.footer h3 { font: 800 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.footer .social a { border: 1px solid rgba(207,179,109,.3); width: 40px; height: 40px; }
.footer__bottom { border-top: 1px solid rgba(207,179,109,.18); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 76px; }
  .actionbar {
    display: grid; grid-template-columns: .9fr 1.2fr 1.2fr; gap: 6px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    background: rgba(8,39,31,.96); border: 1px solid rgba(207,179,109,.3); padding: 8px; border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
    padding-bottom: calc(8px + env(safe-area-inset-bottom) * .5);
  }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; text-decoration: none; color: var(--ivory); font: 800 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
  .actionbar a:nth-child(2) { background: rgba(251,248,241,.08); }
  .actionbar a:first-child { background: rgba(251,248,241,.08); }
  .actionbar a:last-child { background: var(--gold-500); color: var(--green-950); }
  .actionbar .icon { width: 18px; height: 18px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__media { width: min(100%, 360px); margin-top: 20px; }
  .hero__card { left: -8px; bottom: 20px; }
  .welcome .wrap { grid-template-columns: 1fr; }
  .welcome__media { max-width: 460px; }
  .values__media .inset { right: -8px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -34px 12px 0; max-width: none; }
  .hero__media::before { inset: -10px -10px 70px 10px; }
}

/* =========================================================
   UPDATE 2026-09-27 — management changes
   Same tokens, spacing and components as the approved design.
   ========================================================= */

/* Refined wordmark: no hyphens, slightly larger, more even tracking */
.brand__name { font-size: 1.36rem; letter-spacing: .07em; }
.footer__name { letter-spacing: .07em; }
@media (max-width: 720px) { .brand__name { font-size: 1.06rem; letter-spacing: .05em; } }

/* ---------- Computer Lab & Future Technology ---------- */
.tech { background: var(--white); }
.tech__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.tech__media { display: grid; gap: 14px; }
.tech__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.tech__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tech__media figure:hover img { transform: scale(1.04); }
.tech__main { aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.tech__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tech__thumbs figure { aspect-ratio: 4 / 3; }
.tech__note { margin: 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.grade-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 1.2rem; padding: 9px 16px 9px 12px;
  border: 1px solid var(--gold-400); border-radius: 999px; background: var(--ivory);
  font: 800 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green-800);
}
.grade-badge .icon { width: 18px; height: 18px; color: var(--gold-600); }
.tech-list { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.tech-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.tech-list__n { font: 600 1.7rem/1 var(--serif); color: var(--gold-500); padding-top: 2px; }
.tech-list h3 { font-size: 1.32rem; color: var(--green-900); margin-bottom: .2em; }
.tech-list p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .tech__grid { grid-template-columns: 1fr; } .tech__media { max-width: 620px; } }

/* ---------- School Library ---------- */
.library { background: var(--ivory); }
.library__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.library__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 44vw, 560px); }
.library__media figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.library__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.library__media figure:hover img { transform: scale(1.04); }
.library__main { grid-row: span 2; border-radius: var(--arch) !important; box-shadow: var(--shadow); }
.library__quote { font: italic 500 clamp(1.4rem, 2.4vw, 1.8rem)/1.35 var(--serif); color: var(--gold-600); margin-bottom: 1rem; }
@media (max-width: 900px) {
  .library__grid { grid-template-columns: 1fr; }
  .library__media { order: 2; max-width: 560px; height: 440px; }
}
@media (max-width: 480px) { .library__media { height: 360px; } }

/* ---------- Principal photo ---------- */
.principal__photo { margin: 0; position: relative; justify-self: center; width: min(100%, 380px); }
.principal__photo::before { content: ''; position: absolute; inset: -14px 22px 40px -14px; border: 1px solid var(--gold-400); border-radius: var(--arch); }
.principal__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.principal__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.principal__photo figcaption {
  position: relative; margin: -34px auto 0; width: max-content; max-width: 90%; text-align: center;
  background: var(--green-900); color: var(--ivory); border-radius: 12px; padding: 12px 22px; box-shadow: var(--shadow);
}
.principal__photo figcaption strong { display: block; font: 600 1.3rem/1.1 var(--serif); }
.principal__photo figcaption span { font: 800 .66rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.letter p.salutation { font-size: 1.4rem; }
.signature .regards { display: block; font: italic 500 1.15rem/1.4 var(--serif); color: var(--muted); margin-bottom: 4px; }
@media (max-width: 860px) { .principal__photo { width: min(100%, 320px); margin-bottom: 12px; } }

/* ---------- Fees (compact, no public amount) ---------- */
.fees--compact { padding-block: clamp(64px, 8vw, 100px); }
.fee-card__headline { font: 600 clamp(1.75rem, 3.2vw, 2.3rem)/1.18 var(--serif); color: var(--ivory); margin: 14px auto 6px; max-width: 14ch; }

/* ---------- Fee payment / bank details (shown once verified) ---------- */
.bank { margin-top: 36px; }
.bank__card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.bank__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green-800); color: var(--gold-400); display: grid; place-items: center; }
.bank__icon .icon { width: 24px; height: 24px; }
.bank h3 { font-size: 1.5rem; color: var(--green-900); }
.bank__list { margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 14px 36px; justify-content: start; }
.bank__list dt { font: 800 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.bank__list dd { margin: 0; font-weight: 700; color: var(--ink); }
.bank__iban { font-family: ui-monospace, 'Consolas', monospace; letter-spacing: .06em; word-break: break-all; }
.bank__note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 720px) { .bank__card { grid-template-columns: 1fr; } .bank__list { grid-template-columns: 1fr; } }

/* ---------- Footer credit ---------- */
.footer__bottom .credit { opacity: .75; }
.footer__bottom .credit a { color: var(--gold-400); text-decoration: none; border-bottom: 1px solid rgba(207,179,109,.35); }
.footer__bottom .credit a:hover { color: var(--gold-200); border-color: var(--gold-200); }
.fees .bank { display: block; }
.bank[hidden] { display: none !important; }
/* Top bar: longer official email — keep items on one line */
.topbar a, .topbar span { white-space: nowrap; }
@media (max-width: 1360px) { .topbar__left .hide-md { display: none; } }
@media (max-width: 1024px) { .topbar [data-email] { display: none; } }
/* Long official email: allow it to wrap on small screens */
.footer a[data-email], .contact-list a[data-email], .admissions__contact a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }


/* =========================================================
   OPTION 2 — refined structure
   ========================================================= */
/* Library inside Campus & Facilities */
.campus-library {
  position: relative; margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(207,179,109,.22);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.campus-library__media { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; height: clamp(300px, 30vw, 400px); }
.campus-library__media figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.campus-library__media figure:first-child { border-radius: var(--arch); }
.campus-library__media .library__main { grid-row: auto; box-shadow: none; }
.campus-library__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.campus-library__media figure:hover img { transform: scale(1.04); }
.campus-library__title { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ivory); }
.campus-library__title em { color: var(--gold-400); font-style: italic; font-weight: 500; }
.campus-library__text p:last-child { color: rgba(251,248,241,.75); margin: 0; }
@media (max-width: 900px) {
  .campus-library { grid-template-columns: 1fr; }
  .campus-library__media { order: 2; height: 300px; }
}
@media (max-width: 480px) {
  .campus-library__media { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; height: 340px; }
  .campus-library__media figure:first-child { grid-row: span 2; }
}

/* Fees as a slim row inside the admissions frame */
.frame-fees {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  margin-top: 40px; padding: 26px 28px; border-radius: 14px; background: var(--sand); border: 1px solid var(--line);
}
.frame-fees__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--green-800); color: var(--gold-400); display: grid; place-items: center; }
.frame-fees__icon .icon { width: 24px; height: 24px; }
.frame-fees .eyebrow { margin-bottom: .5rem; }
.frame-fees h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); color: var(--green-900); margin-bottom: .25em; }
.frame-fees p:last-child { margin: 0; font-size: .92rem; color: var(--muted); max-width: 70ch; }
.frame .bank { margin-top: 18px; }
@media (max-width: 760px) {
  .frame-fees { grid-template-columns: 1fr; text-align: left; }
  .frame-fees .btn { justify-self: start; }
}

/* =========================================================
   CMS additions — same tokens and components as the approved design
   ========================================================= */
/* Inner page banner */
.page-banner { position: relative; background: var(--green-900); color: var(--ivory); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: var(--pattern); background-size: 88px; opacity: .08; }
.page-banner .wrap { position: relative; }
.page-banner .eyebrow { color: var(--gold-400); }
.page-banner .title { color: var(--ivory); margin: 0; max-width: 24ch; }
.page-banner .title em { color: var(--gold-400); }
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: rgba(251,248,241,.7); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-400); }

/* News cards link to articles */
.news-card { position: relative; }
.news-card__title a { text-decoration: none; }
.news-card__title a::after { content: ''; position: absolute; inset: 0; }
.news-card__title a:hover { color: var(--gold-600); }
.news-card__media { background: var(--sand); }
.news--page .news-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .news--page .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .news--page .news-grid { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--green-900); }
.pager a.is-active, .pager a:hover { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* Article page */
.article__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.article__date { display: inline-flex; align-items: center; gap: 8px; font: 800 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.article__image { margin: 0 0 28px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.article__image img { width: 100%; max-height: 620px; object-fit: cover; }
.article__lede { font: 500 1.45rem/1.5 var(--serif); color: var(--green-900); }
.article__body > p { color: var(--ink); }
.article__more { display: grid; gap: 18px; position: sticky; top: 150px; }
.article__more .eyebrow { margin-bottom: 0; }
.article__more .news-card__text { display: none; }
@media (max-width: 900px) { .article__grid { grid-template-columns: 1fr; } .article__more { position: static; } }

/* Testimonials */
.testimonials { background: var(--sand); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial { margin: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.testimonial .icon-quote { width: 34px; height: 34px; color: var(--gold-400); }
.testimonial blockquote { margin: 12px 0 20px; font: 500 1.25rem/1.55 var(--serif); color: var(--ink); }
.testimonial figcaption strong { display: block; font: 700 1rem/1.3 var(--sans); color: var(--green-900); }
.testimonial figcaption span { font-size: .86rem; color: var(--muted); }

/* Published achievements */
.ach-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.ach-item { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ach-item__media { aspect-ratio: 16 / 10; overflow: hidden; }
.ach-item__media img { width: 100%; height: 100%; object-fit: cover; }
.ach-item__body { padding: 20px 22px 24px; }
.ach-item h3 { font-size: 1.35rem; color: var(--green-900); margin: .5em 0 .3em; }
.ach-item p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Enquiry form extras */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(35,106,92,.1); color: var(--green-800); font-size: .9rem; font-weight: 600; }
.form__status.is-error { background: rgba(180,50,40,.08); color: #8a2a20; }
.gallery--page .gallery-grid { columns: 4 240px; }
