:root {
  --navy: #0b2e5c;
  --blue: #1a4fd6;
  --blue-dark: #123a9e;
  --aqua: #2bb3c0;
  --ink: #142238;
  --ink-soft: #4a5670;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-navy: #0b2e5c;
  --border: #e2e8f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 92, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img { width: 42px; height: 42px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-color: var(--blue);
}

.nav-links a.donate-btn {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 9px 24px;
  border-radius: 999px;
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(26, 79, 214, 0.35);
}
.nav-links a.donate-btn:hover {
  background: var(--blue-dark);
  color: #fff;
  border-color: transparent;
}

.nav-donate-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-donate-mobile {
    display: inline-flex;
    align-items: center;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    margin-left: auto;
    margin-right: 14px;
    box-shadow: 0 4px 14px rgba(26, 79, 214, 0.4);
  }
  .nav-donate-mobile:hover { background: var(--blue-dark); }
  .nav-links a.donate-btn { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }
  .nav-links a.active, .nav-links a:hover {
    border-left-color: var(--blue);
    border-bottom-color: var(--border);
    background: var(--bg-soft);
  }
  .nav-links a.donate-btn {
    margin: 12px 24px;
    width: calc(100% - 48px);
    text-align: center;
    border-radius: 999px;
    border-left: none;
    border-bottom: none;
  }
  .nav-links a.donate-btn:hover {
    background: var(--blue-dark);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 79, 214, 0.30);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--blue-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,46,92,0.78) 0%, rgba(11,46,92,0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.hero-visual img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--aqua);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.1;
}
.hero p {
  font-size: 1.1rem;
  max-width: 620px;
  color: #dfe7f7;
  margin: 0 0 32px;
}

/* Simple page header (non-home hero) */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--aqua); text-align: center; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #dfe7f7; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 14px; font-weight: 800; color: var(--navy); }
.section-navy .section-head h2 { color: #fff; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}
.stat-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Purpose cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}
.card .eyebrow { margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split h2 { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 16px; font-weight: 800; }
.split p { color: var(--ink-soft); margin: 0 0 22px; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

/* CTA banner */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { color: #dfe7f7; max-width: 520px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* Long-form body copy */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 20px; }
.callout {
  background: #eaf1ff;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 32px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-card-body { padding: 24px; }
.team-card-body h3 { margin: 0 0 4px; color: var(--navy); }
.team-card-body .role { color: var(--aqua); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; display: block; }
.team-card-body .team-meta { color: var(--ink-soft); margin: 0 0 14px; font-size: 0.92rem; }
.team-card-body p.quote { color: var(--ink-soft); margin: 0 0 16px; font-style: italic; }
/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-body .news-date { color: var(--aqua); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.news-card-body h3 { margin: 0; color: var(--navy); font-size: 1.15rem; line-height: 1.3; }
.news-card-body p { margin: 0; color: var(--ink-soft); }
.news-card-body a.read-more { margin-top: auto; font-weight: 700; color: var(--blue); text-decoration: none; padding-top: 6px; }
.news-card-body a.read-more:hover { text-decoration: underline; }
.news-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}

.team-social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.team-social a svg { width: 17px; height: 17px; }
.team-social a:hover {
  background: var(--blue);
  color: #fff;
}

/* Gallery */
.gallery-grid {
  columns: 4 260px;
  column-gap: 16px;
}
.gallery-grid figure {
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 38, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd7ef;
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbd7ef; text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #9fb0d1;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}
