:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1f2937;
  --muted: #6b7280;
  --background: #ffffff;
  --secondary: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1100px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: 1rem;
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--secondary);
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  border-color: var(--border);
}

.navbar {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.logo-image {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  padding: 4rem 0 3.5rem;
}

.hero-layout,
.about-layout,
.contact-layout,
.program-feature {
  display: grid;
  gap: 1.5rem;
}

.hero-layout > *,
.about-layout > *,
.program-feature > *,
.contact-layout > *,
.footer-content > * {
  min-width: 0;
}

.hero-layout {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-copy h1,
.section-heading h2,
.program-feature-copy h3,
.hero-image-copy h2,
.contact-panel-header h3,
.contact-form-header h3 {
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 11ch;
}

.hero-description,
.section-heading p,
.hero-image-copy p,
.program-feature-copy p,
.card p,
.contact-panel-header p,
.contact-form-header p,
.contact-note p,
.side-stack p,
.panel p {
  color: var(--muted);
}

.hero-description {
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.stat-chip,
.impact-box,
.panel,
.card,
.feature-note,
.contact-detail,
.contact-note {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-chip {
  min-width: 9.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
}

.stat-chip strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.stat-chip span {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-media {
  display: grid;
  gap: 0.85rem;
}

.hero-image-card,
.program-feature,
.map-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 24%;
}

.hero-image-copy {
  padding: 1rem 1.1rem 1.1rem;
}

.tag-row,
.hero-actions,
.hero-badges {
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.hero-image-copy h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.feature-note {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
}

.feature-note .tag,
.contact-note .tag,
.map-panel .tag {
  margin-bottom: 0.7rem;
}

.feature-note h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.about-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.panel {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
}

.about-lead {
  margin-bottom: 1rem;
}

.about-grid,
.card-grid,
.impact-grid,
.contact-details,
.form-stack,
.side-stack {
  display: grid;
  gap: 1rem;
}

.about-grid,
.program-grid,
.activities-grid,
.contact-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-box {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.info-box h3,
.card h3,
.program-feature-copy h3 {
  margin-bottom: 0.45rem;
}

.mini-label,
.detail-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.side-stack strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.program-feature {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  margin-bottom: 1rem;
}

.program-feature-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.program-feature-copy {
  padding: 1.3rem;
}

.program-feature-copy h3 {
  font-size: 1.55rem;
  margin: 0.7rem 0 0.45rem;
}

.card {
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.gallery-item:hover {
  transform: translateY(-3px);
}

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
}

.image-card {
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.9rem;
}

.image-card .tag {
  margin-bottom: 0.65rem;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.impact-box strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.impact-box span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.map-panel {
  padding: 1rem;
  margin-bottom: 1rem;
}

.map-panel iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.contact-panel,
.contact-form {
  padding: 1.4rem;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-panel-header {
  padding-bottom: 0.15rem;
}

.contact-panel-header h3,
.contact-form-header h3 {
  font-size: 1.45rem;
  margin-top: 0.2rem;
}

.contact-details {
  grid-template-columns: 1fr;
}

.contact-detail {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.contact-detail a,
.contact-detail p {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-note {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border-color: #dbeafe;
}

.form-field label {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field.error input,
.form-field.error textarea {
  border-color: #ef4444;
}

.error-message {
  display: block;
  min-height: 1rem;
  margin-top: 0.35rem;
  color: #dc2626;
  font-size: 0.82rem;
}

.form-button {
  width: 100%;
}

.form-success {
  min-height: 1.25rem;
  margin-top: 0.75rem;
  color: #15803d;
  font-weight: 600;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 0.18rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  margin-bottom: 0.1rem;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 1200;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: min(100%, 900px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-content p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-layout,
  .about-layout,
  .program-feature,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.5rem 0;
  }

  .navbar {
    min-height: 4rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding-bottom: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-actions,
  .hero-badges,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-grid,
  .activities-grid,
  .about-grid,
  .contact-details,
  .impact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .map-panel iframe {
    height: 220px;
  }
}
