/* =========================================================
   Green Peace School — theme overrides
   Loaded AFTER assets/main.css to repaint the SaaS template
   into a warm, trustworthy school identity (green palette).
   ========================================================= */

:root {
  /* Brand green palette — overrides the template's purple */
  --color-primary-50: #ecfdf3;
  --color-primary-200: #bbf2cf;
  --color-primary-400: #34cb74;
  --color-primary-500: #15a350; /* main brand green */
  --color-primary-600: #0f7d3d; /* darker green */

  /* Friendly school accent colours used in icon chips */
  --color-ns-yellow: #ffd54a;
  --color-ns-cyan: #6fd3e6;
  --color-ns-red: #ff8a5c;
}

/* Keep the brand green consistent in dark mode too */
.dark {
  --color-primary-400: #3ad97e;
  --color-primary-500: #1bb95c;
  --color-primary-600: #15a350;
}

/* ---- Top utility bar (green brand strip) ----
   Sits in normal flow at the very top of the page, so it scrolls
   away naturally (NOT sticky). Only the floating nav stays fixed. */
.top-utility-bar {
  background: linear-gradient(90deg, var(--color-primary-600) 0%, var(--color-primary-500) 100%);
}
.topbar-ic {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.erp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--color-primary-600);
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.erp-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.topbar-social {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.topbar-social:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ---- Floating nav ----
   Sits below the utility bar at the top of the page, and rises to
   the top with a soft shadow once the bar has scrolled away.
   (md:top-[58px] was never compiled into main.css, so the offset
   is defined here to stop the nav overlapping the bar.) */
.header-one {
  top: 20px;
  transition: top 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 768px) {
  .header-one {
    top: 66px;
  }
}
.header-one.scrolled {
  top: 16px;
  box-shadow: 0 12px 30px rgba(8, 30, 18, 0.1);
}

/* ---- Hero slider (Swiper) ---- */
.hero-slider,
.hero-slider .swiper-slide {
  height: 100vh;
  min-height: 600px;
}
.hero-slide {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Darker on the left (where the text sits) + a soft bottom fade,
     so the heading and paragraph stay readable over any photo. */
  background:
    linear-gradient(90deg, rgba(6, 22, 13, 0.88) 0%, rgba(6, 22, 13, 0.62) 42%, rgba(6, 22, 13, 0.18) 78%, rgba(6, 22, 13, 0.05) 100%),
    linear-gradient(180deg, rgba(6, 22, 13, 0.25) 0%, rgba(6, 22, 13, 0.45) 100%);
  z-index: 1;
}
.hero-slide__inner {
  position: relative;
  z-index: 2;
}
.hero-slide__inner h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero-slide__inner p {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 16px rgba(0, 0, 0, 0.45);
}
/* Ken-burns zoom on the active slide image */
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 7s ease;
}
.swiper-slide-active .hero-slide__bg {
  transform: scale(1.12);
}
/* Slider controls */
.hero-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.hero-slider .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  border-radius: 6px;
  background: var(--color-primary-400);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.3s ease;
}
@media (min-width: 1024px) {
  .hero-arrow { display: flex; }
}
.hero-arrow:hover {
  background: var(--color-primary-500);
}
.hero-arrow--prev { left: 32px; }
.hero-arrow--next { right: 32px; }

