:root {
  --site-primary: #123f8c;
  --site-secondary: #1ca94c;
  --site-gold: #ffbb1c;
  --site-ink: #173046;
  --site-muted: #5a7184;
  --site-line: rgba(18, 63, 140, 0.12);
  --site-surface: #ffffff;
  --site-surface-soft: #f4fbf8;
  --site-bg: linear-gradient(180deg, #f3fff7 0%, #ffffff 48%, #eef8ff 100%);
  --site-shadow: 0 24px 60px rgba(16, 58, 104, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body.school-site-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--site-ink);
  background: var(--site-bg);
}

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

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

.site-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 63, 140, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 86px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.site-brand img,
.footer-brand img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(18, 63, 140, 0.12);
}

.site-brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.site-brand small {
  display: block;
  color: var(--site-muted);
  margin-top: 0.15rem;
}

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

.site-nav a {
  color: var(--site-muted);
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

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

.site-login-btn {
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-primary), #1f72da);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(18, 63, 140, 0.22);
}

.site-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--site-primary);
  margin: 5px 0;
  border-radius: 999px;
}

.hero-section,
.inner-page-hero {
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.inner-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(28, 169, 76, 0.12), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(18, 63, 140, 0.12), transparent 18%),
    radial-gradient(circle at 50% 90%, rgba(255, 187, 28, 0.12), transparent 18%);
  pointer-events: none;
}

.hero-grid,
.inner-hero-grid,
.story-grid,
.preview-grid,
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid {
  min-height: 88vh;
  padding: 4.5rem 0 4rem;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(28, 169, 76, 0.12);
  color: var(--site-secondary);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-copy h1,
.inner-page-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.15rem, 4.1vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.9rem 0 0.95rem;
  color: #103661;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-copy p,
.inner-page-hero p,
.preview-copy p,
.story-grid p,
.program-card p,
.success-card p,
.highlight-card p,
.timeline-card p,
.contact-info-card p,
.visit-panel p,
.footer-copy,
.cta-panel p {
  color: var(--site-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-primary-site,
.btn-secondary-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary-site {
  background: linear-gradient(135deg, var(--site-primary), #1a7ad3);
  color: #fff;
  box-shadow: 0 16px 30px rgba(18, 63, 140, 0.24);
}

.btn-secondary-site {
  border: 1px solid rgba(18, 63, 140, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--site-primary);
}

.btn-primary-site:hover,
.btn-secondary-site:hover {
  transform: translateY(-2px);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat-card,
.stats-banner-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--site-shadow);
}

.hero-stat-card strong,
.stats-banner-card strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--site-primary);
}

.hero-stat-card span,
.stats-banner-card span:first-of-type {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--site-secondary);
}

.hero-stat-card small,
.stats-banner-card span:last-of-type {
  display: block;
  margin-top: 0.55rem;
  color: var(--site-muted);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-visual-main {
  position: absolute;
  inset: 3.5rem 0 3rem 2rem;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(13, 54, 97, 0.24);
}

.hero-visual-main img,
.story-showcase img,
.inner-hero-image img,
.success-card img,
.highlight-card img,
.preview-collage img,
.visit-panel img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  max-width: 290px;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--site-shadow);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 20px;
}

.hero-floating-top {
  top: 0;
  left: 0;
}

.hero-floating-bottom {
  right: 1rem;
  bottom: 0;
  animation-delay: 1.2s;
}

.hero-floating-card strong,
.story-badge strong,
.program-card h3,
.highlight-card h3,
.success-card h3,
.timeline-card h3,
.contact-info-card h3,
.visit-panel h3,
.cta-panel h2,
.section-heading h2,
.story-grid h2,
.preview-copy h2 {
  color: #17355a;
}

.section-spacing {
  padding: 2rem 0 4rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.story-grid h2,
.preview-copy h2,
.cta-panel h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0.85rem 0 0;
  max-width: 20ch;
  text-wrap: balance;
}

.story-showcase {
  position: relative;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--site-shadow);
}

.story-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(340px, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 30px rgba(15, 55, 95, 0.18);
}

.story-badge span {
  display: block;
  margin-top: 0.35rem;
  color: var(--site-muted);
}

.feature-checks {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-checks li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #2a4b63;
  font-weight: 700;
}

.feature-checks li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--site-secondary), var(--site-gold));
  box-shadow: 0 0 0 6px rgba(28, 169, 76, 0.08);
}

