/*
Theme Name: B S Memorial Public School
Theme URI: https://bsmemorialpublicschoolfbd.com
Author: B S Memorial Public School
Description: Custom, fast and fully editable theme for B S Memorial Public School, Faridabad. All text, images, notices, facilities, activities, gallery, parent feedback and contact details are managed from the WordPress dashboard (School Settings + content menus).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: bsmps
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--navy: #0f1c42;
	--navy-2: #182b5f;
	--navy-3: #22397a;
	--crimson: #bb1b28;
	--crimson-2: #961520;
	--gold: #e6b450;
	--gold-soft: #f6e7c4;
	--cream: #faf7f1;
	--tint: #f3f0e8;
	--paper: #ffffff;
	--ink: #161a24;
	--text: #3b4253;
	--muted: #6a7184;
	--line: #e5e0d4;
	--line-2: #d8d2c3;
	--success: #127a4a;
	--error: #b3261e;

	--font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Literata", Georgia, "Times New Roman", serif;

	--radius: 18px;
	--radius-sm: 12px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(15, 28, 66, .06), 0 2px 8px rgba(15, 28, 66, .05);
	--shadow: 0 2px 4px rgba(15, 28, 66, .04), 0 12px 32px rgba(15, 28, 66, .09);
	--shadow-lg: 0 24px 60px rgba(15, 28, 66, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--container: 1280px;
	--gutter: clamp(18px, 4vw, 32px);
	--section: clamp(64px, 9vw, 112px);
	--header-h: 84px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--crimson-2); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.narrow-form { max-width: 760px; }
.center { text-align: center; }
.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   3. Buttons & small UI
   ========================================================================== */
.btn {
	--bg: var(--navy); --fg: #fff; --bd: var(--navy);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.45em; border-radius: 999px; border: 1.5px solid var(--bd);
	background: var(--bg); color: var(--fg); font-weight: 700; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; letter-spacing: .01em;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 28, 66, .18); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --bg: var(--navy); --bd: var(--navy); }
