* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #ffffff;
  line-height: 1.6;
}
a { color: #1f7a4d; }
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}
.brand-eyebrow {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 0;
}
.brand-name {
  font-size: 1rem;
  color: #1f7a4d;
  font-weight: 700;
  margin-top: -2px;
  line-height: 1.1;
}
.eyebrow {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #9a7b23;
  margin-bottom: 6px;
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: #46515c;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: #1f7a4d; }
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #1f7a4d;
  color: #ffffff;
}
.btn-primary:hover {
  background: #17643f;
}
.btn-secondary {
  border: 1px solid #cfd6dc;
  color: #1f7a4d;
  background: #ffffff;
}
.header-btn {
  white-space: nowrap;
  padding: 13px 22px;
}

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(166,124,0,0.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31,122,77,0.10), transparent 24%),
    #f8faf9;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: #1f7a4d;
  line-height: 1.05;
  margin: 10px 0 16px;
  font-weight: 800;
}
.button-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-card, .card, .timeline-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.04);
  min-width: 0;
}
.hero-card h3, .card h3, .timeline-card h3 {
  margin-top: 0;
  color: #1f7a4d;
}
.hero-card ul, .card ul {
  margin: 12px 0 0 18px;
  padding: 0;
}
.section {
  padding: 64px 0;
}
.section-light { background: #ffffff; }
.section-muted { background: #f7f7f4; }
.section-break {
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9a7b23 0%, #1f7a4d 100%);
  margin-bottom: 18px;
}
.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}
.section-head h2 {
  margin: 6px 0 12px;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #1f7a4d;
  font-weight: 700;
}
.section-head p {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
}
.card-grid {
  display: grid;
  gap: 20px;
}
.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-subtitle {
  margin-top: -4px;
  color: #9a7b23;
  font-weight: 700;
}
.note-strip {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid #9a7b23;
  background: #fcfbf6;
  border-radius: 12px;
}
.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.timeline-card p {
  margin: 0;
  color: #52606d;
  font-weight: 600;
}
.table-intro {
  margin: 0 0 14px;
  color: #5b6670;
}
.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
th, td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid #e5e7eb;
}
th {
  background: #f7f8fa;
  color: #46515c;
  font-size: 0.92rem;
}
td:first-child {
  font-weight: 600;
  color: #1f7a4d;
}
tbody tr {
  background: #ffffff;
}
tbody tr:nth-child(even) {
  background: #f9fafb;
}
tbody tr:last-child td { border-bottom: none; }
.register-card .btn { margin-top: 8px; }

.contact-panel .card { height: 100%; }
.contact-flex {
  display: flex;
  gap: 16px;
  align-items: center;
}
.contact-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  flex: 0 0 110px;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #1f7a4d;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.social-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.social-icon.facebook {
  background: #1877f2;
}
.social-icon.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.social-text {
  margin: 6px 0 0;
}

.site-footer {
  background: #1f7a4d;
  color: #f3f4f6;
  padding-top: 0;
}
.footer-top-line {
  height: 3px;
  background: #9a7b23;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 42px 0 20px;
}
.site-footer h3, .site-footer h4 {
  margin-top: 0;
  color: #ffffff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #f8fafc; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  padding: 0 0 28px;
  color: #d1d5db;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }
  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }
  .hero {
    padding: 56px 0 40px;
  }
  .section {
    padding: 52px 0;
  }
  .header-btn { display: none; }
  .four-up,
  .three-up,
  .timeline-grid,
  .split-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Remove boxes for Program Focus & Commitment */
#middle-school .split-panel .card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
