﻿:root {
  --brown: #605038;
  --accent-green: #88c880;
  --accent-yellow: #f8d068;

  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.82);

  --line: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --black: #111111;
  --cream: #e9e6df;
  --yellow: var(--accent-yellow);
  --green: #1f9f4f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--brown);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

/* HEADER (Bonton-like) */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--brown);
  border-bottom: 1px solid rgba(0,0,0,0.22);
}
.header-inner {
  height: 120px;
  display: grid;
  grid-template-columns: 220px 1fr 140px auto;
  align-items: center;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; height: 100%; }
.brand-logo {
  height: 98px;          /* larger like Bonton */
  width: auto;
  display: block;
  background: transparent;
  border: none;
  padding: 0;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 13px;
  text-transform: uppercase;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; text-decoration: none; }

/* === HEADER DONATE BUTTON (GLOBAL FIX) === */
.header .donate-btn,
.donate-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;

  background: #ffffff !important;      /* white */
  color: var(--green) !important;      /* mission green */
  
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;

  border: 1px solid rgba(0,0,0,0.10);
}

.header .donate-btn:hover,
.donate-btn:hover {
  background: #f8f8f8 !important;
  color: var(--green) !important;
  text-decoration: none;
}


.nav-toggle {
  display: none;
  justify-self: end;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 14px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.94);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.mobile-nav .mobile-donate {
  background: #fff;
  color: #2a6b2a;
  padding-left: 12px;
}
.mobile-nav.open { display: block; }

/* HERO SLIDESHOW ONLY */
.hero {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  display: grid;
  gap: 10px;
  padding: 14px;
}
.slide.active { opacity: 1; }

.slide.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.slide.two { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.slide.three { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.slide.three img:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.slide.three img:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.slide.three img:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }

.slide img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.08);
  animation: kenburns var(--kenburns, 12s) ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
}

/* MISSION BAND */
/* REPLACE your broken block EXACTLY with this (same styling, errors fixed) */

.mission-band {
  background: var(--accent-green);
  color: #ffffff;
}

/* Mission: reduce height + move text left */
.mission-grid {
  min-height: 280px;           /* reduced */
  padding: 42px 0;             /* reduced */
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 34px;
}

/* Make mission content feel wider across the page */
.mission-wide {
  max-width: 1280px;           /* wider than default container feel */
  margin: 0 auto;
  width: min(1280px, calc(100% - 56px));
}

/* Push the right text less centered */
.mission-right {
  max-width: 900px;
  justify-self: start;
}

.mission-text {
  font-size: clamp(20px, 2.0vw, 30px);
  line-height: 1.35;
  font-weight: 800;
  margin: 0;
}

/* SECTIONS */
.section { padding: 54px 0; background: var(--brown); }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.section h2 { margin: 0 0 10px; font-size: 30px; font-weight: 950; }
.section-lead { margin: 0 0 16px; color: var(--muted); line-height: 1.7; font-size: 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }

.card, .panel {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; }

.bullets, .steps { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}
textarea { resize: vertical; min-height: 110px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 13px;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.primary {
  border-color: rgba(248,208,104,0.45);
  background: linear-gradient(135deg, rgba(136,200,128,0.22), rgba(248,208,104,0.18));
}
.btn.ghost { background: transparent; }

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* =========================
   RECENT NEWS (Bonton-like)
========================= */
.news-section {
  background: #e9e6df; /* light tan like screenshot */
  color: #0b0b0b;
  padding: 64px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.news-tag {
  display: inline-block;
  margin-bottom: 14px;
}
.news-tag-text {
  font-weight: 950;
  letter-spacing: 0.6px;
  font-style: italic;
  font-size: 44px;
  color: #1f9f4f;
}
.news-tag-underline {
  display: block;
  height: 6px;
  margin-top: 8px;
  background: #1f9f4f;
  width: 220px;
}

.news-headline {
  margin: 0 0 16px;
  font-size: clamp(34px, 3.1vw, 54px);
  line-height: 1.05;
  font-weight: 950;
}

.news-subline {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  color: rgba(0,0,0,0.75);
}

.news-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 64px;
  padding: 0 18px;
  background: #1f9f4f;
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 4px solid rgba(255,255,255,0.85); /* “boxed” look */
}
.news-btn:hover { text-decoration: none; filter: brightness(0.98); }

.news-right .flyer {
  background: rgba(255,255,255,0.25);
  padding: 18px;
}

.flyer-card {
  position: relative;
  background: #fff;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 12px solid rgba(0,0,0,0.06); /* framed look like screenshot */
}

.flyer-left { padding: 6px 4px; }
.flyer-green {
  font-weight: 950;
  color: #7bbf00; /* bright lime-green like flyer */
  letter-spacing: 0.2px;
  line-height: 1.05;
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.flyer-title {
  font-weight: 950;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #111;
}
.flyer-details {
  font-weight: 700;
  font-size: 14px;
  color: rgba(0,0,0,0.75);
  line-height: 1.35;
}
.flyer-details.small { margin-top: 10px; font-size: 12px; }

.flyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flyer-logo {
  position: absolute;
  right: 14px;
  bottom: 14px;
  height: 44px;
  width: auto;
  opacity: 0.95;
}

/* FOOTER */
.footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.to-top {
  color: var(--muted);
  text-decoration: none;
}

.to-top:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 14px 0;
  }
  .nav, .donate-btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .mission-grid { grid-template-columns: 1fr; min-height: auto; padding: 52px 0; }

  .cards { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }

  /* FIXED: broken "min-" line */
  .news-btn { min-width: 220px; width: 100%; }

  .flyer-card { grid-template-columns: 1fr; }
}