.btn--primary:hover { --bg: var(--navy-2); }
.btn--accent { --bg: var(--crimson); --bd: var(--crimson); }
.btn--accent:hover { --bg: var(--crimson-2); --bd: var(--crimson-2); box-shadow: 0 10px 24px rgba(187, 27, 40, .3); }
.btn--outline { --bg: transparent; --fg: var(--navy); --bd: var(--line-2); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; --bd: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--sm { padding: .55em 1.1em; font-size: .85rem; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-sans); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: var(--crimson); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--gold); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--crimson); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--sm { font-size: .85rem; margin-top: .35rem; }
.link-arrow--sm .icon { width: 1em; height: 1em; }
.link-arrow--light { color: #fff; }
.pill { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2em .7em; border-radius: 999px; background: var(--crimson); color: #fff; vertical-align: middle; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips--center { justify-content: center; }
.chips li { padding: .55em 1.15em; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: .92rem; box-shadow: var(--shadow-sm); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist .icon { color: var(--crimson); margin-top: .2em; }
.stars { display: inline-flex; gap: 2px; color: var(--line-2); font-size: 1.05rem; letter-spacing: 1px; }
.stars .is-on { color: var(--gold); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__tag { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .72rem; color: var(--gold); }
.topbar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar__links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar__links a:hover { color: #fff; }
.topbar__links .icon { width: 1em; height: 1em; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 28, 66, .08); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand__logo { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.brand__sub { font-size: .66rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--crimson); margin-top: .35em; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand__sub { color: var(--gold); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.main-nav__list a { display: block; white-space: nowrap; padding: .55rem .6rem; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--ink); position: relative; }
.main-nav__list a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.main-nav__list a:hover { color: var(--crimson); }
.main-nav__list a:hover::after, .main-nav__list .current-menu-item > a::after, .main-nav__list .current_page_item > a::after { transform: scaleX(1); }
.main-nav__list .current-menu-item > a, .main-nav__list .current_page_item > a { color: var(--crimson); }
.main-nav__list .sub-menu { display: none; }
.main-nav__cta { padding: .7em 1.25em; font-size: .88rem; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff; isolation: isolate;
	background:
		radial-gradient(1200px 600px at 85% 20%, rgba(187, 27, 40, .35), transparent 60%),
		radial-gradient(900px 600px at 10% 110%, rgba(230, 180, 80, .18), transparent 60%),
		linear-gradient(135deg, #0b1533 0%, var(--navy) 45%, var(--navy-2) 100%);
	padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 150px);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 21, 51, .94) 0%, rgba(15, 28, 66, .82) 45%, rgba(15, 28, 66, .35) 100%); }
.hero__pattern, .page-hero__pattern {
	position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 70%);
	mask-image: linear-gradient(115deg, transparent 20%, #000 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero__eyebrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; }
.hero__eyebrow span { display: inline-flex; align-items: center; padding: .4em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin-bottom: 1.25rem; text-wrap: balance; }
.hero__text { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .85); max-width: 40em; }
.hero__motto { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--gold-soft); margin: 1.5rem 0 2rem; padding-left: 1rem; border-left: 3px solid var(--crimson); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__crest { position: relative; justify-self: center; width: min(400px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(230, 180, 80, .45); animation: spin 60s linear infinite; }
.hero__ring::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.hero__ring::after { content: ""; position: absolute; top: 50%; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(230, 180, 80, .2); }
.hero__disc { width: 76%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 12px rgba(255, 255, 255, .06); animation: float 7s ease-in-out infinite; }
.hero__logo { width: 66%; height: auto; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.hero__scroll::after { content: ""; width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; }
.hero__scroll:hover { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Notice board strip */
.notices { background: var(--paper); border-bottom: 1px solid var(--line); }
.notices__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; flex-wrap: wrap; }
.notices__label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--crimson); padding: .55em 1em; border-radius: 999px; margin: 0; }
.notices__label .icon { width: 1.1em; height: 1.1em; }
.notices__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex: 1; overflow-x: auto; scrollbar-width: thin; }
.notices__list li { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-weight: 600; }
.notices__list time { font-size: .78rem; font-weight: 800; color: var(--crimson); background: #fbeaec; padding: .2em .55em; border-radius: 6px; }
.notices__list a { color: var(--ink); text-decoration: none; }
.notices__list a:hover { color: var(--crimson); }
.notices .link-arrow--light { color: var(--navy); font-size: .9rem; }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.notices + .stats { margin-top: 0; padding-top: 32px; }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats__list--1 { --cols: 1; } .stats__list--2 { --cols: 2; } .stats__list--3 { --cols: 3; } .stats__list--4 { --cols: 4; }
.stats__item { padding: clamp(22px, 3vw, 34px) 20px; text-align: center; position: relative; }
.stats__item + .stats__item::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stats__value { display: block; font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--navy); line-height: 1.1; }
.stats__label { display: block; margin-top: .4rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding-block: var(--section); position: relative; }
.section--compact { padding-block: clamp(48px, 6vw, 72px); }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(135deg, #0b1533, var(--navy) 50%, var(--navy-2)); color: rgba(255, 255, 255, .86); overflow: hidden; }
.section--navy::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px); background-size: 26px 26px; opacity: .5; -webkit-mask-image: radial-gradient(circle at 80% 30%, #000, transparent 60%); mask-image: radial-gradient(circle at 80% 30%, #000, transparent 60%); pointer-events: none; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .section-intro { color: rgba(255, 255, 255, .75); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--left { margin-left: 0; margin-bottom: 1.6rem; }
.section-title { margin-bottom: .5rem; text-wrap: balance; }
.section-intro { font-size: 1.08rem; color: var(--muted); margin: .6rem 0 0; }
.section-more { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }
.sub-title { font-size: 1.45rem; margin: 2.2rem 0 1rem; }
.sub-title:first-child { margin-top: 0; }
.lead { font-size: 1.2rem; color: var(--ink); line-height: 1.65; }
.intro-block { margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }

.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--crimson); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-serif); font-style: italic; }
.prose--doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-sm); }
.prose--doc h2:first-of-type { margin-top: 0; }
.doc-date { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--muted); background: var(--tint); padding: .45em 1em; border-radius: 999px; margin-bottom: 2rem; }

/* About intro */
.about-intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-intro__text .prose { font-size: 1.08rem; margin-bottom: 2rem; }
.values-card, .est-card {
	position: relative; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
	box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.values-card::before, .est-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--navy), var(--crimson), var(--gold)); }
.values-card__logo, .est-card__logo { width: 110px; height: 110px; object-fit: contain; margin-bottom: 1.2rem; }
.values-card__lead { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); margin-bottom: 1rem; }
.values-card__list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.values-card__list li { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--navy); background: var(--tint); border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; }
.values-card__list .icon { color: var(--crimson); }
.values-card__since { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.est-card { text-align: center; }
.est-card__logo { width: 180px; height: 180px; margin-inline: auto; }
.est-card__year { font-family: var(--font-serif); font-size: 3.4rem; color: var(--navy); line-height: 1; margin: 0 0 1rem; }
.est-card__year span { display: block; font-family: var(--font-sans); font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); margin-bottom: .5rem; }
.est-card__slogan { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin: 0; }