/* ---- Page banner (inner pages) ---- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 30, 18, 0.6), rgba(8, 30, 18, 0.8));
  z-index: 1;
}
.page-banner__inner {
  position: relative;
  z-index: 2;
}
.page-banner__inner p {
  color: rgba(255, 255, 255, 0.92);
}
.breadcrumb,
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumb a:hover {
  color: var(--color-primary-400);
}

/* =========================================================
   Utility compat layer
   main.css is a PRE-BUILT Tailwind file: it only contains the
   utility variants the original template used. These responsive
   grid / gap / width utilities are used by the school sections
   but were never compiled, so we define them here (real Tailwind
   breakpoints + values, so behaviour is identical).
   ========================================================= */
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.items-end { align-items: flex-end; }
.self-center { align-self: center; }
.auto-rows-\[150px\] { grid-auto-rows: 150px; }
.h-\[200px\] { height: 200px; }
.h-\[54px\] { height: 54px; }
.min-h-\[300px\] { min-height: 300px; }
.pt-\[120px\] { padding-top: 120px; }
.rounded-\[24px\] { border-radius: 24px; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.gap-x-20 { column-gap: 5rem; }
.gap-y-12 { row-gap: 3rem; }
.max-w-\[620px\] { max-width: 620px; }
/* added 2026-07-11 (pre-deploy audit): further uncompiled utilities the school views rely on */
.min-h-\[280px\] { min-height: 280px; }       /* home campus photo box (0-height on mobile without it) */
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; } /* blog cards + home blog-teaser image ratio */
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }   /* blog post hero image ratio */
.bottom-4 { bottom: 1rem; }                   /* about principal figcaption inset (about.blade:44) */
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.z-\[10000\] { z-index: 10000; }              /* gallery lightbox above header pill + theme toggle */
.max-w-\[90vw\] { max-width: 90vw; }          /* gallery lightbox figure/image sizing */
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[78vh\] { max-height: 78vh; }
@media (min-width: 1024px) {
  .lg\:min-h-0 { min-height: 0; }             /* home campus photo: natural height at lg+ */
  .lg\:w-\[420px\] { width: 420px; }
  .lg\:gap-x-20 { column-gap: 5rem; }
  .lg\:gap-x-24 { column-gap: 6rem; }
  .lg\:mb-\[72px\] { margin-bottom: 72px; }
}

/* Section-header layout utilities used by the Blog teaser (Home) and the Blog
   listing headers — these responsive flex / margin / spacing variants were
   never compiled into main.css, so the header stretched its CTA button into a
   circle and left no gap above the cards. (2026-07-13) */
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.max-w-\[560px\] { max-width: 560px; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
}
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-end { align-items: flex-end; }
}

