@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito+Sans:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

:root {
  --bg: #f7f9fd;
  --bg-soft: #f6f1e5;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #16263f;
  --muted: #59697e;
  --brand: #10284d;
  --brand-2: #caa014;
  --accent: #ff8a3d;
  --accent-2: #b84d5a;
  --accent-3: #ffd24d;
  --accent-4: #4d6fb3;
  --line: rgba(22, 38, 63, 0.12);
  --shadow: 0 26px 56px rgba(22, 38, 63, 0.12);
  --shadow-soft: 0 14px 28px rgba(22, 38, 63, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 40, 77, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(202, 160, 20, 0.14), transparent 23%),
    radial-gradient(circle at 15% 80%, rgba(77, 111, 179, 0.12), transparent 20%),
    radial-gradient(circle at 85% 75%, rgba(184, 77, 90, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}

::selection {
  background: rgba(29, 114, 243, 0.18);
  color: var(--text);
}

body.sidebar-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--brand-2);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section.compact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 241, 229, 0.82)),
    linear-gradient(135deg, rgba(16, 40, 77, 0.04), rgba(202, 160, 20, 0.05));
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(16, 40, 77, 0.04), rgba(202, 160, 20, 0.08)),
    linear-gradient(135deg, rgba(16, 40, 77, 0.04), rgba(77, 111, 179, 0.04));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-shell {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(22, 38, 63, 0.08);
  box-shadow: 0 8px 28px rgba(22, 38, 63, 0.06);
  backdrop-filter: blur(18px);
}

.nav-shell {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
}

.brand-mark {
  width: 3.45rem;
  height: 3.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-mark.is-fallback {
  clip-path: polygon(50% 0%, 91% 16%, 91% 58%, 50% 100%, 9% 58%, 9% 16%);
  display: grid;
  place-items: center;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, var(--brand), #0b1d39 58%, var(--brand-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(16, 40, 77, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand-mark.is-fallback::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  clip-path: polygon(50% 0%, 91% 16%, 91% 58%, 50% 100%, 9% 58%, 9% 16%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: inherit;
  opacity: 0.75;
}

.brand-mark.is-fallback::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0.48rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-weight: 650;
  transition: color 0.2s ease;
}

/* Transparent navbar overrides removed */

.site-nav a::before,
.sidebar-nav a::before,
.button::before,
.text-link::before {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a[href="index.html"]::before,
.sidebar-nav a[href="index.html"]::before {
  content: "home";
}

.site-nav a[href="about.html"]::before,
.sidebar-nav a[href="about.html"]::before {
  content: "info";
}

.site-nav a[href="faculty.html"]::before,
.sidebar-nav a[href="faculty.html"]::before {
  content: "groups";
}

.site-nav a[href="fees.html"]::before,
.sidebar-nav a[href="fees.html"]::before {
  content: "payments";
}

.site-nav a[href="admissions.html"]::before,
.sidebar-nav a[href="admissions.html"]::before {
  content: "edit_document";
}

.site-nav a[href="gallery.html"]::before,
.sidebar-nav a[href="gallery.html"]::before {
  content: "photo_library";
}

.site-nav a[href="contact.html"]::before,
.sidebar-nav a[href="contact.html"]::before {
  content: "call";
}

.site-nav a[href="notices.html"]::before,
.sidebar-nav a[href="notices.html"]::before {
  content: "notifications";
}

.site-nav a[href="events.html"]::before,
.sidebar-nav a[href="events.html"]::before {
  content: "event";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.button::before {
  margin-right: 0.45rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--accent));
  box-shadow: 0 18px 34px rgba(29, 114, 243, 0.22);
}

.button-solid[href="admissions.html"]::before,
.button-solid[data-action="apply"]::before {
  content: "how_to_reg";
}

.button-solid[data-action="send"]::before {
  content: "send";
}

.button-solid:hover,
.button-solid:focus-visible {
  box-shadow: 0 22px 40px rgba(29, 114, 243, 0.28);
}