.photo-stack { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.photo-stack__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-stack--3 .photo-stack__img:first-child { grid-row: span 2; }
.photo-stack--1 { grid-template-columns: 1fr; }

/* Feature grid (why choose us) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold); margin-bottom: 1.1rem; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Academic stages */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: stage; }
.stage { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--crimson), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.stage:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stage:hover::after { transform: scaleX(1); }
.stage__step { position: absolute; top: 18px; right: 22px; font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--tint); font-weight: 600; }
.stage__icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fbeaec; color: var(--crimson); margin-bottom: 1.2rem; }
.stage__icon .icon { width: 28px; height: 28px; }
.stage__title { font-size: 1.4rem; margin-bottom: .3rem; }
.stage__classes { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); padding: .3em .8em; border-radius: 999px; margin: .3rem 0 0; }
.stage__text { margin-top: 1rem; color: var(--muted); font-size: .98rem; }
.stage__text p:last-child { margin: 0; }

/* Cards */
.card-grid { display: grid; gap: 26px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 390px)); justify-content: center; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); }
.card__media--icon::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000); mask-image: linear-gradient(160deg, transparent 30%, #000); }
.card__icon { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: var(--gold); transition: transform .4s var(--ease), background .3s; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); background: var(--crimson); color: #fff; }
.card__icon .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.card__num { position: absolute; left: 18px; top: 16px; font-family: var(--font-serif); font-weight: 600; color: rgba(255, 255, 255, .9); font-size: .95rem; background: rgba(15, 28, 66, .55); border: 1px solid rgba(255, 255, 255, .25); padding: .2em .65em; border-radius: 999px; backdrop-filter: blur(4px); }
.card__tag { position: absolute; left: 16px; top: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--crimson); color: #fff; padding: .35em .8em; border-radius: 999px; }
.card__body { padding: 24px 26px 28px; flex: 1; }
.card__title { font-size: 1.28rem; margin-bottom: .5rem; }
.card__text { color: var(--muted); font-size: .98rem; }
.card__text p:last-child { margin: 0; }
.card__meta { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--crimson); margin-bottom: .5rem; }
.card__meta .icon { width: 1em; height: 1em; }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.leader { display: grid; grid-template-columns: 140px 1fr; gap: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; align-items: start; }
.leader__photo { position: relative; }
.leader__photo img { width: 140px; height: 170px; object-fit: cover; border-radius: var(--radius); }
.leader__initials { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold); font-family: var(--font-serif); font-size: 2.6rem; box-shadow: 0 0 0 6px var(--tint); }
.leader__body .eyebrow { margin-bottom: .6rem; }
.leader__msg { font-family: var(--font-serif); font-style: italic; color: var(--ink); font-size: 1.04rem; line-height: 1.7; }
.leader__msg p:last-child { margin-bottom: 0; }
.leader__name { margin: 1.1rem 0 0; display: flex; flex-direction: column; }
.leader__name strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }
.leader__name span { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-top: .2rem; }

.principal { position: relative; display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.principal__photo { position: relative; }
.principal__photo > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.principal__crest { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.principal__crest .principal__logo, .principal__crest img { width: 62%; height: auto; aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 50%; padding: 9%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.principal__badge { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); background: var(--crimson); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; padding: .7em 1.6em; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 24px rgba(187, 27, 40, .4); }
.principal__body .eyebrow { margin-bottom: 1.2rem; }
.principal__mark { display: block; color: var(--gold); margin-bottom: 1rem; }
.principal__mark .icon { width: 54px; height: 54px; stroke-width: 1.2; }
.principal__msg { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.7; color: #fff; }
.principal__msg p { margin-bottom: 1em; }
.section--navy .leader__name strong { color: #fff; }
.section--navy .leader__name span { color: var(--gold); }
.section--navy .link-arrow { color: var(--gold); margin-top: 1.4rem; }
.section--navy .link-arrow:hover { color: #fff; }
.section--navy .section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* Vision & mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); position: relative; overflow: hidden; }
.vm-card h2 { font-size: 1.7rem; }
.vm-card p { margin: 0; font-size: 1.04rem; }
.vm-card__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--navy); color: var(--gold); margin-bottom: 1.4rem; }
.vm-card__icon .icon { width: 30px; height: 30px; }
.vm-card--accent { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: rgba(255, 255, 255, .86); border-color: transparent; }
.vm-card--accent h2 { color: #fff; }
.vm-card--accent .vm-card__icon { background: var(--crimson); color: #fff; }

.statement { text-align: center; }
.statement__inner { max-width: 900px; }
.statement .eyebrow { justify-content: center; }
.statement__text { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ink); line-height: 1.45; margin-bottom: 1.6rem; text-wrap: balance; }
.statement .chips { justify-content: center; }

/* Quotes (feedback) */
.quote-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; display: flex; flex-direction: column; gap: .8rem; transition: transform .3s var(--ease), box-shadow .3s; }
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote-card__mark { color: var(--crimson); opacity: .9; }
.quote-card__mark .icon { width: 36px; height: 36px; stroke-width: 1.3; }
.quote-card__text { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.7; }
.quote-card__text p:last-child { margin-bottom: 0; }
.quote-card__by { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-card__by strong { display: block; color: var(--ink); }
.quote-card__by small { display: block; color: var(--muted); font-size: .85rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--font-serif); font-weight: 600; flex: none; }
.masonry { columns: 3 320px; column-gap: 26px; max-width: 1220px; margin-inline: auto; }
.masonry .quote-card { break-inside: avoid; margin-bottom: 26px; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.2rem; }
.filters__btn { border: 1px solid var(--line-2); background: var(--paper); color: var(--navy); font-weight: 700; font-size: .9rem; padding: .55em 1.2em; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filters__btn:hover { border-color: var(--navy); }
.filters__btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery__item.is-hidden, .card.is-hidden { display: none; }
.gallery__link { display: block; position: relative; }
.gallery__link img { width: 100%; transition: transform .6s var(--ease); }
.gallery__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(15, 28, 66, .65)); opacity: 0; transition: opacity .3s; }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__link:hover::after { opacity: 1; }
.gallery__zoom { position: absolute; z-index: 1; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: all .3s var(--ease); }
.gallery__link:hover .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; color: #fff; font-weight: 700; font-size: .9rem; pointer-events: none; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.gallery__item:hover figcaption { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 14, 34, .94); display: grid; place-items: center; padding: 60px 70px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-height: calc(100vh - 140px); max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--crimson); border-color: var(--crimson); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Empty state */
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 28px; background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty-state__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tint); color: var(--crimson); margin-bottom: 1.2rem; }
.empty-state__icon .icon { width: 34px; height: 34px; }
.empty-state h3 { font-size: 1.4rem; }
.empty-state p { color: var(--muted); }

