/* ==========================================================
   Meadows English School — Stylesheet
   Plain CSS (no build step). Fonts via Google Fonts CDN,
   icons via Lucide CDN (see bottom of each HTML file).
   ========================================================== */

:root {
  --radius: 1rem;

  --primary: oklch(0.36 0.07 240);
  --primary-foreground: oklch(0.99 0 0);

  --secondary: oklch(0.58 0.13 155);
  --secondary-foreground: oklch(0.99 0 0);

  --gold: oklch(0.81 0.16 85);
  --gold-foreground: oklch(0.2 0.04 250);

  --background: oklch(0.975 0.012 210);
  --foreground: oklch(0.22 0.03 250);

  --card: oklch(0.995 0.004 210);
  --card-foreground: oklch(0.22 0.03 250);

  --muted: oklch(0.955 0.015 200);
  --muted-foreground: oklch(0.5 0.02 250);

  --accent: oklch(0.95 0.02 155);
  --accent-foreground: oklch(0.3 0.08 155);

  --destructive: oklch(0.6 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);

  --border: oklch(0.92 0.01 240);
  --input: oklch(0.92 0.01 240);
  --ring: oklch(0.36 0.07 240);

  --gradient-hero: linear-gradient(135deg, oklch(0.36 0.07 240 / 0.85), oklch(0.28 0.08 240 / 0.7));
  --gradient-primary: linear-gradient(135deg, oklch(0.36 0.07 240), oklch(0.5 0.1 220));
  --gradient-gold: linear-gradient(135deg, oklch(0.81 0.16 85), oklch(0.75 0.18 70));

  --shadow-soft: 0 10px 40px -10px oklch(0.3 0.08 250 / 0.18);
  --shadow-elegant: 0 20px 60px -15px oklch(0.3 0.08 250 / 0.25);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
input, textarea, select { font: inherit; }

main { flex: 1; }

.text-balance { text-wrap: balance; }

/* ---------- Layout helpers ---------- */
.container-mes {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
}

.section { padding-block: 3.5rem; }
.section-tight { padding-block: 2.5rem; }
.section-soft {
  position: relative;
  background-image:
    radial-gradient(45rem 24rem at 0% 0%, color-mix(in oklab, var(--secondary) 9%, transparent), transparent 60%),
    radial-gradient(45rem 24rem at 100% 100%, color-mix(in oklab, var(--primary) 9%, transparent), transparent 60%);
}

@media (min-width: 768px) {
  .section { padding-block: 5rem; }
}

/* Ambient page background: colour blobs + faint grid */
.page-blobs {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background-image:
    radial-gradient(44rem 28rem at 8% 4%, color-mix(in oklab, var(--primary) 30%, transparent), transparent 62%),
    radial-gradient(38rem 26rem at 90% 14%, color-mix(in oklab, var(--gold) 38%, transparent), transparent 62%),
    radial-gradient(32rem 24rem at 80% 52%, color-mix(in oklab, var(--secondary) 24%, transparent), transparent 68%),
    radial-gradient(46rem 30rem at 14% 92%, color-mix(in oklab, var(--secondary) 32%, transparent), transparent 62%),
    radial-gradient(36rem 24rem at 45% 42%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 68%),
    radial-gradient(28rem 20rem at 62% 78%, color-mix(in oklab, var(--gold) 22%, transparent), transparent 66%),
    linear-gradient(to right, color-mix(in oklab, var(--primary) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary) 7%, transparent) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, 56px 56px, 56px 56px;
  animation: blobs-drift 26s ease-in-out infinite alternate;
}
@keyframes blobs-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 2.5rem 1.5rem, -2rem 2.5rem, 1.5rem -1rem, -2rem -2rem, 1rem 1.5rem, -1rem 1rem, 0 0, 0 0; }
}

.pattern-dots {
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Premium frosted glass panel */
.panel-glass {
  background-image:
    linear-gradient(120deg, color-mix(in oklab, white 70%, transparent), transparent 45%),
    linear-gradient(165deg, color-mix(in oklab, var(--card) 94%, transparent), color-mix(in oklab, var(--card) 68%, transparent));
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid color-mix(in oklab, white 75%, var(--primary) 10%);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 85%, transparent),
    inset 0 -1px 0 color-mix(in oklab, var(--primary) 10%, transparent),
    0 2px 6px -2px color-mix(in oklab, var(--primary) 12%, transparent),
    0 16px 44px -14px color-mix(in oklab, var(--primary) 32%, transparent);
}