/* Make subawards match mission green background */
.section.subawards-faq {
  background: var(--accent-green);
  color: #ffffff;
}
.section.subawards-faq .faq-lead,
.section.subawards-faq .acc-panel {
  color: rgba(255,255,255,0.92);
}

/* FAQ layout like screenshot */
.faq-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
  padding: 54px 0;
}

.faq-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.faq-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 950;
  line-height: 1.05;
}

.faq-lead {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.55;
  font-size: 16px;
}

.faq-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}


/* Apply button: white bg, brown text, yellow underline hover + color shift */
.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--brown);
  font-weight: 950;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.65);
  position: relative;
}

.apply-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 4px;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.apply-btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
  background: rgba(255,255,255,0.92); /* slight change on hover */
}

.apply-btn:hover::after {
  background: var(--accent-yellow);   /* yellow underline */
  transform: translateY(1px);
}

.apply-btn.secondary {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.35);
}

.apply-btn.secondary:hover {
  background: rgba(255,255,255,0.20);
}

.accordion {
  border-top: 2px solid rgba(255,255,255,0.60);
}

.acc-item {
  border-bottom: 2px solid rgba(255,255,255,0.60);
}

.acc-btn {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  text-align: left;
}

.acc-plus {
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-1px);
}

.acc-panel {
  padding: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 650;
}

/* open state */
.acc-item.open .acc-plus {
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-image img { min-height: 320px; }
  .acc-btn { font-size: 18px; }
  .apply-btn { width: 100%; }
}
/* ===== Mission: FIX sizing + make it shorter + less centered ===== */
.mission-band { background: var(--accent-green); color: #fff; }

.mission-grid {
  min-height: 220px !important;
  padding: 34px 0 !important;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 34px;
}

.mission-wide { max-width: 1280px; }

.mission-title{
  font-size: clamp(56px, 5.8vw, 96px) !important;
  line-height: 0.92 !important;
  font-weight: 950 !important;
  letter-spacing: -0.8px !important;
  text-transform: none;
}

.mission-right{
  justify-self: start;
  max-width: 980px;
}

.mission-text{
  font-size: clamp(18px, 2.0vw, 28px) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
/* ===== Angled section separators ===== */
.section-sep {
  height: 140px;
  background: #e9e6df; /* matches your light-tan news bg */
}

.section-sep.green {
  background: var(--accent-green);
}

.section-sep.right {
  clip-path: polygon(0 0, 100% 35%, 100% 100%, 0 100%);
}

.section-sep.left {
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
}
/* =========================
   GLOBAL CENTER HELPERS
========================= */
.center-title { text-align: center; }
.center-lead { text-align: center; max-width: 980px; margin-left: auto; margin-right: auto; }

.center-card { text-align: center; }
.center-card p { margin-left: auto; margin-right: auto; }

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.center-actions.two-btns { gap: 12px; flex-wrap: wrap; }

/* =========================
   PROGRAMS 2-2-1 GRID
========================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.program-wide {
  grid-column: 1 / -1;
  max-width: 620px;          /* makes it feel centered under the two columns */
  margin-left: auto;
  margin-right: auto;
}

/* Center text inside program cards */
.program-grid .card h3,
.program-grid .card p {
  text-align: center;
}

/* =========================
   PARTNERS SECTION CENTER
========================= */
.partners-centered .partners-grid .card h3,
.partners-centered .partners-grid .card p {
  text-align: center;
}

/* Put Partner button centered and nicely spaced */
.partners-centered .btn { min-width: 220px; }

/* =========================
   CONTACT SECTION BACKGROUND (CREAM)
========================= */
.section.alt#contact,
#contact.section.alt {
  background: #e9e6df !important;
  color: #111 !important;
}

