/*
Theme Name: Tomorrow School
Theme URI: https://example.com/tomorrow-school
Author: Will
Description: Custom theme for Tomorrow School, an after-school STEM and business program in Yangon. Homepage sections for programs, student highlights, class photos, news and partners, plus a built-in enrollment enquiry form. Edit content in Appearance > Customize > School Settings. Works with Elementor.
Version: 1.9.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomorrow-school
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Brand colours: change these to restyle the whole site */
	--brand: #004aad;        /* Tomorrow School blue: headings, links, banners */
	--brand-deep: #002b64;   /* darker shade of the brand blue: dark sections */
	--accent: #f59e1b;       /* sunrise orange: buttons, highlights */
	--accent-dark: #d9840a;
	--tint: #edf2f9;         /* light tint of the brand blue: section backgrounds */
	--ink: #141b33;          /* body text and footer */
	--slate: #545c75;        /* secondary text */
	--line: #d6e2f2;

	/* One colour per program, in the order chosen in the Customizer */
	--program-1: #1f9d8a;    /* Coding */
	--program-2: #f59e1b;    /* Young CEO */
	--program-3: #3a9d4a;    /* Money Master */

	--white: #ffffff;

	--font-display: "Gabarito", "Noto Sans Myanmar", system-ui, sans-serif;
	--font-body: "Figtree", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1200px;
	--radius: 14px;
	--arch: 999px 999px 16px 16px;
	--section-y: clamp(4rem, 8vw, 7rem);
	--header-h: 76px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

/* Burmese script needs extra vertical room for stacked characters */
:lang(my) body, body:lang(my) { line-height: 1.9; }

img { max-width: 100%; height: auto; vertical-align: middle; }
:where(.hero-arch, .programme-media, .achiever-portrait, .campus-item, .card-media, .charity-media, .single-featured) img { display: block; }