/* ---- Our Promise checklist ---- */
.promise-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 28px;
}
@media (min-width: 640px) {
  .promise-list { grid-template-columns: 1fr 1fr; }
}
.promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-tagline-1);
  color: var(--color-secondary);
}
.dark .promise-item { color: var(--color-accent); }
.promise-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--color-primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.max-w-\[600px\] { max-width: 600px; }
.max-w-\[640px\] { max-width: 640px; }
.max-w-\[665px\] { max-width: 665px; }
.max-w-\[680px\] { max-width: 680px; }
.max-w-\[720px\] { max-width: 720px; }
.max-w-\[760px\] { max-width: 760px; }
.max-w-\[820px\] { max-width: 820px; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:gap-4 { gap: 1rem; }
  .md\:gap-6 { gap: 1.5rem; }
  .md\:auto-rows-\[200px\] { grid-auto-rows: 200px; }
  .md\:pt-\[150px\] { padding-top: 150px; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-6 { gap: 1.5rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* ---- Stats section ---- */
.stat-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.stat-head p {
  max-width: 600px;
  margin: 14px auto 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 768px) {
  .stat-grid { gap: 24px; }
}
@media (min-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- Stat cards (simple & flat) ---- */
.stat-card {
  position: relative;
  text-align: center;
  padding: 26px 18px;
  border-radius: 12px;
  background: var(--color-background-1);
  border: 1px solid var(--color-stroke-2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dark .stat-card {
  background: var(--color-background-6);
  border-color: color-mix(in oklab, var(--color-accent) 9%, transparent);
}
.stat-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: 0 6px 20px rgba(8, 30, 18, 0.05);
}
/* the old hover accent bar is intentionally removed for a cleaner look */
.stat-card__bar { display: none; }

/* highlighted card — flat blue accent, no inner chip */
.stat-card--accent {
  background: #2563eb;
  border-color: #2563eb;
}
.dark .stat-card--accent {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.stat-card--accent:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

/* solid icon chip with light (#e8fbc6) custom icons */
.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-500);
  color: #e8fbc6;
}
.stat-icon svg {
  width: 34px;
  height: 34px;
}
.stat-card--accent .stat-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* solid colour chips — light #e8fbc6 glyphs sit on top */
.stat-icon--amber  { background: #c2710c; color: #e8fbc6; }
.stat-icon--teal   { background: #0d9488; color: #e8fbc6; }
.stat-icon--violet { background: #7c3aed; color: #e8fbc6; }
.stat-icon--rose   { background: #be123c; color: #e8fbc6; }
.stat-icon--indigo { background: #4338ca; color: #e8fbc6; }
.stat-icon--blue   { background: #2563eb; color: #e8fbc6; }

.stat-num {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--color-secondary);
}
.dark .stat-num { color: var(--color-accent); }
.stat-card--accent .stat-num { color: #fff; }

.stat-label {
  margin-top: 4px;
  font-size: var(--text-tagline-2);
  color: color-mix(in oklab, var(--color-secondary) 60%, transparent);
}
.dark .stat-label {
  color: color-mix(in oklab, var(--color-accent) 60%, transparent);
}
.stat-card--accent .stat-label {
  color: rgba(255, 255, 255, 0.85);
}
.stat-card--accent .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Home gallery (coverflow-style slider) ---- */
.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--color-primary-500);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-slider {
  overflow: hidden;
  padding-top: 6px;
}
.gallery-slider .swiper-slide {
  width: min(560px, 82vw);
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.8);
  opacity: 0.4;
  z-index: 1;
}
.gallery-slider .swiper-slide-prev,
.gallery-slider .swiper-slide-next {
  z-index: 2;
}
.gallery-slider .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 3;
}
.gallery-slide {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1 / 1.04;
  box-shadow: 0 24px 55px rgba(8, 30, 18, 0.2);
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(8, 30, 18, 0.15);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.gallery-arrow:hover {
  background: var(--color-primary-500);
  color: #fff;
}
.dark .gallery-arrow {
  background: var(--color-background-6);
  color: var(--color-accent);
}
.dark .gallery-arrow:hover {
  background: var(--color-primary-500);
  color: #fff;
}
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
@media (min-width: 1024px) {
  .gallery-prev { left: 17%; }
  .gallery-next { right: 17%; }
}
/* pagination */
.gallery-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gallery-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-stroke-2);
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dark .gallery-pagination .swiper-pagination-bullet {
  background: color-mix(in oklab, var(--color-accent) 18%, transparent);
}
.gallery-pagination .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 6px;
  background: var(--color-primary-500);
}

/* ---- Testimonials (clean card grid) ---- */
.tm-card {
  position: relative;
  background: var(--color-background-2);
  border: 1px solid var(--color-stroke-2);
  border-radius: 18px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .tm-card {
  background: var(--color-background-7);
  border-color: rgba(255, 255, 255, 0.08);
}
.tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(8, 30, 18, 0.08);
  border-color: var(--color-primary-200);
}
.tm-stars {
  display: flex;
  gap: 4px;
  color: #f5b301;
  margin-bottom: 18px;
}
.tm-stars svg {
  width: 18px;
  height: 18px;
}
.tm-quote {
  color: color-mix(in oklab, var(--color-secondary) 85%, transparent);
  line-height: 1.65;
  margin-bottom: 26px;
}
.dark .tm-quote {
  color: color-mix(in oklab, var(--color-accent) 85%, transparent);
}
.tm-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.tm-name {
  font-size: var(--text-tagline-1);
  font-weight: 600;
  color: var(--color-secondary);
}
.dark .tm-name {
  color: var(--color-accent);
}
.tm-role {
  font-size: var(--text-tagline-3);
  color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
}
.dark .tm-role {
  color: color-mix(in oklab, var(--color-accent) 55%, transparent);
}

/* ---- Achievements: result stats ---- */
.result-num {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-secondary);
}
.dark .result-num {
  color: var(--color-accent);
}
.result-label {
  margin-top: 6px;
  font-size: var(--text-tagline-2);
  color: color-mix(in oklab, var(--color-secondary) 60%, transparent);
}
.dark .result-label {
  color: color-mix(in oklab, var(--color-accent) 60%, transparent);
}

/* ---- Achievements: topper cards ---- */
.topper-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.topper-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.topper-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}
.dark .topper-tag {
  background: rgba(27, 185, 92, 0.15);
  color: var(--color-primary-400);
}
.topper-name {
  font-size: var(--text-heading-6);
  font-weight: 600;
  color: var(--color-secondary);
}
.dark .topper-name {
  color: var(--color-accent);
}
.topper-score {
  font-size: var(--text-tagline-2);
  color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
}
.dark .topper-score {
  color: color-mix(in oklab, var(--color-accent) 55%, transparent);
}

/* ============================================================
   Faculty / Teachers cards
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 640px) {
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
}
.faculty-card {
  background: var(--color-background-1);
  border: 1px solid var(--color-stroke-2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -22px rgba(15, 125, 61, 0.35);
  border-color: color-mix(in oklab, var(--color-primary-500) 35%, var(--color-stroke-2));
}
.dark .faculty-card {
  background: var(--color-background-6);
  border-color: var(--color-stroke-7);
}
.faculty-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.faculty-card:hover .faculty-photo img { transform: scale(1.05); }
.faculty-exp {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-600);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.faculty-exp svg { width: 13px; height: 13px; }
.dark .faculty-exp {
  background: rgba(18, 26, 21, 0.82);
  color: #7ee2a4;
}
.faculty-body {
  padding: 20px 20px 24px;
  text-align: center;
}
.faculty-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-secondary);
}
.dark .faculty-name { color: var(--color-accent); }
.faculty-subject {
  display: inline-block;
  margin-top: 9px;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
}
.dark .faculty-subject {
  background: color-mix(in oklab, var(--color-primary-500) 16%, transparent);
  color: #5fd58c;
}

/* ============================================================
   Contact page — embedded map
   ============================================================ */
.contact-map {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-stroke-2);
  box-shadow: 0 22px 48px -26px rgba(15, 125, 61, 0.35);
}
.dark .contact-map {
  border-color: var(--color-stroke-7);
}
.contact-map__frame {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}
@media (max-width: 640px) {
  .contact-map__frame { height: 320px; }
}
.contact-map__dir {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-500);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15, 125, 61, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-map__dir:hover {
  background: var(--color-primary-600);
  transform: translateY(-2px);
}
.contact-map__dir svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Footer refinements
   ============================================================ */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--color-stroke-2);
  color: color-mix(in oklab, var(--color-secondary) 75%, transparent);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}
.footer-social:hover {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #ffffff;
  transform: translateY(-3px);
}
.footer-social svg {
  width: 17px;
  height: 17px;
}
.dark .footer-social {
  border-color: var(--color-stroke-7);
  color: var(--color-accent);
}
.dark .footer-social:hover {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #ffffff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact .fc-ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}
.footer-contact .fc-ic svg {
  width: 16px;
  height: 16px;
}
.dark .footer-contact .fc-ic {
  background: color-mix(in oklab, var(--color-primary-500) 14%, transparent);
  color: #5fd58c;
}

/* ============================================================
   Contact section — info cards
   ============================================================ */
.contact-info-card {
  border: 1px solid var(--color-stroke-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -20px rgba(15, 125, 61, 0.3);
  border-color: color-mix(in oklab, var(--color-primary-500) 32%, transparent);
}
.dark .contact-info-card {
  border-color: var(--color-stroke-7);
}

/* ============================================================
   Forms — admission inquiry (centered wrapper + status alerts)
   ============================================================ */
.form-narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.form-alert {
  display: none;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 22px;
}
.form-alert.is-visible {
  display: flex;
}
.form-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-alert--success {
  background: #ecfdf3;
  color: #0f7d3d;
  border: 1px solid #abefc6;
}
.form-alert--error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}
.dark .form-alert--success {
  background: color-mix(in oklab, var(--color-primary-500) 16%, transparent);
  color: #7ee2a4;
  border-color: color-mix(in oklab, var(--color-primary-500) 32%, transparent);
}
.dark .form-alert--error {
  background: rgba(240, 68, 56, 0.15);
  color: #fca19b;
  border-color: rgba(240, 68, 56, 0.32);
}

/* Offset anchored sections so the fixed floating header doesn't cover them
   when navigating to in-page links like #downloads / #fees / #faq. */
section[id] {
  scroll-margin-top: 100px;
}

/* The frozen Tailwind build omitted the responsive flex-row variant, so
   "flex-col sm:flex-row" groups (hero CTAs, enquiry/newsletter forms, 404
   buttons) stayed stacked on every screen. Restore: stack on mobile, row
   from 640px up. */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Achievements section — restore vertical spacing/gaps the frozen Tailwind
   build omits (mb-12 / lg:mb-16 / lg:gap-6 / lg:gap-8). Scoped to this
   section only, so nothing else on the site changes. */
#achievements .mb-12 {
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  #achievements .lg\:mb-16 {
    margin-bottom: 4rem;
  }
  #achievements .lg\:gap-6 {
    gap: 1.5rem;
  }
  #achievements .lg\:gap-8 {
    gap: 2rem;
  }
}

