:root {
  --primary: #0B6E4F;
  --primary-dark: #084C37;
  --primary-light: #12A87A;
  --accent: #C9A227;
  --accent-soft: #F5E6B8;
  --cream: #F7F4EC;
  --ink: #1A1F2C;
  --muted: #5B6575;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(8, 76, 55, 0.12);
  --radius: clamp(12px, 2vw, 20px);
  --container: min(1120px, 92vw);
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11,110,79,.08);
  height: var(--header-h);
}
.nav-wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(11,110,79,.25);
}
.brand-text { line-height: 1.15; min-width: 0; }
.brand-text strong { display: block; font-size: clamp(.9rem, 2.5vw, 1.05rem); color: var(--primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  padding: .5rem .75rem; border-radius: 999px; font-size: .92rem; font-weight: 600;
  color: var(--muted); transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(11,110,79,.08); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.15rem; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; transition: .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11,110,79,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1a1a1a; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(11,110,79,.25); color: var(--primary); }
.nav-cta { margin-left: .35rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: rgba(11,110,79,.08);
  border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--primary-dark); border-radius: 2px; }

/* Hero / Carousel */
.hero { position: relative; isolation: isolate; }
.carousel { position: relative; min-height: clamp(380px, 72vh, 620px); overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
  background-size: cover; background-position: center;
}
.slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8,76,55,.88) 0%, rgba(11,110,79,.55) 45%, rgba(26,31,44,.35) 100%);
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 0; color: #fff;
  width: var(--container); margin-inline: auto;
}
.slide-content .eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(201,162,39,.2); border: 1px solid rgba(201,162,39,.45);
  color: var(--accent-soft); padding: .35rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; width: fit-content; margin-bottom: 1rem;
}
.slide-content h1 {
  font-size: clamp(1.7rem, 5vw, 3rem); line-height: 1.15; max-width: 16ch;
  margin-bottom: .85rem; text-wrap: balance;
}
.slide-content p { font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 38ch; opacity: .92; margin-bottom: 1.4rem; }
.carousel-nav {
  position: absolute; z-index: 3; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); transition: .2s;
}
.dot.active { width: 28px; background: var(--accent); }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head .label {
  color: var(--primary); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.45rem, 3.5vw, 2.1rem); color: var(--primary-dark); margin: .35rem 0 .5rem;
}
.section-head p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: -2.5rem; position: relative; z-index: 5;
}
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 1.15rem 1rem; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(11,110,79,.06);
}
.stat-card strong { display: block; font-size: 1.45rem; color: var(--primary); }
.stat-card span { font-size: .85rem; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(11,110,79,.07); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(8,76,55,.16); }
.program-card { padding: 1.35rem; }
.program-card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); font-size: 1.35rem; margin-bottom: .85rem;
}
.program-card h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: .35rem; }
.program-card p { color: var(--muted); font-size: .92rem; }

.article-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.article-body { padding: 1.1rem 1.15rem 1.25rem; }
.article-body .meta { font-size: .78rem; color: var(--primary); font-weight: 700; margin-bottom: .35rem; }
.article-body h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--ink); }
.article-body p { font-size: .9rem; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: .7rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; font-weight: 600;
}

.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-thumb { position: relative; aspect-ratio: 16/9; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,76,55,.35);
}
.video-thumb .play span {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
}
.video-card h3 { padding: 1rem 1.1rem; font-size: 1rem; }

.activity-list { display: grid; gap: .85rem; }
.activity-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow);
}
.activity-item .day {
  background: var(--primary); color: #fff; border-radius: 12px; padding: .55rem .7rem;
  text-align: center; font-weight: 800; font-size: .82rem;
}
.activity-item h3 { font-size: 1rem; color: var(--primary-dark); }
.activity-item p { color: var(--muted); font-size: .9rem; }

.about-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: center;
}
.about-panel .copy h2 { color: var(--primary-dark); margin-bottom: .75rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.about-panel .copy p { color: var(--muted); margin-bottom: .85rem; }
.about-panel .visual {
  border-radius: var(--radius); overflow: hidden; min-height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: grid; place-items: center; color: #fff; padding: 2rem; text-align: center;
  box-shadow: var(--shadow);
}
.about-panel .visual strong { font-size: 2.5rem; display: block; color: var(--accent); }

.ppdb-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: center;
  box-shadow: var(--shadow);
}
.ppdb-box h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .5rem; }
.ppdb-box p { opacity: .92; margin-bottom: 1rem; }
.ppdb-box ul { margin: .5rem 0 1rem; }
.ppdb-box li { padding: .25rem 0 .25rem 1.1rem; position: relative; font-size: .92rem; }
.ppdb-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.ppdb-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-card, .map-card {
  background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--primary-dark); margin-bottom: .75rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; display: block; margin-bottom: .4rem; }
.contact-card a:hover { color: var(--primary); }
.map-card iframe { width: 100%; min-height: 260px; border: 0; border-radius: 12px; }

/* Footer */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.88); padding: 2.5rem 0 1.25rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem;
}
.site-footer h4 { color: #fff; margin-bottom: .7rem; font-size: 1rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.75); font-size: .9rem; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.powered a { color: var(--accent); font-weight: 700; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.85);
  display: none; place-items: center; padding: 1rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; max-width: 96vw; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; background: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
}

/* Modal video */
.modal {
  position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.8);
  display: none; place-items: center; padding: 1rem;
}
.modal.open { display: grid; }
.modal-inner {
  width: min(900px, 96vw); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden;
  position: relative;
}
.modal-inner iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -44px; right: 0; background: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-panel, .ppdb-box, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .activity-item { grid-template-columns: 100px 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 1rem; gap: .25rem; border-bottom: 1px solid rgba(11,110,79,.1);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { margin: .5rem 0 0; width: 100%; justify-content: center; }
  .grid-3, .gallery-grid, .grid-2 { grid-template-columns: 1fr; }
  .stats { margin-top: -1.5rem; }
}