/* CTA */
.cta { padding-block: clamp(56px, 7vw, 88px); background: var(--cream); }
.cta__inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; background: linear-gradient(120deg, var(--crimson-2), var(--crimson) 50%, #c9353f); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px); position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(150, 21, 32, .25); }
.cta__inner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07); }
.cta__crest { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.cta__crest:empty { display: none; }
.cta__logo { width: 70%; height: auto; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .4rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; position: relative; }
.cta .btn--accent { --bg: #fff; --fg: var(--crimson); --bd: #fff; }
.cta .btn--accent:hover { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }

/* ==========================================================================
   7. Page hero
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); background: radial-gradient(900px 500px at 90% 0%, rgba(187, 27, 40, .38), transparent 60%), linear-gradient(135deg, #0b1533, var(--navy) 55%, var(--navy-2)); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 21, 51, .92), rgba(15, 28, 66, .6)); }
.page-hero__inner { max-width: 860px; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: 50%; width: 520px; height: 520px; transform: translateY(-50%); border-radius: 50%; border: 1.5px dashed rgba(230, 180, 80, .28); box-shadow: inset 0 0 0 46px rgba(255, 255, 255, .025), inset 0 0 0 47px rgba(255, 255, 255, .08); pointer-events: none; }
.page-hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .8rem; text-wrap: balance; }
.page-hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255, 255, 255, .82); max-width: 44em; margin: 0; }
.breadcrumb ol { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--gold); }

/* ==========================================================================
   8. Forms
   ========================================================================== */
.card-form { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-form__title { font-size: 1.5rem; margin-bottom: .4rem; }
.card-form__lead { color: var(--muted); margin-bottom: 1.4rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.req { color: var(--crimson); }
.field input, .field select, .field textarea {
	width: 100%; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fdfcf9;
	transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230f1c42' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(15, 28, 66, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__error { color: var(--error); font-size: .8rem; font-weight: 600; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-alert { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.4rem; font-weight: 600; }
.form-alert .icon { margin-top: .15em; }
.form-alert.is-success { background: #e8f5ee; color: var(--success); border: 1px solid #bfe3cf; }
.form-alert.is-error { background: #fdecea; color: var(--error); border: 1px solid #f5c6c2; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 1.9rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .15s, transform .15s; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--gold); }
.rating-input label:hover { transform: scale(1.12); }
.rating-input input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Admission & contact layouts */
.admission-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.admission-split--page { grid-template-columns: 1fr 1.1fr; }
.admission-split__call { font-weight: 600; }
.admission-split__call a { font-weight: 800; color: var(--navy); }
.admission-split__form { position: sticky; top: calc(var(--header-h) + 24px); }
.section--admission { background: linear-gradient(180deg, var(--cream), var(--tint)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.steps__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.steps__item strong { color: var(--ink); }
.steps__item p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.class-list li { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.class-list__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fbeaec; color: var(--crimson); flex: none; }
.class-list strong { display: block; color: var(--ink); }
.class-list small { color: var(--muted); font-weight: 600; }
.note { display: flex; gap: .7rem; align-items: flex-start; margin: 1.8rem 0 0; padding: 1rem 1.2rem; border-radius: 14px; background: var(--gold-soft); color: #6b4d0e; font-size: .92rem; font-weight: 600; }
.note .icon { margin-top: .15em; }
.help-box { margin-top: 1.8rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .86); }
.help-box h3 { color: #fff; font-size: 1.15rem; }
.help-box p { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 0; flex-wrap: wrap; }
.help-box a { color: #fff; font-weight: 700; text-decoration: none; }
.help-box a:hover { color: var(--gold); }
.help-box .icon { color: var(--gold); }
.board-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .6em 1.2em; border-radius: 999px; background: var(--navy); color: #fff; font-size: .92rem; margin-bottom: 1.4rem; }
.board-badge .icon { color: var(--gold); }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 26px; }
.contact-info--wide.has-map { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
.contact-info--wide:not(.has-map) .contact-list { grid-template-columns: 1.45fr 1fr 1fr 1.35fr; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.contact-list__item:hover { border-color: transparent; box-shadow: var(--shadow); }
.contact-list__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.contact-list__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list__value { display: block; color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list__value a { color: var(--ink); text-decoration: none; }
.contact-list__value a:hover { color: var(--crimson); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--tint); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Notices list */
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notice-list__item { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.notice-list__item.is-important { border-left: 4px solid var(--crimson); }
.notice-list__date { flex: none; width: 74px; text-align: center; background: var(--tint); border-radius: 12px; padding: .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.notice-list__date span { display: block; font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.1; color: var(--navy); }
.notice-list__title { font-size: 1.2rem; margin-bottom: .3rem; }
.notice-list__title a { color: var(--ink); text-decoration: none; }
.notice-list__title a:hover { color: var(--crimson); }
.notice-list__item p { margin: 0; color: var(--muted); font-size: .96rem; }
.nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.nav-links .page-numbers { padding: .5em .95em; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; }
.nav-links .current { background: var(--navy); color: #fff; }

/* 404 */
.error-404 { padding-block: clamp(80px, 12vw, 160px); }
.error-404__code { font-family: var(--font-serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--crimson); margin: 0 0 1rem; }
.error-404__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: #0a1330; color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 8vw, 88px); font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy-3), var(--crimson), var(--gold)); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 6vw, 64px); }
.site-footer .brand__logo { width: 64px; height: 64px; }
.site-footer__brand > p { margin: 1.3rem 0 0; }
.site-footer__motto { font-family: var(--font-serif); font-style: italic; color: var(--gold-soft); }
.site-footer__title { font-family: var(--font-sans); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: .6rem 0 1.3rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer__links a, .site-footer__contact a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .2s, padding .2s; }
.site-footer__links a:hover { color: var(--gold); padding-left: 4px; }
.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.site-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.site-footer__contact .icon { color: var(--gold); margin-top: .25em; width: 1.1em; height: 1.1em; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__social { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; gap: .5rem; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.site-footer__social a:hover { background: var(--crimson); border-color: var(--crimson); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

.mobile-actions { display: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 12px 30px rgba(31, 168, 85, .4); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ==========================================================================
   10. Motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1320px) {
	.main-nav__list a { padding: .55rem .45rem; font-size: .85rem; }
	.main-nav { gap: .8rem; }
	.brand__name { font-size: 1.18rem; }
}
@media (max-width: 1200px) {
	:root { --header-h: 74px; }
	.contact-info--wide:not(.has-map) .contact-list { grid-template-columns: 1fr 1fr; }
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 99;
		border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 28, 66, .12);
		flex-direction: column; align-items: stretch; gap: 1.2rem; background: #fff;
		padding: 18px var(--gutter) 120px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease);
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav__list li { border-bottom: 1px solid var(--line); }
	.main-nav__list a { padding: 1rem .2rem; font-size: 1.05rem; }
	.main-nav__list a::after { display: none; }
	.main-nav__cta { padding: 1em; font-size: 1rem; }
	.site-header { position: sticky; }
	.admin-bar { --adminbar: 32px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.principal { grid-template-columns: 280px 1fr; }
}
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; text-align: left; }
	.hero__crest { order: -1; width: 220px; justify-self: start; }
	.about-intro__grid, .admission-split, .admission-split--page, .contact-split, .vm-grid { grid-template-columns: 1fr; }
	.admission-split__form { position: static; }
	.contact-info--wide.has-map { grid-template-columns: 1fr; }
	.stats__list--4 { --cols: 2; }
	.stats__list--4 .stats__item:nth-child(3)::before { display: none; }
	.stats__list--4 .stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.principal { grid-template-columns: 1fr; }
	.principal__photo { max-width: 320px; margin-inline: auto; width: 100%; }
	.cta__inner { grid-template-columns: 1fr; text-align: center; }
	.cta__crest { margin-inline: auto; }
	.cta__actions { justify-content: center; }
	.leader { grid-template-columns: 1fr; text-align: center; }
	.leader__photo { justify-self: center; }
	.leader .eyebrow { justify-content: center; }
}
@media (max-width: 782px) {
	.admin-bar { --adminbar: 46px; }
	.admin-bar .site-header { top: 0; }
	.topbar__tag { display: none; }
	.topbar__inner { justify-content: center; }
	.hide-sm { display: none !important; }
}
@media (max-width: 640px) {
	body { font-size: 1rem; padding-bottom: 66px; }
	.contact-info--wide:not(.has-map) .contact-list { grid-template-columns: 1fr; }
	.brand__logo { width: 48px; height: 48px; }
	.brand__name { font-size: 1.05rem; }
	.brand__sub { font-size: .58rem; letter-spacing: .26em; }
	.card-grid--3 { grid-template-columns: 1fr; }
	.form__grid { grid-template-columns: 1fr; }
	.stats { margin-top: -40px; }
	.stats__list--3 { --cols: 1; }
	.stats__list--3 .stats__item + .stats__item::before { display: none; }
	.stats__list--3 .stats__item + .stats__item { border-top: 1px solid var(--line); }
	.values-card__list { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.hero__crest { width: 170px; }
	.hero__scroll { display: none; }
	.gallery { columns: 2 140px; column-gap: 10px; }
	.gallery__item { margin-bottom: 10px; }
	.lightbox { padding: 60px 12px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 14px; }
	.notice-list__item { flex-direction: column; }
	.notices__inner { gap: .8rem; }
	.mobile-actions {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff;
		border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 28, 66, .08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		gap: 8px;
	}
	.mobile-actions a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 12px; text-decoration: none; color: var(--navy); font-size: .74rem; font-weight: 800; }
	.mobile-actions a.is-primary { background: var(--crimson); color: #fff; flex: 1.4; flex-direction: row; justify-content: center; gap: .5rem; font-size: .9rem; }
	.mobile-actions .icon { width: 22px; height: 22px; }
	.wa-float { display: none; }
}

@media print {
	.topbar, .site-header, .site-footer, .mobile-actions, .wa-float, .cta, .hero__crest { display: none !important; }
	.page-hero, .hero { background: none !important; color: #000; padding: 1rem 0; }
	.page-hero__title, .hero__title { color: #000; }
}


/* ==========================================================================
   12. Typography & text-layout refinements (content audit)
   ========================================================================== */

/* Keep the school name together on one line wherever space allows. */
@media (min-width: 641px) {
	.u-keep { white-space: nowrap; }
}

/* Home hero heading: "Welcome to" on its own line, school name on one line. */
.hero__content { container-type: inline-size; min-width: 0; }
.hero__title { font-size: clamp(2.25rem, 7.3cqi, 4.2rem); line-height: 1.1; }
.hero__title-lead,
.hero__title-name { display: block; }
.hero__title-name { white-space: nowrap; }
@container (max-width: 490px) {
	.hero__title-name { white-space: normal; }
}
@supports not (container-type: inline-size) {
	.hero__title { font-size: clamp(2.25rem, 4.4vw, 4.2rem); }
	.hero__title-name { white-space: normal; }
}

/* Header "Admission Enquiry" button: never break onto two lines. */
.main-nav__cta { white-space: nowrap; flex: none; }

/* Long email addresses and links wrap cleanly instead of overflowing. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.help-box p > a { min-width: 0; overflow-wrap: anywhere; }
.contact-list__value { word-break: normal; overflow-wrap: anywhere; }

/* Contact cards (no map): two even columns so details are not squeezed. */
.contact-info--wide:not(.has-map) .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Single-column layouts must never grow wider than the screen. */
@media (max-width: 900px) {
	.about-intro__grid, .admission-split, .admission-split--page, .contact-split, .vm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.contact-info--wide:not(.has-map) .contact-list { grid-template-columns: minmax(0, 1fr); }
}

/* Header navigation: a little tighter so all items and the button fit on one row. */
.main-nav { gap: 1rem; }
.main-nav__list a { padding: .55rem .5rem; }
.main-nav__list a::after { left: .5rem; right: .5rem; }
@media (max-width: 1320px) {
	.main-nav__list a { padding: .55rem .45rem; }
	.main-nav__list a::after { left: .45rem; right: .45rem; }
	.main-nav { gap: .8rem; }
}
@media (max-width: 1200px) {
	.main-nav__list a { padding: 1rem .2rem; }
}

/* Button labels stay on one line; large buttons get slimmer padding on small phones. */
.btn { white-space: nowrap; }
@media (max-width: 400px) {
	.btn--lg { padding-inline: 1.3em; }
}

/* Leadership cards: never wider than a small phone screen. */
.leaders { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

/* "Need help with admissions" box: icon beside text, numbers never split. */
.help-box p { display: block; position: relative; padding-left: 1.75em; }
.help-box p > svg { position: absolute; left: 0; top: .2em; }
.help-box a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 640px) {
	.help-box { padding: 1.25rem; }
	.help-box a[href^="mailto:"] { font-size: .86rem; }
}


/* ==========================================================================
   13. Floating WhatsApp chat button
   ========================================================================== */
.wa-float {
	--wa: #25d366;
	right: 24px;
	bottom: 24px;
	z-index: 96;
	width: 60px;
	height: 60px;
	background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%23fff%27 d=%27M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z%27/%3E%3C/svg%3E") center / 32px 32px no-repeat;
	box-shadow: 0 10px 26px rgba(37, 211, 102, .38), 0 2px 6px rgba(0, 0, 0, .12);
	text-decoration: none;
	animation: wa-pulse 2.8s ease-out 1.5s infinite;
	transition: transform .25s var(--ease), background-color .2s;
}
.wa-float > svg { display: none; }
.wa-float:hover,
.wa-float:focus-visible { background-color: #1ebe5b; transform: translateY(-3px) scale(1.05); animation-play-state: paused; }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Tooltip */
.wa-float::before,
.wa-float::after {
	position: absolute;
	top: 50%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.wa-float::after {
	content: "Chat with us";
	right: calc(100% + 14px);
	transform: translate(6px, -50%);
	padding: .5rem .85rem;
	border-radius: 10px;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-sans, inherit);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 8px 22px rgba(15, 28, 66, .2);
}
.wa-float::before {
	content: "";
	right: calc(100% + 8px);
	transform: translate(6px, -50%) rotate(45deg);
	width: 10px;
	height: 10px;
	background: var(--navy);
}
.wa-float:hover::before,
.wa-float:hover::after,
.wa-float:focus-visible::before,
.wa-float:focus-visible::after { opacity: 1; visibility: visible; }
.wa-float:hover::after,
.wa-float:focus-visible::after { transform: translate(0, -50%); }
.wa-float:hover::before,
.wa-float:focus-visible::before { transform: translate(0, -50%) rotate(45deg); }

/* Show the tooltip once shortly after the page loads (helps touch screens). */
.wa-float::after { animation: wa-tip 4.5s ease 2s 1 none; }
.wa-float::before { animation: wa-tip 4.5s ease 2s 1 none; }

@keyframes wa-pulse {
	0%   { box-shadow: 0 10px 26px rgba(37, 211, 102, .38), 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 0 rgba(37, 211, 102, .5); }
	70%  { box-shadow: 0 10px 26px rgba(37, 211, 102, .38), 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 10px 26px rgba(37, 211, 102, .38), 0 2px 6px rgba(0, 0, 0, .12), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes wa-tip {
	0%, 100% { opacity: 0; visibility: hidden; }
	10%, 85% { opacity: 1; visibility: visible; }
}

/* Keep footer text clear of the button. */
.site-footer__bottom-inner { padding-right: 76px; }

/* Hide while the mobile menu is open. */
.nav-open .wa-float { opacity: 0; visibility: hidden; }

@media (max-width: 640px) {
	/* Sit just above the mobile action bar instead of covering it. */
	.wa-float {
		display: grid;
		right: 16px;
		bottom: calc(74px + 14px + env(safe-area-inset-bottom));
		width: 54px;
		height: 54px;
		background-size: 29px 29px;
	}
	/* The floating button replaces the duplicate WhatsApp link in the bar. */
	.mobile-actions a[href*="wa.me"] { display: none; }
	.site-footer__bottom-inner { padding-right: 0; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-float, .wa-float::before, .wa-float::after { animation: none !important; }
}

/* ==========================================================================
   14. Instagram Reels & Posts (home page)
   ========================================================================== */
.ig-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 40px); padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.ig-tabs__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.4rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .95rem; font-weight: 800; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ig-tabs__btn .icon { width: 18px; height: 18px; flex: none; }
.ig-tabs__btn:hover { color: var(--navy); }
.ig-tabs__btn.is-active { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(15, 28, 66, .2); }
.ig-tabs__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ig-tabs__count { min-width: 1.7em; padding: .15em .5em; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .74rem; line-height: 1.3; text-align: center; }
.ig-tabs__btn.is-active .ig-tabs__count { background: rgba(255, 255, 255, .18); color: #fff; }

.ig-panel { animation: ig-fade .35s var(--ease); }
.ig-panel[hidden] { display: none; }
@keyframes ig-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ig-panel__empty { max-width: 560px; margin: 0 auto; padding: 2rem 1.25rem; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ig-card { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ig-card--reel { aspect-ratio: 9 / 16; }
.ig-card:hover, .ig-card:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ig-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ig-card__media, .ig-card__img, .ig-card__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.ig-card__img { object-fit: cover; transition: transform .6s var(--ease); }
.ig-card:hover .ig-card__img { transform: scale(1.06); }
.ig-card__placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.ig-card__placeholder .icon { width: 34%; max-width: 72px; height: auto; color: rgba(255, 255, 255, .92); stroke-width: 1.4; }
.ig-card--reel .ig-card__placeholder .icon { display: none; }
.ig-card__badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(15, 28, 66, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ig-card__badge .icon { width: 18px; height: 18px; }
.ig-card__play { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.ig-card__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.ig-card:hover .ig-card__play, .ig-card:focus-visible .ig-card__play { transform: scale(1.1); background: var(--crimson); border-color: var(--crimson); }
.ig-card__overlay { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: 2.8rem .95rem .95rem; background: linear-gradient(to top, rgba(8, 14, 34, .9), rgba(8, 14, 34, 0)); }
.ig-card__caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.ig-card__cta { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ig-card__cta .icon { width: 15px; height: 15px; flex: none; }
.ig-card--post .ig-card__overlay { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.ig-card--post:hover .ig-card__overlay, .ig-card--post:focus-visible .ig-card__overlay { opacity: 1; transform: none; }
.ig-feed .section-more .btn .icon { width: 1.15em; height: 1.15em; }

@media (hover: none) {
	.ig-card--post .ig-card__overlay { opacity: 1; transform: none; }
}
@media (max-width: 1024px) {
	.ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ig-tabs { width: 100%; }
	.ig-tabs__btn { flex: 1; padding: .65rem .75rem; }
	.ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ig-card { border-radius: var(--radius-sm); }
	.ig-card__badge { top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; }
	.ig-card__badge .icon { width: 15px; height: 15px; }
	.ig-card__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
	.ig-card__play .icon { width: 20px; height: 20px; }
	.ig-card__overlay { padding: 2rem .65rem .65rem; gap: .3rem; }
	.ig-card__caption { font-size: .8rem; }
	.ig-card__cta { font-size: .62rem; letter-spacing: .02em; }
	.ig-card--reel .ig-card__cta { display: none; }
	.ig-card--post .ig-card__caption { display: none; }
}
@media (max-width: 400px) {
	.ig-card--post .ig-card__cta { font-size: 0; gap: 0; }
	.ig-card--post .ig-card__cta .icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ig-panel { animation: none; }
}


/* Highlight figures: four stats in a 2 × 2 grid on phones – keep each figure on one line. */
@media (max-width: 640px) {
	.stats__list--4 .stats__item { padding-inline: 10px; }
	.stats__list--4 .stats__value { font-size: clamp(1.35rem, 6.4vw, 1.8rem); white-space: nowrap; }
}


/* ==========================================================================
   15. Phones: "Enquire Now" in the header, Call-only bottom bar
   ========================================================================== */
.header-enquire { display: none; }
@media (max-width: 640px) {
	.site-header__inner { gap: .6rem; }
	.brand { min-width: 0; }
	.header-enquire { display: inline-flex; flex: none; margin-left: auto; padding: .62em 1.05em; font-size: .82rem; box-shadow: 0 6px 16px rgba(187, 27, 40, .22); }
	.header-enquire + .nav-toggle { margin-left: 0; }

	/* Bottom bar: Call only, as one clean full-width button. */
	.mobile-actions a.is-primary { display: none; }
	.mobile-actions a[href^="tel:"] { flex-direction: row; justify-content: center; gap: .55rem; padding: 11px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .95rem; }
	.mobile-actions a[href^="tel:"] .icon { width: 20px; height: 20px; }
	.wa-float { bottom: calc(66px + 14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
	.site-header__inner { gap: .45rem; }
	.brand { gap: .5rem; }
	.brand__logo { width: 42px; height: 42px; }
	.brand__name { font-size: .96rem; }
	.brand__sub { font-size: .52rem; letter-spacing: .2em; }
	.header-enquire { padding: .58em .85em; font-size: .76rem; }
	.nav-toggle { width: 42px; height: 42px; }
}

@media (max-width: 340px) {
	.site-header__inner { gap: .35rem; }
	.brand { gap: .4rem; }
	.brand__logo { width: 38px; height: 38px; }
	.brand__name { font-size: .9rem; }
	.brand__sub { font-size: .5rem; letter-spacing: .16em; }
	.header-enquire { padding: .55em .72em; font-size: .72rem; }
	.nav-toggle { width: 40px; height: 40px; }
}