.highlight-grid,
.program-grid,
.success-grid,
.gallery-grid,
.contact-card-grid,
.timeline-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

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

.highlight-card,
.program-card,
.success-card,
.timeline-card,
.contact-info-card,
.contact-form-panel,
.visit-panel,
.cta-panel,
.stats-banner,
.soft-section,
.preview-collage img,
.gallery-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--site-line);
  box-shadow: var(--site-shadow);
}

.highlight-card,
.program-card,
.success-card,
.timeline-card,
.contact-info-card,
.gallery-card {
  overflow: hidden;
  border-radius: 26px;
}

.highlight-card img,
.success-card img {
  height: 220px;
}

.highlight-card-copy,
.success-card-copy {
  padding: 1.15rem 1.15rem 1.3rem;
}

.program-card,
.timeline-card,
.contact-info-card {
  padding: 1.3rem;
}

.program-icon,
.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  padding: 0 0.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 63, 140, 0.12), rgba(28, 169, 76, 0.12));
  color: var(--site-primary);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.preview-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.preview-collage img {
  border-radius: 24px;
  min-height: 220px;
}

.preview-collage img:first-child {
  grid-row: span 2;
  min-height: 460px;
}

.cta-panel,
.stats-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem;
  border-radius: 30px;
}

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

.timeline-year {
  display: inline-flex;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 187, 28, 0.18);
  color: #a06a00;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-layout {
  align-items: start;
}

.contact-form-panel,
.visit-panel {
  border-radius: 30px;
  overflow: hidden;
}

.contact-form-panel {
  padding: 1.5rem;
}

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

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

.site-form-field label {
  font-weight: 700;
  color: #2a4961;
}

.site-form-field input,
.site-form-field textarea {
  width: 100%;
  border: 1px solid rgba(18, 63, 140, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--site-ink);
  background: #fff;
  outline: none;
}

.site-form-field input:focus,
.site-form-field textarea:focus {
  border-color: rgba(18, 63, 140, 0.38);
  box-shadow: 0 0 0 4px rgba(18, 63, 140, 0.08);
}

.site-form-field .is-invalid {
  border-color: #d94055;
}

.site-form-field small {
  color: #d94055;
}

.full-span {
  grid-column: 1 / -1;
}

.visit-panel-copy {
  padding: 1.4rem;
}

.visit-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--site-muted);
}

.contact-alert {
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(28, 169, 76, 0.12);
  color: #176f38;
  border: 1px solid rgba(28, 169, 76, 0.18);
  font-weight: 700;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.2rem;
  background: #0f2f57;
  color: rgba(255, 255, 255, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.footer-brand p,
.footer-copy {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal="left"] {
  transform: translateX(30px);
}

[data-reveal="right"] {
  transform: translateX(-30px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .inner-hero-grid,
  .story-grid,
  .preview-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 2.6rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .highlight-grid,
  .program-grid,
  .success-grid,
  .contact-card-grid,
  .timeline-grid,
  .gallery-grid,
  .stats-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--site-shadow);
    border: 1px solid rgba(18, 63, 140, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-stat-row,
  .highlight-grid,
  .program-grid,
  .success-grid,
  .contact-card-grid,
  .timeline-grid,
  .gallery-grid,
  .stats-banner,
  .contact-form-grid,
  .footer-grid,
  .preview-collage {
    grid-template-columns: 1fr;
  }

  .preview-collage img:first-child {
    grid-row: auto;
    min-height: 280px;
  }

  .cta-panel,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-visual-main {
    inset: 3rem 0 2rem;
  }

  .hero-floating-top,
  .hero-floating-bottom {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 100%);
  }

  .site-brand strong {
    font-size: 0.92rem;
  }

  .hero-copy h1,
  .inner-page-hero h1 {
    font-size: 1.95rem;
    max-width: none;
  }

  .section-heading h2,
  .story-grid h2,
  .preview-copy h2,
  .cta-panel h2 {
    font-size: 1.6rem;
    max-width: none;
  }

  .hero-visual {
    min-height: 380px;
  }

  .hero-visual-main {
    border-radius: 28px;
  }

  .contact-form-panel,
  .visit-panel,
  .cta-panel,
  .stats-banner {
    padding: 1.2rem;
    border-radius: 24px;
  }
}
