/* =========================================================
   Shree GreenLand Academy — site styles
   ========================================================= */

:root {
  --green-950: #05240b;
  --green-900: #0a3512;
  --green-800: #014a04;
  --green-700: #035f06;
  --green-600: #157a1d;
  --green-500: #2a9c2f;
  --lime: #63cf35;
  --green-100: #e2f3dc;
  --green-50: #f1f8ee;
  --gold: #f5c518;
  --gold-600: #dcab00;
  --gold-100: #fff6d1;
  --navy: #1e3a8a;
  --wa: #1fa855;
  --fb: #1877f2;

  --ink: #10231a;
  --text: #33463b;
  --muted: #637368;
  --line: #e1e9df;
  --bg: #fbfcfa;
  --tint: #f2f7ef;
  --surface: #ffffff;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 26, .05), 0 4px 14px rgba(16, 35, 26, .06);
  --shadow: 0 18px 40px -18px rgba(5, 36, 11, .28);
  --shadow-lg: 0 40px 80px -30px rgba(5, 36, 11, .45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll, body.nav-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green-100); color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only, .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;
}
.muted { color: var(--muted); }
.req { color: #c0392b; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.18em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(5, 36, 11, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { --btn-bg: var(--green-700); }
.btn--primary:hover { --btn-bg: var(--green-800); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--green-950); }
.btn--gold:hover { --btn-bg: #ffd43b; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--green-700); }
.btn--outline:hover { --btn-bg: var(--green-700); --btn-fg: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--green-800); --btn-bd: #fff; }
.btn--glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); backdrop-filter: blur(8px); }
.btn--glass:hover { --btn-bg: #fff; --btn-fg: var(--green-800); }
.btn--ghost { --btn-bg: var(--green-50); --btn-fg: var(--green-700); }
.btn--ghost:hover { --btn-bg: var(--green-100); }
.btn--whatsapp { --btn-bg: var(--wa); }
.btn--whatsapp:hover { --btn-bg: #178a45; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--green-700); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .75em; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--gold); color: var(--green-950);
}
.chip--soft { background: var(--green-50); color: var(--green-700); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: .8rem;
}
.eyebrow .icon { color: var(--lime); }
.eyebrow--light { color: var(--gold); }
.eyebrow--light .icon { color: var(--gold); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .82); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--gold); }
.topbar .icon { color: var(--lime); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topbar__social a:hover { background: var(--gold); color: var(--green-950); }
.topbar__social .icon { color: inherit; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(5, 36, 11, .35); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 0 0 2px var(--green-100), var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--green-800); }
.brand__text small { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand--light strong { color: #fff; }
.brand--light small { color: rgba(255, 255, 255, .7); }

.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--text); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--green-700); background: var(--green-50); }
.nav__links a[aria-current="page"] { color: var(--green-700); background: var(--green-50); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--lime);
}
.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--green-800); cursor: pointer; place-items: center;
}
.nav__toggle .icon { width: 24px; height: 24px; }
.nav__toggle .icon--close { display: none; }
.nav-open .nav__toggle .icon--open { display: none; }
.nav-open .nav__toggle .icon--close { display: block; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 96px; right: 20px; z-index: 150; display: grid; gap: 10px; max-width: min(420px, calc(100% - 40px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--green-800); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600;
  animation: toast-in .45s var(--ease);
}
.toast > .icon { color: var(--lime); width: 22px; height: 22px; }
.toast--error { background: #9b2c2c; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; padding: 4px; display: grid; }
.toast button:hover { opacity: 1; }
.toast.is-leaving { opacity: 0; transform: translateX(20px); transition: .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
  flex-wrap: wrap; text-align: left;
}
.section-head--row h2 { margin-bottom: 0; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: grid; gap: 40px; }

.prose p:last-child { margin-bottom: 0; }
.prose { font-size: 1.05rem; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: hero-zoom 18s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 36, 11, .94) 0%, rgba(5, 36, 11, .78) 38%, rgba(5, 36, 11, .25) 75%, rgba(5, 36, 11, .1) 100%),
    linear-gradient(0deg, rgba(5, 36, 11, .65) 0%, transparent 35%);
}
.hero__inner { padding: 120px 0 170px; }
.hero__content { max-width: 640px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
}
.hero__badge .icon { color: var(--lime); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); line-height: 1.05; margin-bottom: 22px; }
.hero h1 span { display: block; color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -90px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 10px; border: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
  box-shadow: 0 10px 20px -10px var(--green-700);
}
.stat__icon .icon { width: 26px; height: 26px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink); }
.stat div > span { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split__body h2 { margin-bottom: 18px; }
.split__body .btn { margin-top: 30px; }
.collage { position: relative; padding: 0 0 40px 0; }
.collage__main { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.collage::before {
  content: ""; position: absolute; z-index: -1; left: -24px; top: -24px; width: 60%; height: 70%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, var(--green-100) 2px, transparent 2.5px) 0 0 / 18px 18px;
}
.collage__badge {
  position: absolute; right: -10px; bottom: 0; display: flex; align-items: center; gap: 14px;
  background: var(--surface); padding: 14px 20px 14px 14px; border-radius: 20px; box-shadow: var(--shadow-lg);
}
.collage__badge img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.collage__badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--green-800); }
.collage__badge span { font-size: .85rem; color: var(--muted); }
.collage--duo { padding: 0 60px 60px 0; }
.collage__second {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--surface); box-shadow: var(--shadow-lg);
}