#contact.section.alt a,
#contact.section.alt strong,
#contact.section.alt h2,
#contact.section.alt h3,
#contact.section.alt p,
#contact.section.alt label {
  color: #111 !important;
}

#contact.section.alt input,
#contact.section.alt select,
#contact.section.alt textarea {
  background: rgba(255,255,255,0.75) !important;
  color: #111 !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
}

/* =========================
   DIVIDERS - "PULLED UP INTO A POINT"
   (NOT STRIPS)
========================= */
/* Place these as standalone <div class="peak-divider ..."></div> BETWEEN sections */
/* =========================
   DIVIDERS (NO GREEN)
   Use between sections:
   - brown wedge on cream
   - white wedge on brown
========================= */

.peak-divider {
  height: 120px;
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}

/* base layer = background color */
.peak-divider.bg-cream { background: #e9e6df; }
.peak-divider.bg-brown { background: var(--brown); }

/* wedge layer = the “pulled up” shape */
.peak-divider .wedge {
  position: absolute;
  inset: 0;
}

/* wedge colors */
.peak-divider.wedge-brown .wedge { background: var(--brown); }
.peak-divider.wedge-white .wedge { background: #ffffff; }

/* point on RIGHT */
.peak-divider.right .wedge {
  clip-path: polygon(0 38%, 72% 18%, 100% 30%, 100% 100%, 0 100%);
}

/* point on LEFT */
.peak-divider.left .wedge {
  clip-path: polygon(0 30%, 28% 18%, 100% 38%, 100% 100%, 0 100%);
}

/* Prevent “divider inside section” look */
.section,
.news-section,
.mission-band {
  position: relative;
  z-index: 1;
}
.peak-divider {
  position: relative;
  z-index: 2;
}

/* Responsive tweaks */
@media (max-width: 980px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-wide { max-width: none; }
}
/* Contact: big logo left column */
.contact-grid-logo {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.contact-left {
  display: grid;
  gap: 14px;
}

.contact-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0.98;
}

@media (max-width: 980px) {
  .contact-logo { max-width: 340px; }
}
.contact-logo {
  display: block;
  width: min(460px, 100%);
  height: auto;
  margin: 22px auto 0;
}
/* Anchor scroll offset so sections don't hide under sticky header */
:root {
  --header-offset: 160px; /* set to your header height + a little space */
}

section[id] {
  scroll-margin-top: var(--header-offset);
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* base card transition */
.card-link .card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

/* hover effect: lift + faint green highlight */
.card-link:hover .card {
  transform: translateY(-4px);

  /* faint green glow */
  box-shadow:
    0 0 0 2px rgba(136, 200, 128, 0.28),
    0 14px 32px rgba(0,0,0,0.18);

  /* subtle green tint background */
  background: rgba(136, 200, 128, 0.06);

  border-color: rgba(136, 200, 128, 0.35);
}

/* keep centered wide card */
.card-link.program-wide {
  grid-column: 1 / -1;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}


/* Keep the 5th card centered */
.card-link.program-wide {
  grid-column: 1 / -1;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.card-link:hover {
  text-decoration: none !important;
}
/* =========================
   NAV DROPDOWNS (hover-open, stable)
========================= */

.nav { gap: 26px; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Link */
.nav-link {
  position: relative;
  padding: 8px 2px;
  text-decoration: none;
}

/* Yellow underline on hover/focus */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after {
  background: var(--accent-yellow);
  transform: translateY(1px);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
  padding: 10px;
  display: none;
  z-index: 300;
}

/* Invisible “hover bridge” so the menu doesn't collapse */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.dropdown a {
  display: block;
  padding: 10px 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
  color: #111;
  text-decoration: none;
}

.dropdown a:hover {
  background: rgba(0,0,0,0.06);
}

/* Show dropdown on hover/focus */
.nav-item.has-dd:hover > .dropdown,
.nav-item.has-dd:focus-within > .dropdown {
  display: block;
}

/* Make sure caret styles don't affect anything if they exist elsewhere */
.nav-caret, .caret-v { display: none !important; }
/* Sticky Back to Top button */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);

  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.08);
}

/* Make sure footer stays minimal */
.footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
/* =========================
   PROGRAM TITLE UNDERLINE (hover)
   Matches nav underline behavior
========================= */

.program-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px; /* gives space for underline */
}

/* the underline */
.program-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 4px;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
  transform: translateY(0);
}