/* Contact page — restore the column gap and map spacing the frozen Tailwind
   build omits (lg:gap-x-16 / mt-12 / lg:mt-16). Scoped to the contact
   section only, so nothing else changes. */
#get-in-touch .mt-12 {
  margin-top: 3rem;
}
@media (min-width: 1024px) {
  #get-in-touch .lg\:gap-x-16 {
    column-gap: 4.5rem;
  }
  #get-in-touch .lg\:mt-16 {
    margin-top: 4rem;
  }
}
@media (min-width: 1280px) {
  #get-in-touch .lg\:gap-x-16 {
    column-gap: 5.5rem;
  }
}

/* ============================================================
   404 — page not found
   ============================================================ */
.error-page {
  padding-top: 170px;
  padding-bottom: 90px;
  text-align: center;
}
@media (min-width: 768px) {
  .error-page {
    padding-top: 220px;
    padding-bottom: 140px;
  }
}
.error-code {
  font-size: 96px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-primary-500);
}
@media (min-width: 768px) {
  .error-code {
    font-size: 150px;
  }
}
.error-inner {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.error-inner .max-w-\[560px\] {
  max-width: 560px;
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--color-stroke-2);
}
.dark .error-links {
  border-color: var(--color-stroke-7);
}
.error-links a {
  font-size: 14px;
  color: color-mix(in oklab, var(--color-secondary) 65%, transparent);
  transition: color 0.2s ease;
}
.error-links a:hover {
  color: var(--color-primary-600);
}
.dark .error-links a {
  color: color-mix(in oklab, var(--color-accent) 65%, transparent);
}
.dark .error-links a:hover {
  color: #5fd58c;
}