.button-soft {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button-outline {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.button-outline[href="gallery.html"]::before {
  content: "visibility";
}

.button-soft[href="fees.html"]::before {
  content: "request_quote";
}

.button-soft[href="contact.html"]::before,
.text-link::before {
  content: "arrow_forward";
}

.button-outline:hover,
.button-outline:focus-visible,
.button-soft:hover,
.button-soft:focus-visible {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

/* Hero buttons on dark background */
.hero-copy .button-outline,
.hero-copy .button-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.button-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  background: transparent !important;
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: #ffffff !important;
  color: var(--brand) !important;
  border-color: #ffffff !important;
}

.hero-copy .button-outline:hover,
.hero-copy .button-soft:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.48);
}

.menu-button {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 56, 56, 0.25);
  background: rgba(255, 255, 255, 0.9);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.38rem;
}

.menu-button span {
  width: 1.12rem;
  height: 2px;
  border-radius: 999px;
  background: #d93838;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 90;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(392px, 92vw);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -22px 0 40px rgba(15, 24, 42, 0.18);
  transform: translateX(102%);
  transition: transform 0.28s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  height: 100%;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar-close {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-nav a {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(29, 114, 243, 0.05);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.sidebar-nav a.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.12), rgba(255, 138, 61, 0.12));
}

.sidebar-card {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(29, 114, 243, 0.1), rgba(255, 138, 61, 0.12)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 114, 243, 0.14);
}

.sidebar-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

body.sidebar-open .menu-button span:first-child {
  transform: translateY(5px) rotate(45deg);
}

body.sidebar-open .menu-button span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.76rem;
}

.title-xl,
.title-lg,
.title-md {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin: 0;
}

.title-xl {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 12ch;
}

.title-lg {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
}

.title-md {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 1rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.surface-card,
.soft-card,
.info-card,
.teacher-card,
.notice-card,
.event-card,
.contact-card,
.form-card,
.gallery-card,
.fee-card,
.modal-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 34, 56, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.surface-card {
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.92)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.04), rgba(255, 138, 61, 0.04));
}

.soft-card {
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 248, 0.9)),
    linear-gradient(135deg, rgba(21, 184, 166, 0.06), rgba(255, 210, 77, 0.06));
}

section[id] {
  scroll-margin-top: 110px;
}

/* Push content below sticky navbar for all pages */
main {
  padding-top: 0;
}

body[data-page="home"] .school-ribbon {
  margin-top: 0;
}

/* Home hero — full-width cinematic slider starting below navbar */
.hero {
  position: relative;
  padding: 0;
  margin: 0;
  height: calc(100vh - 128px);
  min-height: 500px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* Hero copy is absolutely placed over the slider */
.hero-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 2.5rem max(2rem, calc((100vw - 1180px) / 2 + 2rem));
  background: linear-gradient(
    to top,
    rgba(11, 18, 42, 0.88) 0%,
    rgba(11, 18, 42, 0.55) 50%,
    transparent 100%
  );
}

.hero-copy .eyebrow {
  color: var(--brand-2);
  opacity: 0.92;
}

.hero-copy .title-xl {
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.4rem;
}

.hero-metrics {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0.85rem;
  width: max-content;
  max-width: 100%;
}

.metric-card {
  padding: 0.8rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.metric-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--brand-2);
  font-size: 1.35rem;
  font-weight: 700;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(16, 40, 77, 0.95), rgba(29, 114, 243, 0.9) 58%, rgba(202, 160, 20, 0.84));
}

.slider-stage {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2;
}

.slider-button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(16, 40, 77, 0.4);
  color: #fff;
  backdrop-filter: blur(10px);
}

.slider-button .material-icons {
  font-size: 1.2rem;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 40, 77, 0.28);
  backdrop-filter: blur(10px);
}

.slider-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dot.is-active {
  background: #fff;
}

.home-marquee {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(21, 34, 56, 0.08);
  border-bottom: 1px solid rgba(21, 34, 56, 0.08);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(242, 248, 255, 0.92));
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  padding: 0.8rem 0;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