/* underline appears when hovering the whole card OR the title */
.card-link:hover .program-title::after,
.program-card:hover .program-title::after,
.program-title:hover::after {
  background: var(--accent-yellow);
  transform: translateY(1px);
}
/* HERO slideshow baseline */
.hero { position: relative; }
.hero-media {
  width: 100%;
  height: 520px;              /* adjust if needed */
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
}
/* =========================
   PROGRAM PAGE LAYOUTS (Bonton-style)
   ========================= */

.program-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.program-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15));
}
.program-hero-inner {
  position: relative;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 64px 0 36px;
  color: var(--white);
}
.program-hero-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(28px, 4vw, 56px);
}

.band {
  padding: clamp(48px, 6vw, 84px) 0;
}
.band-cream { background: var(--cream); color: var(--black); }
.band-white { background: var(--white); color: var(--black); }
.band-green { background: var(--green); color: var(--white); }

.band-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.huge-title {
  margin: 0 0 12px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.5px;
  font-size: clamp(34px, 5vw, 72px);
}
.underline-green {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.underline-green::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 6px;
  width: 100%;
  background: var(--green);
  border-radius: 999px;
}
.lead-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  font-weight: 600;
}
.stat-note {
  text-align: center;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0;
  font-size: clamp(22px, 3.2vw, 44px);
}
.stat-note .accent {
  color: var(--green);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
}
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}
.split-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.split-title {
  margin: 0 0 10px;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(26px, 3vw, 44px);
}
.split-text p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 600;
}
.bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
  font-weight: 650;
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  border: 2px solid transparent;
  text-decoration: none;
}
.vf-btn.primary { background: var(--green); color: var(--white); }
.vf-btn.ghost { background: transparent; border-color: var(--green); color: var(--green); }
.band-green .vf-btn.ghost { border-color: var(--white); color: var(--white); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse { grid-template-columns: 1fr; }
  .program-hero-inner { padding: 56px 0 30px; }
}
/* ===============================
   VIVINATE ADVANCED PROGRAM LAYOUT SYSTEM
   =============================== */

.vf-section {
  padding: 70px 0;
}

.vf-cream { background: var(--cream); color: var(--black); }
.vf-green { background: var(--green); color: var(--white); }
.vf-yellow { background: var(--yellow); color: var(--black); }
.vf-brown { background: #605038; color: var(--white); }

.vf-container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.vf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.vf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vf-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(4px);
}

.vf-green .vf-card,
.vf-brown .vf-card {
  background: rgba(255,255,255,0.12);
}

