/* =========================================================
   BASE ON HOPE WEBSITE STYLE
   Most design settings are in :root right below.
   ========================================================= */
:root {
  --primary: #2563eb;          /* Main color: buttons, links, highlights */
  --primary-dark: #1d4ed8;
  --secondary: #eaf1ff;        /* Light blue background */
  --accent: #dc2626;           /* Red accent (heart in the logo) */
  --dark: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --background: #f7f8fb;
  --white: #ffffff;

  --radius: 22px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);

  --max-width: 1120px;
  --content-width: calc(var(--max-width) * 0.84); /* inner width of a .section */
  --section-padding: 84px 8%;

  --font-main: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
               "Noto Sans KR", "Noto Sans Lao", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }

/* =========================
   HEADER
   ========================= */

/* Reserve the shared navbar's space while navbar.html is loading. */
#site-header {
  display: block;
  min-height: 64px;
}

#site-header.header-load-error {
  min-height: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 5%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav {
  display: flex;
  justify-content: center;
  justify-self: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 5px;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0;
  transition: left 0.22s ease, right 0.22s ease, opacity 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
  left: 5px;
  right: 5px;
  opacity: 1;
}

.nav a:focus-visible,
.language-toggle:focus-visible,
.lang-option:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.header-actions {
  position: relative;
  display: flex;
  justify-self: end;
  white-space: nowrap;
}

.language-switcher {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.language-toggle:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.language-icon,
.language-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.language-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.language-switcher.open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  min-width: 158px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 32px 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lang-option.active {
  background: #eff6ff;
  color: var(--primary);
}

.lang-option.active::after {
  content: "✓";
  position: absolute;
  right: 11px;
  color: var(--primary);
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* =========================
   BUTTONS
   ========================= */
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover { transform: translateY(-2px); }

.primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}
.primary:hover { background: var(--primary-dark); }

.secondary { color: var(--primary); background: var(--secondary); }
.outline-light { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.light { background: var(--white); color: var(--primary); }

.glass-button {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.text-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* =========================
   HERO (home, fullscreen slideshow)
   ========================= */
.hero-fullscreen {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
}

.hero-bg-slider { position: absolute; inset: 0; z-index: 1; }

.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease-in-out, transform 5s ease;
}

.hero-bg-slide.active { opacity: 1; transform: scale(1); }
.hero-bg-slide:not([src]) { visibility: hidden; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 70% 58% at 50% 48%,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.36) 42%,
      rgba(0, 0, 0, 0.08) 76%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(3, 7, 18, 0.30) 0%,
      rgba(3, 7, 18, 0.12) 48%,
      rgba(3, 7, 18, 0.58) 100%
    );
}

.hero-fullscreen-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
  padding: 80px 8%;
  color: #fff;
}

.hero-fullscreen-content .eyebrow {
  color: #dbeafe;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.52);
}

.hero-fullscreen-content h1 {
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.48),
    0 12px 34px rgba(0, 0, 0, 0.42);
}

.hero-fullscreen-content .hero-text {
  margin: 0 auto 34px;
  max-width: 760px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(18px, 2vw, 22px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.hero-center-buttons { justify-content: center; }

/* Sub-page hero (smaller banner with photo) */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: 90px 8% 56px;
  color: #fff;
  background: var(--dark) center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.7));
}

.page-hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-hero p { margin: 0; max-width: 720px; font-size: 19px; color: rgba(255,255,255,0.88); }
.page-hero .eyebrow { color: #bfdbfe; }

/* =========================
   SECTIONS
   ========================= */
.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section p { color: #4b5563; font-size: 17px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.soft-background { max-width: none; background: #eef4ff; }
.soft-background > * { max-width: var(--content-width); margin-left: auto !important; margin-right: auto !important; }

/* =========================
   IMPACT NUMBERS
   ========================= */
.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--max-width);
  margin: -40px auto 0;
  padding: 0 8%;
  position: relative;
  z-index: 3;
}

/* Landing impact cards: stay in layout, reveal after the first downward scroll */
.landing-impact-reveal .impact-item {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(2px);
  pointer-events: none;
  will-change: opacity, transform, filter;
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 760ms ease;
}