.ticker-item .material-icons {
  font-size: 1rem;
  color: var(--brand-2);
}

.ticker-item a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ticker-item .dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.school-ribbon {
  width: var(--container);
  margin: 1.25rem auto 0;
  padding: 0.72rem 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 77, 0.12);
  background: linear-gradient(90deg, rgba(16, 40, 77, 0.09), rgba(202, 160, 20, 0.14), rgba(255, 138, 61, 0.08));
  box-shadow: var(--shadow-soft);
}

.school-ribbon-track {
  display: flex;
  width: max-content;
  gap: 1.35rem;
  padding-inline: 1rem;
  animation: ribbon-scroll 18s linear infinite;
}

.school-ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.school-ribbon-track .material-icons {
  font-size: 1.05rem;
  color: var(--brand-2);
  background: rgba(202, 160, 20, 0.16);
  border-radius: 999px;
  padding: 0.1rem;
}

.school-ribbon:hover .school-ribbon-track,
.ticker:hover .ticker-track,
.teacher-marquee:hover .teacher-track,
.school-ribbon:focus-within .school-ribbon-track,
.ticker:focus-within .ticker-track,
.teacher-track:focus-within {
  animation-play-state: paused;
}

@keyframes ribbon-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.classroom-divider {
  width: var(--container);
  margin: 1.3rem auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.classroom-divider span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(16, 40, 77, 0.24), rgba(202, 160, 20, 0.56), rgba(16, 40, 77, 0.24), transparent);
}

.classroom-divider .material-icons {
  color: var(--brand-2);
  font-size: 1.35rem;
  animation: divider-bob 3.2s ease-in-out infinite;
}

@keyframes divider-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.section-heading {
  max-width: 50rem;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.7rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 40, 77, 0.14);
  background: linear-gradient(135deg, rgba(16, 40, 77, 0.08), rgba(202, 160, 20, 0.12));
  color: var(--brand);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.badge-chip.alt {
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.08), rgba(255, 138, 61, 0.12));
  color: var(--brand-2);
}

.badge-chip.soft {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 252, 248, 0.9));
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice-event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label h3 {
  margin: 0;
  font-size: 1.05rem;
}

.section-label a,
.card-link,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link::before {
  font-size: 0.95rem;
}

.boxed-list {
  display: grid;
  gap: 0.85rem;
}

.boxed-link {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(21, 34, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 255, 0.92)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.04), rgba(255, 138, 61, 0.05));
}

.boxed-link:hover,
.boxed-link:focus-visible {
  border-color: rgba(29, 114, 243, 0.24);
  transform: translateY(-1px);
}

.boxed-link strong {
  color: var(--text);
}

.boxed-link span {
  color: var(--muted);
  line-height: 1.5;
}

.boxed-link time,
.event-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-card {
  padding: 1.35rem;
}

.quick-grid .info-card:nth-child(4n + 1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94)),
    linear-gradient(135deg, rgba(16, 40, 77, 0.08), rgba(202, 160, 20, 0.06));
}

.quick-grid .info-card:nth-child(4n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.08), rgba(202, 160, 20, 0.06));
}

.quick-grid .info-card:nth-child(4n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 240, 0.94)),
    linear-gradient(135deg, rgba(202, 160, 20, 0.09), rgba(184, 77, 90, 0.06));
}

.quick-grid .info-card:nth-child(4n + 4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.94)),
    linear-gradient(135deg, rgba(77, 111, 179, 0.08), rgba(16, 40, 77, 0.06));
}

.info-card h3,
.teacher-card h3,
.notice-card h3,
.event-card h3,
.contact-card h3,
.fee-card h3,
.gallery-card h3,
.modal-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.05rem;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #173d75 58%, var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-family: "Material Icons";
  font-size: 1.3rem;
  box-shadow: 0 12px 24px rgba(16, 40, 77, 0.16);
}

.info-card p,
.teacher-card p,
.notice-card p,
.event-card p,
.contact-card p,
.fee-card p,
.gallery-card p {
  color: var(--muted);
  line-height: 1.7;
}