.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 24px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); stroke-width: 3;
}

.mini-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.mini-stats div { flex: 1 1 120px; padding: 18px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); text-align: center; }
.mini-stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--green-700); line-height: 1.1; }
.mini-stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Message ---------- */
.message {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.message::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-50), transparent 70%); pointer-events: none;
}
.message__photo { position: relative; }
.message__photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lime), var(--green-700)); z-index: 0;
}
.message__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); }
.message__quote { width: 44px; height: 44px; color: var(--green-100); display: block; margin-bottom: 6px; }
.message__body .prose { color: var(--text); }
.message__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.message__author strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.message__author span { color: var(--muted); font-size: .92rem; }
.message--full .message__author { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.message--full { align-items: start; }
.message--flip { grid-template-columns: 1fr 340px; }
.message--flip .message__photo { order: 2; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--green-700); }
.card__body p { color: var(--muted); margin: 0 0 8px; }
.card__body .link-arrow { margin-top: auto; }

.notice-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.notice-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.notice-card:hover .notice-card__media img { transform: scale(1.06); }
.notice-card__media .chip { position: absolute; left: 14px; top: 14px; box-shadow: var(--shadow-sm); }

.teacher-card { text-align: center; }
.teacher-card__photo { padding: 26px 26px 0; }
.teacher-card__photo img {
  width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; object-fit: cover; object-position: top;
  border: 5px solid var(--surface); box-shadow: 0 0 0 3px var(--green-100), var(--shadow);
  transition: box-shadow .35s;
}
.teacher-card:hover .teacher-card__photo img { box-shadow: 0 0 0 3px var(--lime), var(--shadow); }
.teacher-card .card__body { align-items: center; }
.teacher-card__post { font-weight: 600; color: var(--green-700) !important; }

.review-card { padding: 28px; position: relative; gap: 14px; }
.review-card__quote { position: absolute; right: 22px; top: 18px; width: 48px; height: 48px; color: var(--green-50); }
.review-card__text { color: var(--text); margin: 0; flex: 1; font-size: 1rem; }
.review-card__author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-card__author > div strong { display: block; color: var(--ink); line-height: 1.3; }
.review-card__author > div span { font-size: .85rem; color: var(--muted); }
.avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-700), var(--lime)); color: #fff; font-weight: 800; font-size: 1.1rem;
}

.stars { display: inline-flex; gap: 2px; color: #d6ddd4; }
.stars .icon { width: 18px; height: 18px; }
.stars .icon.is-on { color: var(--gold); }
.rating-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; color: var(--muted); }
.rating-inline strong { color: var(--ink); }

.feature {
  background: var(--surface); padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin-bottom: 18px;
  background: var(--green-50); color: var(--green-700); transition: background .35s, color .35s;
}
.feature:hover .feature__icon { background: var(--green-700); color: #fff; }
.feature__icon .icon { width: 28px; height: 28px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Gallery ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; grid-auto-flow: dense; }
.bento__item, .masonry__item, .notice-article__media {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--green-100);
}
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bento__item::after, .masonry__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 36, 11, .55), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.bento__zoom {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--green-800);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s var(--ease);
}
.bento__zoom .icon { width: 24px; height: 24px; }
.bento__item:hover img, .masonry__item:hover img { transform: scale(1.07); }
.bento__item:hover::after, .masonry__item:hover::after { opacity: 1; }
.bento__item:hover .bento__zoom, .masonry__item:hover .bento__zoom, .notice-article__media:hover .bento__zoom { opacity: 1; transform: scale(1); }

.masonry { columns: 3 280px; column-gap: 18px; }
.masonry__item { margin-bottom: 18px; break-inside: avoid; }
.masonry__item img { width: 100%; height: auto; transition: transform .7s var(--ease); }