/* ============================================================
   Legal / policy pages (Privacy Policy)
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.legal-content .legal-updated {
  font-size: 14px;
  margin-bottom: 28px;
  color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
}
.dark .legal-content .legal-updated {
  color: color-mix(in oklab, var(--color-accent) 55%, transparent);
}
.legal-content h3 {
  font-size: var(--text-heading-5);
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 38px;
  margin-bottom: 12px;
}
.dark .legal-content h3 {
  color: var(--color-accent);
}
.legal-content p {
  margin-bottom: 14px;
  line-height: 1.75;
}
.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: color-mix(in oklab, var(--color-secondary) 80%, transparent);
}
.dark .legal-content li {
  color: color-mix(in oklab, var(--color-accent) 80%, transparent);
}
.legal-content a {
  color: var(--color-primary-600);
  text-decoration: underline;
}
.dark .legal-content a {
  color: #5fd58c;
}

/* Footer legal links (Privacy Policy) */
.footer-legal-links {
  margin-top: 10px;
  font-size: 13.5px;
}
.footer-legal-links a {
  color: color-mix(in oklab, var(--color-secondary) 65%, transparent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}
.dark .footer-legal-links a {
  color: color-mix(in oklab, var(--color-accent) 60%, transparent);
}
.dark .footer-legal-links a:hover {
  color: #5fd58c;
}

/* Footer credit line — "Developed by ElySpace" */
.footer-credit {
  margin-top: 8px;
  font-size: 13.5px;
  color: color-mix(in oklab, var(--color-secondary) 60%, transparent);
}
.dark .footer-credit {
  color: color-mix(in oklab, var(--color-accent) 50%, transparent);
}
.footer-credit a {
  color: var(--color-primary-600);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-credit a:hover {
  color: var(--color-primary-500);
  text-decoration: underline;
}
.dark .footer-credit a {
  color: #5fd58c;
}

/* =========================
   Gallery album tabs (Gallery page)
   ========================= */
.gallery-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-stroke-2, #e6e6e9);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.gallery-tabs::-webkit-scrollbar { height: 4px; }
.gallery-tabs::-webkit-scrollbar-track { background: transparent; }
.gallery-tabs::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--color-secondary) 25%, transparent);
  border-radius: 999px;
}
.gallery-tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  color: color-mix(in oklab, var(--color-secondary) 55%, transparent);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
}
.gallery-tab:hover { color: var(--color-secondary); }
.gallery-tab.is-active {
  color: var(--color-primary-500);
  border-bottom-color: var(--color-primary-500);
  font-weight: 600;
}
.dark .gallery-tab { color: color-mix(in oklab, var(--color-accent) 55%, transparent); }
.dark .gallery-tab:hover { color: var(--color-accent); }
.dark .gallery-tab.is-active { color: var(--color-primary-500); border-bottom-color: var(--color-primary-500); }