.teacher-marquee {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(21, 34, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(243, 249, 255, 0.82));
}

.teacher-marquee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.teacher-marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.teacher-marquee-label .material-icons {
  color: var(--brand-2);
}

.teacher-marquee-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.teacher-track {
  display: flex;
  width: 100%;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.teacher-track::-webkit-scrollbar {
  display: none;
}

.teacher-portrait {
  flex: 0 0 220px;
  width: 220px;
  padding: 0.95rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 34, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)),
    linear-gradient(135deg, rgba(16, 40, 77, 0.05), rgba(202, 160, 20, 0.08));
  box-shadow: var(--shadow-soft);
}

.teacher-portrait:nth-child(4n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 252, 248, 0.94)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.06), rgba(202, 160, 20, 0.08));
}

.teacher-portrait:nth-child(4n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 243, 0.94)),
    linear-gradient(135deg, rgba(202, 160, 20, 0.06), rgba(184, 77, 90, 0.08));
}

.teacher-portrait:nth-child(4n + 4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 255, 0.94)),
    linear-gradient(135deg, rgba(77, 111, 179, 0.06), rgba(202, 160, 20, 0.08));
}

.teacher-portrait img,
.teacher-avatar-fallback {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(21, 34, 56, 0.08);
  box-shadow: 0 14px 28px rgba(22, 38, 63, 0.1);
}

.teacher-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  color: var(--brand);
  font-size: 2rem;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
}

.teacher-portrait img:hover,
.teacher-track:hover {
  cursor: grab;
}

.teacher-portrait .teacher-name {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.teacher-card {
  min-width: 250px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(255, 210, 77, 0.05));
}

.teacher-track .teacher-card:nth-child(4n + 2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 252, 248, 0.92)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.05), rgba(202, 160, 20, 0.05));
}

.teacher-track .teacher-card:nth-child(4n + 3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 243, 0.92)),
    linear-gradient(135deg, rgba(202, 160, 20, 0.05), rgba(184, 77, 90, 0.05));
}

.teacher-track .teacher-card:nth-child(4n + 4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 255, 0.92)),
    linear-gradient(135deg, rgba(77, 111, 179, 0.05), rgba(202, 160, 20, 0.05));
}

.teacher-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--brand), var(--brand-2) 58%, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.teacher-meta {
  display: grid;
}

.teacher-meta small {
  color: var(--muted);
}

.panel-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.1), rgba(255, 138, 61, 0.13));
  border: 1px solid rgba(29, 114, 243, 0.12);
}

.panel-band p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.12), rgba(21, 184, 166, 0.12));
  color: var(--brand-2);
  font-weight: 700;
}

.notice-card,
.event-card,
.gallery-card,
.fee-card,
.contact-card,
.form-card {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

.notice-grid .notice-card:nth-child(odd),
.event-grid .event-card:nth-child(odd),
.gallery-grid .gallery-card:nth-child(odd),
.faculty-grid .teacher-card:nth-child(odd) {
  border-top: 4px solid rgba(29, 114, 243, 0.25);
}

.notice-grid .notice-card:nth-child(even),
.event-grid .event-card:nth-child(even),
.gallery-grid .gallery-card:nth-child(even),
.faculty-grid .teacher-card:nth-child(even) {
  border-top: 4px solid rgba(255, 138, 61, 0.25);
}

.content-stack {
  display: grid;
  gap: 1.2rem;
}

.teacher-grid,
.gallery-grid,
.event-grid,
.notice-grid,
.faculty-grid,
.feature-grid,
.history-grid {
  display: grid;
  gap: 1.2rem;
}

.teacher-grid,
.faculty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-grid,
.notice-grid,
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card img,
.gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.12), rgba(255, 138, 61, 0.14));
}

.gallery-card {
  overflow: hidden;
}

.gallery-card .meta {
  margin-top: 0.95rem;
}

.gallery-card .meta p,
.fee-card p,
.contact-card p {
  margin: 0.2rem 0;
}

