/* ============================================================
   Incubators Secondary Academy — Style System
   "Godliness with Knowledge"
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   BASE RESET & TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale (fluid) */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ============================================================
   LIGHT MODE (Default)
   ============================================================ */
:root, [data-theme="light"] {
  --color-bg: #F8F6F1;
  --color-surface: #FFFFFF;
  --color-surface-2: #F2F0EB;
  --color-surface-offset: #EDE9E2;

  --color-primary: #1B2A4A;
  --color-primary-hover: #152240;
  --color-secondary: #2C5AA0;
  --color-secondary-hover: #244B87;
  --color-accent: #C8963E;
  --color-accent-hover: #B5852F;
  --color-accent-light: rgba(200, 150, 62, 0.12);

  --color-text: #1A1A2E;
  --color-text-muted: #5A6178;
  --color-text-faint: #9199AF;
  --color-text-inverse: #F8F6F1;

  --color-border: #D8D5CE;
  --color-divider: #E5E2DC;

  --color-success: #2E7D32;
  --color-error: #C62828;

  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 42, 74, 0.12);
  --shadow-xl: 0 20px 60px rgba(27, 42, 74, 0.15);

  --hero-overlay: linear-gradient(135deg, rgba(27, 42, 74, 0.82) 0%, rgba(44, 90, 160, 0.65) 100%);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --color-bg: #0D1421;
  --color-surface: #141E33;
  --color-surface-2: #1A2640;
  --color-surface-offset: #11192B;

  --color-primary: #A8BFE6;
  --color-primary-hover: #C5D5F0;
  --color-secondary: #6B9DE8;
  --color-secondary-hover: #8DB4F0;
  --color-accent: #D4A84E;
  --color-accent-hover: #E0BA6A;
  --color-accent-light: rgba(212, 168, 78, 0.15);

  --color-text: #E2E4EA;
  --color-text-muted: #8B92A8;
  --color-text-faint: #5A6178;
  --color-text-inverse: #0D1421;

  --color-border: #253050;
  --color-divider: #1E2A42;

  --color-success: #66BB6A;
  --color-error: #EF5350;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);

  --hero-overlay: linear-gradient(135deg, rgba(13, 20, 33, 0.88) 0%, rgba(20, 30, 51, 0.72) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0D1421;
    --color-surface: #141E33;
    --color-surface-2: #1A2640;
    --color-surface-offset: #11192B;
    --color-primary: #A8BFE6;
    --color-primary-hover: #C5D5F0;
    --color-secondary: #6B9DE8;
    --color-secondary-hover: #8DB4F0;
    --color-accent: #D4A84E;
    --color-accent-hover: #E0BA6A;
    --color-accent-light: rgba(212, 168, 78, 0.15);
    --color-text: #E2E4EA;
    --color-text-muted: #8B92A8;
    --color-text-faint: #5A6178;
    --color-text-inverse: #0D1421;
    --color-border: #253050;
    --color-divider: #1E2A42;
    --color-success: #66BB6A;
    --color-error: #EF5350;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --hero-overlay: linear-gradient(135deg, rgba(13, 20, 33, 0.88) 0%, rgba(20, 30, 51, 0.72) 100%);
  }
}

/* ============================================================
   HTML & BODY BASE
   ============================================================ */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.15;
}

p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(44, 90, 160, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], [role="link"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-secondary-hover); }

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section-padding {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
  min-width: 44px;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 56px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition-smooth),
              box-shadow var(--transition-smooth),
              backdrop-filter var(--transition-smooth);
}

.header--scrolled {
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header--scrolled {
  background: rgba(13, 20, 33, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header__inner { padding: var(--space-4) var(--space-8); }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: #fff;
  z-index: 110;
}

.header--scrolled .header__logo {
  color: var(--color-text);
}

.header__logo-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
}

.header__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.header--scrolled .nav__link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 110;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  border: none;
  transition: all var(--transition-interactive);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header--scrolled .theme-toggle {
  color: var(--color-text-muted);
}

.header--scrolled .theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 110;
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.header--scrolled .mobile-toggle span {
  background: var(--color-text);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .mobile-nav {
  background: var(--color-bg);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  transition: color var(--transition-interactive);
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

[data-theme="dark"] .mobile-nav__link {
  color: var(--color-text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-16) var(--space-6) var(--space-12);
  max-width: 900px;
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(200, 150, 62, 0.2);
  border: 1px solid rgba(200, 150, 62, 0.4);
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

[data-theme="dark"] .hero__badge {
  color: var(--color-accent);
}

.hero__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero__motto {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero__tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-12);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Why Incubators Cards */
.why-section {
  background: var(--color-surface);
  position: relative;
  z-index: 3;
  margin-top: -80px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding-top: var(--space-16);
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .why-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-smooth);
}

.why-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-accent);
}

[data-theme="light"] .why-card__icon {
  color: #9E7824;
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
}

.why-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about-text p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Vision & Mission */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .vm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.vm-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.vm-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Core Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.value-item {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-smooth);
}

.value-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: var(--color-accent);
  font-size: 22px;
}

.value-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Staff Section */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .staff-grid { grid-template-columns: repeat(6, 1fr); }
}

.staff-card {
  text-align: center;
}

.staff-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 2px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: var(--color-text-faint);
}