.card {
  border-radius: 1.5rem;
}

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }

.icon-chip {
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background-image: linear-gradient(150deg, color-mix(in oklab, var(--foreground) 8%, transparent), color-mix(in oklab, var(--foreground) 4%, transparent));
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, white 60%, transparent);
  color: var(--foreground);
  transition: transform 0.25s ease;
}
.icon-chip:hover { transform: translateY(-2px); }
.icon-chip svg { width: 1.5rem; height: 1.5rem; }
.icon-chip.sm { width: 2.75rem; height: 2.75rem; }
.icon-chip.sm svg { width: 1.1rem; height: 1.1rem; }
.icon-chip.md { width: 3rem; height: 3rem; }
.icon-chip.lg { width: 4rem; height: 4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background-image: var(--gradient-primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: 0.95; }
.btn-gold { background-image: var(--gradient-gold); color: var(--gold-foreground); box-shadow: var(--shadow-elegant); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; } /* prevents images/long content from blowing out fr tracks */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-3md { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-4md2 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2sm { grid-template-columns: repeat(2, 1fr); }
  .grid-4md2 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3md { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-4md2 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Motion ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.animate-rise { animation: rise-in 0.6s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fade-in 0.25s ease both; }

@keyframes scale-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.animate-scale-in { animation: scale-in 0.3s cubic-bezier(0.22,1,0.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================
   HEADER / NAVBAR
   ========================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  width: 100%;
  padding-top: 0.75rem;
  padding-inline: 0.75rem;
}
@media (min-width: 768px) { .site-header { padding-top: 0.9rem; padding-inline: 1.25rem; } }

.navbar {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 999px;
  padding-inline: 0.75rem;
  transition: box-shadow 0.3s ease;
}
@media (min-width: 768px) { .navbar { height: 4rem; padding-inline: 1rem; } }

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-logo {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); padding: 0.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text .name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text .tag { font-size: 0.625rem; color: var(--muted-foreground); display: none; }
@media (min-width: 640px) { .brand-text .tag { display: block; } }
@media (min-width: 768px) { .brand-text .name { font-size: 1rem; } }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  border-radius: 999px; color: color-mix(in oklab, var(--foreground) 80%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { color: var(--foreground); background-color: var(--muted); }
.nav-links a.active { color: var(--primary); background-color: color-mix(in oklab, var(--primary) 10%, transparent); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.apply-btn-desktop { display: none; }
@media (min-width: 768px) { .apply-btn-desktop { display: inline-flex; } }

.menu-toggle {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: none; background: transparent; color: var(--foreground);
}
.menu-toggle:hover { background-color: var(--muted); }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Notice marquee bar */
.notice-bar-link { display: block; margin-top: 0.5rem; }
.notice-bar {
  display: flex; height: 2.25rem; align-items: center; gap: 0.75rem;
  overflow: hidden; border-radius: 999px; padding-inline: 0.75rem;
  background-image: var(--gradient-primary); color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}
.notice-tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35rem;
  border-radius: 999px; background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.65rem; font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.notice-tag svg { width: 0.7rem; height: 0.7rem; }
.notice-scroll { position: relative; flex: 1; overflow: hidden; }
.marquee-track {
  display: flex; width: max-content;
  font-size: 0.75rem; font-weight: 600;
  animation: marquee-rtl 24s linear infinite;
}
.marquee-track span { flex-shrink: 0; padding-right: 5rem; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  margin-top: 0.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 0.75rem 1.25rem; }
.mobile-nav a {
  padding: 0.85rem 0; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.mobile-nav nav a:last-of-type { border-bottom: none; }
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .btn { width: 100%; margin: 0.75rem 0; }

/* ==========================================================
   HERO / PAGE HERO
   ========================================================== */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.gradient-hero-overlay { position: absolute; inset: 0; background-image: var(--gradient-hero); }

.hero-content { padding-top: 8rem; padding-bottom: 6rem; color: var(--primary-foreground); }
@media (min-width: 768px) { .hero-content { padding-top: 11rem; padding-bottom: 10rem; } }

.page-hero-content { padding-top: 9rem; padding-bottom: 6rem; color: var(--primary-foreground); }
@media (min-width: 768px) { .page-hero-content { padding-top: 11rem; padding-bottom: 7rem; } }

.eyebrow-badge {
  display: inline-block; border-radius: 999px; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px); padding: 0.4rem 1rem; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-title, .page-hero-title {
  font-size: 2.25rem; font-weight: 700; line-height: 1.05; max-width: 48rem;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } .page-hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } .page-hero-title { font-size: 3.75rem; } }

.hero-subtitle, .page-hero-subtitle {
  margin-top: 1.5rem; font-size: 1.125rem; max-width: 42rem;
  color: color-mix(in oklab, var(--primary-foreground) 85%, transparent);
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-hero-actions { margin-top: 2rem; }

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

/* Highlights strip */
.highlights-wrap { margin-top: -4rem; position: relative; z-index: 10; }
@media (min-width: 768px) { .highlights-wrap { margin-top: -5rem; } }
.highlights-panel { border-radius: 1.5rem; padding: 1.5rem; }
@media (min-width: 768px) { .highlights-panel { padding: 2.5rem; } }
.stat-item { text-align: center; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--primary); }
@media (min-width: 768px) { .stat-value { font-size: 2.25rem; } }
.stat-label { margin-top: 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
@media (min-width: 768px) { .stat-label { font-size: 0.875rem; } }

/* ==========================================================
   SHARED SECTION TEXT
   ========================================================== */
.eyebrow { color: var(--secondary); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.section-title { font-size: 1.875rem; font-weight: 700; margin-top: 0.75rem; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.section-lead { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-inline: auto; }

.card-basic {
  border-radius: 1.5rem;
  padding: 1.75rem;
}
.card-basic h3 { font-size: 1.25rem; font-weight: 600; }
.card-basic p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.img-round { border-radius: 1.5rem; box-shadow: var(--shadow-elegant); object-fit: cover; width: 100%; height: auto; aspect-ratio: 4/3; }

/* Rounded image + floating badge (about preview) */
.img-badge-wrap { position: relative; }
.img-float-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  display: none;
  border-radius: 1.25rem; padding: 1.25rem 1.5rem;
}
@media (min-width: 768px) { .img-float-badge { display: block; } }
.img-float-badge .row { display: flex; align-items: center; gap: 0.75rem; }
.badge-num { font-size: 1.5rem; font-weight: 700; }
.badge-label { font-size: 0.75rem; color: var(--muted-foreground); }

/* Programs / gallery cards */
.program-card { border-radius: 1.5rem; overflow: hidden; }
.program-media { aspect-ratio: 4/3; overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .program-media img { transform: scale(1.05); }
.program-body { padding: 1.25rem; }
.program-body h3 { font-size: 1.1rem; font-weight: 600; }
.program-body p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--muted-foreground); }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.gallery-grid.gallery-3col { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid.gallery-3col { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { overflow: hidden; border-radius: 1rem; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; aspect-ratio: 4/3; }
.gallery-item.tall img { aspect-ratio: auto; }
.gallery-item:hover img { transform: scale(1.05); }

/* Testimonials */
.testimonial-card { border-radius: 1.5rem; padding: 1.75rem; }
.stars { display: flex; gap: 0.15rem; color: var(--gold); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial-quote { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.7; }
.testimonial-footer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.75rem; color: var(--muted-foreground); }

/* CTA banner */
.cta-banner {
  border-radius: 1.5rem; overflow: hidden; position: relative;
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner .overlay { position: absolute; inset: 0; background-image: var(--gradient-hero); }
.cta-banner .content { position: relative; padding: 2.5rem 1.5rem; text-align: center; color: var(--primary-foreground); }
@media (min-width: 768px) { .cta-banner .content { padding: 5rem 3rem; } }
.cta-banner h2 { font-size: 1.875rem; max-width: 42rem; margin-inline: auto; }
@media (min-width: 768px) { .cta-banner h2 { font-size: 2.75rem; } }
.cta-banner p { margin-top: 1rem; max-width: 36rem; margin-inline: auto; color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.cta-solid {
  border-radius: 1.5rem;
  background-image: var(--gradient-primary);
  padding: 2.5rem 1.5rem; text-align: center; color: var(--primary-foreground);
}
@media (min-width: 768px) { .cta-solid { padding: 4rem 3rem; } }
.cta-solid svg.icon-lead { width: 2.5rem; height: 2.5rem; margin-inline: auto; color: var(--gold); display: block; }

/* Secretary's Desk */
.secretary-section { padding-block: 2.5rem; }
@media (min-width: 768px) { .secretary-section { padding-block: 3.5rem; } }
.secretary-card {
  max-width: 56rem; margin-inline: auto; border-radius: 1.5rem;
  background-image: var(--gradient-primary); color: var(--primary-foreground);
  padding: 2.5rem 1.5rem; position: relative; overflow: hidden;
}
@media (min-width: 768px) { .secretary-card { padding: 4rem; } }
.secretary-quote-icon { position: absolute; top: 2rem; right: 2rem; width: 6rem; height: 6rem; color: rgba(255,255,255,0.1); }
.secretary-eyebrow { color: var(--gold); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.secretary-card h2 { font-size: 1.5rem; margin-top: 0.75rem; }
@media (min-width: 768px) { .secretary-card h2 { font-size: 1.875rem; } }
.secretary-body { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; color: rgba(255,255,255,0.9); line-height: 1.7; }
@media (min-width: 768px) { .secretary-body { font-size: 1.125rem; } }
.secretary-signoff { margin-top: 1.75rem; display: flex; align-items: center; gap: 1rem; }
.secretary-avatar { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: rgba(255,255,255,0.9); padding: 0.35rem; }
.secretary-avatar img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  margin-top: 6rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  padding-block: 3rem;
  display: grid; gap: 2.5rem;
  position: relative;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; }
.footer-brand .logo-chip { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: rgba(255,255,255,0.95); padding: 0.25rem; }
.footer-brand .logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand span.name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.footer-desc { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.footer-social { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.footer-social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); transition: background-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.footer-social svg { width: 1rem; height: 1rem; }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.footer-contact li { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer-contact svg { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--gold); }
.footer-contact a:hover { color: var(--gold); }
.footer-phones { display: flex; flex-direction: column; }
.footer-newsletter p { font-size: 0.875rem; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input {
  flex: 1; min-width: 0; border-radius: 999px; background: rgba(255,255,255,0.1);
  padding: 0.6rem 1rem; font-size: 0.875rem; color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form button { border-radius: 999px; padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 600; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); position: relative; }
.footer-bottom-inner {
  padding-block: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.7);
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a:hover { color: var(--gold); }

/* Floating enquiry button */
.floating-enquiry { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 30; }
.floating-enquiry button {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  background-image: var(--gradient-gold); color: var(--gold-foreground); box-shadow: var(--shadow-elegant);
  border: none; transition: transform 0.2s ease;
}
.floating-enquiry button:hover { transform: scale(1.05); }
.floating-enquiry svg { width: 1.5rem; height: 1.5rem; }

/* ==========================================================
   MODAL / ENQUIRY DIALOG
   ========================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 25, 35, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background-color: var(--card);
  border-radius: 1.25rem;
  max-width: 34rem; width: 100%;
  max-height: 92dvh; overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-elegant);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 999px; border: none;
  display: grid; place-items: center; background: var(--muted); color: var(--foreground);
}
.modal-close svg { width: 1rem; height: 1rem; }
.modal-header { display: flex; align-items: center; gap: 0.75rem; padding-right: 2rem; }
.modal-header .logo-chip { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
.modal-header .logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.modal-title { font-size: 1.5rem; font-weight: 700; }
.modal-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.15rem; }

.form-grid { display: grid; gap: 0.9rem; margin-top: 1rem; }
.form-row-2 { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-field label { font-size: 0.875rem; font-weight: 500; }
.form-field .req { color: var(--destructive); }
.form-field input, .form-field select, .form-field textarea {
  margin-top: 0.35rem; width: 100%; border-radius: 0.75rem; border: 1px solid var(--input);
  background-color: var(--background); padding: 0.6rem 0.85rem; font-size: 0.875rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; box-shadow: 0 0 0 2px var(--ring);
}
.consent-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--muted-foreground); }
.consent-row input { margin-top: 0.2rem; }
.consent-row a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.modal-success { text-align: center; padding-block: 2rem; }
.success-icon {
  margin-inline: auto; display: grid; place-items: center; width: 4rem; height: 4rem;
  border-radius: 999px; background-color: color-mix(in oklab, var(--secondary) 15%, transparent);
  color: var(--secondary); margin-bottom: 1rem;
}
.success-icon svg { width: 2rem; height: 2rem; }
.modal-success p { margin-top: 0.75rem; color: var(--muted-foreground); }
.modal-success .btn { margin-top: 1.5rem; }

/* ==========================================================
   FORM PAGES (contact)
   ========================================================== */
.contact-info-card { border-radius: 1.5rem; padding: 2rem; height: fit-content; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item .icon-chip { flex-shrink: 0; }
.contact-item .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-foreground); }
.contact-item .value { font-weight: 600; }
.contact-item .value:hover { color: var(--primary); }
.social-row { margin-top: 2rem; display: flex; gap: 0.75rem; }
.social-row a { width: 2.75rem; height: 2.75rem; }

.contact-form-card { border-radius: 1.5rem; padding: 2rem; }
.contact-form-card h3 { font-size: 1.5rem; font-weight: 700; }
.map-embed { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/7; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================
   NOTICE PAGE
   ========================================================== */
.notice-list { display: grid; gap: 1rem; max-width: 48rem; margin-inline: auto; }
.notice-card {
  border-radius: 1.5rem; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.notice-card .icon-chip { flex-shrink: 0; margin-top: 0.1rem; }
.notice-card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.notice-card-date { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.notice-card-date svg { width: 0.875rem; height: 0.875rem; }
.notice-card-link {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px;
  background-image: var(--gradient-primary); color: var(--primary-foreground);
  padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 600; box-shadow: var(--shadow-soft);
}
.notice-empty { border-radius: 1.5rem; padding: 3rem 1.5rem; text-align: center; }

/* ==========================================================
   ADMISSION STEPS / FAQ ACCORDION
   ========================================================== */
.step-card { border-radius: 1.5rem; padding: 1.5rem; }
.step-num {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background-color: var(--muted); font-family: var(--font-display); font-weight: 700;
}
.step-card h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.step-card p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--muted-foreground); }

.info-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.faq-wrap { max-width: 48rem; margin-inline: auto; border-radius: 1.5rem; padding: 2rem; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--foreground);
}
.accordion-trigger svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; transition: transform 0.2s ease; color: var(--muted-foreground); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-content-inner { padding-bottom: 1.1rem; color: var(--muted-foreground); line-height: 1.6; }

/* ==========================================================
   PRIVACY PAGE
   ========================================================== */
.legal-article { padding-top: 8rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .legal-article { padding-top: 10rem; padding-bottom: 4rem; } }
.legal-card { border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .legal-card { padding: 3rem; } }
.legal-date { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.legal-body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.legal-body h2 { font-size: 1.25rem; font-weight: 700; }
@media (min-width: 768px) { .legal-body h2 { font-size: 1.5rem; } }
.legal-body p { margin-top: 0.75rem; color: var(--muted-foreground); line-height: 1.7; }

/* ==========================================================
   404 / ERROR
   ========================================================== */
.error-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.error-page h1 { font-size: 4.5rem; font-weight: 700; color: var(--primary); }
.error-page h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.error-page p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.error-page .btn { margin-top: 1.5rem; }

/* ==========================================================
   TOAST
   ========================================================== */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  width: 100%; max-width: 24rem; padding-inline: 1rem;
}
.toast {
  width: 100%; border-radius: 0.85rem; padding: 0.85rem 1.1rem; font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-elegant); animation: rise-in 0.25s ease both;
  background-color: var(--card); color: var(--foreground); border: 1px solid var(--border);
}
.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--destructive); }

/* utility spacing */
.mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; }
.text-center { text-align: center; }