.calendar-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.11), rgba(255, 210, 77, 0.14));
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(21, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.fee-table th,
.fee-table td {
  padding: 1rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.fee-table th {
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.1), rgba(255, 210, 77, 0.14));
}

.fee-table tbody tr:hover {
  background: rgba(29, 114, 243, 0.04);
}

.steps {
  display: grid;
  gap: 0.95rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 34, 56, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(29, 114, 243, 0.22);
  border-color: rgba(29, 114, 243, 0.28);
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(29, 114, 243, 0.08), rgba(255, 138, 61, 0.1)),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.footer {
  padding: 2.5rem 0 1.6rem;
  border-top: 1px solid rgba(21, 34, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 242, 0.88)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.04), rgba(255, 138, 61, 0.05));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.6rem;
}

.footer-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--brand-2);
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 34, 56, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 4rem 0 2.2rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.2rem;
  align-items: start;
}

.page-hero-panel {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 252, 248, 0.92)),
    linear-gradient(135deg, rgba(29, 114, 243, 0.06), rgba(255, 210, 77, 0.08));
  border: 1px solid rgba(29, 114, 243, 0.12);
}

.page-hero-panel p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.prospectus-panel {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94)),
    linear-gradient(135deg, rgba(16, 40, 77, 0.05), rgba(202, 160, 20, 0.08));
  border: 1px solid rgba(16, 40, 77, 0.12);
  box-shadow: var(--shadow-soft);
}

.prospectus-panel strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: 1.25rem;
}

.prospectus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.prospectus-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  border: 1px solid rgba(16, 40, 77, 0.08);
  box-shadow: var(--shadow-soft);
}

.prospectus-card h3 {
  margin: 0.4rem 0 0.55rem;
}

.prospectus-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--brand);
  font-weight: 700;
}

.breadcrumbs span {
  opacity: 0.65;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 110;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 120;
}

.modal-card {
  width: min(560px, 100%);
  padding: 1.3rem;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s ease;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-close {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-media {
  margin-top: 1rem;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.12), rgba(255, 138, 61, 0.14));
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-open .modal,
.modal-open .modal-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.modal-open .modal-card {
  transform: translateY(0) scale(1);
}

.toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin-inline: auto;
  width: min(520px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.95), rgba(21, 184, 166, 0.95));
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 130;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.gallery-frame {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 114, 243, 0.12), rgba(255, 138, 61, 0.14));
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .page-hero-grid,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .teacher-grid,
  .faculty-grid,
  .gallery-grid,
  .quick-grid,
  .prospectus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav,
  .desktop-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  body[data-page="home"]:not(.is-scrolled) .menu-button {
    border-color: rgba(217, 56, 56, 0.25);
    background: rgba(255, 255, 255, 0.9);
  }

  body[data-page="home"]:not(.is-scrolled) .menu-button span {
    background: #d93838;
  }

  .notice-event-grid,
  .grid-2,
  .feature-grid,
  .event-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    max-height: 700px;
  }

  .hero-copy {
    padding: 2rem 1.2rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-marquee-bar {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.35rem 0;
  }

  .nav-inner {
    min-height: 72px;
  }

  .title-xl {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  .hero {
    max-height: 580px;
    min-height: 480px;
  }

  .hero-copy .title-xl {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .teacher-grid,
  .faculty-grid,
  .gallery-grid,
  .quick-grid,
  .prospectus-grid,
  .grid-3,
  .grid-4,
  .history-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-band {
    flex-direction: column;
    align-items: start;
  }

  .teacher-portrait {
    width: 180px;
    flex: 0 0 180px;
    padding: 0.85rem;
  }

  .teacher-portrait img,
  .teacher-avatar-fallback {
    width: 145px;
    height: 180px;
    border-radius: 18px;
  }

  .teacher-track {
    padding: 0.85rem;
  }

  .modal-card {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Announcement marquee strip ─────────────────────────────── */
.announce-strip {
  width: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #1a3a6b 50%, var(--brand) 100%);
  border-bottom: 2px solid var(--brand-2);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 46px;
  position: relative;
  z-index: 2;
}

.announce-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  background: var(--brand-2);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.6rem;
}

.announce-track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.announce-marquee {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
}

.announce-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: announce-scroll 32s linear infinite;
  white-space: nowrap;
  padding: 0 2rem;
}

.announce-track:hover {
  animation-play-state: paused;
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
}

.announce-item .material-icons {
  color: var(--brand-2);
  font-size: 0.95rem;
}

.announce-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-2);
  opacity: 0.7;
}