.vf-title {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.vf-sub {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 18px;
}

.vf-list {
  padding-left: 20px;
  line-height: 1.9;
  font-weight: 600;
}

.vf-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.vf-media img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Dropdown Accordion */

.vf-accordion {
  border-radius: 14px;
  overflow: hidden;
}

.vf-accordion-item {
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.vf-accordion-header {
  padding: 18px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .5px;
}

.vf-accordion-content {
  display: none;
  padding: 18px;
  font-weight: 600;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .vf-grid-2,
  .vf-grid-3 {
    grid-template-columns: 1fr;
  }
}
/* Stronger Section Contrast */

.vf-cream { background: #e9e6df; }
.vf-green { background: #1f9f4f; }
.vf-yellow { background: #f8d068; }
.vf-brown { background: #605038; }

.vf-cream .vf-title,
.vf-yellow .vf-title {
  color: #111;
}

.vf-green .vf-title,
.vf-brown .vf-title {
  color: #fff;
}

.vf-green .vf-sub,
.vf-brown .vf-sub {
  color: #fff;
}

.vf-green .vf-list,
.vf-brown .vf-list {
  color: #fff;
}
/* =========================
   PROGRAM SECTION COLOR VARIANTS (HOME-STYLE)
   ========================= */

/* Default .section is brown. These give you clear contrast between sections */
.section.cream {
  background: linear-gradient(180deg,
    rgba(233,230,223,0.96),
    rgba(233,230,223,0.92)
  );
  color: #111;
}
.section.cream .section-lead,
.section.cream .muted,
.section.cream .bullets,
.section.cream .steps,
.section.cream .card p { color: rgba(17,17,17,0.74); }

.section.cream .card, .section.cream .panel {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.section.yellow {
  background: linear-gradient(180deg,
    rgba(248,208,104,0.92),
    rgba(248,208,104,0.82)
  );
  color: #111;
}
.section.yellow .section-lead,
.section.yellow .muted,
.section.yellow .bullets,
.section.yellow .steps,
.section.yellow .card p { color: rgba(17,17,17,0.76); }

.section.yellow .card, .section.yellow .panel {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.section.green {
  background: linear-gradient(135deg,
    rgba(136,200,128,0.34),
    rgba(0,0,0,0.12)
  ), var(--brown);
}

/* Optional “divider line” for cleaner separation */
.section + .section {
  border-top: 1px solid rgba(255,255,255,0.10);
}
.section.cream + .section,
.section.yellow + .section {
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ============================================================
   VF AUTO: Microgrants FAQ (Home-style)
   - Hover: question text + plus turns black
   - Plus rotates into an X when open
   ============================================================ */
.vf-faq { margin-top: 14px; display: grid; gap: 10px; }
.vf-faq-item {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}
.vf-faq-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
}
.vf-faq-q { display: inline-block; }
.vf-faq-icon {
  width: 22px;
  height: 22px;
  position: relative;
  justify-self: end;
  border-radius: 6px;
}

/* Draw a + with two bars */
.vf-faq-icon::before,
.vf-faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}
.vf-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Hover turns just text + plus black (no background fill) */
.vf-faq-btn:hover,
.vf-faq-btn:focus-visible {
  color: #0b0b0b;
}
.vf-faq-btn:hover .vf-faq-icon::before,
.vf-faq-btn:hover .vf-faq-icon::after,
.vf-faq-btn:focus-visible .vf-faq-icon::before,
.vf-faq-btn:focus-visible .vf-faq-icon::after {
  background: #0b0b0b;
}

/* Open state => rotate into X */
.vf-faq-item[data-open="1"] .vf-faq-icon::after { transform: translate(-50%, -50%) rotate(45deg); background: #0b0b0b; }
.vf-faq-item[data-open="1"] .vf-faq-icon::before { transform: translate(-50%, -50%) rotate(-45deg); background: #0b0b0b; }
.vf-faq-item[data-open="1"] .vf-faq-btn { color: #0b0b0b; }

/* Answer panel */
.vf-faq-a {
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ============================================================
   VF AUTO: AI Curriculum page tweaks
   - Cream section with brown cards + white text
   ============================================================ */
.ai-cream-browncards .card {
  background: var(--brown);
  border: 1px solid rgba(255,255,255,0.14);
}
.ai-cream-browncards .card h3 { color: rgba(255,255,255,0.94); }
.ai-cream-browncards .card p,
.ai-cream-browncards .bullets { color: rgba(255,255,255,0.82); }

/* === VF PATCH: Microgrants FAQ Accordion UI + Recent News Subline === */

/* Recent News subline: centered + dot spacing */
.news-subline { text-align: center; line-height: 1.6; }
.news-dot { display:inline-block; margin: 0 10px; }
.news-line2 { display:inline-block; }

/* Accordion: keep background unchanged, only text/+ hover turns black */
.accordion .acc-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 14px 0;
}

.accordion .acc-btn span:first-child { transition: color 160ms ease; }
.accordion .acc-plus {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, color 160ms ease;
}

/* Hover: ONLY the text and plus turn black */
.accordion .acc-btn:hover span:first-child,
.accordion .acc-btn:focus-visible span:first-child,
.accordion .acc-btn:hover .acc-plus,
.accordion .acc-btn:focus-visible .acc-plus {
  color: #0b0b0b;
}

/* Open state: plus rotates to X (black) */
.accordion .acc-item.is-open .acc-plus {
  transform: rotate(45deg);
  color: #0b0b0b;
}

/* Answer label with no background change */
.accordion .acc-panel {
  margin: 0 0 10px;
  padding: 0 0 14px;
  line-height: 1.7;
}

.accordion .acc-panel::before {
  content: "Answer: ";
  font-weight: 950;
}
.section.mission-green {
  background: #88c880 !important;   /* Mission green */
  color: #ffffff;
}

/* Microgrants accordion UI (hover black text + plus, plus rotates to X on open) */
.subawards-faq .acc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 14px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--text);
}

.subawards-faq .acc-plus {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease, color 160ms ease;
  color: var(--text);
}

/* Hover = ONLY words + plus turn black */
.subawards-faq .acc-btn:hover,
.subawards-faq .acc-btn:focus-visible {
  color: #0b0b0b;
}
.subawards-faq .acc-btn:hover .acc-plus,
.subawards-faq .acc-btn:focus-visible .acc-plus {
  color: #0b0b0b;
}

/* Open state: rotate to X by rotating +45deg AND changing plus symbol via JS */
.subawards-faq .acc-item.is-open .acc-plus {
  transform: rotate(45deg);
  color: #0b0b0b;
}

.subawards-faq .acc-item .acc-panel {
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.7;
}


/* VF PATCH: MICROGRANTS ACCORDION + AI CURRICULUM */

/* Microgrants FAQ: plus rotates into an X when open */
.accordion[data-accordion] .acc-plus {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, color 160ms ease;
}
.accordion[data-accordion] .acc-item.is-open .acc-plus {
  transform: rotate(45deg); /* + becomes X */
}

/* =========================
   AI Curriculum page: green background + Water Smart AI centered
   ========================= */
body.ai-curriculum-page {
  background: var(--accent-green) !important;
}

/* Center everything inside Water Smart AI section */
.water-smart-centered,
.water-smart-centered * {
  text-align: center;
}
.water-smart-centered .vf-container,
.water-smart-centered .container {
  text-align: center;
}
.water-smart-centered .vf-grid-2,
.water-smart-centered .split,
.water-smart-centered .cards,
.water-smart-centered .vf-grid-3 {
  justify-items: center;
}
.water-smart-centered .vf-buttons,
.water-smart-centered .btn-row,
.water-smart-centered .center-actions {
  justify-content: center;
}
.water-smart-centered .vf-media,
.water-smart-centered .split-media {
  margin-left: auto;
  margin-right: auto;
}

/* END VF PATCH */


/* VF PATCH: ACCORDION FIX (HOME MICROGRANTS) */

/* Bigger plus + smooth rotation to X when open */
.accordion[data-accordion] .acc-plus{
  font-size: 30px;           /* bigger */
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, color 160ms ease;
}
.accordion[data-accordion] .acc-item.is-open .acc-plus{
  transform: rotate(45deg);  /* + becomes X */
}

/* Make click target feel “button-like” */
.accordion[data-accordion] .acc-btn{
  cursor: pointer;
}
/* Center the second-row card in 3-card layout */
.centered-card {
  grid-column: 1 / -1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
/* Mobile Demo - Perfect For = 2 columns, proper spacing */
.cards.cards-two-col{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;                 /* space between all 4 cards */
}

/* Keep consistent vertical rhythm */
.cards.cards-two-col .card{
  margin: 0;
}

/* Mobile responsive (stack cleanly) */
@media (max-width: 900px){
  .cards.cards-two-col{
    grid-template-columns: 1fr;
  }
}
/* styles.css */

/* ADD THIS AT THE BOTTOM OF THE FILE */

.btn-row .btn.ghost {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.btn-row .btn.ghost:hover {
  background: #111111 !important;
  border-color: #111111 !important;
}
/* =========================================================
   VF FORCE (CLEAN): HEADER DONATE BUTTON (HOME + PROGRAMS)
   - No fixed width
   - Correct padding box around text (like program headers)
   - Mission green text on white
   ========================================================= */

header.header a.donate-btn,
.header a.donate-btn,
header.header .donate-btn,
.header .donate-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;          /* key: no fixed width */
  min-width: 140px !important;     /* boxed look */
  height: 44px !important;
  padding: 0 18px !important;

  box-sizing: border-box !important;
  white-space: nowrap !important;

  background: #ffffff !important;
  color: var(--accent-green) !important;

  font-weight: 900 !important;
  font-size: 13px !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;

  border: 1px solid rgba(0,0,0,0.10) !important;
  text-decoration: none !important;
}

header.header a.donate-btn:hover,
.header a.donate-btn:hover,
header.header .donate-btn:hover,
.header .donate-btn:hover {
  filter: brightness(0.98) !important;
  text-decoration: none !important;
}

/* keep it on the far right */
.header-inner .donate-btn {
  justify-self: end !important;
}