:root {
  --logo-blue: #293B65;
  --green: #128c4a;
  --green-dark: #0c6a38;
  --yellow: #ffd34d;
  --blue: #1e5eff;
  --red: #e64b3c;
  --cream: #fffaf0;
  --ink: #1f2937;
  --muted: #5b6470;
  --card: #ffffff;
  --line: #e8ebef;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.topbar { background: var(--logo-blue); color: #fff; font-size: 0.95rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.topbar .left, .topbar .right { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 15px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 72px; height: 72px; border-radius: 0; background: transparent; padding: 0; box-shadow: none; flex: 0 0 auto; object-fit: contain; }
.brand-text h1 { font-size: 1.1rem; line-height: 1.1; margin: 0; }
.brand-text p { margin: 4px 0 0; color: var(--muted); font-size: 0.93rem; }

.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 700; cursor: pointer; transition: 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--green), #1cb45f); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: #fff; border: 2px solid var(--green); color: var(--green); }

.hero { color: #fff; padding: 30px 0 30px; overflow: hidden; }
.hero > .container { overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}
.hero-badge { display: inline-block; color: #fff; padding: 8px 14px; border-radius: 1px; margin-bottom: 18px; font-weight: 700; }
.hero h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.06; margin: 0 0 18px; max-width: 16ch; text-wrap: balance; }
.hero p { font-size: 1rem; max-width: 32rem; margin: 0 0 22px; color: rgba(255,255,255,0.96); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 24px;
  backdrop-filter: none;
  box-shadow: none;
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 700px;
}
.hero-slider {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-slide {
  display: none;
  margin: 0;
  width: 100%;
}
.hero-slide.is-active { display: block; }
.hero-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 620px);
  max-height: 500px;
  margin-left: auto;
  border-radius: 18px;
  border: 0px solid var(--red);
}
.hero-slide figcaption {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255,255,255,0.94);
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.48);
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: #fff; }

section { padding: 25px 0; }
.section-head { margin-bottom: 28px; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.0rem; font-weight: 800; margin-bottom: 10px; }
.section-head h3 { font-size: clamp(1.25rem, 3vw, 2.0rem); margin: 0 0 10px; line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); max-width: 68ch; }

.stats { background: var(--cream); }
.stats-grid,
.feature-grid,
.level-grid,
.activity-grid,
.testimonial-grid,
.contact-grid,
.footer-grid { display: grid; gap: 18px; }

.stats-grid { grid-template-columns: repeat(4, 1fr); }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.level-grid { grid-template-columns: repeat(3, 1fr); }
.activity-grid { grid-template-columns: repeat(4, 1fr); }
.testimonial-grid { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; }