@keyframes announce-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Stats strip ────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(21, 34, 56, 0.1);
  box-shadow: var(--shadow-soft);
  margin: 2rem 0;
}

.stat-card {
  padding: 1.6rem 1.2rem;
  text-align: center;
  border-right: 1px solid rgba(21, 34, 56, 0.08);
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 40, 77, 0.1);
  z-index: 1;
}

.stat-card:nth-child(4n+1) { border-top: 3px solid var(--brand); }
.stat-card:nth-child(4n+2) { border-top: 3px solid var(--brand-2); }
.stat-card:nth-child(4n+3) { border-top: 3px solid var(--accent); }
.stat-card:nth-child(4n+4) { border-top: 3px solid var(--accent-4); }

.stat-value {
  display: block;
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Facility grid ──────────────────────────────────────────── */
.facility-section {
  padding: 5rem 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.facility-card {
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 34, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.92));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.6rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.facility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.facility-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Material Icons";
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 40, 77, 0.18);
}

.facility-card:nth-child(4n+1) .facility-icon {
  background: linear-gradient(135deg, var(--brand), #1a3a6b);
}
.facility-card:nth-child(4n+2) .facility-icon {
  background: linear-gradient(135deg, #c8860e, var(--brand-2));
}
.facility-card:nth-child(4n+3) .facility-icon {
  background: linear-gradient(135deg, #e5573e, var(--accent));
}
.facility-card:nth-child(4n+4) .facility-icon {
  background: linear-gradient(135deg, var(--accent-4), #3a5a9a);
}

.facility-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.facility-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── About snippet on home ──────────────────────────────────── */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 1.8rem;
  align-items: start;
}

.about-snippet-text h2 {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.about-snippet-text p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
  margin: 0 0 1.5rem;
}

.about-snippet-panel {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(16, 40, 77, 0.06), rgba(202, 160, 20, 0.1));
  border: 1px solid rgba(16, 40, 77, 0.1);
}

.about-snippet-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.78rem;
}

.value-list {
  display: grid;
  gap: 0.6rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
}

.value-item .material-icons {
  font-size: 1rem;
  color: var(--brand-2);
  flex: 0 0 auto;
}

/* ─── Principal's desk ───────────────────────────────────────── */
.principal-desk {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(16, 40, 77, 0.96) 0%,
    #1a3866 55%,
    rgba(202, 160, 20, 0.92) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.principal-desk::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(202, 160, 20, 0.25);
  line-height: 1;
  pointer-events: none;
}

.principal-desk .eyebrow {
  color: var(--brand-2);
}

.principal-desk blockquote {
  margin: 1rem 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
}

.principal-desk cite {
  font-style: normal;
  font-weight: 800;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.principal-desk cite small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.15rem;
}

/* ─── Highlights list ────────────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.92));
  border: 1px solid rgba(21, 34, 56, 0.08);
  box-shadow: var(--shadow-soft);
}

.highlight-item .material-icons {
  color: var(--brand-2);
  font-size: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.highlight-item span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Teacher count badge ────────────────────────────────────── */
.count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 40, 77, 0.1), rgba(202, 160, 20, 0.14));
  border: 1px solid rgba(16, 40, 77, 0.14);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Teacher card extra fields ──────────────────────────────── */
