/* ==========================================================
   FFS Modern – Future Foundation School
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop)
   ========================================================== */

:root {
	--blue: #0b63e5;
	--blue-dark: #0846a8;
	--blue-soft: #e8f1ff;
	--green: #17a957;
	--green-soft: #e4f7ec;
	--orange: #ff8a1d;
	--orange-soft: #fff1e3;
	--purple: #7a5af8;
	--purple-soft: #efeaff;
	--ink: #0f2140;
	--text: #3b4a63;
	--muted: #6b7a93;
	--line: #e3e9f3;
	--bg: #ffffff;
	--bg-alt: #f5f8fe;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(15, 33, 64, .08);
	--shadow-lg: 0 24px 60px rgba(15, 33, 64, .14);
	--font-head: "Baloo 2", system-ui, sans-serif;
	--font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: 16px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-body); font-weight: 700; font-size: 1rem;
	padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
	text-align: center; line-height: 1.2; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(11, 99, 229, .3); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 138, 29, .3); }
.btn-accent:hover { background: #ee7a0c; color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: rgba(11, 99, 229, .25); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { color: var(--blue); box-shadow: var(--shadow); }

.eyebrow {
	display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--green); margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--text); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9d5ea; font-size: .88rem; }
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.topbar-inner > a, .topbar-inner > span { display: inline-flex; align-items: center; gap: 7px; color: #c9d5ea; white-space: nowrap; }
.topbar-inner a:hover { color: #fff; }
.topbar-social { margin-left: auto; }
.hide-sm, .hide-md { display: none !important; }

.social { display: flex; gap: 10px; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: inherit; transition: background .2s, color .2s; }
.topbar .social a { width: 30px; height: 30px; color: #c9d5ea; }
.topbar .social a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; background: #fff;
	border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 33, 64, .08); border-color: var(--line); }
.admin-bar .site-header { top: 46px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img, .custom-logo { height: 52px; width: auto; }
.custom-logo-link { display: inline-flex; }

.nav-toggle {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .close { display: none; }
.nav-open .nav-toggle .open { display: none; }
.nav-open .nav-toggle .close { display: block; }

.main-nav {
	position: fixed; top: var(--nav-top, 112px); left: 0; right: 0; bottom: 0; background: #fff;
	border-top: 1px solid var(--line);
	padding: 18px var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px;
	transform: translateY(-10px); opacity: 0; transition: transform .25s ease, opacity .25s ease, visibility .25s; overflow-y: auto; z-index: 40;
	visibility: hidden; pointer-events: none;
}
.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
html.nav-lock { overflow: hidden; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; }
.main-nav .menu a {
	display: block; padding: 14px 6px; font-weight: 700; font-size: 1.1rem; color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.main-nav .menu .current-menu-item > a, .main-nav .menu a:hover { color: var(--blue); }
.main-nav .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
.nav-cta { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; background: linear-gradient(180deg, #f2f7ff 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
.hero h1 { margin: 14px 0 16px; }
.hero h1::after { content: ""; display: block; width: 84px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--blue)); margin-top: 16px; }
.pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: var(--green-soft); color: #0e7a3e; font-weight: 700; font-size: .9rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(23, 169, 87, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(23, 169, 87, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--blue); line-height: 1.1; }
.hero-stats span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }

.hero-media { position: relative; padding: 0 0 40px; }
.hero-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--blue-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo.main { aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; border: 6px solid #fff; }
.hero-photo.small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 5px solid #fff; }
.hero-badge {
	position: absolute; right: 6px; top: 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
	display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--green);
}
.hero-badge strong { display: block; color: var(--ink); font-family: var(--font-head); line-height: 1.1; }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-shape { position: absolute; right: -180px; top: -180px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 99, 229, .12), transparent 70%); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt, .mv, .gallery-preview { background: var(--bg-alt); }
.section-head { margin-bottom: 32px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head.split > div { max-width: 680px; }
.section-head p:last-child { margin-bottom: 0; }

/* Features */
.features { padding-top: 24px; }
.feature-grid { display: grid; gap: 18px; }
.feature-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
	box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card p { margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 16px; }
.feature-icon.blue, .ci.blue { background: var(--blue-soft); color: var(--blue); }
.feature-icon.green, .ci.green { background: var(--green-soft); color: var(--green); }
.feature-icon.orange, .ci.orange { background: var(--orange-soft); color: var(--orange); }
.ci.purple { background: var(--purple-soft); color: var(--purple); }

/* Founder */
.founder-grid { display: grid; gap: 36px; align-items: center; }
.founder-photo { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.founder-photo img { border-radius: 26px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; box-shadow: var(--shadow-lg); }
.founder-photo::before {
	content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 26px; border: 3px dashed rgba(23, 169, 87, .45); z-index: -1;
}
.founder-tag {
	position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .95); border-radius: 14px;
	padding: 12px 16px; box-shadow: var(--shadow);
}
.founder-tag strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.founder-tag span { color: var(--green); font-weight: 700; font-size: .9rem; }
.quote-mark { color: var(--blue); opacity: .2; display: block; margin-bottom: 6px; }
.signature { font-family: var(--font-head); font-size: 1.3rem; color: var(--blue); font-weight: 700; }

/* Mission & Vision */
.mv-grid { display: grid; gap: 20px; }
.mv-card { border-radius: var(--radius); padding: 30px; color: #fff; position: relative; overflow: hidden; }
.mv-card h3 { color: #fff; font-size: 1.6rem; }
.mv-card p { margin: 0; color: rgba(255, 255, 255, .92); }
.mv-card.vision { background: linear-gradient(135deg, var(--blue), #3b8bff); }
.mv-card.mission { background: linear-gradient(135deg, #109a4d, #2cc56f); }
.mv-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mv-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .18); margin-bottom: 16px; }

/* Activities */
.activity-grid { display: grid; gap: 18px; }
.activity-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.activity-img { aspect-ratio: 4 / 3; overflow: hidden; }
.activity-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transition: transform .5s; }
.activity-card:hover .activity-img img { transform: scale(1.05); }
.activity-body { padding: 20px 22px 22px; }
.activity-card p { margin: 0; }
.activity-card.tone-green, .activity-card.tone-orange { padding: 26px 22px; justify-content: flex-end; min-height: 220px; }
.activity-card.tone-green { background: var(--green-soft); border-color: transparent; }
.activity-card.tone-orange { background: var(--orange-soft); border-color: transparent; }
.activity-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; margin-bottom: auto; }
.tone-green .activity-icon { color: var(--green); }
.tone-orange .activity-icon { color: var(--orange); }
.tone-green h3, .tone-orange h3 { margin-top: 20px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }

/* Teachers */
.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.teacher-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.teacher-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--blue-soft); overflow: hidden; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.teacher-card:hover .teacher-photo img { transform: scale(1.04); }
.teacher-initial { display: grid; place-items: center; height: 100%; font-family: var(--font-head); font-size: 3rem; color: var(--blue); }
.badge { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; line-height: 1.4; }
.badge.inline { position: static; display: inline-block; margin-bottom: 10px; }
.teacher-body { padding: 14px 14px 16px; }
.teacher-body h3 { font-size: 1.08rem; margin-bottom: 2px; }
.teacher-body h3 a { color: var(--ink); }
.teacher-body h3 a:hover { color: var(--blue); }
.subject { color: var(--green); font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.teacher-body .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .82rem; color: var(--muted); }
.teacher-body .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Gallery mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mosaic-item { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--blue-soft); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic-item:hover img { transform: scale(1.06); }

/* YouTube band */
.youtube-band { background: linear-gradient(120deg, #c4161c, #ff3b3b); color: #fff; padding: 48px 0; }
.yt-inner { display: grid; gap: 18px; justify-items: start; }
.youtube-band h2 { color: #fff; margin-bottom: .2em; }
.youtube-band p { margin: 0; color: rgba(255, 255, 255, .92); max-width: 620px; }
.yt-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .16); }
.youtube-band .btn-light { color: #c4161c; }

/* Posts */
.post-grid { display: grid; gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.thumb-fallback { display: grid; place-items: center; height: 100%; color: var(--blue); }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue); }
.post-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.read-more { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #2f86ff); color: #fff; padding: 44px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(23, 169, 87, .35); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 8px 0 10px; font-size: clamp(2rem, 5.4vw, 3.2rem); }
.page-hero .lead { color: rgba(255, 255, 255, .9); margin: 0; max-width: 640px; }
.crumbs { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; font-weight: 700; }
.post-hero .post-meta { color: rgba(255, 255, 255, .85); margin: 0; }
.post-hero .post-meta a { color: #fff; }

/* Entry content (editor content) */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; color: var(--blue-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-image.is-style-rounded-soft img { border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content blockquote, .wp-block-quote {
	margin: 1.6em 0; padding: 22px 26px; border-left: 5px solid var(--green); background: var(--green-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.12rem; color: var(--ink);
}
.wp-block-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--green); font-size: .95rem; }
.wp-block-gallery.has-nested-images { gap: 10px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0; }
.intro { margin: 0 auto 30px; text-align: center; }
.post-feature { margin: 0 0 28px; }
.post-feature img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.share-row .social a { background: var(--blue-soft); color: var(--blue); }

/* Teacher profile */
.profile-grid { display: grid; gap: 30px; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); align-self: start; }
.profile-photo { aspect-ratio: 4 / 5; background: var(--blue-soft); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-facts { margin: 0; padding: 8px 20px 16px; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile-facts div:last-child { border-bottom: 0; }
.profile-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.profile-facts dt .icon { color: var(--blue); }
.profile-facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; word-break: break-word; }
.profile-main h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.profile-main .btn { margin-top: 20px; }

/* Contact */
.contact-grid { display: grid; gap: 30px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--text); transition: transform .2s; }
a.contact-card:hover { transform: translateY(-3px); color: var(--text); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.contact-card p { margin: 0; }
.ci { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
.break { word-break: break-all; }
.form-card { background: #fff; border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--green); scroll-margin-top: 130px; }
.enquiry-form label { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 14px; }
.enquiry-form label span { color: #d92d20; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink);
	border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-alt); transition: border-color .2s, background .2s; min-height: 48px;
}
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-row { display: grid; gap: 0 14px; }
.enquiry-form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.notice.success { background: var(--green-soft); color: #0e7a3e; }
.notice.error { background: #fdecea; color: #b42318; }
.map-wrap { line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: saturate(1.1); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -100px; top: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(11, 99, 229, .35); }
.cta-inner { position: relative; display: grid; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #c9d5ea; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { flex: 1 1 220px; }

/* Footer */
.site-footer { background: #0a1830; color: #aab8d1; padding-top: 52px; font-size: .95rem; }
.footer-grid { display: grid; gap: 34px; padding-bottom: 40px; }
.footer-logo { background: #fff; border-radius: 14px; padding: 10px 14px; height: 74px; width: auto; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-menu a, .site-footer .menu a { color: #aab8d1; }
.footer-menu a:hover, .contact-list a:hover { color: #fff; }
.site-footer .menu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--green); margin-top: 3px; }
.contact-list a { color: #aab8d1; word-break: break-word; }
.footer-social a { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0 90px; font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom p { margin: 0; }

/* WhatsApp button */
.whatsapp-fab {
	position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
	transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; padding: 0 10px; }
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 14, 30, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 60px 12px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Tablet ≥ 640px
   ========================================================== */
@media (min-width: 640px) {
	:root { --gutter: 24px; }
	.hide-sm { display: inline-flex !important; }
	.section { padding: 80px 0; }
	.feature-grid { grid-template-columns: repeat(3, 1fr); }
	.mv-grid { grid-template-columns: 1fr 1fr; }
	.activity-grid { grid-template-columns: repeat(2, 1fr); }
	.teacher-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.mosaic { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; }
	.section-head.split .btn { flex-shrink: 0; }
	.form-row { grid-template-columns: 1fr 1fr; }
	.form-card { padding: 34px; }
	.contact-cards { grid-template-columns: 1fr 1fr; }
	.contact-card.wide { grid-column: 1 / -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom-inner { flex-direction: row; justify-content: space-between; }
	.footer-bottom { padding-bottom: 18px; }
	.yt-inner { grid-template-columns: auto 1fr auto; align-items: center; }
	.cta-actions .btn { flex: 0 0 auto; }
	.profile-grid { grid-template-columns: 300px 1fr; }
	.hero-actions .btn { flex: 0 0 auto; }
	.hero-stats { max-width: 520px; }
	.admin-bar .site-header { top: 32px; }
}

/* ==========================================================
   Desktop ≥ 1024px
   ========================================================== */
@media (min-width: 1024px) {
	:root { --header-h: 84px; }
	.hide-md { display: inline-flex !important; }
	.brand img, .custom-logo { height: 60px; }
	.nav-toggle { display: none; }
	.main-nav {
		position: static; transform: none; visibility: visible; opacity: 1; pointer-events: auto; flex-direction: row; align-items: center;
		padding: 0; gap: 18px; background: none; overflow: visible; height: auto; border-top: 0;
	}
	.main-nav .menu { display: flex; gap: 2px; }
	.main-nav .menu a { border: 0; font-size: .98rem; padding: 10px 12px; border-radius: 10px; position: relative; }
	.main-nav .menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transition: transform .25s; }
	.main-nav .menu a:hover::after, .main-nav .menu .current-menu-item > a::after { transform: scaleX(1); }
	.main-nav .menu li { position: relative; }
	.main-nav .sub-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: var(--shadow); border-radius: 12px; padding: 8px; display: none; }
	.main-nav li:hover > .sub-menu { display: block; }
	.nav-cta { margin: 0; padding: 11px 20px; min-height: 0; }
	html.nav-lock { overflow: visible; }

	.hero { padding: 70px 0 90px; }
	.hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
	.hero-media { padding-bottom: 50px; }
	.founder-grid { grid-template-columns: 420px 1fr; gap: 64px; }
	.activity-grid { grid-template-columns: repeat(4, 1fr); }
	.teacher-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.teacher-body { padding: 16px 18px 18px; }
	.teacher-body h3 { font-size: 1.2rem; }
	.mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
	.mosaic-item { aspect-ratio: auto; }
	.mosaic-item.m0 { grid-column: span 2; grid-row: span 2; }
	.mosaic-item.m3, .mosaic-item.m5 { grid-column: span 2; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }
	.contact-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
	.footer-brand { grid-column: auto; }
	.cta-inner { grid-template-columns: 1fr auto; align-items: center; }
	.page-hero { padding: 64px 0 70px; }
	.profile-grid { grid-template-columns: 360px 1fr; gap: 48px; }
}

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