.tabs {
  display: flex; justify-content: center; gap: 8px; margin: 0 auto 40px; padding: 6px; width: fit-content;
  background: var(--tint); border-radius: 999px; border: 1px solid var(--line);
}
.tabs__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; border: 0;
  background: transparent; color: var(--text); font-weight: 700; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.tabs__btn:hover { color: var(--green-700); }
.tabs__btn[aria-selected="true"] { background: var(--green-700); color: #fff; box-shadow: 0 8px 18px -10px var(--green-700); }
.tabs__count { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.tabs__btn[aria-selected="true"] .tabs__count { background: rgba(255, 255, 255, .22); }
.tab-panel + .tab-panel { margin-top: 56px; }
.js .tab-panel + .tab-panel { margin-top: 0; }

.video-card { border-radius: var(--radius); overflow: hidden; background: var(--green-950); box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(99, 207, 53, .35), transparent 70%),
    radial-gradient(500px 280px at 5% 100%, rgba(245, 197, 24, .18), transparent 70%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, rgba(255, 255, 255, .12) 1.5px, transparent 2px) 0 0 / 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.page-hero__inner { position: relative; z-index: 1; max-width: var(--container); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-bottom: 12px; max-width: 820px; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; max-width: 620px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumb span { color: var(--gold); }

/* ---------- Notice detail ---------- */
.notice-layout, .form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.notice-article { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.notice-article__media { border-radius: 0; background: var(--tint); }
.notice-article__media img { width: 100%; max-height: 640px; object-fit: contain; margin: 0 auto; }
.notice-article__body { padding: clamp(24px, 3vw, 40px); }
.notice-article__body h2 { margin: 14px 0 16px; }
.notice-article__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sidebar { display: grid; gap: 22px; position: sticky; top: 104px; }
.side-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.side-card--green {
  background: linear-gradient(140deg, var(--green-800), var(--green-600)); color: rgba(255, 255, 255, .88); border: 0;
  display: grid; gap: 12px;
}
.side-card--green h3 { color: #fff; margin: 0; }
.side-card--green p { margin: 0 0 4px; }
.side-list { list-style: none; display: grid; gap: 6px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); font-weight: 600; transition: background .2s; }
.side-list a:hover { background: var(--tint); color: var(--green-700); }
.side-list img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--green-50); color: var(--green-700);
  border: 2px solid var(--green-100);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: -16px; width: 2px; background: var(--green-100); }
.steps strong { display: block; color: var(--ink); }
.steps span { font-size: .92rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 6px; }
.form-card h2 .icon { color: var(--green-600); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem;
}
.input::placeholder { color: #98a59c; }
.input:hover { border-color: #c9d6c6; }
.input:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(42, 156, 47, .14); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23035f06' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
textarea.input { resize: vertical; min-height: 130px; }
.has-error .input { border-color: #d64545; }
.field__error, .form-error { color: #c0392b; font-size: .88rem; font-weight: 600; }
.form-error { padding: 12px 14px; background: #fdecec; border-radius: 10px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__hint { font-size: .88rem; color: var(--muted); margin: -4px 0 0; }
.form-success {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px;
  background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); animation: toast-in .4s var(--ease);
}
.form-success[hidden] { display: none; }
.form-success .icon { color: var(--green-600); width: 22px; height: 22px; margin-top: 2px; stroke-width: 3; }

.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #d6ddd4; transition: color .15s, transform .15s; padding: 2px; }
.star-input label .icon { width: 34px; height: 34px; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 8px; }

/* ---------- Reviews page ---------- */
.reviews-top { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.rating-summary {
  position: sticky; top: 104px; background: linear-gradient(160deg, var(--green-900), var(--green-700)); color: #fff;
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
}
.rating-summary .eyebrow { color: var(--gold); }
.rating-summary .eyebrow .icon { color: var(--gold); }
.rating-summary .muted { color: rgba(255, 255, 255, .75); }
.rating-summary__score { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.rating-summary__score strong { font-family: var(--font-display); font-size: 4rem; line-height: 1; }
.rating-summary__score span { display: block; color: rgba(255, 255, 255, .75); font-size: .9rem; margin-top: 4px; }
.rating-summary .stars { color: rgba(255, 255, 255, .25); }
.bars { list-style: none; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 12px; font-weight: 700; font-size: .9rem; }
.bars__label { display: inline-flex; align-items: center; gap: 4px; }
.bars__label .icon { width: 14px; height: 14px; color: var(--gold); }
.bars__track { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #ffe27a); }
.bars__count { text-align: right; color: rgba(255, 255, 255, .75); }

/* ---------- Contact ---------- */
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 32px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.contact-card h3 { margin: 10px 0 0; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }
.contact-card__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff;
}
.contact-card__icon .icon { width: 28px; height: 28px; }
.contact-card__icon--wa { background: var(--wa); }
.contact-card__icon--fb { background: var(--fb); }

.map-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-card__img { position: relative; display: block; }
.map-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.map-card__img:hover img { transform: scale(1.04); }
.map-card__pin {
  position: absolute; left: 13.6%; top: 43%; width: 26px; height: 26px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(220, 38, 38, .18); box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 22px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.map-card__body { padding: 26px; }
.map-card__body p { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 10px; }
.map-card__body p .icon { color: var(--green-600); }
.map-card__body .btn { margin-top: 8px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg); color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(99, 207, 53, .35), transparent 70%),
    linear-gradient(120deg, var(--green-950), var(--green-700));
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(255, 255, 255, .05);
}
.cta__text { position: relative; max-width: 560px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq__item {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s;
}
.faq__item[open] { border-color: var(--green-100); box-shadow: var(--shadow); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary small { display: block; margin-top: 2px; font-weight: 600; font-size: .9rem; color: var(--green-700); }
.faq__item summary .icon {
  flex-shrink: 0; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700); transition: transform .3s var(--ease), background .25s, color .25s;
}
.faq__item[open] summary .icon { transform: rotate(45deg); background: var(--green-700); color: #fff; }
.faq__answer { padding: 0 22px 20px; color: var(--text); }
.faq__answer p { margin: 0 0 .6em; }
.faq__answer p:last-child { margin-bottom: 0; }
[lang="ne"] { font-family: "Noto Sans Devanagari", var(--font); }
.faq__answer [lang="ne"], .faq__item summary [lang="ne"] { line-height: 1.8; }
.faq__lang-title { max-width: 860px; margin: 40px auto 16px; font-size: 1.1rem; color: var(--green-800); }

/* ---------- Empty states & pagination ---------- */
.empty {
  max-width: 520px; margin: 0 auto; text-align: center; padding: 48px 28px;
  background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius-lg);
}
.empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green-600); margin-bottom: 16px; }
.empty__icon .icon { width: 32px; height: 32px; }
.empty p { color: var(--muted); }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.empty--big { border-style: solid; box-shadow: var(--shadow); padding: 60px 32px; }
.error-page__code { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 12vw, 8rem); line-height: 1; color: var(--green-700); margin-bottom: 10px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination__btn {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--text); transition: .2s;
}
.pagination__btn:hover { border-color: var(--green-500); color: var(--green-700); }
.pagination__btn.is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--lime); }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--gold); }
.footer__about p { margin: 18px 0 20px; font-size: .95rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); transition: background .25s, color .25s, transform .25s; }
.footer__social a:hover { background: var(--gold); color: var(--green-950); transform: translateY(-3px); }
.footer__links, .footer__contact { list-style: none; display: grid; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); opacity: .7; }
.footer__links a:hover { transform: translateX(4px); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--lime); margin-top: 4px; }
.footer__map { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .08); }
.footer__map img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 45%; transition: transform .5s var(--ease); }
.footer__map:hover img { transform: scale(1.05); }
.footer__map span {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--green-700); color: #fff; font-size: .8rem; font-weight: 700;
}
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); font-size: .88rem; }
.footer__bottom-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding: 18px 0; }
.footer__copy { justify-self: start; }
.footer .footer__login {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 24px; border-radius: 999px;
  background: var(--gold); color: var(--green-950); font-weight: 800; font-size: .9rem;
  box-shadow: 0 10px 24px -12px rgba(245, 197, 24, .8); transition: background .2s, transform .2s var(--ease);
}
.footer .footer__login:hover { background: #ffd43b; color: var(--green-950); transform: translateY(-2px); }
.footer__login .icon { width: 16px; height: 16px; }
.footer__bottom p { margin: 0; }
.footer__credit { justify-self: end; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer .footer__credit a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.footer .footer__credit a:hover { color: var(--gold); }
.footer__credit-badge {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--gold)); color: var(--green-950);
}
.footer__credit-badge .icon { width: 14px; height: 14px; }