a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.6em;
	color: inherit;
}
h1 { font-size: clamp(2.4rem, 3.6vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   3. Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border: 2px solid transparent; border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
/* Main buttons (Enroll now, Send enquiry): brand blue with white text */
.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-deep); color: #fff; }
/* On blue backgrounds they flip to white with blue text */
.cta .btn-accent, .section-dark .btn-accent { background: #fff; color: var(--brand); }
.cta .btn-accent:hover, .section-dark .btn-accent:hover { background: var(--tint); color: var(--brand-deep); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-light:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.link-more {
	font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap;
	border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link-more:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.section-dark .link-more { color: #fff; }
.section-dark .link-more:hover { border-bottom-color: #fff; }

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--brand); color: #fff;
	transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(0, 43, 100, 0.25); }
.site-header :focus-visible { outline-color: #fff; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	min-height: var(--header-h);
}
.brand a { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.2; color: #fff; text-decoration: none; }
.brand img { max-height: 56px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; gap: 1.75rem; }
.primary-nav .menu li { position: relative; }
.primary-nav .menu a {
	display: block; position: relative; padding: 0.4rem 0;
	color: #fff; text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.primary-nav .menu > li > a:hover::after,
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after,
.primary-nav .menu > .current_page_item > a::after { transform: scaleX(1); }

.primary-nav .menu-item-has-children > a,
.primary-nav .page_item_has_children > a { padding-right: 1rem; }
.primary-nav .menu-item-has-children > a::before,
.primary-nav .page_item_has_children > a::before {
	content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px;
	border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-70%) rotate(45deg);
}

.primary-nav .sub-menu,
.primary-nav .children {
	position: absolute; top: 100%; left: -1rem; min-width: 230px; padding: 0.5rem;
	background: #fff; border: 1px solid var(--line); border-radius: 10px;
	box-shadow: 0 14px 32px rgba(0, 43, 100, 0.12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children, .primary-nav li:focus-within > .children {
	opacity: 1; visibility: visible; transform: none;
}
.primary-nav .sub-menu a, .primary-nav .children a { padding: 0.55rem 0.75rem; border-radius: 6px; color: var(--ink); }
.primary-nav .sub-menu a:hover, .primary-nav .children a:hover { background: var(--tint); }

/* Top bar above the menu: contact details left, social icons right */
.topbar { background: var(--brand-deep); color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.topbar-contact a { color: inherit; text-decoration: none; white-space: nowrap; }
.topbar-contact a:hover { color: #fff; text-decoration: underline; }
.topbar .social-top { margin-left: auto; gap: 0.2rem; }
.topbar .social-top a { width: 34px; height: 34px; background: transparent; color: #fff; }
.topbar .social-top a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.topbar .social-top svg { width: 18px; height: 18px; }
.topbar :focus-visible { outline-color: #fff; }
@media (max-width: 640px) {
	.topbar-email { display: none; }
	.topbar { font-size: 0.85rem; }
	.topbar .social-top { gap: 0; }
	.topbar .social-top a { width: 30px; height: 30px; }
	.topbar .social-top svg { width: 16px; height: 16px; }
}

/* Enroll button in the blue header: white with blue text */
.site-header .btn-accent { background: #fff; color: var(--brand); }
.site-header .btn-accent:hover { background: var(--tint); color: var(--brand-deep); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; padding: 0; cursor: pointer;
		background: none; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 10px; color: #fff;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
		position: relative; transition: transform 0.2s, background-color 0.2s;
	}
	.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bar::before { top: -6px; }
	.nav-toggle-bar::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		padding: 0.5rem 1.25rem 2rem; background: var(--brand); border-top: 1px solid rgba(255, 255, 255, 0.18);
		box-shadow: 0 14px 24px rgba(0, 43, 100, 0.25);
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
	.primary-nav .menu a { padding: 0.9rem 0; font-size: 1.05rem; }
	.primary-nav .menu > li > a::after,
	.primary-nav .menu-item-has-children > a::before,
	.primary-nav .page_item_has_children > a::before { display: none; }
	.primary-nav .sub-menu, .primary-nav .children {
		position: static; min-width: 0; padding: 0 0 0.6rem 1rem;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
	}
	.primary-nav .sub-menu, .primary-nav .children { background: transparent; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 0.5rem 0; color: rgba(255, 255, 255, 0.8); }
	.primary-nav .sub-menu a:hover, .primary-nav .children a:hover { background: transparent; color: #fff; }
	.header-cta { margin-top: 1.5rem; }
	body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   5. Hero (the one signature moment: arched photo + load sequence)
   ========================================================================== */
.hero { background: var(--tint); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero-title {
	font-size: clamp(2.75rem, 4.6vw + 1rem, 4.75rem); font-weight: 800; line-height: 1;
	letter-spacing: -0.03em; color: var(--brand); max-width: 13ch; margin-bottom: 0.45em;
}
.hero-text { font-size: 1.2rem; color: var(--slate); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-media { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.hero-media::before {
	content: ""; position: absolute; inset: -18px 18px 18px -18px;
	border: 2px solid var(--accent); border-radius: var(--arch);
}
/* The arch reads as a sun rising behind the photo: Tomorrow School's motif */
.hero-media::after {
	content: ""; position: absolute; z-index: -1; right: -12%; top: -10%;
	width: 58%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 158, 27, 0.35) 0%, rgba(245, 158, 27, 0) 70%);
}
.hero-media { isolation: isolate; }
.hero-arch {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: var(--arch); background: var(--brand);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch.is-empty { background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand) 60%, var(--accent) 130%); }

.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-arch { animation: reveal 1s cubic-bezier(0.6, 0, 0.2, 1) 0.1s both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* --------------------------------------------------------------------------
   5b. Abstract hero: futuristic headline, animated sunrise, floating programs
   -------------------------------------------------------------------------- */
.hero-abstract {
	--hero-line: #7cc4ff;
	--hero-hl-1: #7cc4ff;
	--hero-hl-2: #ffffff;
	--hero-hl-3: #ffb347;
	position: relative; isolation: isolate;
	padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero-dark { background: radial-gradient(120% 90% at 85% 100%, var(--brand) 0%, var(--brand-deep) 55%, #041634 100%); color: #fff; }
.hero-light {
	--hero-line: var(--brand);
	--hero-hl-1: var(--brand);
	--hero-hl-2: #1fb6ff;
	--hero-hl-3: var(--accent);
	background: radial-gradient(110% 90% at 85% 100%, #ffffff 0%, var(--tint) 60%);
}

/* Dot grid that fades out towards the edges */
.hero-bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1.5px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero-light .hero-bg { background-image: radial-gradient(circle, rgba(0, 74, 173, 0.16) 1px, transparent 1.5px); }

.hero-abstract .hero-grid { grid-template-columns: 1.1fr 0.9fr; }

.hero-kicker {
	display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.5rem;
	padding: 0.4rem 0.9rem; border-radius: 999px;
	font: 500 0.85rem/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.02em;
	border: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85);
}
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-light .hero-kicker { border-color: var(--line); color: var(--slate); background: #fff; }

.hero-abstract .hero-title {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); line-height: 1.02; letter-spacing: -0.03em;
	max-width: 14ch; color: #fff;
}
.hero-light .hero-title { color: var(--brand); }

/* The highlighted word: a slow colour sweep, like light moving across the horizon */
.hero-hl {
	background: linear-gradient(90deg, var(--hero-hl-1), var(--hero-hl-2), var(--hero-hl-3), var(--hero-hl-1));
	background-size: 300% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	animation: hero-sheen 7s linear infinite;
}
@keyframes hero-sheen { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }

/* Blinking code cursor after the headline */
.hero-cursor {
	display: inline-block; width: 0.09em; height: 0.82em; margin-left: 0.12em;
	vertical-align: -0.04em; background: var(--accent); border-radius: 2px;
	animation: hero-blink 1.1s steps(1) infinite;
}
@keyframes hero-blink { 50% { opacity: 0; } }

.hero-dark .hero-text { color: rgba(255, 255, 255, 0.78); }
.hero-dark .btn-accent { background: #fff; color: var(--brand); }
.hero-dark .btn-accent:hover { background: var(--tint); color: var(--brand-deep); }
.hero-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero-dark .btn-outline:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }
.hero-dark :focus-visible { outline-color: #fff; }

/* Right-hand artwork */
.hero-visual { position: relative; width: 100%; max-width: 540px; justify-self: end; }
.hero-sun { display: block; width: 100%; height: auto; overflow: visible; }
.hero-floor { opacity: 0.28; stroke-width: 1; }
.hero-light .hero-floor { opacity: 0.18; }

.hero-arc { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: hero-draw 1.8s cubic-bezier(0.6, 0, 0.2, 1) var(--d, 0s) forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }

.hero-sundisc { transform-box: fill-box; transform-origin: 50% 100%; animation: hero-rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
@keyframes hero-rise { from { transform: translateY(60%) scaleY(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.hero-glow { transform-box: fill-box; transform-origin: center; animation: hero-pulse 5s ease-in-out infinite; }
@keyframes hero-pulse { 50% { transform: scale(1.12); opacity: 0.75; } }

.hero-orbit { transform-origin: 240px 330px; }
.hero-orbit-1 { animation: hero-spin 14s linear infinite; }
.hero-orbit-2 { animation: hero-spin 22s linear infinite reverse; }
@keyframes hero-spin { to { transform: rotate(360deg); } }

/* Floating program cards: outer layer follows the mouse, inner layer drifts */
.hero-chip { position: absolute; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-chip-1 { top: 4%; left: 2%; }
.hero-chip-2 { top: 26%; right: -2%; }
.hero-chip-3 { top: 52%; left: -4%; }
.hero-chip-inner {
	display: inline-flex; align-items: center; gap: 0.6rem;
	padding: 0.55rem 1rem 0.55rem 0.55rem; border-radius: 14px;
	font: 600 0.95rem/1.2 var(--font-body); white-space: nowrap;
	background: rgba(255, 255, 255, 0.08); color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	animation: hero-float 6s ease-in-out infinite, rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-chip-1 .hero-chip-inner { animation-delay: 0s, 0.6s; }
.hero-chip-2 .hero-chip-inner { animation-delay: -2s, 0.75s; }
.hero-chip-3 .hero-chip-inner { animation-delay: -4s, 0.9s; }
@keyframes hero-float { 50% { transform: translateY(-10px); } }
.hero-light .hero-chip-inner { background: rgba(255, 255, 255, 0.85); color: var(--ink); border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 43, 100, 0.12); }

.hero-chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; }
.hero-chip-1 .hero-chip-icon { background: var(--program-1); }
.hero-chip-2 .hero-chip-icon { background: var(--program-2); }
.hero-chip-3 .hero-chip-icon { background: var(--program-3); }
.hero-chip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
	.hero-abstract .hero-grid { grid-template-columns: 1fr; }
	.hero-visual { justify-self: center; max-width: 440px; margin-top: 1rem; }
	.hero-chip-inner { font-size: 0.85rem; }
}
@media (max-width: 640px) {
	.hero-chip-1 { left: 0; }
	.hero-chip-2 { right: 0; }
	.hero-chip-3 { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-arc { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   5c. Full-width hero (default): big headline bottom-left, buttons bottom-right
   -------------------------------------------------------------------------- */
.hero-full {
	--hero-line: #7cc4ff;
	--hero-hl-1: #7cc4ff;
	--hero-hl-2: #ffffff;
	--hero-hl-3: #ffb347;
	position: relative; isolation: isolate;
	display: flex; align-items: flex-end;
	min-height: clamp(560px, calc(100vh - 118px), 900px);
	padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-full-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-full-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full .hero-bg { z-index: 0; }

/* Shade keeps the text readable: darker bottom-left, like the reference */
.hero-full-shade {
	position: absolute; inset: 0;
	background:
		radial-gradient(90% 70% at 0% 100%, rgba(4, 22, 52, 0.85) 0%, rgba(4, 22, 52, 0.4) 45%, rgba(4, 22, 52, 0) 75%),
		linear-gradient(0deg, rgba(4, 22, 52, 0.35) 0%, rgba(4, 22, 52, 0) 30%);
}
.hero-full.has-photo .hero-full-shade {
	background:
		linear-gradient(0deg, rgba(4, 22, 52, 0.9) 0%, rgba(4, 22, 52, 0.45) 45%, rgba(4, 22, 52, 0.35) 100%),
		linear-gradient(90deg, rgba(4, 22, 52, 0.45) 0%, rgba(4, 22, 52, 0) 60%);
}

.hero-full-inner {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
	gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end;
}
.hero-full .hero-title {
	margin: 0; color: #fff;
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(2.9rem, 6.2vw, 6.6rem); line-height: 0.98; letter-spacing: -0.035em;
	max-width: 12ch;
	animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-full .hero-side { justify-self: end; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.hero-full .hero-text { color: rgba(255, 255, 255, 0.88); font-size: 1.2rem; max-width: 34ch; margin-bottom: 1.5rem; }
.hero-full .hero-actions { margin-top: 0; }
.hero-full .btn { padding: 0.95rem 1.7rem; font-size: 1.05rem; }

/* Highlight word: light sweep plus a hand-drawn swash that draws itself */
.hero-hl-wrap { position: relative; display: inline-block; white-space: nowrap; }
.hero-full .hero-hl { padding-bottom: 0.06em; }
.hero-swash {
	position: absolute; left: -2%; right: -4%; bottom: -0.2em;
	width: 106%; height: 0.36em; overflow: visible; pointer-events: none;
}
.hero-swash path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 1.2s cubic-bezier(0.6, 0, 0.2, 1) 0.9s forwards; }

.hero-orbit-full { transform-origin: 1040px 620px; }
.hero-orbit-3 { animation: hero-spin 34s linear infinite; }

@media (max-width: 960px) {
	.hero-full { min-height: clamp(520px, 80vh, 760px); }
	/* Keep the sun in view on narrow screens: place it at 72% across */
	.hero-full-art {
		inset: 0 auto auto 70%; width: auto; height: 62%; aspect-ratio: 1440 / 800; transform: translateX(-72.2%);
		-webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
	}
	.hero-full .hero-bg { bottom: 38%; }
	.hero-full-inner { grid-template-columns: 1fr; }
	.hero-full .hero-side { justify-self: start; }
	.hero-full .hero-title { max-width: 11ch; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-swash path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section-mist { background: var(--tint); }
.section-dark { background: var(--brand-deep); color: #fff; }

.section-head {
	display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { margin: 0; color: var(--brand-deep); }
.section-head p { color: var(--slate); max-width: 52ch; margin: 0.75rem 0 0; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.admin-hint {
	padding: 1rem 1.25rem; border: 1px dashed var(--brand); border-radius: 10px;
	color: var(--brand-deep); background: #fff; font-size: 0.95rem;
}

/* Welcome + stats */
.welcome-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.welcome-grid h2 { color: var(--brand-deep); margin: 0; }
.welcome-text { font-size: 1.125rem; color: var(--slate); max-width: 62ch; }
.welcome-text p:last-child { margin-bottom: 0; }

.stats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none;
	border-top: 1px solid var(--line);
}
.stat { padding: 1.5rem 1.5rem 0 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 2.5vw + 1rem, 3rem); line-height: 1; color: var(--brand); }
.stat-label { display: block; margin-top: 0.5rem; color: var(--slate); font-size: 0.95rem; }

.front-content { padding-top: 0; }

/* Programmes */
.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* 4 cards sit better two-by-two than 3 + 1 */
.programme-count-4 { grid-template-columns: repeat(2, 1fr); }
/* With 5, the last two centre themselves under the first three */
.programme-count-5 > .programme:nth-child(4) { grid-column: 1 / span 1; }
@media (min-width: 961px) {
	.programme-count-5 { grid-template-columns: repeat(6, 1fr); }
	.programme-count-5 > .programme { grid-column: span 2; }
	.programme-count-5 > .programme:nth-child(4) { grid-column: 2 / span 2; }
	.programme-count-5 > .programme:nth-child(5) { grid-column: 4 / span 2; }
}
.programme {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: inherit; text-decoration: none;
}
/* Bar across the top of each card. Set --program on .programme-1/2/3 below
   to give each program its own colour instead. */
.programme { --program: var(--brand); border-top: 6px solid var(--program); }
.programme-media { aspect-ratio: 3 / 2; background: var(--program); overflow: hidden; }
.programme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.programme:hover .programme-media img { transform: scale(1.03); }
.programme-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.programme h3 { margin: 0; font-size: 1.5rem; color: var(--brand-deep); }
.programme p { margin: 0; color: var(--slate); }
.programme-link { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--brand); }
.programme:hover .programme-link { text-decoration: underline; }

/* Achievers */
.achiever-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.achiever { text-align: center; }
.achiever-portrait {
	aspect-ratio: 4 / 5; margin-bottom: 1.25rem; padding: 6px;
	border: 1.5px solid var(--accent); border-radius: var(--arch);
}
.achiever-portrait img, .achiever-portrait .achiever-initial {
	width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch);
}
.achiever-initial {
	display: flex; align-items: center; justify-content: center;
	background: var(--tint); color: var(--brand); font-family: var(--font-display); font-size: 3rem;
}
.achiever h3 { margin: 0 0 0.35rem; font-size: 1.3rem; color: var(--brand-deep); }
.achiever-result {
	display: inline-block; max-width: 100%; padding: 0.3rem 0.85rem; border-radius: 999px;
	background: var(--accent); color: var(--ink); font-weight: 700; font-size: 0.9rem; line-height: 1.35;
}
.achiever-session { display: block; margin-top: 0.5rem; color: var(--slate); font-size: 0.95rem; }
.section-dark .achiever h3 { color: #fff; }
.section-dark .achiever-session { color: rgba(255, 255, 255, 0.7); }
.section-dark .achiever-initial { background: rgba(255, 255, 255, 0.08); color: var(--accent); }

/* Campus life */
.campus-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(240px, 1fr)); gap: 1.25rem; }
.campus-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.campus-item:first-child { grid-row: span 2; }
.campus-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campus-item figcaption {
	position: absolute; left: 1rem; bottom: 1rem;
	padding: 0.45rem 0.95rem; border-radius: 999px;
	background: var(--brand); color: #fff; font-weight: 600; font-size: 0.95rem;
	box-shadow: 0 4px 12px rgba(0, 43, 100, 0.25);
}

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.6rem; }
.card time { font-size: 0.9rem; font-weight: 500; color: var(--slate); }
.card h3 { margin: 0.35rem 0 0.5rem; font-size: 1.3rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--brand); text-decoration: underline; }
.card p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* Charity */
.charity-list { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.charity-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.charity-item:nth-child(even) .charity-media { order: 2; }
.charity-item.no-media { grid-template-columns: 1fr; }
.charity-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.charity-media img { width: 100%; height: 100%; object-fit: cover; }
.charity-item h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); color: var(--brand-deep); }
.charity-item p { color: var(--slate); max-width: 56ch; }

/* Partners */
.partners { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.partners-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; }
.partners-title { margin: 0; font: 600 1rem/1.4 var(--font-body); color: var(--slate); }
.partner { display: block; color: var(--slate); text-decoration: none; font-weight: 600; }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.partner:hover img, .partner:focus-visible img { filter: none; opacity: 1; }

/* Call to action band */
.cta { background: var(--brand); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta h2 { margin: 0 0 0.5rem; color: #fff; max-width: 24ch; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   7. Inner pages
   ========================================================================== */
.page-hero { background: var(--tint); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin: 0; color: var(--brand-deep); max-width: 22ch; }
.page-hero p { margin: 0.75rem 0 0; color: var(--slate); max-width: 60ch; }
.page-hero .entry-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1rem; }

.single-featured { width: min(100% - 2.5rem, 1000px); margin: clamp(2rem, 4vw, 3rem) auto 0; }
.single-featured img { width: 100%; border-radius: var(--radius); }

.entry-content { padding-block: clamp(2.5rem, 5vw, 4rem); }
.entry-content > * { width: min(100% - 2.5rem, 720px); margin-inline: auto; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > .alignwide { width: min(100% - 2.5rem, 1100px); }
.entry-content > .alignfull { width: 100%; }
.entry-content h2 { font-size: clamp(1.6rem, 1.2vw + 1rem, 2.1rem); margin-top: 1.8em; color: var(--brand-deep); }
.entry-content h3 { margin-top: 1.6em; color: var(--brand-deep); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
	margin-block: 2rem; padding-left: 1.25rem; border-left: 3px solid var(--accent);
	font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--brand-deep);
}
.entry-content table { border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: var(--section-y); }
.post-nav a { font-weight: 600; text-decoration: none; }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.9rem;
	border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty-state { max-width: 560px; margin-inline: auto; text-align: center; }
.empty-state h2 { color: var(--brand-deep); }

.search-form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.search-form input[type="search"] {
	flex: 1; max-width: 360px; padding: 0.8rem 1rem; font: inherit;
	border: 1.5px solid var(--line); border-radius: 999px;
}
.search-form button, .search-form input[type="submit"] {
	padding: 0.8rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--brand); color: #fff; font: 600 1rem var(--font-body);
}

/* Elementor-built pages: no width limits, Elementor controls the layout */
.elementor-page-content { width: 100%; }
.elementor-page-content .enquiry-form { text-align: left; }

/* ==========================================================================
   7b. About page
   ========================================================================== */
.about-eyebrow {
	margin: 0 0 1rem; font: 600 0.85rem/1.3 var(--font-body);
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
}

/* Welcome */
.about-welcome-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-welcome-single .about-welcome-text { max-width: 760px; }
.about-welcome h2 { color: var(--brand); }
.about-prose { font-size: 1.1rem; color: var(--slate); }
.about-welcome .hero-actions { margin-top: 1.75rem; }
.about-welcome-media { border-radius: var(--radius); overflow: hidden; justify-self: center; width: 100%; max-width: 560px; }
/* Uploaded image: shown whole, at its own shape */
.about-welcome-media img { display: block; width: 100%; height: auto; }
.about-art {
	--hero-line: #7cc4ff; position: relative; isolation: isolate; aspect-ratio: 4 / 3;
	display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem 1.5rem 0;
	background: radial-gradient(110% 90% at 50% 100%, var(--brand) 0%, var(--brand-deep) 60%, #041634 100%);
}
.about-art .hero-sun { width: 100%; max-width: 460px; }

/* Motto band */
.about-motto {
	--hero-hl-1: #7cc4ff; --hero-hl-2: #ffffff; --hero-hl-3: #ffb347;
	position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
	background: radial-gradient(90% 120% at 50% 110%, var(--brand) 0%, var(--brand-deep) 60%, #041634 100%);
}
.about-motto .hero-bg { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 75%); }
.about-motto-inner { max-width: 900px; }
.about-motto .about-eyebrow { color: var(--hero-hl-3); }
.about-motto h2 { margin: 0 auto 1.25rem; font-size: clamp(2.2rem, 4.5vw + 0.5rem, 4.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: #fff; max-width: 16ch; }
.about-motto p { margin: 0 auto; max-width: 56ch; font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); }

/* Vision and mission */
.about-vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.about-vm-item { padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: var(--radius); }
.about-vm-item h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); color: var(--brand); margin-bottom: 0.75rem; }
.about-vm-item p { margin: 0; font-size: 1.1rem; color: var(--slate); }

/* Our values: the three Cs */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
	position: relative; overflow: hidden;
	padding: clamp(1.75rem, 3vw, 2.25rem); padding-top: clamp(6.5rem, 9vw, 7.5rem);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.value-letter {
	position: absolute; top: clamp(1.25rem, 2.5vw, 1.75rem); left: clamp(1.5rem, 3vw, 2.1rem);
	font: 800 clamp(4.25rem, 6vw, 5.25rem)/1 var(--font-display); letter-spacing: -0.04em;
	background: linear-gradient(135deg, var(--brand) 0%, #1fb6ff 60%, var(--accent) 120%);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
	opacity: 0.9;
}
.value-card h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 0.6rem; }
.value-card h3 strong { color: var(--brand); font-weight: 800; }
.value-card p { margin: 0; color: var(--slate); }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 1.2fr minmax(260px, 0.8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.founder-photo { margin: 0; position: relative; order: 2; }
.founder-photo::before {
	content: ""; position: absolute; top: -16px; left: 16px; right: -16px; aspect-ratio: 4 / 5;
	border: 2px solid var(--accent); border-radius: var(--arch);
}
.founder-arch { position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--tint); }
.founder-arch img { width: 100%; height: 100%; object-fit: cover; }
.founder-arch.is-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--brand-deep), var(--brand)); }
.founder-initials { font: 800 clamp(3rem, 6vw, 4.5rem)/1 var(--font-display); color: #fff; letter-spacing: 0.02em; }
.founder-photo figcaption { margin-top: 1.25rem; font-size: 1rem; color: var(--slate); }
.founder-photo figcaption strong { display: block; font: 800 1.35rem/1.2 var(--font-display); color: var(--ink); }
.founder-role { display: block; margin-top: 0.2rem; color: var(--brand); font-weight: 600; }
.founder-credentials { display: block; margin-top: 0.6rem; font-size: 0.95rem; }

.founder-message blockquote {
	position: relative; margin: 0; padding-left: clamp(1.25rem, 2vw, 1.75rem);
	border-left: 3px solid var(--accent); font-size: 1.15rem; color: var(--ink);
}
.founder-message blockquote::before {
	content: "\201C"; position: absolute; top: -0.45em; right: 0; z-index: -1;
	font: 800 11rem/1 var(--font-display); color: var(--tint);
}
.founder-message blockquote p:last-child { margin-bottom: 0; }
.founder-signoff { margin: 1.5rem 0 0; padding-left: clamp(1.25rem, 2vw, 1.75rem); }
.founder-signoff strong { display: block; font: 800 1.2rem/1.3 var(--font-display); color: var(--ink); }
.founder-signoff span { color: var(--slate); }
.about-founder { isolation: isolate; }

@media (max-width: 960px) {
	.about-welcome-grid, .founder-grid { grid-template-columns: 1fr; }
	.founder-message blockquote::before { font-size: 7rem; }
	.values-grid { grid-template-columns: 1fr; }
	/* On phones the photo comes first, above the message */
	.founder-photo { order: 0; max-width: 360px; margin-right: 16px; }
}

/* ==========================================================================
   7c. Contact page
   ========================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.contact-card {
	display: block; padding: clamp(1.75rem, 3vw, 2.25rem);
	background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--brand);
	border-radius: var(--radius); color: inherit; text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}
a.contact-card:hover { box-shadow: 0 14px 32px rgba(0, 43, 100, 0.12); transform: translateY(-2px); }
.contact-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin-bottom: 1.1rem;
	border-radius: 14px; background: var(--tint); color: var(--brand);
}
.contact-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h2 { margin: 0 0 0.35rem; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--slate); }
.contact-value { margin: 0; font: 800 1.3rem/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.contact-note { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--slate); }
.contact-link { display: inline-block; margin-top: 0.9rem; font-weight: 600; color: var(--brand); }
a.contact-card:hover .contact-link { text-decoration: underline; }

/* Social channels */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.channel-card {
	--channel: var(--brand);
	display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: inherit; text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.channel-card:hover { border-color: var(--channel); box-shadow: 0 12px 28px rgba(0, 43, 100, 0.12); transform: translateY(-2px); }
.channel-facebook { --channel: #1877f2; }
.channel-instagram { --channel: #d62976; }
.channel-telegram { --channel: #229ed9; }
.channel-tiktok { --channel: #010101; }
.channel-youtube { --channel: #ff0000; }
.channel-linkedin { --channel: #0a66c2; }
.channel-icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: var(--channel); color: #fff;
}
.channel-icon svg { width: 22px; height: 22px; fill: currentColor; }
.channel-text { display: grid; gap: 0.1rem; min-width: 0; }
.channel-text strong { font: 700 1.05rem/1.3 var(--font-body); color: var(--ink); }
.channel-handle { font-weight: 600; color: var(--channel); overflow-wrap: anywhere; }
.channel-note { font-size: 0.92rem; color: var(--slate); }

/* Form block */
.contact-form-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form-intro h2 { color: var(--brand); }
.contact-form-intro .about-prose { font-size: 1.05rem; }

/* Map */
.contact-map { line-height: 0; }
.contact-map iframe { width: 100%; height: clamp(320px, 45vh, 460px); border: 0; display: block; }

@media (max-width: 960px) {
	.contact-form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Enquiry form
   ========================================================================== */
.enquiry { scroll-margin-top: calc(var(--header-h) + 1rem); }
.enquiry-form {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
	width: 100%; padding: 0.8rem 1rem; font: inherit; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.2);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions p { margin: 0; font-size: 0.9rem; color: var(--slate); }
.form-notice { margin-bottom: 1.25rem; padding: 1rem 1.25rem; border-radius: 10px; }
.form-notice.is-success { background: #e6f4ee; border: 1px solid #bfe0d2; color: var(--brand-deep); }
.form-notice.is-error { background: #fdecea; border: 1px solid #f5c2be; color: #8c1d18; }

/* ==========================================================================
   9. Footer (white)
   ========================================================================== */
.site-footer {
	background: var(--white); color: var(--slate);
	border-top: 1px solid var(--line);
	padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: 1rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 2.2fr; gap: 3rem clamp(2rem, 5vw, 5rem); }

.footer-logo { margin-bottom: 1.5rem; }
.footer-logo a { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.2; color: var(--brand); text-decoration: none; }
.footer-logo img { max-height: 60px; width: auto; }
.footer-text { max-width: 30ch; font-size: 1.05rem; }

.footer-contact { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 0.85rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.9rem; }
.footer-contact a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--brand); }
.footer-icon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--brand);
}
.footer-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer-menus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-content: start; }
.site-footer h2 { margin: 0 0 1.1rem; font: 600 1rem/1.4 var(--font-body); color: var(--slate); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-menu a { color: var(--ink); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.footer-menu a:hover { color: var(--brand); text-decoration: underline; }
.footer-campus-name { display: block; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.footer-campus-address { display: block; margin-top: 0.2rem; font-size: 0.93rem; color: var(--slate); }

.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
	margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.95rem;
}
.footer-bottom p { margin: 0; }
.social { display: flex; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.social a {
	display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
	border-radius: 50%; background: var(--tint); color: var(--slate);
	transition: background-color 0.2s, color 0.2s;
}
.social a:hover { background: var(--brand); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 960px) {
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.footer-menus { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.25rem; }
	.footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ==========================================================================
   10. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--slate); }
.sticky, .bypostauthor, .gallery-caption { }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.hero-grid, .welcome-grid, .cta-inner { grid-template-columns: 1fr; }
	.hero-media { justify-self: start; width: calc(100% - 18px); max-width: 380px; margin-left: 18px; }
	.programme-grid { grid-template-columns: repeat(2, 1fr); }
	.achiever-grid { grid-template-columns: repeat(2, 1fr); }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.charity-item { grid-template-columns: 1fr; }
	.charity-item:nth-child(even) .charity-media { order: 0; }
	.campus-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.campus-item { min-height: 220px; }
	.campus-item:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
}

@media (max-width: 640px) {
	.section-head { flex-direction: column; align-items: flex-start; }
	.brand a { font-size: 1.2rem; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
	.programme-grid, .news-grid, .enquiry-form { grid-template-columns: 1fr; }
	.campus-grid { grid-template-columns: 1fr; }
	.hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