/* =========================
   Mobile menu nav links
   ========================= */
.m-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: color-mix(in oklab, var(--color-secondary) 78%, transparent);
  transition: background-color .2s ease, color .2s ease;
}
.m-nav-link svg { flex-shrink: 0; opacity: .35; transition: transform .2s ease, opacity .2s ease; }
.m-nav-link:hover {
  background: color-mix(in oklab, var(--color-primary-500) 9%, transparent);
  color: var(--color-secondary);
}
.m-nav-link:hover svg { transform: translateX(3px); opacity: .7; }
.m-nav-link.is-active {
  background: var(--color-primary-500);
  color: #fff;
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--color-primary-500) 70%, transparent);
}
.m-nav-link.is-active svg { opacity: .9; }
.dark .m-nav-link { color: color-mix(in oklab, var(--color-accent) 78%, transparent); }
.dark .m-nav-link:hover { color: var(--color-accent); }
.dark .m-nav-link.is-active { color: #fff; }

/* =========================
   Logo — white version in Dark Mode only (light mode unaffected)
   ========================= */
.dark .site-logo {
  filter: brightness(0) invert(1);
}

/* =========================
   Dark Mode readability safety net
   The template colours headings & <p> for dark mode, but plain INHERITED
   text (form inputs, <select>, currentColor icons, stray <span>/<div>/<label>
   text) inherits from <body>, which has no colour set — so it stayed dark on
   a dark background and became unreadable. In dark mode every container has a
   dark background, so making inherited text light is always safe. Elements
   with their own explicit colour (badges, buttons, chips, links) are
   unaffected.
   ========================= */
.dark body {
  color: var(--color-accent);
}
.dark input,
.dark textarea,
.dark select {
  color: var(--color-accent);
}
/* Soft-tinted avatars (testimonials / toppers) use an inline light background;
   keep their initials readable and the chip from glaring on dark cards. */
.dark .tm-avatar,
.dark .topper-avatar {
  filter: saturate(1.1);
}

/* =========================
   Mobile drawer secondary buttons (ERP / Dashboard Login)
   ========================= */
.m-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-stroke-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-secondary);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.m-drawer-btn svg { flex-shrink: 0; }
.m-drawer-btn:hover {
  border-color: var(--color-primary-500);
  color: var(--color-primary-500);
}
.dark .m-drawer-btn { border-color: var(--color-stroke-7); color: var(--color-accent); }
.dark .m-drawer-btn:hover { border-color: var(--color-primary-500); color: var(--color-primary-500); }

/* =========================================================
   Blog
   ========================================================= */