/* ---------- Floating buttons ---------- */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .7);
  transition: transform .25s var(--ease);
}
.fab-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: ping 2.4s infinite; }
.fab-whatsapp:hover { color: #fff; transform: scale(1.08); }
.fab-whatsapp .icon { width: 30px; height: 30px; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.to-top {
  position: fixed; right: 30px; bottom: 92px; z-index: 90; width: 42px; height: 42px; border-radius: 12px; border: 0;
  display: grid; place-items: center; cursor: pointer; background: var(--surface); color: var(--green-700); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-700); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 24px; background: rgba(3, 18, 6, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox__stage img {
  max-width: 100%; max-height: calc(100vh - 120px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.96); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__stage img { transform: none; }
.lightbox__stage figcaption { color: rgba(255, 255, 255, .8); font-size: .92rem; text-align: center; }
.lightbox__btn {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { visibility: hidden; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.grid > [data-reveal]:nth-child(2), .masonry > [data-reveal]:nth-child(3n+2) { transition-delay: .08s; }
.grid > [data-reveal]:nth-child(3), .masonry > [data-reveal]:nth-child(3n) { transition-delay: .16s; }
.grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 10px 10px; }
  .nav__menu { gap: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  /* backdrop-filter would trap the fixed-position menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(360px, 88vw); z-index: 120;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 96px 24px 32px; overflow-y: auto;
    background: var(--surface); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .nav-open .nav__menu { transform: none; visibility: visible; }
  .nav-open .site-header::before {
    content: ""; position: fixed; inset: 0; background: rgba(5, 36, 11, .45); z-index: 110; animation: fade .3s;
  }
  .nav__toggle { position: relative; z-index: 130; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__links a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .nav__cta { justify-content: center; padding: 1em; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 620px; }
  .message, .message--flip { grid-template-columns: 1fr; }
  .message__photo { max-width: 300px; }
  .message--flip .message__photo { order: 0; }
  .notice-layout, .form-layout, .reviews-top { grid-template-columns: 1fr; }
  .sidebar, .rating-summary { position: static; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@keyframes fade { from { opacity: 0; } }

@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .topbar__info a:nth-child(2) { display: none; }
  .nav { min-height: 70px; }
  .brand img { width: 44px; height: 44px; }
  .brand__text strong { font-size: 1.1rem; }
  .hero { min-height: auto; }
  .hero__inner { padding: 80px 0 140px; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 36, 11, .7), rgba(5, 36, 11, .92)); }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats-wrap { margin-top: -80px; }
  .stat { padding: 18px 14px; gap: 12px; flex-direction: column; text-align: center; }
  .stat__icon { width: 46px; height: 46px; border-radius: 14px; }
  .stat strong { font-size: 1.6rem; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4.contact-cards { grid-template-columns: repeat(2, 1fr); }
  .checklist, .form__grid { grid-template-columns: 1fr; }
  .collage__badge { right: 8px; padding: 10px 14px 10px 10px; }
  .collage__badge img { width: 48px; height: 48px; }
  .collage--duo { padding: 0 30px 40px 0; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .section-head--row { align-items: flex-start; }
  .form__actions .btn { flex: 1 1 100%; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .footer__bottom-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 20px 0 24px; }
  .footer__copy, .footer__credit { justify-self: center; justify-content: center; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 90px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .tabs__btn { padding: 10px 16px; }
  .faq__item summary { padding: 16px 16px; }
  .faq__answer { padding: 0 16px 18px; }
}

@media (max-width: 420px) {
  .tabs { width: 100%; }
  .tabs__btn { flex: 1; justify-content: center; padding: 10px 12px; gap: 6px; }
  .grid--4 { grid-template-columns: 1fr; }
  /* Teachers and contact options stay two-up on phones: shorter pages, app-like cards */
  .grid--4.grid--people, .grid--4.contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teacher-card__photo { padding: 18px 12px 0; }
  .teacher-card__photo img { width: 96px; height: 96px; border-width: 3px; }
  .teacher-card .card__body { padding: 12px 10px 18px; gap: 4px; }
  .teacher-card h3 { font-size: 1rem; }
  .teacher-card__post { font-size: .85rem; margin-bottom: 4px !important; }
  .teacher-card .chip { font-size: .7rem; padding: .3em .7em; text-align: center; line-height: 1.35; }
  .teacher-card .chip .icon { display: none; }
  .contact-card { padding: 22px 10px; }
  .contact-card__icon { width: 52px; height: 52px; border-radius: 16px; }
  .contact-card__icon .icon { width: 24px; height: 24px; }
  .contact-card h3 { font-size: 1rem; }
  .contact-card p { font-size: .82rem; }
  .rating-summary__score strong { font-size: 3.2rem; }
}

/* ---------- Homepage photo story ---------- */
.hero__media .hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__media .hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media .hero__slide img { animation: none; }
.hero__bottom { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__bottom[hidden] { display: none; }
.hero__photo-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .85rem; font-weight: 600; }
.hero__photo-note [data-slide-count] { color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.hero__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero__controls { display: flex; gap: 6px; }
.hero__controls button { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; background: rgba(5,36,11,.65); border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; font-size: .8rem; font-weight: 700; }
.hero__controls button:hover, .hero__controls button[aria-pressed="true"] { background: var(--gold); color: var(--green-950); border-color: var(--gold); }
.hero__controls [data-slide-pause] { min-width: 76px; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding-block: 18px; }
.home-shortcuts a { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 700; box-shadow: var(--shadow-sm); }
.home-shortcuts a:hover { background: var(--green-50); border-color: var(--green-500); }
.page-home .stats-wrap { margin-top: 0; margin-bottom: 24px; }
.page-home .hero__inner { padding-bottom: 110px; }
.campus-photos { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 180px; }
.campus-photos .bento__item { grid-column: auto; grid-row: auto; }
.campus-photos .bento__item:first-child { grid-column: span 2; grid-row: span 2; }
/* Let long names, emails and translated content wrap inside flexible layouts. */
.grid > *, .split > *, .message > *, .footer__grid > *, .form__grid > *, .stats > * { min-width: 0; }
.prose, .card, .side-card, .contact-card, .footer__contact, .page-hero h1 { overflow-wrap: anywhere; }
.form__grid > *, .field { min-width: 0; }

@media (min-width: 721px) and (max-width: 1000px) {
  .section { padding-block: 48px; }
  .hero { min-height: 520px; }
  .hero__inner { padding-top: 70px; }
  .campus-photos { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 160px; }
}

/* ---------- Compact phone layouts ---------- */
@media (max-width: 720px) {
  body { font-size: .875rem; line-height: 1.55; }
  .container { width: calc(100% - 24px); }
  h2 { font-size: clamp(1.3rem, 1rem + 1.6vw, 1.65rem); }
  h3 { font-size: 1rem; }
  .section, .section--tight { padding-block: 30px; }
  .section-head { margin-bottom: 18px; }
  .section-head p, .prose { font-size: .875rem; }
  .section-head--row { gap: 12px; align-items: center; }
  .section-head--row > div { flex: 1 1 170px; }
  .eyebrow { font-size: .65rem; letter-spacing: .08em; margin-bottom: 8px; }
  .btn, .btn--lg { min-height: 44px; padding: 10px 14px; font-size: .8rem; white-space: normal; text-align: center; }
  .link-arrow { font-size: .8rem; }
  .topbar__inner { min-height: 32px; gap: 8px; }
  .topbar { font-size: .72rem; }
  .topbar__social a { width: 30px; height: 30px; }
  .nav { min-height: 58px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand__text strong { font-size: .95rem; }
  .brand__text small { font-size: .65rem; }
  .nav__toggle { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
  .nav__menu { width: min(320px, 90vw); padding: 76px 18px 24px; gap: 14px; }
  .nav__links a { padding: 11px 14px; font-size: .9rem; min-height: 44px; }
  /* Phones: school name at the top, photo visible in the middle,
     description + buttons at the bottom, just above the slideshow controls. */
  .hero { min-height: min(78vh, 640px); min-height: min(78svh, 640px); align-items: stretch; }
  .page-home .hero__inner { display: flex; padding-block: 26px 84px; }
  .hero__content { display: flex; flex-direction: column; flex: 1; max-width: none; }
  .hero__badge { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1.08; margin-bottom: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
  .hero__lead { margin-top: auto; padding-top: 24px; font-size: .9rem; line-height: 1.6; margin-bottom: 20px; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; padding-inline: 10px; }
  .hero__media img { object-position: center 35%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 36, 11, .7) 0%, rgba(5, 36, 11, .22) 26%, rgba(5, 36, 11, .12) 46%,
                                rgba(5, 36, 11, .62) 68%, rgba(5, 36, 11, .9) 100%);
  }
  .hero__bottom { bottom: 16px; gap: 6px; }
  .hero__photo-note { font-size: .65rem; gap: 6px; max-width: 155px; }
  .hero__photo-note [data-slide-count] { width: 100%; padding-left: 13px; }
  .hero__controls { gap: 4px; }
  .hero__controls button { padding-inline: 10px; }
  .hero__controls [data-slide-pause] { min-width: 62px; }
  .home-shortcuts { gap: 6px; padding-block: 10px; }
  .home-shortcuts a { flex-direction: column; gap: 3px; font-size: .67rem; padding: 7px 3px; border-radius: 10px; min-height: 54px; }
  .home-shortcuts .icon { width: 18px; height: 18px; }
  .page-home .stats-wrap { margin-bottom: 0; }
  .stats { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 4px; border-radius: 14px; box-shadow: var(--shadow-sm); }
  .stat { padding: 10px 3px; gap: 4px; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat__icon { display: none; }
  .stat strong { font-size: 1.25rem; }
  .stat div > span { font-size: .6rem; line-height: 1.2; display: block; margin-top: 4px; }
  .home-intro .grid { gap: 8px; }
  .home-intro .side-card { padding: 14px; }
  .grid { gap: 12px; }
  .grid--3, .grid--4.grid--people { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-intro .grid--3 { grid-template-columns: 1fr; }
  .home-intro .side-card p { margin-bottom: 8px; }
  .side-card, .feature, .review-card { padding: 15px; border-radius: 14px; }
  .side-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .card { border-radius: 14px; }
  .card__body { padding: 12px; gap: 5px; }
  .card__body h3 { font-size: .9rem; line-height: 1.4; }
  .card__body p { font-size: .8rem; }
  .notice-card__media { aspect-ratio: 16 / 9; }
  .notice-card__media .chip { top: 8px; left: 8px; font-size: .6rem; }
  .teacher-card__photo { padding: 16px 10px 0; }
  .teacher-card__photo img { width: 90px; height: 90px; border-width: 3px; }
  .teacher-card .card__body { padding: 12px 10px; gap: 4px; }
  .teacher-card .chip { white-space: normal; font-size: .65rem; }
  .teacher-card .chip .icon { display: none; }
  .review-card { gap: 10px; }
  .review-card__text { font-size: .8rem; }
  .review-card__author { gap: 7px; padding-top: 10px; }
  .review-card__author > div strong { font-size: .8rem; }
  .review-card__author > div span { font-size: .7rem; }
  .review-card__quote { width: 28px; height: 28px; right: 10px; top: 10px; }
  .avatar { width: 32px; height: 32px; font-size: .8rem; }
  .stars .icon { width: 14px; height: 14px; }
  .split { gap: 22px; }
  .collage { padding-bottom: 26px; }
  .collage__main { aspect-ratio: 16 / 9; border-radius: 16px; }
  .collage::before { left: 0; top: -10px; }
  .collage__badge strong { font-size: .9rem; }
  .collage__badge span { font-size: .7rem; }
  .collage__badge img { width: 36px; height: 36px; }
  .split__body h2 { margin-bottom: 12px; }
  .split__body .btn { margin-top: 16px; }
  .checklist { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; font-size: .75rem; }
  .checklist li { align-items: flex-start; gap: 6px; }
  .checklist .icon { width: 20px; height: 20px; padding: 4px; }
  .message { padding: 16px; gap: 16px; border-radius: 16px; }
  .message__photo { width: 120px; justify-self: center; margin-inline: auto; }
  .message__photo img { aspect-ratio: 1; }
  .message__photo::before { inset: 6px -6px -6px 6px; }
  .message__quote { display: none; }
  .message__footer { margin-top: 14px; padding-top: 12px; gap: 10px; }
  .message__author strong { font-size: 1rem; }
  .message__author span { font-size: .8rem; }
  .stack { gap: 20px; }
  .bento.campus-photos { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: 100px; gap: 6px; }
  .bento.campus-photos .bento__item:first-child { grid-column: span 2; grid-row: span 2; }
  .bento__item, .masonry__item { border-radius: 10px; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry__item { margin-bottom: 8px; }
  .tabs { margin-bottom: 20px; }
  .page-hero { padding-block: 24px; }
  .page-hero h1 { font-size: 1.6rem; margin-bottom: 8px; }
  .page-hero p { font-size: .875rem; }
  .breadcrumb { font-size: .7rem; margin-bottom: 10px; }
  .notice-layout, .form-layout, .reviews-top { gap: 20px; }
  .notice-article__body { padding: 16px; }
  .form-card { padding: 16px; border-radius: 16px; }
  .form { gap: 14px; margin-top: 18px; }
  .form__grid { gap: 12px; }
  /* 16px inputs prevent automatic zoom on iPhones. */
  .input { font-size: 16px; min-height: 44px; padding: 10px 12px; }
  .field label, .field__label { font-size: .8rem; }
  .feature__icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .contact-card { padding: 16px 10px; }
  .contact-card__icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .contact-card p { font-size: .75rem; }
  .faq { gap: 8px; }
  .faq__item summary { padding: 12px; gap: 10px; font-size: .82rem; min-height: 44px; }
  .faq__item summary small { font-size: .75rem; }
  .faq__item summary .icon { width: 28px; height: 28px; padding: 6px; }
  .faq__answer { padding: 0 12px 12px; font-size: .8rem; }
  .faq__lang-title { margin-top: 24px; font-size: .95rem; }
  .cta { padding: 24px 16px; border-radius: 18px; gap: 18px; }
  .cta p { font-size: .875rem; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cta__actions .btn { width: auto; flex: 1 1 130px; }
  .empty { padding: 24px 16px; border-radius: 16px; }
  .empty__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .pagination { flex-wrap: wrap; gap: 6px; }
  .footer { padding-top: 30px; }
  .footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 16px; padding-bottom: 26px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer h3 { font-size: .9rem; margin-bottom: 12px; padding-bottom: 8px; }
  .footer__links { grid-template-columns: 1fr; gap: 7px; }
  .footer__map { max-width: 320px; }
  .footer__map img { max-height: 140px; object-fit: cover; }
  .footer__bottom-inner { padding-block: 14px; gap: 10px; }
  .fab-whatsapp { width: 44px; height: 44px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .fab-whatsapp::after { animation: none; }
  .fab-whatsapp .icon { width: 24px; height: 24px; }
  .to-top { right: 14px; bottom: calc(64px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .hero__photo-note { max-width: 125px; }
  .hero__controls [data-slide-pause] { min-width: 56px; padding-inline: 8px; }
  .grid--3 { grid-template-columns: minmax(0,1fr); }
  .hero__actions .btn { font-size: .72rem; }
}


/* ---------- Home hero: one slideshow, two layouts ----------
   Laptops & tablets (above 720px): the original full-width photo with the
   title, text, buttons and Pause/Play over it (styles under "Home hero").
   Phones: the whole photo uncropped, then arrows and buttons below it. */
@media (min-width: 721px) {
  .hero--photos .hero__navigation,
  .hero--photos .hero__actions--below { display: none; }
  /* The school name alone over a clear photo; buttons and slideshow controls
     share one row along the bottom edge of the photo. */
  .hero--photos h1 {
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .55), 0 8px 36px rgba(0, 0, 0, .55);
  }
  .hero.hero--photos::before {
    background:
      radial-gradient(60% 55% at 22% 45%, rgba(5, 36, 11, .55), transparent 70%),
      linear-gradient(100deg, rgba(5, 36, 11, .55) 0%, rgba(5, 36, 11, .25) 34%, rgba(5, 36, 11, .05) 64%, rgba(5, 36, 11, 0) 100%),
      linear-gradient(0deg, rgba(5, 36, 11, .62) 0%, transparent 32%);
  }
  .hero--photos .hero__bottom { bottom: clamp(28px, 5vh, 48px); flex-wrap: wrap; gap: 16px; }
  .hero--photos .hero__bottom .hero__actions { gap: 14px; }
  .hero--photos .hero__actions .btn--glass { --btn-bg: rgba(5, 36, 11, .55); --btn-bd: rgba(255, 255, 255, .65); }
  .hero--photos .hero__controls { align-items: center; margin-left: auto; }
  .hero--photos .hero__controls[hidden] { display: none; }
  .hero__count { margin-right: 6px; font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
}
@media (max-width: 720px) {
  .hero.hero--photos { display: block; min-height: 0; overflow: hidden; color: var(--ink); background: var(--surface); }
  .hero.hero--photos::before { content: none; }
  .hero--photos .hero__media {
    position: relative; inset: auto; z-index: auto; width: 100%;
    aspect-ratio: 4 / 3; max-height: 60vh; max-height: 60svh;
    background: #edf2eb; overflow: hidden; touch-action: pan-y pinch-zoom;
  }
  .hero--photos .hero__media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; animation: none; }
  /* The overlay is laptop-only; its heading stays readable for search engines and screen readers. */
  .hero--photos .hero__inner {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hero--photos .hero__inner .hero__badge,
  .hero--photos .hero__inner .hero__lead,
  .hero--photos .hero__inner .hero__actions,
  .hero--photos .hero__bottom { display: none; }

  .hero__navigation { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 4px; }
  .hero__navigation[hidden] { display: none; }
  .hero__navigation button {
    display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
    background: var(--surface); color: var(--green-800); cursor: pointer;
  }
  .hero__navigation button:hover { background: var(--green-50); border-color: var(--green-600); }
  .hero__position { min-width: 48px; text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .hero--photos .hero__actions--below { justify-content: center; gap: 8px; padding: 10px 12px 12px; }
  .hero--photos .hero__actions--below .btn { flex: 0 1 auto; font-size: .72rem; padding: 8px 12px; min-height: 40px; }
}