.landing-impact-reveal.is-visible .impact-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.landing-impact-reveal.is-visible .impact-item:nth-child(2) {
  transition-delay: 90ms;
}

.landing-impact-reveal.is-visible .impact-item:nth-child(3) {
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .landing-impact-reveal .impact-item {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    transition: none;
  }
}

.impact-item,
.stat-card {
  padding: 28px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.impact-item strong,
.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 36px;
  line-height: 1.1;
}

.impact-item span,
.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

/* =========================
   CARDS
   ========================= */
.card-grid { display: grid; gap: 22px; margin-top: 28px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3,
.project-card h3,
.team-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 21px;
}

.card ul { margin: 0; padding-left: 20px; color: #4b5563; }
.card li { margin: 6px 0; }

/* =========================
   PROJECT CARDS (preview on home)
   ========================= */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease;
}

a.project-card:hover { transform: translateY(-4px); }

.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-content { padding: 24px; }
.project-content p { margin: 0; }

.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tag.done { background: #dcfce7; color: #15803d; }
.tag.planned { background: #fef3c7; color: #b45309; }

/* =========================
   PROJECT DETAIL BLOCKS (projects.html)
   ========================= */
.project-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.project-index a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.project-index a:hover { border-color: var(--primary); color: var(--primary); }

.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.project-block:nth-of-type(even) .project-media { order: 2; }

.project-media img,
.project-media .media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.project-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.project-photos img {
  aspect-ratio: 1;
  border-radius: 14px;
  cursor: zoom-in;
}

.project-block h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  color: var(--dark);
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 15px;
}

.facts dt { font-weight: 900; color: var(--dark); }
.facts dd { margin: 0; color: #4b5563; }

.bullets { margin: 0; padding-left: 20px; color: #4b5563; }
.bullets li { margin: 6px 0; }

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(45deg, #eef2ff, #eef2ff 12px, #f8fafc 12px, #f8fafc 24px);
  color: var(--muted);
  font-weight: 800;
}

/* =========================
   TIMELINE
   ========================= */
.timeline { display: grid; gap: 18px; margin-top: 28px; }

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  font-weight: 900;
}

.timeline-item h3 { margin: 0 0 6px; }
.timeline-item p { margin: 0; }

/* =========================
   GALLERY
   ========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
  margin-top: 28px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-grid img:first-child { grid-row: span 2; }

/* Gallery page: masonry-style wall */
.photo-wall {
  columns: 3 280px;
  column-gap: 16px;
  margin-top: 24px;
}

.photo-wall figure {
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.photo-wall img { width: 100%; cursor: zoom-in; }

.photo-wall figcaption {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.88);
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; }
.lightbox-caption { color: #e5e7eb; margin-top: 12px; text-align: center; }

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   VIDEOS
   ========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.video-embed.vertical { aspect-ratio: 9 / 16; max-height: 640px; margin: 0 auto; }

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.video-placeholder p { margin: 0; color: #cbd5e1 !important; font-weight: 800; font-size: 15px !important; }

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #fff;
}

.video-info { padding: 18px 22px; }
.video-info h3 { margin: 0 0 4px; font-size: 18px; color: var(--dark); }
.video-info p { margin: 0; font-size: 15px; }

/* =========================
   TEAM / FOUNDERS
   ========================= */
.team-card {
  display: grid;
  grid-template-rows: auto 44px 64px 28px 1fr;
  align-items: start;
  padding: 30px 26px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-photo {
  width: 168px;
  height: 168px;
  margin: 0 auto 18px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--secondary);
}

.initials-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.team-role {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0 !important;
  color: var(--primary) !important;
  font-weight: 900;
  font-size: 14px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0 !important;
  line-height: 1.45;
}

.team-card .team-name-ko {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.team-card p { margin: 0; font-size: 15px; }
.team-card > p:last-child { padding-top: 10px; }

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.dept-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.dept-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--dark); }
.dept-card .dept-head { margin: 0 0 10px; font-weight: 800; color: var(--primary); font-size: 14px; }
.dept-card p { margin: 0; font-size: 15px; }

/* =========================
   HIGHLIGHT / SPONSOR
   ========================= */
.highlight {
  max-width: none;
  background: radial-gradient(circle at top right, rgba(147,197,253,0.2), transparent 32%), var(--dark);
  color: var(--white);
}

.section-inner { max-width: var(--content-width); margin: 0 auto; }
.highlight h2 { color: var(--white); }
.highlight p { color: #d1d5db; max-width: 760px; }
.highlight .section-label { color: #93c5fd; }

/* =========================
   FACT STRIP (Laos page)
   ========================= */
.fact-list { display: grid; gap: 14px; margin-top: 24px; }

.fact-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.fact-item strong { color: var(--primary); font-size: 22px; }
.fact-item p { margin: 0; }

.source-note { font-size: 13px !important; color: var(--muted) !important; margin-top: 16px; }
.source-note a { color: var(--primary); }

/* =========================
   SPONSOR LOGOS
   ========================= */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.logo-grid div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px;
  color: var(--muted);
  font-weight: 900;
  background: var(--white);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

/* =========================
   CTA / FAQ / CONTACT
   ========================= */
.cta { text-align: center; }
.cta p { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta .button { margin-top: 12px; }

.faq-list { display: grid; gap: 14px; margin-top: 28px; }

details {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

summary { cursor: pointer; color: var(--dark); font-weight: 900; }
details p { margin-bottom: 0; }

.contact-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact a { color: var(--primary); font-weight: 900; }

/* =========================
   SUPPORT PAGE
   ========================= */
.support-card { min-height: 220px; }

.donation-card {
  margin-top: 28px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 680px;
}

.donation-card h3 { margin-top: 0; color: var(--dark); }
.donation-card p { margin: 10px 0; }

.small-note { margin-top: 18px !important; font-size: 14px !important; color: var(--muted) !important; }

.message-form-card {
  margin-top: 28px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.message-form-card iframe { display: block; border-radius: 16px; background: #fff; }

/* =========================
   404 PAGE
   ========================= */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found .big { font-size: 96px; font-weight: 900; color: var(--primary); margin: 0; line-height: 1; }

/* =========================
   FOOTER
   ========================= */
.footer {
  padding: 40px 8% 28px;
  color: #9ca3af;
  background: #0b1120;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer strong { color: #fff; font-size: 18px; }
.footer p { margin: 6px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { max-width: var(--max-width); margin: 28px auto 0 !important; font-size: 13px; text-align: center; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1280px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: flex; justify-self: end; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }
  .nav a { justify-content: center; align-self: center; }
  .header-actions { display: none; grid-column: 1 / -1; justify-self: center; }
  .site-header.menu-open .nav,
  .site-header.menu-open .header-actions { display: flex; }
}

@media (max-width: 980px) {
  .two-column,
  .project-block { grid-template-columns: 1fr; gap: 24px; }
  .project-block:nth-of-type(even) .project-media { order: 0; }
  .impact { margin-top: 0; padding-top: 28px; gap: 10px; }
  .impact-item { padding: 18px 8px; }
  .impact-item strong { font-size: 28px; }
  .impact-item span { font-size: 13px; }
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .dept-grid,
  .video-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-rows: auto 40px auto 28px auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery-grid img,
  .gallery-grid img:first-child { grid-row: auto; height: auto; aspect-ratio: 4 / 3; }
  .gallery-grid img:first-child { grid-column: 1 / -1; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --section-padding: 60px 16px; }
  #site-header { min-height: 60px; }
  .site-header { padding: 12px 16px; }
  .logo { font-size: 18px; }
  .button { width: 100%; }
  .timeline-item { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-card strong { font-size: 26px; }
  .fact-item { grid-template-columns: 1fr; gap: 4px; }
  .page-hero { min-height: 300px; padding: 70px 16px 40px; }
  .impact { padding: 28px 16px 0; }
  .card-grid.four { grid-template-columns: 1fr; }
  .project-photos { grid-template-columns: repeat(2, 1fr); }
}

/* =========================
   PARTNERS / GOAL / STADIUM STOPS (added)
   ========================= */
.goal-line {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: #fff5f5;
  border-radius: 0 12px 12px 0;
  color: var(--dark) !important;
  font-weight: 700;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  max-width: 760px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  padding: 24px;
  border-radius: var(--radius);
}

.partner-card img { max-height: 120px; width: auto; }
.partner-card p { margin: 0; color: #fff !important; font-weight: 800; font-size: 14px !important; text-align: center; }

.stop {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.stop-cover { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.stop h3 { margin: 0 0 6px; font-size: 26px; color: var(--dark); letter-spacing: -0.02em; }
.stop .who { margin: 0 0 12px; font-weight: 800; color: var(--primary); font-size: 15px; }

.stop-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stop-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.series-img { width: 100%; border-radius: var(--radius); margin-top: 20px; border: 1px solid var(--line); }

.honest-card { border-left: 4px solid #f59e0b; }

@media (max-width: 760px) {
  .stop { grid-template-columns: 1fr; }
  .stop-cover { max-width: 240px; }
  .partner-grid { grid-template-columns: 1fr; }
  .stop-photos { grid-template-columns: repeat(2, 1fr); }
}

.acct { font-weight: 900; color: var(--dark); letter-spacing: 0.02em; }
.copy-btn {
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.gallery-grid img.zoomable, img.zoomable { cursor: zoom-in; }

/* =========================
   MEMBERS DIRECTORY
   ========================= */
.members-page-hero {
  background-position: center 48%;
}

.members-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 56px;
}

.members-intro-copy {
  max-width: 760px;
}

.members-intro-copy > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.members-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.members-overview > div {
  min-height: 150px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, #ffffff, #f3f6ff);
  border: 1px solid rgba(53, 100, 232, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(27, 50, 98, 0.09);
}

.members-overview strong {
  color: var(--primary);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
}

.members-overview span {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.organization-roles-section h2 {
  max-width: 720px;
}

.organization-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.organization-role-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: start;
  gap: 22px;
  padding: 30px;
  background: var(--white);
  border: 1px solid rgba(53, 100, 232, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(30, 51, 92, 0.08);
}

.organization-role-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary);
  background: #eaf0ff;
  border-radius: 22px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.organization-role-card .team-role {
  margin: 2px 0 7px;
}

.organization-role-card h3 {
  margin: 0;
  font-size: 25px;
}

.organization-role-card p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
}

.members-section-head {
  align-items: end;
}

.members-section-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.department-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.member-department-card {
  --department-accent: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--department-accent) 7%, white), #ffffff 48%);
  border: 1px solid color-mix(in srgb, var(--department-accent) 18%, #dbe3f0);
  border-radius: 30px;
  box-shadow: 0 20px 52px rgba(30, 51, 92, 0.09);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 320ms ease;
}

.member-department-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--department-accent);
}

.member-department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(30, 51, 92, 0.14);
}

.department-card-wide {
  grid-column: 1 / -1;
}

.department-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.department-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.department-number {
  color: var(--department-accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.department-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.department-heading h3 {
  max-width: 280px;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
}

.department-leader {
  display: grid;
  grid-template-columns: 76px auto;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.department-leader-photo {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--department-accent);
  background: color-mix(in srgb, var(--department-accent) 13%, white);
  border-radius: 24px;
  font-size: 27px;
  font-weight: 900;
}

.department-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.department-leader span {
  display: block;
  color: var(--department-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.department-leader strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.department-members {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--department-accent) 14%, #dbe3f0);
}

.department-members > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.member-name-list span {
  padding: 10px 14px;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  font-weight: 800;
}

@media (max-width: 900px) {
  .members-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .organization-role-grid,
  .department-directory {
    grid-template-columns: 1fr;
  }

  .department-card-wide {
    grid-column: auto;
  }

  .members-section-head {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .members-overview {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .members-overview > div {
    min-height: 126px;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .organization-role-card {
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
  }

  .organization-role-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 18px;
  }

  .member-department-card {
    padding: 25px 20px;
    border-radius: 25px;
  }

  .department-card-top {
    flex-direction: column;
  }

  .department-leader {
    width: 100%;
    grid-template-columns: 66px 1fr;
  }

  .department-leader-photo {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    font-size: 23px;
  }

  .department-heading h3 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-department-card {
    transition: none;
  }

  .member-department-card:hover {
    transform: none;
  }
}