/* category filter pills */
.blog-pill {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--color-stroke-2); color: color-mix(in oklab, var(--color-secondary) 75%, transparent);
  transition: all .2s ease;
}
.blog-pill:hover { border-color: var(--color-primary-500); color: var(--color-primary-500); }
.blog-pill.is-active { background: var(--color-primary-500); border-color: var(--color-primary-500); color: #fff; }
.dark .blog-pill { border-color: var(--color-stroke-7); color: color-mix(in oklab, var(--color-accent) 70%, transparent); }
.dark .blog-pill.is-active { color: #fff; }

/* pagination */
.blog-page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--color-stroke-2); font-weight: 600; font-size: 15px;
  color: var(--color-secondary); transition: all .2s ease;
}
.blog-page:hover { border-color: var(--color-primary-500); color: var(--color-primary-500); }
.blog-page.is-active { background: var(--color-primary-500); border-color: var(--color-primary-500); color: #fff; }
.blog-page.is-disabled { opacity: .4; pointer-events: none; }
.dark .blog-page { border-color: var(--color-stroke-7); color: var(--color-accent); }

/* share buttons */
.blog-share {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--color-background-2); color: var(--color-secondary); transition: all .2s ease; cursor: pointer;
  border: 1px solid var(--color-stroke-2);
}
.blog-share:hover, .blog-share.is-copied { background: var(--color-primary-500); border-color: var(--color-primary-500); color: #fff; }
.dark .blog-share { background: var(--color-background-7); border-color: var(--color-stroke-7); color: var(--color-accent); }

/* article body (rich content from the editor) */
.blog-content { font-size: 17px; line-height: 1.8; }
.blog-content > *:first-child { margin-top: 0; }
.blog-content h2 { font-size: 26px; font-weight: 700; margin: 34px 0 14px; color: var(--color-secondary); }
.blog-content h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; color: var(--color-secondary); }
.blog-content p { margin: 0 0 20px; }
.blog-content a { color: var(--color-primary-500); text-decoration: underline; }
.blog-content ul, .blog-content ol { margin: 0 0 20px; padding-left: 26px; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 8px; }
.blog-content blockquote { margin: 0 0 22px; padding: 12px 22px; border-left: 4px solid var(--color-primary-500);
  background: var(--color-background-2); border-radius: 0 12px 12px 0; font-style: italic; }
.blog-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0 22px; }
.blog-content strong { font-weight: 700; color: var(--color-secondary); }
.dark .blog-content h2, .dark .blog-content h3, .dark .blog-content strong { color: var(--color-accent); }
.dark .blog-content blockquote { background: var(--color-background-7); }

/* search box (magnifier icon + input + button).
   The compiled main.css does NOT ship pl-11/pr-4/left-4/top-1/2/-translate-y-1/2,
   so the icon and placeholder used to collapse onto the same spot at the left edge.
   This component is self-contained and independent of those utilities. */
.blog-search { display: flex; align-items: center; gap: 10px; }
.blog-search__field { position: relative; flex: 1 1 auto; min-width: 0; }
@media (min-width: 1024px) { .blog-search__field { flex: 0 0 300px; } }
.blog-search__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; pointer-events: none;
  color: color-mix(in oklab, var(--color-secondary) 45%, transparent);
}
.blog-search__icon svg { display: block; width: 18px; height: 18px; }
.blog-search__input {
  width: 100%; height: 48px; padding: 0 20px 0 44px;
  border-radius: 999px; border: 1px solid var(--color-stroke-2);
  background: var(--color-background-1); color: var(--color-secondary);
  font-size: 15px; line-height: normal; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease;
}
.blog-search__input::placeholder { color: color-mix(in oklab, var(--color-secondary) 45%, transparent); opacity: 1; }
.blog-search__input:focus { border-color: var(--color-primary-500); }
/* strip native search-field decorations that clip/shift the placeholder text */
.blog-search__input::-webkit-search-decoration,
.blog-search__input::-webkit-search-cancel-button,
.blog-search__input::-webkit-search-results-button,
.blog-search__input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; }
.dark .blog-search__input { background: var(--color-background-7); border-color: var(--color-stroke-7); color: var(--color-accent); }
.dark .blog-search__input::placeholder { color: color-mix(in oklab, var(--color-accent) 45%, transparent); }
.dark .blog-search__icon { color: color-mix(in oklab, var(--color-accent) 45%, transparent); }