.teacher-card .teacher-qual,
.teacher-card .teacher-exp {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.teacher-card .teacher-qual {
  margin-top: 0.25rem;
}

/* ─── Responsive for new components ─────────────────────────── */
@media (max-width: 1080px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-snippet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip .stat-card:nth-child(2) {
    border-right: 0;
  }
  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .announce-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .facility-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Portal Login & Fee Payment Custom UIs ─────────────────── */
.login-panel,
.fee-payment-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fee-payment-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}


.login-info,
.login-form-box,
.fee-payment-info {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 34, 56, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
}

.portal-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.portal-role {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portal-role i {
  color: var(--brand-2);
  font-size: 1.1rem;
}

.portal-role:hover {
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

.portal-role.active {
  background: linear-gradient(135deg, rgba(16, 40, 77, 0.05), rgba(202, 160, 20, 0.05));
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}

.portal-role-meta {
  border: 1px dashed rgba(16, 40, 77, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(16, 40, 77, 0.03);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.portal-role-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: "Fredoka", sans-serif;
  color: var(--brand);
}

.portal-role-meta p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.role-student-only {
  display: none !important;
}

.login-form-box[data-role="student"] .role-student-only {
  display: grid !important;
}

.student-account-picker {
  border: 1px dashed rgba(16, 40, 77, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  background: rgba(16, 40, 77, 0.02);
  margin-bottom: 1rem;
}

.student-account-picker h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-family: "Fredoka", sans-serif;
}

.student-account-picker p {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.student-account-list {
  display: grid;
  gap: 0.5rem;
}

.student-account-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: var(--surface-strong);
  cursor: pointer;
}

.student-account-item input[type="radio"],
.student-option input[type="radio"] {
  margin: 0;
  accent-color: var(--brand);
}

.student-account-item span {
  font-size: 0.85rem;
  color: var(--text);
}

/* Form layouts */
.field,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-grid label span {
  color: var(--text);
}

.field:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 40, 77, 0.08);
}

.form-status {
  display: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.2);
}

/* Fee Workspace */
.fee-workspace {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.fee-student-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 40, 77, 0.02);
  padding: 1rem;
  margin-bottom: 1rem;
}

.fee-student-card h3 {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
}

.fee-student-card p {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

.student-options {
  display: grid;
  gap: 0.5rem;
}

.student-option {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: var(--surface-strong);
  cursor: pointer;
}

.fee-dues-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

.fee-dues-table th,
.fee-dues-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
}

.fee-dues-table th {
  background: rgba(16, 40, 77, 0.03);
  font-family: "Fredoka", sans-serif;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}

.fee-dues-table td {
  font-size: 0.88rem;
}

.fee-dues-table .due-select {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.fee-dues-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: rgba(16, 40, 77, 0.03);
  margin-bottom: 1rem;
}

.fee-dues-summary p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--text);
}

.fee-dues-summary strong {
  color: var(--brand);
  font-weight: 800;
}

.fee-inline-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.fee-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-2);
  animation: feePulse 1.2s ease-in-out infinite;
}

@keyframes feePulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.fee-payment-result {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(16, 40, 77, 0.02);
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.fee-payment-label {
  margin: 0;
  color: var(--brand);
  font-family: "Fredoka", sans-serif;
  font-weight: 800;
}

.fee-payment-request {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.fee-payment-status-line {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.fee-payment-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.fee-payment-steps li {
  font-size: 0.9rem;
  color: var(--muted);
}

.fee-payment-note {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: rgba(202, 160, 20, 0.05);
  font-size: 0.85rem;
  color: var(--muted);
}

.fee-payment-note strong {
  color: var(--text);
}

.fee-payment-note p {
  margin: 0.25rem 0 0;
}

.plan-lock-banner {
  background: #fdf8e6;
  border-bottom: 1px solid #f6e6b4;
  color: #7d6308;
  font-weight: 700;
  font-size: 0.88rem;
}

.plan-lock-banner .container {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.plan-lock-inline {
  margin-bottom: 1rem;
  border: 1px solid #f6e6b4;
  border-left: 4px solid var(--brand-2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: #fdf8e6;
  color: #7d6308;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Responsive login and fee structure panels */
@media (max-width: 900px) {
  .login-panel,
  .fee-payment-grid {
    grid-template-columns: 1fr;
  }
}

