@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue-950: #10285b;
  --blue-900: #173777;
  --blue-800: #204792;
  --blue-700: #2c59aa;
  --blue-100: #e9f0fc;
  --blue-50: #f4f7fd;
  --gold: #e9b938;
  --gold-pale: #f8e9b6;
  --aqua: #43afd0;
  --ink: #1c2b45;
  --muted: #6d7890;
  --paper: #fffefa;
  --line: #dfe5ef;
  --font: 'Vazirmatn', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--gold-pale); color: var(--blue-950); }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: 10px; inset-inline-start: 10px; padding: 8px 14px; background: white; color: var(--blue-900); border: 2px solid var(--gold); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.topline { height: 34px; background: var(--blue-950); color: #e3eaf7; font-size: 10px; }
.topline-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.topline p { margin: 0; }
.pin { color: var(--gold); font-size: 15px; vertical-align: -1px; margin-inline-end: 5px; }
.topline-note { color: #a8b9dc; }
.site-header { height: 84px; background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e9edf4; box-shadow: 0 5px 22px rgba(22, 48, 96, .045); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 19px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 245px; }
.brand img { width: 54px; height: 54px; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { display: grid; gap: 1px; line-height: 1.55; }
.brand-copy strong { color: var(--blue-900); font-size: 14px; font-weight: 700; }
.brand-copy small { color: #7f8ba1; font-size: 9px; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100%; font-size: 11px; font-weight: 500; white-space: nowrap; }
.primary-nav > a { position: relative; padding: 9px 10px; border-radius: 6px; color: #586681; transition: color .2s, background .2s; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--blue-800); background: var(--blue-50); }
.primary-nav > a[aria-current="page"] { color: var(--blue-800); background: var(--blue-100); font-weight: 700; }
.language-switch { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid var(--blue-800); border-radius: 6px; background: var(--blue-800); color: #fff; cursor: pointer; white-space: nowrap; font-family: 'Inter', var(--font); font-size: 10px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.language-switch:hover { background: var(--blue-950); border-color: var(--blue-950); transform: translateY(-1px); }
.language-globe { color: var(--gold); font-size: 16px; line-height: 1; }
.menu-toggle { display: none; }

/* Main page hero */
.hero { position: relative; min-height: 615px; background: #f8f9fc; color: var(--ink); overflow: hidden; isolation: isolate; }
.hero-image, .hero-shade { position: absolute; top: 26px; bottom: 26px; width: 49%; }
.hero-image { left: 0; right: auto; z-index: 0; overflow: hidden; border-radius: 0 24px 24px 0; background: url('Resources/school-building-among-garden-trees.jpg') center 53% / cover no-repeat; }
.hero-shade { left: 0; right: auto; z-index: 0; border-radius: 0 24px 24px 0; background: linear-gradient(0deg, rgba(11, 35, 82, .62), rgba(14, 48, 109, .08) 60%, rgba(11, 35, 82, .12)); }
.hero::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; border: 1px solid rgba(44, 89, 170, .07); border-radius: 50%; inset-inline-start: -190px; top: -180px; }
.hero-content { min-height: 615px; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-copy { grid-column: 1; width: auto; max-width: 520px; padding: 10px 0 44px; }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: #65779b; font-size: 10px; letter-spacing: .035em; font-weight: 700; }
.eyebrow > span:first-child { width: 25px; height: 2px; background: var(--gold); display: inline-block; flex: 0 0 auto; }
.hero-eyebrow { color: var(--blue-700); font-size: 11px; margin-bottom: 19px; }
.hero h1 { max-width: 550px; color: var(--blue-950); font-size: clamp(48px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.055em; line-height: 1.35; margin: 0; }
.hero h1 em, h2 em { color: var(--blue-700); font-style: normal; }
.hero-description { max-width: 450px; margin: 17px 0 27px; color: #64718a; font-size: 14px; line-height: 2.15; font-weight: 400; }
.hero-actions { display: flex; align-items: center; gap: 21px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 17px; font-size: 11px; font-weight: 700; border-radius: 6px; transition: transform .2s, background .2s, box-shadow .2s; }
.button-gold { background: var(--gold); color: var(--blue-950); box-shadow: 0 8px 20px rgba(220, 171, 45, .2); }
.button-gold:hover { background: #f2cb5d; transform: translateY(-2px); box-shadow: 0 11px 23px rgba(220, 171, 45, .28); }
.button-gold > span:last-child { font-size: 17px; line-height: 1; }
.text-link { color: var(--blue-800); font-size: 11px; display: inline-flex; gap: 9px; align-items: center; font-weight: 600; }
.text-link span { color: #bd8d14; font-size: 16px; }
.hero-stamp { position: absolute; left: calc(49% - 47px); right: auto; top: 51px; width: 96px; height: 96px; border: 1px solid rgba(255,255,255,.84); border-radius: 50%; display: grid; place-items: center; color: var(--blue-950); background: rgba(255, 255, 255, .92); box-shadow: 0 8px 28px rgba(14, 39, 90, .2); transform: rotate(-8deg); }
.stamp-ring { width: 80px; height: 80px; border: 1px dashed rgba(35, 76, 154, .35); border-radius: inherit; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.stamp-ring b { color: #d39e13; }
.stamp-star { position: absolute; font-size: 17px; color: #dcae23; background: white; padding: 0 4px; }
.hero-caption { position: absolute; bottom: 61px; left: 22px; right: auto; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 10px; text-shadow: 0 1px 9px rgba(10,30,69,.55); }
.caption-rule { width: 25px; height: 2px; background: var(--gold); }
.hero-bottom { position: absolute; z-index: 2; bottom: 29px; left: 0; right: auto; width: 49%; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.5); padding: 8px 21px 0; font-size: 9px; color: rgba(255,255,255,.92); transform: none; }

/* Quick facts */
.quick-facts { position: relative; z-index: 2; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 8px 26px rgba(22, 48, 96, .045); }
.facts-grid { display: grid; grid-template-columns: 1.05fr 1.3fr 1.3fr .95fr; min-height: 108px; align-items: center; }
.fact { min-height: 56px; display: flex; align-items: center; gap: 14px; padding-inline: 24px; border-inline-start: 1px solid #e6eaf1; }
.fact:first-child { padding-inline-start: 0; }
.fact:last-child { border: 0; padding-inline-end: 0; }
.fact-intro { gap: 11px; }
.fact-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-700); background: var(--blue-100); font-size: 20px; }
.fact-intro p { font-size: 11px; line-height: 1.65; margin: 0; color: #697590; }
.fact-intro strong { color: var(--blue-900); font-size: 15px; }
.fact-number { font-size: 22px; line-height: 1.1; color: var(--blue-800); font-weight: 700; white-space: nowrap; }
.fact-label { color: #65718a; font-size: 9px; line-height: 1.8; }
.fact-label small { color: #8d97a7; font-size: 8px; }
.fact-place { gap: 10px; }
.fact-icon { width: 31px; height: 31px; border: 1px solid #d8e1f0; color: #c29317; background: #fbf6e7; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.fact-label strong { color: var(--blue-900); font-size: 11px; }

/* Sections and school story */
.section { padding: 97px 0; }
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr .96fr; align-items: center; gap: 86px; }
.about-visual { position: relative; min-height: 425px; padding: 0 18px 17px 0; }
.about-photo { height: 403px; position: relative; z-index: 1; overflow: hidden; border-radius: 17px; box-shadow: 0 18px 42px rgba(25, 54, 110, .14); }
.about-photo img { height: 100%; object-fit: cover; object-position: center; }
.about-visual::before { content: ''; position: absolute; inset: 17px 0 0 17px; border: 2px solid var(--gold); border-radius: 18px; z-index: 0; }
.about-note { position: absolute; z-index: 2; bottom: 0; inset-inline-start: -24px; background: var(--blue-800); color: white; padding: 14px 19px; display: flex; align-items: center; gap: 12px; font-size: 9px; line-height: 1.8; border-radius: 9px; box-shadow: 0 9px 25px rgba(18, 46, 102, .22); }
.about-note strong { font-size: 11px; font-weight: 600; }
.note-flower { font-size: 25px; color: var(--gold); }
.visual-label { position: absolute; z-index: 2; top: 19px; inset-inline-start: -17px; writing-mode: vertical-rl; letter-spacing: .1em; font-size: 8px; color: var(--blue-800); background: white; padding: 7px 4px; border-radius: 4px; }
.about-copy { padding: 0 5px; }
h2 { font-size: clamp(31px, 3.4vw, 44px); line-height: 1.5; letter-spacing: -.04em; font-weight: 700; margin: 0; color: var(--blue-950); }
.about-copy h2 em, .section-heading h2 em, .leadership-intro h2 em { color: var(--blue-700); }
.body-lead { font-size: 14px; line-height: 2.15; font-weight: 500; color: #394b6c; margin: 19px 0 10px; }
.body-copy { font-size: 11px; color: #738099; line-height: 2.3; margin: 0; }
.under-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 11px; font-size: 10px; font-weight: 700; color: var(--blue-800); border-bottom: 1px solid var(--gold); padding-bottom: 5px; }
.under-link span:last-child { color: #bb8d12; font-size: 15px; }
.legacy-section { background: linear-gradient(115deg, var(--blue-950), #1e4a99); color: #f7f9ff; padding: 73px 0 87px; position: relative; overflow: hidden; }
.legacy-section::before { content: ''; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(248, 223, 150, .23); border-radius: 50%; right: -133px; bottom: -225px; box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.02); }
.legacy-grid { display: grid; position: relative; grid-template-columns: 1.15fr .9fr auto; gap: 48px; align-items: center; }
.eyebrow-light { color: #d7e1f5; }
.legacy-grid h2 { font-size: 36px; line-height: 1.45; color: white; }
.legacy-grid > p { font-size: 11px; line-height: 2.35; color: #d3def2; margin: 13px 0 0; max-width: 365px; }
.legacy-seal { width: 103px; height: 103px; border: 1px solid var(--gold); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.5; color: #dce5f4; font-size: 8px; transform: rotate(-8deg); }
.legacy-seal strong { color: var(--gold); font-size: 17px; font-weight: 700; }
.legacy-line { position: absolute; height: 1px; bottom: -34px; right: 0; left: 0; display: flex; justify-content: space-between; background: rgba(238, 234, 215, .27); }
.legacy-line span { width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%; background: var(--blue-900); transform: translateY(-2px); }

/* Student life */
.learning-section { padding-bottom: 91px; background: var(--blue-50); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { font-size: 34px; }
.section-heading > p { max-width: 330px; font-size: 10px; line-height: 2.2; color: #71809a; margin: 0 0 6px; }
.learning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.learning-card { height: 375px; position: relative; color: white; overflow: hidden; background: var(--blue-900); border-radius: 13px; box-shadow: 0 12px 26px rgba(31, 68, 136, .12); }
.learning-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.75,.25,1); }
.learning-card:hover > img { transform: scale(1.055); }
.learning-card-project > img { object-position: 50% center; }
.learning-card-sport > img { object-position: center; }
.learning-card-culture > img { object-position: center; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 36, 82, .95) 0%, rgba(21, 52, 111, .72) 43%, rgba(18, 48, 104, .03) 100%); }
.card-index { position: absolute; top: 17px; inset-inline-start: 17px; min-width: 31px; height: 27px; display: grid; place-items: center; border-radius: 20px; background: var(--gold); color: var(--blue-950); font-size: 8px; font-weight: 800; }
.learning-card-copy { position: absolute; inset-inline: 21px; bottom: 20px; }
.learning-card-copy > span { font-size: 8px; color: #f7d978; font-weight: 700; }
.learning-card-copy h3 { font-size: 22px; line-height: 1.45; margin: 6px 0 5px; font-weight: 600; }
.learning-card-copy p { font-size: 9px; line-height: 1.9; margin: 0; color: rgba(244, 247, 255, .86); max-width: 275px; }
.culture-note { border: 1px solid #e2e8f2; border-radius: 10px; background: white; margin-top: 22px; display: flex; gap: 14px; align-items: center; padding: 12px 17px; }
.culture-icon { color: #d0a31d; font-size: 22px; }
.culture-note p { margin: 0; color: #748098; font-size: 9px; line-height: 1.9; }
.culture-note strong { color: var(--blue-900); font-size: 10px; }
.culture-year { margin-inline-start: auto; color: #8d7b4d; font-size: 9px; white-space: nowrap; }
.life-feature { background: var(--blue-50); padding: 66px 0; }
.life-feature-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.life-feature-photo { height: 405px; overflow: hidden; border-radius: 16px; box-shadow: 0 15px 38px rgba(25, 54, 110, .13); }
.life-feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.life-feature-copy h2 { font-size: 38px; }
.life-feature-copy h2 em { color: var(--blue-700); font-style: normal; }
.life-feature-copy > p:not(.eyebrow) { color: #71809a; font-size: 10px; line-height: 2.3; margin: 13px 0 0; }
.life-cards-section { padding-block: 82px 96px; }
.life-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.life-cards article { background: white; border: 1px solid #e6ebf3; border-radius: 12px; padding: 10px 10px 17px; box-shadow: 0 8px 23px rgba(20, 54, 115, .06); transition: transform .25s, box-shadow .25s; }
.life-cards article:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 54, 115, .11); }
.life-card-image { height: 205px; overflow: hidden; border-radius: 8px; background: #ddd; }
.life-card-image img { height: 100%; object-fit: cover; transition: transform .4s; }
.life-cards article:hover img { transform: scale(1.04); }
.life-card-number { display: block; margin: 14px 5px 0; color: #ad8315; font-size: 8px; letter-spacing: .06em; font-weight: 700; }
.life-cards h3 { margin: 4px 5px 5px; color: var(--blue-900); font-size: 15px; }
.life-cards p { margin: 0 5px; color: #7a869b; font-size: 9px; line-height: 2; }
.magazine-section { padding: 30px 0; background: var(--blue-50); color: var(--ink); border-block: 1px solid #e3eaf5; }
.magazine-grid { display: grid; grid-template-columns: 112px 1fr; gap: 25px; align-items: center; max-width: 940px; }
.magazine-art { width: 112px; min-height: 90px; border: 1px solid #d7e0ef; border-radius: 10px; background: white; display: grid; place-content: center; position: relative; color: var(--blue-800); text-align: center; }
.magazine-art span, .magazine-art i { display: block; font-style: normal; font-size: 16px; line-height: 1.35; }
.magazine-art i { color: #bd941e; }
.magazine-art b { display: none; }
.magazine-grid .eyebrow-light { color: #71809a; margin-bottom: 4px; }
.magazine-grid h2 { font-size: 19px; line-height: 1.45; color: var(--blue-900); }
.magazine-grid h2 em { color: #73809a; }
.magazine-grid > div:last-child > p:not(.eyebrow) { color: #748098; font-size: 9px; line-height: 2; max-width: 680px; margin: 5px 0 7px; }
.magazine-grid .achievement-year { border-color: #d8c785; color: #8d6e16; padding-top: 5px; font-size: 8px; }
.achievement-year { display: inline-block; border-top: 1px solid rgba(233,185,56,.68); padding-top: 8px; color: #f1d987; font-size: 9px; }
.life-cta { padding-block: 62px; }
.life-cta-inner { display: flex; align-items: center; justify-content: space-between; }
.life-cta h2 { font-size: 32px; }
.life-cta h2 em { color: var(--blue-700); font-style: normal; }
.button-green { background: var(--blue-800); color: #fff; box-shadow: 0 8px 20px rgba(24,57,122,.16); }
.button-green:hover { background: var(--blue-950); transform: translateY(-2px); }
.button-outline { border: 1px solid rgba(255,255,255,.65); background: transparent; color: white; }
.button-outline:hover { background: rgba(255,255,255,.12); }
.home-gallery { background: var(--blue-900); color: #f7f9ff; padding: 71px 0; }
.home-gallery-inner { display: grid; grid-template-columns: .72fr 1fr 1fr; gap: 15px; align-items: center; }
.home-gallery h2 { font-size: 34px; margin-bottom: 16px; color: white; }
.home-gallery h2 em { color: var(--gold); font-style: normal; }
.home-gallery-photo { height: 246px; position: relative; overflow: hidden; border-radius: 11px; }
.home-gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-gallery-photo:hover img { transform: scale(1.04); }
.home-gallery-photo::after { content: ''; position: absolute; inset: 52% 0 0; background: linear-gradient(0deg,rgba(8,28,72,.78),transparent); }
.home-gallery-photo > span { position: absolute; z-index: 1; bottom: 12px; right: 13px; font-size: 9px; color: white; }

/* Interior page banners, history and academic sections */
.page-hero { min-height: 370px; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; color: white; background: var(--blue-950); }
.page-hero::before, .page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.page-hero::before { background: url('Resources/school-building-and-flower-garden.jpg') center 45% / cover no-repeat; }
.page-hero::after { background: linear-gradient(270deg, rgba(13, 34, 80, .93), rgba(24, 61, 134, .76) 54%, rgba(19, 54, 120, .35)); }
.page-hero-academics::before { background-image: url('Resources/students-demonstrate-engineering-project.jpg'); background-position: center 43%; }
.page-hero-life::before { background-image: url('Resources/graduates-celebrate-in-auditorium.jpg'); background-position: center 41%; }
.page-hero-gallery::before { background-image: url('Resources/students-gather-for-school-assembly.jpg'); background-position: center 44%; }
.page-hero-contact::before { background-image: url('Resources/school-entrance-and-flower-garden.jpg'); background-position: center 48%; }
.page-hero-inner { padding-block: 54px; }
.page-hero h1 { font-size: clamp(43px, 5.5vw, 64px); line-height: 1.36; letter-spacing: -.05em; font-weight: 700; margin: 0; }
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero-inner > p:last-child { margin: 13px 0 0; color: #e0e8f8; font-size: 12px; }
.story-intro { display: grid; grid-template-columns: .85fr 1.2fr; gap: 80px; align-items: center; }
.story-intro h2 { font-size: 37px; }
.story-intro .body-lead { margin-top: 0; }
.story-intro .body-copy { margin-top: 12px; }
.timeline-section, .values-section { background: var(--blue-50); padding: 84px 0; }
.timeline-list { position: relative; border-inline-start: 2px solid #d9b858; margin-inline-start: 72px; padding-inline-start: 32px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 145px 1fr; gap: 19px; padding: 19px 0 22px; border-bottom: 1px solid #e0e7f2; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-year { color: var(--blue-700); font-size: 11px; font-weight: 700; direction: rtl; }
.timeline-item h3 { color: var(--blue-950); font-size: 15px; margin: 0 0 5px; }
.timeline-item p { max-width: 630px; margin: 0; color: #738099; font-size: 10px; line-height: 2.2; }
.timeline-dot { position: absolute; inset-inline-start: -39px; top: 26px; width: 12px; height: 12px; border: 3px solid white; outline: 1px solid #c7a431; border-radius: 50%; background: var(--gold); }
.team-footnote { grid-column: 1/-1; }
.history-note { background: #fff6df; border-block: 1px solid #f1e1b4; padding: 17px 0; }
.history-note .container { display: flex; align-items: center; gap: 13px; }
.history-note span { color: #c09318; font-size: 21px; }
.history-note p { margin: 0; color: #66738d; font-size: 9px; line-height: 2; }
.timeline-source { display: inline-block; margin-top: 8px; color: var(--blue-700); font-size: 9px; border-bottom: 1px solid var(--gold); }
.values-section { padding-block: 85px 97px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.value-card { position: relative; min-height: 238px; padding: 22px 18px; background: white; border: 1px solid #e1e7f1; border-radius: 11px; box-shadow: 0 8px 22px rgba(21, 53, 113, .045); }
.value-card > span { position: absolute; left: 17px; top: 13px; color: #aeb9cc; font-size: 8px; letter-spacing: .1em; font-weight: 700; }
.value-icon { color: #d0a122; font-size: 23px; line-height: 1; margin-bottom: 19px; }
.value-card h3 { margin: 0 0 7px; font-size: 14px; color: var(--blue-900); }
.value-card p { margin: 0; color: #7b879c; font-size: 9px; line-height: 2.15; }
.achievement-section { padding: 72px 0; background: var(--blue-950); color: #f8faff; }
.achievement-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 65px; align-items: center; }
.achievement-photo { height: 342px; overflow: hidden; border-radius: 14px; box-shadow: 0 15px 34px rgba(0,0,0,.2); }
.achievement-photo img { width: 100%; height: 100%; object-fit: cover; }
.achievement-grid h2 { font-size: 37px; color: white; }
.achievement-grid h2 em { color: var(--gold); }
.achievement-grid > div:last-child > p:not(.eyebrow) { color: #d0dcf2; font-size: 11px; line-height: 2.25; max-width: 490px; margin: 13px 0 18px; }
.class-quote { text-align: center; max-width: 700px; }
.class-quote > span { color: #c09318; font-family: Georgia, serif; font-size: 55px; line-height: 1; }
.class-quote blockquote { margin: 7px auto 17px; font-size: 22px; line-height: 1.9; color: #334a72; }
.class-quote .under-link { margin-top: 0; }

/* Gallery */
.gallery-section { background: var(--blue-950); color: #fbfcff; padding: 88px 0 96px; }
.gallery-heading { align-items: center; margin-bottom: 31px; }
.gallery-heading h2 { font-size: 37px; color: white; }
.gallery-heading > p { color: #d2def4; max-width: 340px; }
.gallery-heading .eyebrow-light { color: #d5dff1; }
.gallery-heading h2 em { color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: 1.07fr .88fr .88fr; grid-template-rows: 194px 194px; gap: 13px; }
.gallery-item { position: relative; padding: 0; border: 0; background: var(--blue-800); cursor: zoom-in; overflow: hidden; text-align: start; color: white; border-radius: 9px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(12, 34, 81, .78), transparent); pointer-events: none; }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-caption { position: absolute; bottom: 11px; inset-inline-start: 13px; z-index: 1; font-size: 9px; color: #fff; }
.gallery-caption b { display: inline-grid; place-items: center; margin-inline-start: 7px; width: 21px; height: 21px; border: 1px solid rgba(255,255,255,.72); color: var(--gold); font-weight: 500; font-size: 12px; border-radius: 50%; }
.gallery-page-section { background: white; }
.photo-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 177px; gap: 13px; }
.photo-tile { position: relative; border: 0; padding: 0; overflow: hidden; background: var(--blue-800); text-align: start; color: white; cursor: zoom-in; border-radius: 9px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.photo-tile:hover img { transform: scale(1.045); }
.photo-tile::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,rgba(12,34,81,.78),transparent); }
.photo-tile > span { position: absolute; z-index: 1; inset-inline-start: 13px; bottom: 10px; font-size: 9px; }
.photo-large { grid-row: span 2; }
.photo-wide { grid-column: span 2; }
.gallery-page-section .section-heading { margin-bottom: 31px; }

/* Contact, remembrance and footer */
.contact-section { background: #eaf0fc; padding: 49px 0; position: relative; overflow: hidden; }
.contact-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; position: relative; }
.contact-mark { color: var(--blue-700); font-size: 34px; border: 1px solid #b7c8e8; background: white; width: 61px; height: 61px; border-radius: 15px; display: grid; place-items: center; }
.contact-inner .eyebrow { margin-bottom: 5px; color: #627699; }
.contact-inner h2 { font-size: 28px; line-height: 1.45; color: var(--blue-950); }
.contact-inner h2 em { color: var(--blue-700); }
.contact-details { text-align: left; padding-inline-start: 32px; border-inline-start: 1px solid #c6d2e7; }
.contact-details p { font-size: 10px; line-height: 2; color: #526482; margin: 0 0 8px; }
.contact-details a { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; color: var(--blue-800); border-bottom: 1px solid #c39a28; padding-bottom: 3px; }
.contact-details a span { font-size: 14px; color: #b58a12; }
.remembrance { padding: 25px 0; background: #fff8e6; border-block: 1px solid #f2e4bf; }
.remembrance-inner { display: flex; align-items: center; gap: 15px; }
.remembrance-flower { font-size: 23px; color: #bb911c; }
.remembrance p { font-size: 9px; line-height: 2; color: #64718a; margin: 0; }
.remembrance strong { color: var(--blue-900); font-weight: 600; }
.remembrance-date { margin-inline-start: auto; font-size: 9px; color: #8e7c51; direction: ltr; white-space: nowrap; }
.memorial-section { position: relative; overflow: hidden; padding: 77px 0 82px; background: #050505; color: #f4f4f4; border-block: 1px solid #242424; }
.memorial-section::before { content: ''; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(233,185,56,.16); border-radius: 50%; top: -218px; inset-inline-end: -84px; box-shadow: 0 0 0 22px rgba(233,185,56,.035), 0 0 0 44px rgba(233,185,56,.025); }
.memorial-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; }
.memorial-eyebrow { color: #b4b4b4; }
.memorial-copy h2 { color: #fff; font-size: 36px; line-height: 1.5; }
.memorial-copy h2 em { color: var(--gold); }
.memorial-date { color: #e1c970; font-size: 10px; font-weight: 600; margin: 9px 0 8px; }
.memorial-text { color: #c5c5c5; font-size: 10px; line-height: 2.25; margin: 0; max-width: 570px; }
.memorial-counts { display: flex; align-items: center; gap: 20px; margin: 21px 0 14px; }
.memorial-counts > div { display: grid; gap: 1px; min-width: 66px; border-inline-start: 1px solid #3e3e3e; padding-inline-start: 15px; }
.memorial-counts strong { color: var(--gold); font-size: 22px; line-height: 1.2; }
.memorial-counts span { color: #c7c7c7; font-size: 8px; }
.memorial-counts > small { color: #868686; font-size: 8px; max-width: 140px; line-height: 1.7; }
.memorial-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.memorial-source, .memorial-more { display: inline-block; color: #e4cd78; font-size: 9px; border-bottom: 1px solid #706126; padding-bottom: 4px; }
.memorial-source:hover, .memorial-more:hover { color: white; }
.memorial-more span { display: inline-block; color: var(--gold); margin-inline-start: 5px; }
html[dir="ltr"] .memorial-more span { transform: scaleX(-1); }
.memorial-banner { margin: 0; padding: 10px; border: 1px solid #383838; border-radius: 10px; background: #101010; }
.memorial-banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: contain; background: #160f10; }
.memorial-banner figcaption { padding: 8px 4px 1px; color: #aaa; font-size: 8px; }
.site-footer { color: #edf3ff; background: var(--blue-950); }
.footer-main { min-height: 137px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand .brand-copy strong { color: #f3f6ff; font-size: 12px; }
.footer-brand .brand-copy small { color: #b2c4e4; }
.footer-main > p { font-size: 9px; line-height: 2; color: #bdcbe3; margin: 0; }
.footer-links { display: flex; gap: 15px; align-items: center; font-size: 9px; color: #d0dcf2; }
.footer-links a:hover { color: var(--gold); }
.to-top { width: 34px; height: 34px; border: 1px solid #7d96c1; border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: background .2s; }
.to-top:hover { background: #244889; }
.footer-bottom { background: #0b1f49; color: #aabbd8; font-size: 8px; }
.footer-bottom .container { min-height: 39px; display: flex; justify-content: space-between; align-items: center; }

/* Contact page */
.contact-page-section { padding-block: 88px; }
.contact-page-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: center; }
.contact-page-copy h2 { font-size: 39px; }
.contact-page-copy h2 em { color: var(--blue-700); font-style: normal; }
.contact-page-copy .body-lead { margin-top: 13px; }
.contact-page-copy .body-copy { margin-bottom: 19px; }
.map-button { gap: 20px; }
.map-card { background: #f0f4fa; border: 1px solid #d7e0ed; border-radius: 13px; overflow: hidden; box-shadow: 0 12px 30px rgba(28, 61, 124, .09); }
.map-pattern { height: 294px; position: relative; overflow: hidden; background-color: #eef3f7; background-image: linear-gradient(rgba(32,78,72,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(32,78,72,.05) 1px,transparent 1px); background-size: 30px 30px; }
.map-pattern svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #a9bad0; stroke-width: 2; }
.map-grid-mark { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #e4ba45; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--blue-700); font-size: 29px; box-shadow: 0 0 0 12px rgba(233,185,56,.18); }
.map-label { position: absolute; left: 50%; top: calc(47% + 43px); transform: translateX(-50%); white-space: nowrap; padding: 4px 11px; border-radius: 4px; background: var(--blue-800); color: white; font-size: 8px; }
.map-card-footer { display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: white; }
.contact-symbol { color: #b58b18; font-size: 21px; }
.map-card-footer div { display: grid; gap: 1px; flex: 1; }
.map-card-footer strong { color: var(--blue-900); font-size: 10px; }
.map-card-footer small { color: #7b8799; font-size: 8px; }
.map-pin { color: #c29a27; font-size: 12px; }
.contact-bottom { background: var(--blue-50); padding: 22px 0; border-top: 1px solid var(--line); }
.contact-bottom-inner { display: flex; align-items: center; gap: 13px; }
.contact-bottom-inner > span { color: #c29722; font-size: 22px; }
.contact-bottom-inner p { flex: 1; color: #5f6f8c; margin: 0; font-size: 10px; }
.contact-bottom-inner a { font-size: 9px; color: var(--blue-800); border-bottom: 1px solid #c5a244; padding-bottom: 4px; }
.contact-bottom-inner a span { color: #a77d14; margin-inline-start: 7px; }

/* Photo viewer */
.lightbox { border: 0; padding: 0; background: #0b1f49; color: white; width: min(1000px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); overflow: visible; border-radius: 10px; box-shadow: 0 25px 90px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(5, 15, 38, .86); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox p { margin: 0; padding: 10px 16px 13px; font-size: 10px; text-align: center; color: #e5ebf8; }
.lightbox-close { position: absolute; z-index: 1; top: 9px; left: 9px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(13, 34, 80, .88); color: white; font-size: 23px; line-height: 1; cursor: pointer; }

/* English layout */
html[dir="ltr"] body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
html[dir="ltr"] .hero-image, html[dir="ltr"] .hero-shade { left: auto; right: 0; border-radius: 24px 0 0 24px; }
html[dir="ltr"] .hero-shade { background: linear-gradient(0deg, rgba(11, 35, 82, .62), rgba(14, 48, 109, .08) 60%, rgba(11, 35, 82, .12)); }
html[dir="ltr"] .hero-stamp { left: auto; right: calc(49% - 47px); }
html[dir="ltr"] .hero-caption { left: auto; right: 22px; }
html[dir="ltr"] .hero-bottom { left: auto; right: 0; }
html[dir="ltr"] .page-hero::after { background: linear-gradient(90deg, rgba(13,34,80,.93),rgba(24,61,134,.76) 54%,rgba(19,54,120,.35)); }
html[dir="ltr"] .hero-actions .button-gold > span:last-child, html[dir="ltr"] .under-link > span:last-child, html[dir="ltr"] .button-green > span:last-child, html[dir="ltr"] .button-outline > span:last-child { transform: scaleX(-1); }
html[dir="ltr"] .home-gallery-photo > span { right: auto; left: 13px; }
html[dir="ltr"] .timeline-year { direction: ltr; }
html[dir="ltr"] .contact-details { text-align: left; }

@media (max-width: 1060px) {
  .container { width: min(100% - 44px, 900px); }
  .header-inner { gap: 10px; }
  .brand { min-width: 218px; gap: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 12px; }
  .primary-nav { gap: 1px; font-size: 10px; }
  .primary-nav > a { padding: 8px 7px; }
  .language-switch { padding-inline: 9px; }
  .hero, .hero-content { min-height: 570px; }
  .hero h1 { font-size: clamp(46px, 6vw, 65px); }
  .facts-grid { grid-template-columns: 1fr 1.25fr 1.25fr; padding-block: 16px; }
  .fact-intro { display: none; }
  .fact { padding-inline: 17px; }
  .fact-place { border: 0; }
  .about-grid { gap: 48px; }
  .about-visual { min-height: 380px; }
  .about-photo { height: 360px; }
  .legacy-grid { gap: 25px; }
  .story-intro { gap: 42px; }
  .achievement-grid, .life-feature-grid { gap: 40px; }
  .magazine-grid { gap: 22px; }
  .contact-page-grid { gap: 38px; }
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .container { width: calc(100% - 36px); }
  .topline { height: 30px; font-size: 9px; }
  .topline-note { display: none; }
  .site-header { height: 70px; }
  .brand { min-width: 0; }
  .brand img { width: 43px; height: 43px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 8px; }
  .menu-toggle { width: 39px; height: 39px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; border: 1px solid #ccd7e8; border-radius: 6px; background: white; cursor: pointer; }
  .menu-toggle span { width: 16px; height: 2px; background: var(--blue-800); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; height: auto; background: white; padding: 10px 19px 19px; box-shadow: 0 15px 26px rgba(18, 43, 91, .16); flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { padding: 10px 12px; border-bottom: 1px solid #edf0f5; border-radius: 5px; }
  .language-switch { min-height: 35px; padding: 0 8px; gap: 5px; font-size: 9px; }
  .language-globe { font-size: 14px; }
  .hero { min-height: 720px; padding-bottom: 252px; background: #f7f9fd; }
  .hero-image, .hero-shade { top: auto; bottom: 16px; width: 100%; height: 237px; border-radius: 13px; }
  .hero-image { left: 0; right: 0; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,35,82,.63), rgba(14,48,109,.08)); }
  html[dir="ltr"] .hero-image, html[dir="ltr"] .hero-shade { left: 0; right: 0; border-radius: 13px; }
  .hero-content { min-height: 470px; display: block; padding-top: 53px; }
  .hero-copy { max-width: 100%; padding: 0 0 30px; }
  .hero h1 { max-width: 520px; font-size: clamp(42px, 10.5vw, 61px); }
  .hero-description { font-size: 12px; max-width: 380px; margin: 12px 0 20px; }
  .hero-stamp { width: 73px; height: 73px; top: auto; bottom: 182px; left: auto; right: 12px; z-index: 2; }
  .stamp-ring { width: 61px; height: 61px; font-size: 6px; }
  .stamp-star { font-size: 14px; }
  html[dir="ltr"] .hero-stamp { right: 12px; left: auto; }
  .hero-caption { bottom: 53px; left: 14px; right: auto; max-width: 70%; font-size: 8px; }
  html[dir="ltr"] .hero-caption { left: 14px; right: auto; }
  .hero-bottom { bottom: 24px; left: 0; right: auto; width: 100%; padding: 0 15px; border: 0; font-size: 8px; }
  html[dir="ltr"] .hero-bottom { right: 0; left: auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; min-height: 118px; padding-block: 12px; }
  .fact { padding: 7px 10px; gap: 9px; min-height: 48px; }
  .fact:nth-child(2) { border-inline-start: 0; }
  .fact-number { font-size: 18px; }
  .fact-label { font-size: 8px; }
  .fact-label small { font-size: 7px; }
  .fact-icon { width: 26px; height: 26px; font-size: 14px; }
  .section { padding: 69px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { min-height: 305px; margin-inline: 9px 6px; }
  .about-photo { height: 289px; }
  .about-note { inset-inline-start: -8px; padding: 11px 13px; }
  .visual-label { inset-inline-start: -9px; }
  .about-copy { padding: 0; }
  h2 { font-size: 31px; }
  .body-lead { font-size: 12px; }
  .body-copy { font-size: 10px; }
  .legacy-section { padding: 52px 0 73px; }
  .legacy-grid { grid-template-columns: 1fr auto; gap: 12px 17px; }
  .legacy-grid h2 { font-size: 29px; }
  .legacy-grid > p { grid-row: 2; grid-column: 1 / -1; max-width: none; margin-top: 0; font-size: 10px; }
  .legacy-seal { grid-column: 2; grid-row: 1; width: 79px; height: 79px; font-size: 7px; }
  .legacy-seal strong { font-size: 13px; }
  .learning-section { padding-bottom: 67px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p { max-width: 100%; margin: 10px 0 0; }
  .learning-grid { grid-template-columns: 1fr; gap: 12px; }
  .learning-card { height: 315px; }
  .learning-card-copy { inset-inline: 19px; bottom: 16px; }
  .learning-card-copy h3 { font-size: 20px; }
  .culture-note { gap: 9px; align-items: flex-start; }
  .culture-note p { flex: 1; }
  .culture-year { display: none; }
  .home-gallery { padding: 52px 0; }
  .home-gallery-inner { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-gallery-inner > div:first-child { grid-column: 1 / -1; }
  .home-gallery h2 { font-size: 28px; }
  .home-gallery-photo { height: 165px; }
  .gallery-section { padding: 68px 0; }
  .gallery-heading h2 { font-size: 31px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 132px 132px; gap: 8px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
  .gallery-caption { inset-inline-start: 8px; bottom: 7px; font-size: 8px; }
  .gallery-caption b { width: 18px; height: 18px; }
  .leadership-section { padding: 69px 0; }
  .leadership-grid { grid-template-columns: 1fr; gap: 22px; }
  .leadership-intro { padding-top: 0; }
  .leadership-intro h2 { font-size: 29px; }
  .leadership-intro > p:last-of-type { max-width: none; }
  .leadership-ornament { position: absolute; left: 4px; top: 11px; font-size: 40px; margin: 0; }
  .team-photo { height: 240px; }
  .team-list { grid-column: auto; display: block; }
  .team-member { min-height: 68px; padding-inline: 0; border-bottom: 1px solid var(--line); }
  .team-footnote { margin-top: 9px; }
  .contact-section { padding: 33px 0; }
  .contact-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .contact-mark { width: 46px; height: 46px; font-size: 26px; border-radius: 12px; }
  .contact-inner h2 { font-size: 23px; }
  .contact-details { grid-column: 1 / -1; text-align: start; border-inline-start: 0; border-top: 1px solid #c6d2e7; padding: 14px 0 0; margin-top: 5px; }
  .remembrance-inner { gap: 9px; align-items: flex-start; }
  .remembrance p { flex: 1; font-size: 8px; }
  .remembrance-date { align-self: center; font-size: 8px; }
  .footer-main { min-height: 112px; gap: 12px; }
  .footer-brand { min-width: 0; gap: 6px; }
  .footer-brand img { width: 39px; height: 39px; }
  .footer-brand .brand-copy strong { font-size: 9px; }
  .footer-brand .brand-copy small { font-size: 7px; }
  .footer-main > p, .footer-links { display: none; }
  .footer-bottom .container { font-size: 7px; }
  .page-hero { min-height: 310px; }
  .page-hero-inner { padding-block: 43px; }
  .page-hero h1 { font-size: clamp(38px, 10.5vw, 53px); }
  .page-hero-inner > p:last-child { font-size: 10px; }
  .story-intro { grid-template-columns: 1fr; gap: 17px; }
  .story-intro h2 { font-size: 30px; }
  .timeline-section, .values-section { padding: 62px 0; }
  .timeline-list { margin-inline-start: 5px; padding-inline-start: 23px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 18px; }
  .timeline-dot { inset-inline-start: -30px; top: 21px; }
  .timeline-item h3 { font-size: 13px; }
  .timeline-item p { font-size: 9px; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .value-card { min-height: 195px; padding: 17px 12px; }
  .value-icon { margin-bottom: 13px; }
  .value-card h3 { font-size: 12px; }
  .value-card p { font-size: 8px; }
  .achievement-section { padding: 48px 0; }
  .magazine-section { padding: 22px 0; }
  .achievement-grid, .life-feature-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 25px; }
  .achievement-photo { height: 245px; }
  .achievement-grid h2, .life-feature-copy h2, .contact-page-copy h2 { font-size: 30px; }
  .achievement-grid > div:last-child > p:not(.eyebrow) { font-size: 10px; }
  .class-quote blockquote { font-size: 17px; }
  .life-feature { padding: 46px 0; }
  .life-feature-photo { height: 250px; }
  .life-cards-section { padding-block: 61px; }
  .life-cards { grid-template-columns: 1fr; gap: 15px; }
  .life-card-image { height: 207px; }
  .magazine-grid { grid-template-columns: 76px 1fr; gap: 14px; }
  .magazine-art { width: 76px; min-height: 76px; }
  .magazine-art span, .magazine-art i { font-size: 12px; }
  .magazine-grid h2 { font-size: 18px; }
  .life-cta-inner { align-items: end; gap: 13px; }
  .life-cta h2 { font-size: 26px; }
  .contact-page-section { padding-block: 58px; }
  .map-pattern { height: 220px; }
  .contact-bottom-inner { flex-wrap: wrap; }
  .contact-bottom-inner p { flex-basis: calc(100% - 50px); }
  .contact-bottom-inner a { margin-inline-start: 36px; }
  .memorial-section { padding: 51px 0; }
  .memorial-grid { grid-template-columns: 1fr; gap: 25px; }
  .memorial-copy h2 { font-size: 29px; }
  .memorial-text { font-size: 9px; }
  .memorial-counts { gap: 11px; flex-wrap: wrap; }
  .memorial-counts > div { min-width: 55px; padding-inline-start: 9px; }
  .memorial-counts strong { font-size: 19px; }
  .memorial-counts > small { flex: 1; max-width: none; }
  .photo-wall { grid-template-columns: 1fr 1fr; grid-auto-rows: 135px; gap: 8px; }
  .photo-tile > span { inset-inline-start: 8px; bottom: 7px; font-size: 8px; }
  .photo-wide { grid-column: span 2; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 28px); }
  .brand-copy strong { font-size: 9px; }
  .brand img { width: 38px; height: 38px; }
  .language-switch { padding: 0 7px; }
  .language-globe { display: none; }
  .hero-actions { gap: 14px; }
  .button { gap: 10px; padding: 10px 12px; font-size: 9px; }
  .text-link { font-size: 9px; }
  .fact { padding-inline: 7px; gap: 7px; }
  .fact-number { font-size: 16px; }
  .fact-label { font-size: 7px; }
  .gallery-grid { grid-template-rows: 140px 120px 120px; }
  .remembrance-date { display: none; }
  .footer-main { flex-wrap: wrap; }
}

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

/* Official school portal refinements */
:root { --paper: #fff; --ink: #1e2b3b; --muted: #596a7d; --line: #d9e0e8; }
body { background: #fff; color: var(--ink); }
.topline { height: 36px; background: #10285b; color: #e7edf6; font-size: 11px; }
.topline-note { color: #e7edf6; }
.site-header { height: 78px; box-shadow: none; backdrop-filter: none; background: #fff; border-bottom: 3px solid var(--gold); }
.brand { min-width: 225px; gap: 10px; }
.brand img { width: 50px; height: 50px; }
.brand-copy strong { font-size: 15px; color: var(--blue-950); }
.brand-copy small { font-size: 10px; }
.primary-nav { gap: 0; font-size: 12px; }
.primary-nav > a { border-radius: 0; padding: 11px 9px; color: #34445a; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--blue-950); background: #f2f5f9; }
.primary-nav > a[aria-current="page"] { color: var(--blue-950); background: transparent; box-shadow: inset 0 -2px 0 var(--gold); }
.language-switch { min-height: 36px; border-radius: 2px; background: var(--blue-950); border-color: var(--blue-950); font-size: 11px; }
.language-switch:hover { transform: none; }
.language-globe { display: none; }
.hero { min-height: 500px; background: #f4f6f9; }
.hero-content { min-height: 500px; }
.hero-image, .hero-shade { top: 0; bottom: 0; width: 43%; border-radius: 0; }
.hero-image { background-position: center; }
.hero-shade { background: linear-gradient(0deg, rgba(12, 31, 69, .42), rgba(12, 31, 69, .04)); }
.hero-copy { max-width: 520px; padding: 0 0 18px; }
.hero-eyebrow { font-size: 12px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 60px); line-height: 1.3; letter-spacing: -.025em; }
.hero-description { color: #47576a; font-size: 16px; line-height: 1.9; max-width: 490px; margin: 18px 0 24px; }
.button { border-radius: 2px; padding: 12px 16px; font-size: 12px; }
.button-gold { background: var(--blue-950); color: white; box-shadow: none; }
.button-gold:hover { background: var(--blue-800); transform: none; box-shadow: none; }
.text-link { font-size: 12px; }
.hero-stamp, .hero-caption, .hero::before { display: none; }
.hero-bottom { bottom: 14px; width: 43%; padding-inline: 18px; border-color: rgba(255,255,255,.6); font-size: 10px; }
.quick-facts { box-shadow: none; border-bottom: 1px solid var(--line); }
.facts-grid { min-height: 100px; grid-template-columns: repeat(3, 1fr); }
.fact { min-height: 54px; padding-inline: 26px; }
.fact-number { color: var(--blue-950); font-size: 20px; }
.fact-label { color: #526274; font-size: 11px; }
.fact-label small { font-size: 10px; }
.official-notices { padding: 32px 0; background: #f3f5f8; border-bottom: 1px solid var(--line); }
.official-notices-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.official-notices h2 { font-size: 25px; line-height: 1.4; }
.official-notices p:not(.eyebrow) { max-width: 740px; margin: 7px 0 0; color: #536274; font-size: 14px; line-height: 1.85; }
.official-notices .eyebrow { margin-bottom: 4px; }
.button-blue { flex: 0 0 auto; background: var(--blue-950); color: #fff; border-radius: 2px; }
.section { padding-block: 74px; }
.about-section { background: #fff; }
.about-grid { gap: 68px; }
.about-visual { min-height: 360px; padding: 0; }
.about-photo { height: 345px; border-radius: 0; box-shadow: none; }
.about-photo img { object-position: center 35%; }
.about-visual::before, .about-note, .visual-label { display: none; }
h2 { font-size: clamp(28px, 3vw, 39px); line-height: 1.4; letter-spacing: -.02em; }
.body-lead { color: #33465d; font-size: 16px; line-height: 1.95; }
.body-copy { color: #596a7d; font-size: 14px; line-height: 1.95; }
.under-link { font-size: 12px; }
.legacy-section { padding: 48px 0 60px; background: var(--blue-950); }
.legacy-section::before, .legacy-seal, .legacy-line { display: none; }
.legacy-grid { grid-template-columns: 1fr 1.2fr; gap: 32px; }
.legacy-grid h2 { font-size: 30px; }
.legacy-grid > p { max-width: 600px; font-size: 14px; line-height: 1.9; }
.learning-section { background: #f3f5f8; }
.section-heading { margin-bottom: 25px; }
.section-heading h2 { font-size: 30px; }
.section-heading > p { max-width: 420px; font-size: 13px; line-height: 1.9; color: #596a7d; }
.learning-grid { gap: 14px; }
.learning-card { height: 310px; border-radius: 0; box-shadow: none; }
.card-overlay { background: linear-gradient(0deg, rgba(13, 36, 82, .88), rgba(13,36,82,.08) 75%); }
.card-index { border-radius: 0; }
.learning-card-copy h3 { font-size: 19px; }
.learning-card-copy p { font-size: 12px; line-height: 1.75; }
.learning-card-copy > span { font-size: 10px; }
.home-gallery { padding: 55px 0; }
.home-gallery-photo { border-radius: 0; }
.page-hero { min-height: 290px; }
.page-hero::after { background: linear-gradient(270deg, rgba(13,34,80,.92), rgba(24,61,134,.67)); }
.page-hero-inner { padding-block: 40px; }
.page-hero h1 { font-size: clamp(36px, 4.2vw, 52px); line-height: 1.3; letter-spacing: -.02em; }
.page-hero-inner > p:last-child { max-width: 680px; color: #f0f3f8; font-size: 14px; line-height: 1.8; }
.eyebrow { font-size: 11px; }
.timeline-section, .values-section { background: #f3f5f8; }
.timeline-item p, .value-card p { color: #536274; font-size: 13px; line-height: 1.85; }
.timeline-item h3, .value-card h3 { font-size: 16px; }
.value-card { border-radius: 0; box-shadow: none; }
.achievement-section { background: var(--blue-950); }
.achievement-photo { border-radius: 0; box-shadow: none; }
.achievement-grid > div:last-child > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; }
.life-feature-photo, .life-card-image { border-radius: 0; box-shadow: none; }
.life-feature-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: #536274; }
.life-cards { gap: 14px; }
.life-cards article { border-radius: 0; padding: 0 0 17px; box-shadow: none; }
.life-cards article:hover { transform: none; box-shadow: none; }
.life-cards h3 { font-size: 17px; }
.life-cards p { font-size: 13px; line-height: 1.8; color: #536274; }
.magazine-section { background: #f3f5f8; border-color: var(--line); }
.magazine-art { border-radius: 0; }
.magazine-grid h2 { font-size: 22px; }
.magazine-grid > div:last-child > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: #536274; }
.contact-page-grid { align-items: center; }
.map-card { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.map-pattern { height: 280px; }
.contact-bottom { background: #f3f5f8; }
.contact-bottom-inner { gap: 18px; }
.contact-bottom-inner > span { display: none; }
.contact-bottom-inner p { font-size: 15px; }
.memorial-section { padding-block: 62px; background: #050505; color: #f4f4f4; }
.memorial-section::before { display: none; }
.memorial-section .eyebrow { color: #c8cbd0; }
.memorial-copy h2 { font-size: 32px; }
.memorial-text { font-size: 14px; line-height: 1.95; color: #d0d0d0; }
.memorial-counts strong { color: #fff; }
.site-footer { background: #0d214b; }
.footer-main { min-height: 120px; }
.footer-main > p { max-width: 350px; font-size: 13px; line-height: 1.85; color: #d6deea; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy small { color: #ccd6e6; }
.footer-brand img { border-radius: 0; }
.footer-links a { font-size: 12px; }
.footer-bottom { border-top-color: rgba(255,255,255,.15); }
.footer-bottom .container { color: #c8d2e2; font-size: 10px; }
.to-top { border-radius: 0; }
.skip-link { border-radius: 0; }
.contact-symbol, .leadership-ornament { display: none; }
.history-note span { display: none; }
.academic-contact-note { padding: 42px 0; background: #f3f5f8; border-block: 1px solid var(--line); }
.academic-contact-note .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.academic-contact-note h2 { font-size: 25px; }
.academic-contact-note p:not(.eyebrow) { max-width: 700px; margin: 7px 0 0; color: #536274; font-size: 14px; line-height: 1.85; }
.contact-photo { margin: 0; border: 1px solid var(--line); background: #fff; }
.contact-photo img { height: 320px; object-fit: cover; }
.contact-photo figcaption { padding: 11px 14px; color: #45566b; font-size: 12px; }

@media (max-width: 980px) {
  .header-inner { gap: 10px; }
  .brand { min-width: 190px; }
  .primary-nav > a { padding-inline: 6px; }
}
@media (max-width: 760px) {
  .site-header { height: 70px; }
  .primary-nav { box-shadow: 0 10px 18px rgba(16,40,91,.12); }
  .primary-nav > a { border-radius: 0; }
  .hero, .hero-content { min-height: auto; }
  .hero-content { display: block; padding-block: 48px 235px; }
  .hero-copy { max-width: 100%; padding: 0; }
  .hero-image, .hero-shade { position: relative; top: auto; bottom: auto; width: 100%; height: 230px; display: block; }
  .hero-image { position: absolute; top: auto; bottom: 0; height: 210px; }
  .hero-shade { position: absolute; top: auto; bottom: 0; height: 210px; }
  .hero-bottom { width: 100%; }
  .facts-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .fact, .fact:first-child, .fact:last-child { min-height: 55px; border-inline-start: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .fact:last-child { border-bottom: 0; }
  .official-notices-inner { display: block; }
  .official-notices .button { margin-top: 16px; }
  .academic-contact-note .container { display: block; }
  .academic-contact-note .button { margin-top: 16px; }
  .contact-photo img { height: 235px; }
  .about-grid, .legacy-grid, .story-intro, .achievement-grid, .life-feature-grid, .contact-page-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-visual { min-height: 235px; }
  .about-photo { height: 235px; }
  .legacy-grid > p { grid-row: auto; grid-column: auto; }
  .learning-card { height: 270px; }
  .memorial-grid { grid-template-columns: 1fr; }
  .footer-main { padding-block: 20px; }
}

/* Administration directory and website maintainer */
.leadership-section { background: #f3f5f8; padding-block: 76px 82px; }
.staff-section-heading { max-width: 720px; margin-bottom: 27px; }
.staff-section-heading h2 { margin: 0; font-size: clamp(30px, 3.3vw, 42px); }
.staff-section-heading > p:last-child { margin: 9px 0 0; color: #596a7d; font-size: 14px; }
.staff-photo { margin: 0 0 44px; height: 235px; position: relative; overflow: hidden; background: var(--blue-950); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.staff-photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(11,31,73,.7), transparent); }
.staff-photo figcaption { position: absolute; z-index: 1; inset-inline-start: 20px; bottom: 14px; color: #fff; font-size: 12px; }
.staff-directory { display: grid; gap: 39px; }
.staff-group-heading { display: flex; gap: 15px; align-items: center; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #d4dce6; }
.staff-section-number { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; background: var(--blue-950); color: var(--gold); font: 600 12px 'Inter', sans-serif; }
.staff-group-heading h3 { margin: 0; color: var(--blue-950); font-size: 20px; }
.staff-group-heading p { margin: 2px 0 0; color: #66778b; font-size: 12px; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.staff-card { min-height: 128px; display: flex; align-items: center; gap: 15px; padding: 20px; background: #fff; border: 1px solid #dce3eb; border-top: 3px solid #c5d0df; }
.staff-card-principal { border-top-color: var(--gold); }
.staff-number { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: #eef2f7; color: var(--blue-800); font: 600 12px 'Inter', sans-serif; }
.staff-card p { margin: 0 0 5px; color: #65758a; font-size: 12px; }
.staff-card h4 { margin: 0; color: var(--blue-950); font-size: 17px; font-weight: 700; }
.grade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grade-card { background: #fff; border: 1px solid #dce3eb; }
.grade-card-heading { padding: 17px 19px 14px; background: var(--blue-950); border-bottom: 3px solid var(--gold); }
.grade-card-heading > span { color: #e9c75f; font-size: 11px; font-weight: 700; }
.grade-card-heading h4 { margin: 3px 0 0; color: #fff; font-size: 16px; }
.grade-card ul { list-style: none; padding: 4px 19px 10px; margin: 0; }
.grade-card li { padding: 12px 0; color: #33445b; font-size: 14px; border-bottom: 1px solid #e6ebf1; }
.grade-card li:last-child { border-bottom: 0; }
.site-maintainer-section { padding: 60px 0; background: #fff; }
.maintainer-card { min-height: 220px; padding: 30px 34px; display: flex; align-items: center; gap: 26px; background: var(--blue-950); color: #fff; border-inline-start: 5px solid var(--gold); }
.maintainer-monogram { width: 118px; height: 118px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(233,185,56,.8); background: rgba(255,255,255,.06); color: var(--gold); font: 600 37px 'Inter', sans-serif; letter-spacing: .06em; direction: ltr; }
.maintainer-copy { flex: 1; }
.maintainer-copy .eyebrow { margin-bottom: 5px; }
.maintainer-copy h2 { margin: 0; color: #fff; font-size: 26px; }
.maintainer-copy > p:not(.eyebrow) { margin: 5px 0 4px; color: #d6deea; font-size: 13px; }
.maintainer-copy > strong { color: #fff; font-size: 18px; }
.maintainer-index { padding: 7px 10px; border: 1px solid rgba(255,255,255,.32); color: #e8d18b; font-size: 11px; white-space: nowrap; }
.contact-channels { display: grid; gap: 10px; margin: 20px 0 22px; }
.contact-channel { display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; background: #f5f7fa; border: 1px solid #dce3eb; }
.contact-channel-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; background: var(--blue-950); color: var(--gold); font: 600 10px 'Inter', sans-serif; }
.contact-channel > div { min-width: 0; }
.contact-channel small { display: block; color: #65758a; font-size: 11px; }
.contact-channel-value { display: inline-block; margin-top: 2px; color: var(--blue-950); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.contact-channel-actions { display: flex; gap: 14px; margin-top: 5px; }
.contact-channel-actions a { color: #365b9a; font-size: 11px; border-bottom: 1px solid #d8bd65; }
.footer-contact-info { display: grid; gap: 7px; }
.footer-contact-info a { display: flex; flex-wrap: wrap; gap: 5px 9px; color: #edf3ff; font-size: 11px; }
.footer-contact-info a span { color: #bccbe1; }
.footer-contact-info bdi { direction: ltr; }

@media (max-width: 760px) {
  .staff-photo { height: 190px; margin-bottom: 30px; }
  .staff-grid, .grade-grid { grid-template-columns: 1fr; }
  .staff-card { min-height: 96px; padding: 16px; }
  .maintainer-card { flex-wrap: wrap; gap: 18px; padding: 23px; }
  .maintainer-monogram { width: 80px; height: 80px; font-size: 27px; }
  .maintainer-index { margin-inline-start: 98px; }
  .maintainer-copy { flex-basis: calc(100% - 100px); }
  .maintainer-copy h2 { font-size: 22px; }
  .contact-channel-value { font-size: 14px; }
  .footer-contact-info { flex: 1 1 100%; margin-inline-start: 46px; }
  .footer-contact-info a { font-size: 10px; }
}