.contact-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 640px);
  gap: 22px;
  align-items: start;
  justify-content: space-between;
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.stat-number { font-size: 2.3rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px; }
.stat-label { color: var(--muted); font-weight: 700; }
.feature-icon,.level-icon,.activity-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.4rem; margin-bottom: 14px; font-weight: 800; }
.feature-icon { background: #edfdf3; color: var(--green); }
.level-icon { background: #eef4ff; color: var(--blue); }
.activity-icon { background: #fff4ef; color: var(--red); }
.card h4 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center; }
.image-panel img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bullet-list { display: grid; gap: 12px; margin-top: 18px; }
.bullet-item { display: flex; gap: 12px; align-items: flex-start; }
.bullet-dot { width: 28px; height: 28px; border-radius: 999px; background: var(--yellow); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; margin-top: 2px; }
.quote { background: linear-gradient(135deg, #fffceb, #eefdf5); border-left: 6px solid var(--yellow); }
.quote p:first-child { color: var(--ink); font-size: 1.04rem; margin-bottom: 16px; }
.quote strong { display: block; }
.quote .quote-text { color: var(--ink); font-size: 1.04rem; margin-bottom: 16px; }
.leadership-quote { display: block; }
.leadership-quote::after { content: ''; display: block; clear: both; }
.leadership-photo-wrap { float: left; margin: 0 24px 12px 0; }
.leadership-photo { width: min(42vw, 220px); max-width: 220px; min-width: 42px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: 18px; display: block; box-shadow: var(--shadow); }
.cta { background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; }
.cta .card { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: #fff; }
.cta .card p { color: rgba(255,255,255,0.92); }
.cta .section-head p { color: rgba(255,255,255,0.96); }
.cta .section-head h3 { color: #ffffff; }
.contact-box p, .contact-box li { color: var(--muted); }
.contact-box ul { padding-left: 18px; margin: 10px 0 0; }
iframe { width: 100%; min-height: 360px; border: 0; border-radius: 22px; box-shadow: var(--shadow); }

/* CONTACT SECTION */
.contact-form-card,
.contact-grid > :last-child {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  width: 100%;
  max-width: 640px !important;
  margin: 0 !important;
  justify-self: start;
}

.contact-form-card.card,
.contact-grid > :last-child.card {
  padding: 18px 18px 16px !important;
  border-radius: 16px !important;
}

.contact-form-card h2,
.contact-form-card h3,
.contact-form-card h4,
.contact-grid > :last-child h2,
.contact-grid > :last-child h3,
.contact-grid > :last-child h4 {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
  color: var(--ink);
}

.contact-form-grid,
.contact-grid > :last-child form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px !important;
  align-items: start;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-field {
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form-card label,
.contact-grid > :last-child label {
  display: block;
  margin: 0 0 5px !important;
  font-size: 0.92rem !important;
  font-weight: 700;
  color: var(--ink);
}

.contact-form-card input,
.contact-form-card textarea,
.contact-grid > :last-child input,
.contact-grid > :last-child textarea {
  display: block;
  width: 100%;
  border: 1px solid #d4dbe4;
  border-radius: 12px !important;
  padding: 9px 11px !important;
  font: inherit;
  font-size: 0.97rem !important;
  line-height: 1.3 !important;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.contact-form-card input,
.contact-grid > :last-child input {
  min-height: 44px;
}

.contact-form-card textarea,
.contact-grid > :last-child textarea {
  min-height: 120px !important;
  resize: vertical;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder,
.contact-grid > :last-child input::placeholder,
.contact-grid > :last-child textarea::placeholder {
  color: #8b95a3;
}

.contact-form-card input:hover,
.contact-form-card textarea:hover,
.contact-grid > :last-child input:hover,
.contact-grid > :last-child textarea:hover {
  border-color: #b8c4d1;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-grid > :last-child input:focus,
.contact-grid > :last-child textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 94, 255, 0.12);
  background: #fff;
}

.form-actions,
.contact-grid > :last-child .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px !important;
  margin-top: 2px !important;
}

.form-actions .btn,
.contact-grid > :last-child .btn,
.contact-grid > :last-child button[type="submit"] {
  min-width: 0 !important;
  width: auto !important;
  padding: 10px 22px !important;
  font-size: 0.98rem !important;
}

.form-note,
.contact-grid > :last-child .form-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}

.form-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.form-alert-success {
  background: #dcfce7;
  color: #166534;
}

.form-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

footer { background: #293B65; color: #f8fafc; padding: 54px 0 24px; }
footer p, footer li, footer a { color: rgba(248,250,252,0.88); }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.footer-brand-no-logo { gap: 0; }
.footer-brand-logo-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 0 0 auto; }
.footer-brand-logo-stack > img { width: 72px; border-radius: 0; background: transparent; padding: 0; object-fit: contain; display: block; }
.footer-brand-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-brand-copy strong { font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.1; }
.footer-gibbon-link { display: inline-block; line-height: 0; text-decoration: none; transition: transform 0.18s ease, opacity 0.18s ease; }
.footer-gibbon-link-inline { margin-top: 16px; }
.footer-gibbon-link img { display: block; width: 150px; max-width: 100%; height: auto; object-fit: contain; }
.footer-brand-no-logo .footer-gibbon-link img { width: clamp(190px, 24vw, 290px); }
.footer-gibbon-link:hover, .footer-gibbon-link:focus-visible { transform: translateY(-1px); opacity: 0.92; }
.footer-links { display: grid; gap: 10px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 26px; padding-top: 18px; font-size: 0.94rem; color: rgba(248,250,252,0.72); }
.mobile-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 800; }

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .footer-grid,
  .testimonial-grid,
  .feature-grid,
  .level-grid,
  .activity-grid,
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .nav { align-items: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 28px; align-items: center; }
  .hero h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 15ch; }
  .hero-card { max-width: 620px; }
  .hero-slide img, .hero-slider-dots { max-width: min(100%, 520px); }

  .contact-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 560px);
    gap: 18px;
  }

  .leadership-photo { width: min(38vw, 280px); }
}

@media (max-width: 720px) {
  .footer-brand { gap: 14px; }
  .footer-brand-logo-stack > img { width: 64px; }
  .footer-gibbon-link img { width: 132px; }
  .footer-brand-no-logo .footer-gibbon-link img { width: clamp(180px, 46vw, 260px); }

  .mobile-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 8px; }
  .nav-links.open { display: flex; }
  .hero, section { padding: 54px 0; }

  .hero-grid,
  .split,
  .footer-grid,
  .testimonial-grid,
  .feature-grid,
  .level-grid,
  .activity-grid,
  .stats-grid { grid-template-columns: 1fr; }

  .topbar-inner { align-items: flex-start; }
  .brand-text p { display: none; }
  .footer-gibbon-link img { width: 150px; }
  .footer-brand-no-logo .footer-gibbon-link img { width: min(220px, 100%); }
  .hero h2 { max-width: none; font-size: clamp(2rem, 9vw, 3rem); text-wrap: balance; }
  .hero-card { justify-self: stretch; align-self: stretch; max-width: none; }

  .leadership-photo-wrap { float: none; margin: 0 0 16px; }
  .leadership-photo { width: min(100%, 320px); min-width: 0; }
  .hero-slider { align-items: stretch; }

  .hero-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .hero-slide figcaption,
  .hero-slider-dots { max-width: 100%; text-align: left; justify-content: flex-start; }

  .hero-slider-btn.prev { left: 8px; }
  .hero-slider-btn.next { right: 8px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-grid,
  .contact-grid > :last-child form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .contact-form-card,
  .contact-grid > :last-child {
    max-width: 100% !important;
  }

  .contact-form-card.card,
  .contact-grid > :last-child.card {
    padding: 16px !important;
  }

  .contact-form-card textarea,
  .contact-grid > :last-child textarea {
    min-height: 110px !important;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .btn,
  .contact-grid > :last-child .btn,
  .contact-grid > :last-child button[type="submit"] {
    width: 100% !important;
  }
}