:root {
  --navy: #12315b;
  --blue: #4aa8e8;
  --green: #43b883;
  --orange: #f87620;
  --purple: #8b63d8;
  --ink: #19324d;
  --muted: #63758a;
  --bg: #f7fbff;
  --white: #fff;
  --nav-hover: #0167d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

/* ---------- Header ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background-color: var(--bg);
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 8px 12px;
  border-bottom: 1px solid #e4edf5;
  /* No transform transition: JS drives translateY 1:1 with scroll */
  will-change: transform;
}

header .nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.img-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-link {
  background: none;
  color: #000000;
  border: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-wrap: balance;
}

.nav-link:hover,
.nav-link.active {
  background: var(--nav-hover);
  color: #fff;
}

.lang {
  background: var(--purple);
  color: #ffffff;
  border: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

@media screen and (max-width: 820px) {
  .hide-mobile {
    display: none;
  }

  /* Single row: shrink everything, never wrap */
  header {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
  }

  header .nav {
    flex: 1;
    min-width: 0;
  }

  header nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  #headerlogo {
    width: 50px;
    height: auto;
  }

  .nav-link {
    font-size: 11px;
    padding: 6px 7px;
    white-space: nowrap;
  }

  .lang {
    font-size: 11px;
    padding: 6px 8px;
    white-space: nowrap;
  }
}

/* ---------- Page sections ---------- */

main {
  max-width: 1180px;
  margin: auto;
  padding: 30px 20px 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 35px;
  align-items: center;
  padding: 35px 0;
}

.hero-bg {
  grid-template-columns: 1fr;
  /* Home hero background image — source file: src/images/pictures/team-try-ii.png (served as /images/pictures/team-try-ii.png) */
  background:
    linear-gradient(to bottom, rgb(18 49 91 / 0) 55%, var(--navy) 100%),
    url('/images/pictures/team-try-ii.png') center / cover no-repeat;
  border-radius: 26px;
  padding: 120px 35px;
  color: #fff;
}

.hero-bg > div,
.hero-headline,
.hero-sub {
  max-width: 640px;
}

/* CHANGED: split hero into 2 containers — .hero-headline (h1 only) and .hero-sub (lead + buttons) so they can be positioned separately */
.hero-headline {
  max-width: 640px;
}

.hero-sub {
  max-width: 640px;
}

.hero-bg h1,
.hero-bg .lead {
  color: #fff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.35);
}

.badge {
  display: inline-block;
  background: #e8f5ff;
  color: var(--navy);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}




h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  margin: 15px 0;
  color: var(--navy);
}

h2 {
  font-size: 34px;
  color: var(--navy);
  margin: 8px 0 14px;
}

h3 {
  margin: 8px 0;
  color: var(--navy);
}

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 650px;
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
}

.primary {
  background: var(--orange);
  color: #fff;
}

.secondary {
  background: #e7f4ff;
  color: var(--navy);
}

.photo {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 18px 45px #12315b22;
}

.section {
  padding: 65px 0;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: #fff;
  border: 1px solid #e4edf5;
  border-radius: 20px;
  padding: 23px;
  box-shadow: 0 7px 24px #12315b0b;
}

/* CHANGED: clickable index cards linking to Impact / Stories / Sponsors */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

a.card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 12px 28px #12315b1a;
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--nav-hover);
}

/* CHANGED 2026-09-16: index page only — center the card titles */
.center-h3 h3 {
  text-align: center;
}

.icon {
  width: 45px;
  height: 45px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 10px;
}

.blue {
  background: #e3f3ff;
}

.green {
  background: #e6f8f0;
}

.orange {
  background: #fff0df;
}

.purple {
  background: #eee8ff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.parent {
  border-top: 5px solid var(--orange);
}

.student {
  border-top: 5px solid var(--blue);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.stat {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e4edf5;
}

.num {
  font-size: 30px;
  font-weight: 900;
  color: var(--navy);
}

.photoGrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}

.photoGrid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
}

.photoGrid img:first-child {
  height: 475px;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 700px;
}



/* ---------- Progarms ---------- */
/* CHANGED: .ESK5 / .MS68 / .HS910 now match header .nav-link buttons */
.ESK5,
.MS68,
.HS910 {
  background: var(--blue);
  color: #eef4ff;
  border: 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.ESK5{
  background: var(--blue)
}

.MS68{
  background: var(--green)
}

.HS910{
  background: var(--orange)
} 




.form input,
.form textarea,
.form select {
  padding: 13px;
  border: 1px solid #ccd9e5;
  border-radius: 11px;
  font: inherit;
}

.form textarea {
  min-height: 130px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 14px;
}

.team-card h3 {
  margin: 12px 0 4px;
}

.team-card p {
  margin: 0;
}

.team-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.team-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

.team-row img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 14px;
}

.team-row h3 {
  margin: 0 0 4px;
}

.team-row .role {
  margin: 0 0 10px;
}

.team-row p {
  margin: 0 0 10px;
}

.team-row p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

footer {
  background: var(--navy);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .hero,
  .split,
  .team-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 10px 0;
  }


  /* CHANGED 2026-09-16: phone hero layout —
     1) keep h1 pinned top with bigger size + more padding (headline up)
     2) .hero-sub is now its own container pushed to the bottom like desktop (sub text + buttons down)
     3) Tanner request: headline bigger on phone, sub in separate card */
  .hero-bg {
    align-items: stretch;
    padding: 28px 20px 32px;
    background-position: center top;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
  }

  /* CHANGED: headline container — bigger h1 with extra padding on phones */
  .hero-headline {
    padding: 18px 6px 10px;
  }

  .hero-bg .hero-headline h1 {
    margin-top: 0;
    margin-bottom: 0;
    /* CHANGED 2026-09-16: smaller so the headline fits in 3 lines on phones (was 40px/12vw/50px = 4 lines) */
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.08;
  }

  /* CHANGED: sub container — its own card at the bottom (like desktop position) */
  .hero-sub {
    margin-top: auto;
    background: rgb(18 49 91 / 0.72);
    backdrop-filter: blur(2px);
    padding: 18px 18px 20px;
    border-radius: 18px;
  }

  .hero-sub .lead {
    margin-top: 0;
    padding-top: 0;
    font-size: 17px;
  }

  /* One line: smaller buttons, no wrapping */
  .hero-sub .buttons {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-sub .btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 10px 8px;
  }

  /* CHANGED 2026-09-16: smaller so "Educate • Empower • Elevate" fits on one line on phones */
  .section.center h2 {
    font-size: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .photo {
    height: 300px;
  }

  .photoGrid {
    grid-template-columns: 1fr;
  }

  .photoGrid img:first-child {
    height: 280px;
  }
}