.staff-card__avatar svg {
  width: 36px;
  height: 36px;
}

.staff-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.staff-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   ACADEMICS SECTION
   ============================================================ */
.academics-section {
  background: var(--color-surface);
}

.academics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .academics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.academics-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.academics-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.subject-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .subject-areas { grid-template-columns: 1fr 1fr; }
}

.subject-area {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.subject-area h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

[data-theme="light"] .subject-area h4 {
  color: #1B2A4A;
}

.subject-area p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.approach-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-6);
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.approach-list li:last-child {
  border-bottom: none;
}

.approach-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

/* ============================================================
   DISCIPLESHIP SECTION
   ============================================================ */
.discipleship-section {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.discipleship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .discipleship-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.discipleship-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  order: -1;
}

@media (min-width: 768px) {
  .discipleship-image { order: 0; }
}

.discipleship-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.discipleship-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.discipleship-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}

.discipleship-item:hover {
  background: var(--color-surface);
}

.discipleship-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 18px;
}

.discipleship-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.discipleship-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.quote-block {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.05), rgba(44, 90, 160, 0.05));
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

[data-theme="dark"] .quote-block {
  background: linear-gradient(135deg, rgba(168, 191, 230, 0.05), rgba(107, 157, 232, 0.05));
}

.quote-block p {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================================
   BOARDING LIFE SECTION
   ============================================================ */
.boarding-section {
  background: var(--color-surface);
}

.boarding-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-lg);
}

.boarding-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .boarding-hero img { height: 480px; }
}

.boarding-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 42, 74, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.boarding-hero__text h3 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.boarding-hero__text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  max-width: 500px;
}

.boarding-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .boarding-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .boarding-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.boarding-feature {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-smooth);
}

.boarding-feature:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.boarding-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 22px;
}

.boarding-feature h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.boarding-feature p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Daily Routine */
.routine-timeline {
  margin-top: var(--space-10);
  position: relative;
  padding-left: var(--space-8);
}

.routine-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.routine-item {
  position: relative;
  padding-bottom: var(--space-5);
}

.routine-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 10px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.routine-item__time {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.routine-item__activity {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-smooth);
  cursor: default;
}

[data-theme="light"] .gallery-card {
  background: #1B2A4A;
}

.gallery-card:nth-child(2) { background: #2C5AA0; }
.gallery-card:nth-child(3) { background: #1B3D6F; }
.gallery-card:nth-child(4) { background: #C8963E; }
.gallery-card:nth-child(5) { background: #2C5AA0; }
.gallery-card:nth-child(6) { background: #1B2A4A; }
.gallery-card:nth-child(7) { background: #C8963E; }
.gallery-card:nth-child(8) { background: #1B3D6F; }

[data-theme="dark"] .gallery-card:nth-child(1) { background: #1A2640; }
[data-theme="dark"] .gallery-card:nth-child(2) { background: #1E3A6A; }
[data-theme="dark"] .gallery-card:nth-child(3) { background: #162A50; }
[data-theme="dark"] .gallery-card:nth-child(4) { background: #7A5B24; }
[data-theme="dark"] .gallery-card:nth-child(5) { background: #1E3A6A; }
[data-theme="dark"] .gallery-card:nth-child(6) { background: #1A2640; }
[data-theme="dark"] .gallery-card:nth-child(7) { background: #7A5B24; }
[data-theme="dark"] .gallery-card:nth-child(8) { background: #162A50; }

.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
}

.gallery-card__caption {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.gallery-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.gallery-note a {
  color: var(--color-secondary);
  font-weight: 600;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
  background: var(--color-surface);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.featured-event {
  background: linear-gradient(135deg, #1B2A4A, #2C5AA0);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.featured-event::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(200, 150, 62, 0.1);
}

.featured-event__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(200, 150, 62, 0.2);
  border: 1px solid rgba(200, 150, 62, 0.4);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .featured-event__badge {
  color: #D4A84E;
}

.featured-event h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.featured-event p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.event-item {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-smooth);
}

.event-item:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.event-item__date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.event-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.event-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   ADMISSIONS SECTION
   ============================================================ */
.admissions-section {
  background: var(--color-bg);
}

.admissions-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .admissions-content {
    grid-template-columns: 1fr 1fr;
  }
}

.admission-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admission-step {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.admission-step:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.admission-step__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.admission-step h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.admission-step p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.admissions-info {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.admissions-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.info-row strong {
  font-weight: 600;
  color: var(--color-text);
}

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

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-info-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.contact-info-item a:hover {
  color: var(--color-secondary);
}

/* Contact Form */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.contact-form h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .form-row .form-group { margin-bottom: 0; }
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

.form-success h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1B2A4A;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-16) 0 var(--space-8);
}

[data-theme="dark"] .footer {
  background: #0A0F1A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: #fff;
  text-decoration: none;
}

.footer__logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  font-size: var(--text-sm);
}

[data-theme="dark"] .footer__motto {
  color: #D4A84E;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: var(--space-2);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-3);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

[data-theme="dark"] .footer-contact-item svg {
  color: #D4A84E;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-interactive);
}

.social-link:hover {
  background: var(--color-accent);
  color: #fff;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--text-xs);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--transition-smooth);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.75rem, 1rem + 3.5vw, 2.5rem);
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__stat {
    min-width: 80px;
  }
}
