/* =========================
   Base tokens & typography
   ========================= */
:root {
  /* Colors */
  --color-primary: #00594c;
  --color-accent: #fed107;

  --color-black: #000;
  --color-text: #222;
  --color-drkgreen: #0f1e1b;
  --color-bodybck: #f8f8ff;
  --color-gradient: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #007864 90%
  );

  --font-primary: roboto, sans-serif;

  /* Layout */
  --container: min(1200px, 95vw);

  /* Radius */
  --radius: 3px;

  /* Type scale */
  --text-size-80: 0.694rem;
  --text-size-90: 0.833rem;
  --text-size-100: 1rem;
  --text-size-200: 1.2rem;
  --text-size-300: 1.44rem;
  --text-size-400: 1.728rem;
  --text-size-500: 2.074rem;
  --text-size-600: 2.488rem;
  --text-size-700: 2.986rem;

  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-loose: 1.7;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-size: var(--text-size-100);
  line-height: var(--line-height-base);
  color: var(--color-text);
  font-family: var(--font-primary);
  margin: 0;
  height: auto;
  max-width: 100%;
  padding-top: 0;
  position: relative;
  overflow-x: hidden;
}

@media (max-width: 860px) {
  body {
    padding-top: 0;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: .8rem 1rem;
  border-radius: 12px;
  opacity: 0;
  transition: .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Headings */
h1 {
  color: var(--color-primary);
  font-size: clamp(var(--text-size-500), 3vw + 1rem, var(--text-size-700));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(var(--text-size-400), 2.5vw + 0.9rem, var(--text-size-600));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}
h3 {
  font-size: clamp(var(--text-size-300), 2vw + 0.85rem, var(--text-size-500));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}
h4 {
  font-size: clamp(var(--text-size-200), 1.5vw + 0.8rem, var(--text-size-400));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}
h5 {
  font-size: clamp(var(--text-size-100), 1vw + 0.75rem, var(--text-size-300));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}
h6 {
  font-size: clamp(var(--text-size-90), 0.8vw + 0.7rem, var(--text-size-200));
  line-height: var(--line-height-tight);
  margin: 0 0 0.5em;
}

/* Text */
p {
  font-size: var(--text-size-100);
  line-height: var(--line-height-base);
  margin: 0 0 1em;
}
small,
.text-small {
  font-size: var(--text-size-90);
}
.x-small,
.text-xs {
  font-size: var(--text-size-80);
}
.lead {
  font-size: clamp(var(--text-size-200), 0.6vw + 1rem, var(--text-size-300));
  line-height: var(--line-height-loose);
  margin-bottom: 1em;
}

/* Utilities for scale */
.text-80 {
  font-size: var(--text-size-80);
}
.text-90 {
  font-size: var(--text-size-90);
}
.text-100 {
  font-size: var(--text-size-100);
}
.text-200 {
  font-size: var(--text-size-200);
}
.text-300 {
  font-size: var(--text-size-300);
}
.text-400 {
  font-size: var(--text-size-400);
}
.text-500 {
  font-size: var(--text-size-500);
}
.text-600 {
  font-size: var(--text-size-600);
}
.text-700 {
  font-size: var(--text-size-700);
}

/* =========================
   Layout & containers
   ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.2rem;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

section {
  width: 100%;
  height: auto;
  padding: 0 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  section {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  section {
    padding: 0 0.5rem;
  }
}

/* =========================
   Global images & a11y
   ========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}
.event-card-thumb {
  border-radius: 2px;
}
.event-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translateY();
  aspect-ratio: 16/9;
}
@media (max-width: 768) {
  .event-card-thumb img {
    transform: translateY(15px);
    display: block;
    aspect-ratio: 4/3;
  }
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 1px 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  transform: translateY(-100%);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 6px;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .page-wrap {
    /* total gutters = the 2nd term’s remainder; splits evenly */
    width: min(1200px, 100% - 4rem); /* = ~2rem per side until 1200px */
    margin-inline: auto; /* centers it */
  }
}

/* =========================
   Header & Navigation
   ========================= */
.site-header {
  font-family: var(--font-primary);
  background-color: #f8f8ff;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0.2rem;
}
.site-header nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.site-header .brand {
  justify-self: start;
}
.site-header .brand img {
  display: block;
  height: 44px; /* adjust as needed */
  width: auto;
  object-fit: contain;
}
.site-header .nav-links a {
  flex: 1 1 0;
  text-align: center;
  padding: 0.75rem 0.1rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 0; /* keeps edges flush */
}
.nav-links {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
}

.donate-button {
  background: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  color: #f8f8ff !important;
}

/* removed .mobile-facebook-link styles */

.nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .site-header nav {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: inline-block;
  }
  /* Strong overrides to enforce mobile nav at <=1024px */
  .site-header .nav-links {
    display: none !important;
  }
  .site-header .nav-links.open {
    display: none !important;
  }
  .site-header .nav-toggle {
    display: inline-block !important;
  }
  /* removed .mobile-facebook-link mobile overrides */
  .nav-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1.75rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: none;
    border: 2px solid var(--color-primary);

    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-toggle:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: none;
  }
}

/* Mobile bottom-sheet navigation */
@media (max-width: 1024px) {
  #siteNav[hidden] {
    display: none !important;
  }
  #siteNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bodybck);
    border-top: 2px solid var(--color-primary);
    transform: translateY(100%);
    transition: transform 0.25s ease-in-out;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  #siteNav[data-open="true"] {
    transform: translateY(0);
  }
  #siteNav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
  }
}

/* Hide bottom-sheet nav above 1024px (aligns with mobile cutoff) */
@media (min-width: 1025px) {
  #siteNav {
    display: none !important;
  }
}

/* Force desktop-only nav at very large widths */
@media (min-width: 1440px) {
  .nav-toggle {
    display: none !important;
  }
  #siteNav {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}

/* =========================
   Mini banners
   ========================= */
.mini {
  display: block;
  width: 100%;
  text-transform: capitalize;
  text-align: center;
  font-size: var(--text-size-60, 0.9rem);
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--green, #00594c);
  padding: 0.5rem 0.5rem 0;
  line-height: 1.4;
  text-decoration: none;
}
.mini a {
  color: var(--color-accent);
  text-decoration: none;
}

.mini-reverse {
  display: block;
  width: 100%;
  text-transform: capitalize;
  text-align: center;
  font-size: var(--text-size-60, 0.9rem);
  font-weight: 700;
  color: var(--green, #00594c);
  background-color: var(--color-accent);
  padding: 0.4rem 0.5rem 0;
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: 0;
}
.mini-reverse a {
  color: var(--green, #00594c);
  text-decoration: none;
}

/* =========================
   Hero
   ========================= */
.hero-main {
  position: relative;
  background: url("/images/CountryRoadinNorthCarolina.jpg") center/cover
    no-repeat;
  min-height: clamp(320px, 55vh, 640px);

  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 0;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-main > * {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-weight: 700;
  background-color: rgba(0, 89, 76, 0.85);
  color: var(--color-bodybck);
  padding: 1.5rem;
  border-radius: var(--radius);
  font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
  margin: 1rem auto;
  max-width: 90%;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .hero-title {
    margin-top: 60px;
    padding: 1rem;
    font-size: clamp(1.25rem, 2.5vw + 0.75rem, 2rem);
  }
  .hero-main {
    padding-top: 1rem;
  }
}

/* Hero assets (desktop vs mobile) */
.hero-logo-desktop,
.hero-photo-desktop {
  display: block;
}
.hero-logo-mobile,
.hero-photo-mobile {
  display: none;
}
.hero-photo-desktop {
  margin: 1rem 0;
  border-radius: 3px;
  border: 7px solid var(--color-bodybck);
  display: block;
  box-sizing: border-box;
}
/* Keep desktop hero assets on mobile and scale them */
@media (max-width: 768px) {
  .hero-logo-desktop,
  .hero-photo-desktop {
    display: block;
  }
  .hero-logo-mobile,
  .hero-photo-mobile,
  .hero-title-mobile {
    display: none;
  }
  .hero-photo-desktop {
    width: 100%;
    height: auto;
    margin: 0.5rem 0;
    border-width: 4px;
  }
}

/* =========================
   Flexible rows & columns
   ========================= */
.flex-wrap {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.flex-wrap .left {
  flex: 1 1 45%;
  min-width: 260px;
  text-align: center;
}
.flex-wrap .right {
  flex: 1 1 45%;
  min-width: 260px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.flex-wrap .CENTER {
  flex: 1 1 100%;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.flex-row {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  .flex-row {
    flex-wrap: wrap;
  }
}

/* Reorder helpers */
@media (max-width: 768px) {
  .first-on-mobile {
    order: -1;
  }
}

/* Updated flex-wrap variants */
.flex-wrap-1 {
  flex: 0 1 50%;
  height: auto;
  min-width: 0;
  padding: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  display: block;
}
.flex-wrap-1 p {
  white-space: normal;
  overflow: visible;
  text-align: left;
  width: 100%;
}

.flex-wrap-2 {
  flex: 0 1 50%;
  display: flex;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

/* =========================
   Issues grid & cards
   ========================= */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin: 2rem auto;
  padding: 1rem;
  max-width: var(--container);
  width: 100%;
  box-sizing: border-box;
}
.issue {
  background-color: transparent;
  padding: 1.5rem;
  border-radius: 1.5px;
  border: 0.75px solid var(--color-drkgreen);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.issue h2 {
  background-color: var(--color-bodybck);
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 0;
  text-transform: uppercase;
}
.issue p {
  margin-top: 0;
  background-color: var(--color-bodybck);
  padding: 1.2rem 0;
}

img[src="icons/moorecheck.png"] {
  width: 20%;
  height: auto;
  max-width: 32px;
  min-width: 16px;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

/* Issue 2 variant */
.issue2 {
  background-color: rgba(175, 201, 198, 0.8);
  color: black;
  padding: 1.5rem;
  border-radius: 1.5px;
  border: 0.75px solid var(--color-accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.issue2 h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1.9rem;
  text-transform: uppercase;
}
.issue2 .summary {
  color: black;
  padding: 1.2rem;
}
.issue2 .toggle {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
.issue2 .toggle:hover,
.issue2 .toggle:focus {
  outline: 3px solid var(--color-bodybck);
  outline-offset: 3px;
  border-radius: 4px;
}
.issue2 .details {
  color: black;
}

/* Summary & toggles */
.summary {
  padding: 1.2rem;
  font-size: 1.2rem;
  margin: 0 0 0 0.5rem;
  color: black;
  line-height: 1.4;
}
.toggle {
  background-color: rgba(0, 89, 76, 0.3);
  border: 0;
  color: black;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 3px 2px;
  margin-top: 5px;
  transition: all 0.2s ease;
}
.toggle:hover,
.toggle:focus {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
  border-radius: 4px;
  transform: scale(1.02);
}

/* Toggle2 */
.toggle2 {
  background-color: rgba(0, 89, 76, 0.3);
  border: 0;
  color: black;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 3px 2px;
  margin-top: 5px;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.toggle2:hover,
.toggle2:focus {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
  border-radius: 4px;
  transform: scale(1.02);
}

/* Details accordion */
.details {
  color: black;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.details.show {
  max-height: 9999px;
  opacity: 1;
  margin-top: 0.65rem;
}

/* details inside issues */
.issue .details {
  background-color: transparent;
  color: black;
  border-radius: 3px;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 0.5px solid rgba(15, 30, 27, 0.1);
}
.issue2 .details {
  background-color: rgba(175, 201, 198, 0.8);
  color: black;
  border-radius: 3px;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 0.5px solid rgba(254, 209, 7, 0.3);
}
/* Issues section: unify card look */
#on-the-issues .issues-grid > article {
  background-color: var(--color-bodybck);
  border: 0.75px solid var(--color-drkgreen);
  border-radius: 1.5px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Normalize the special .issue2 card to match */
#on-the-issues .issues-grid > article.issue2 {
  background-color: var(--color-bodybck);
  border-color: var(--color-drkgreen);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Headings: primary color across the board */
#on-the-issues .issues-grid > article h2 {
  color: var(--color-primary);
  background-color: var(--color-bodybck); /* keep strip matching the card */
  margin-bottom: 1.9rem; /* match Accountability card spacing */
}

/* Details area should blend with the card as well */
#on-the-issues .issues-grid > article .details {
  background-color: transparent;
  border: 0.5px solid rgba(15, 30, 27, 0.1);
}

/* Small screens for issues */
@media (max-width: 600px) {
  .issues-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 8px;
    margin: 0.5rem 0;
  }
  .issue {
    background-color: rgba(175, 201, 198, 0.8);
    color: black;
    padding: 1.5rem;
    border-radius: 1.5px;
    border: 0.75px solid var(--color-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .issue h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
    text-align: center;
    display: block;
  }
  .summary {
    padding: 1.2rem;
    font-size: 1rem;
    text-align: center;
    margin-top: 0 !important;
    display: block;
  }
  .toggle {
    font-size: 0.8rem;
    padding: 5px 4px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
  .details {
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  .issue div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 0.3rem !important;
  }
  img[src="icons/moorecheck.png"] {
    width: 15%;
    max-width: 24px;
    min-width: 20px;
    margin-bottom: 0.3rem;
    align-self: center;
  }
}
@media (min-width: 601px) and (max-width: 768px) {
  .issues-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 12px;
  }
}

/* =========================
   Buttons & links
   ========================= */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-drkgreen);
  border-color: var(--color-drkgreen);
}

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #00594c;
  color: var(--color-bodybck);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   Donate split (single source)
   ========================= */
.donate-split {
  padding-top: 4rem;
  background-color: rgb(171, 199, 195);
  border: 0 none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.donate-split .wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.donate-split .left {
  flex: 1;
}
.donate-split .right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.donate-split h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.donate-split h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.donate-split .card {
  background: #f8f8ff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.donate-split .benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.donate-split .benefits li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.donate-split .benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.donate-split .sms {
  font-size: 1.2rem;
  margin: 1rem 0;
}
.donate-split .sms .code,
.donate-split .sms .phone {
  font-weight: bold;
  color: var(--color-primary);
}
.donate-split .fine {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}
.donate-split .legal {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: #666;
}
@media (max-width: 768px) {
  .donate-split .wrap {
    flex-direction: column;
  }

  .donate-split p.legal {
    font-size: 0.8rem;
    margin: 0.2rem auto 0;
  }
}

/* =========================
   Impact / values / hero sections
   ========================= */
.impact-section {
  padding: 4rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-bodybck);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.impact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.impact-card h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .donate-split .wrap {
    flex-direction: column;
  } /* safeguard */
}

.hero-section {
  /* Use gradient as a background image, not background-color */
  background: var(--color-gradient);
  /* Fallback color for older browsers */
  background-color: var(--color-primary);
  color: var(--color-bodybck);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 0;
}
.hero-section h1 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero-section .lead {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  text-transform: capitalize;
}

.hero-section-reverse {
  background-color: var(--color-bodybck);
  color: var(--color-primary);
  padding: 4rem 2rem;
  text-align: center;
}
.hero-section-reverse.lead {
  /* Use gradient as a background image, not background-color */
  background: var(--color-gradient);
  /* Fallback color for older browsers */
  background-color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: capitalize;
}

/* =========================
   Events
   ========================= */
.events-section {
  padding: 1rem 1rem;
  background-color: var(--color-bodybck);
  width: 100%;
}
.events-section h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.events-section p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: var(--color-text);
}
.events-section h3 {
  text-align: center;
  color: var(--color-primary);
  margin: 2rem 0;
}

.events-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.event-card {
  background-color: var(--color-bodybck);
  border: 1px solid var(--color-drkgreen);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.event-date {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.event-time {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1rem;
  font-style: italic;
}
.event-location {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.event-city {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
}
.events-footer {
  text-align: center;
  margin-top: 3rem;
}
.footer-credits {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: transparent; /* readable on your green */
  letter-spacing: 0.02em;
}

/* =========================
   About split
   ========================= */
.about-split {
  padding: 1rem 2rem;
  background-color: var(--color-bodybck);
}
.about-split.alt-bg {
  /* Use gradient as a background image, not background-color */
  background: var(--color-gradient);
  /* Fallback color for older browsers */
  background-color: var(--color-primary);
  color: var(--color-bodybck);
}

.about-split .wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
}
.about-split .wrap.reverse {
  flex-direction: row-reverse;
}
.about-split .left {
  flex: 1;
}
.about-split .right {
  flex: 1;
}
.about-split h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.alt-bg h2 {
  color: var(--color-accent);
}
.about-split p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.feature-image {
  width: 444px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.image-card:hover .feature-image {
  transform: scale(1.02);
}

.values-section {
  padding: 4rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-bodybck);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.value-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}
.value-card:hover {
  transform: translateY(-5px);
}
.value-card h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-split .wrap {
    flex-direction: column;
  }
  .about-split .wrap.reverse {
    flex-direction: column;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-split {
    padding: 2rem 1rem;
  }
}

/* =========================
   Event gallery (consolidated)
   ========================= */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(254, 209, 7, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(254, 209, 7, 0.2);
  max-width: 100%;
}
.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
}
.gallery-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 89, 76, 0.4);
  border: 2px solid #fed107;
}
.gallery-img:hover::after {
  content: "🔍 Click to expand";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 89, 76, 0.9);
  color: #fed107;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
  z-index: 10;
}

@media (max-width: 768px) {
  .event-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
  .gallery-img {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .event-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .gallery-img {
    flex-shrink: 0;
    width: 170px;
    height: 128px;
  }
  .event-gallery::-webkit-scrollbar {
    height: 6px;
  }
  .event-gallery::-webkit-scrollbar-track {
    background: rgba(254, 209, 7, 0.2);
    border-radius: 3px;
  }
  .event-gallery::-webkit-scrollbar-thumb {
    background: #fed107;
    border-radius: 3px;
  }
}
@media (max-width: 430px) {
  .gallery-img {
    width: 150px;
    height: 113px;
  }
  .event-gallery {
    gap: 10px;
    padding-bottom: 8px;
  }
}
@media (max-width: 390px) {
  .gallery-img {
    width: 135px;
    height: 101px;
  }
  .event-gallery {
    gap: 8px;
    padding: 0.5rem;
    margin: 0.75rem 0;
  }
}
@media (max-width: 375px) {
  .gallery-img {
    width: 120px;
    height: 90px;
  }
  .event-gallery {
    padding: 0.25rem;
    margin: 0.5rem 0;
  }
}
@media (max-width: 320px) {
  .gallery-img {
    width: 100px;
    height: 75px;
  }
  .event-gallery {
    gap: 6px;
  }
}

/* =========================
   Lightbox
   ========================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}
.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 85vh;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fed107;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10000;
}
.lightbox-close:hover {
  color: #f8f8ff;
  transform: scale(1.1);
}
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 89, 76, 0.9);
  color: #fed107;
  border: none;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  z-index: 10001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 89, 76, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }
}
@media (max-width: 480px) {
  .lightbox-close {
    font-size: 25px;
    top: 5px;
    right: 10px;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .lightbox-content {
    max-width: 98%;
    max-height: 80%;
  }
}

/* =========================
   News article & misc
   ========================= */
.news-article {
  background-color: var(--color-bodybck);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 0.5px solid var(--color-drkgreen); /* fixed */
  margin-bottom: 2rem;
}
.letter-body {
  max-width: 800px;
  margin-right: 2rem;
  padding: 0 1rem;
  box-sizing: border-box;
}
.quote {
  font-style: italic;
  font-size: 0.3rem;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #555;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  /* Use gradient as a background image, not background-color */
  background: var(--color-gradient);
  /* Fallback color for older browsers */
  background-color: var(--color-primary);
  color: var(--color-bodybck);
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-column {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: center;
}
.footer-column h5 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.social-icons a {
  display: inline-block;
  transition: transform 0.2s ease;
}
.social-icons a:hover {
  transform: scale(1.1);
}
.social-icons img {
  width: 32px;
  height: 32px;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column; /* stack on desktop; safer for long labels */
  gap: 0.35rem;
}
.footer-nav a {
  color: var(--color-accent); /* your yellow on green footer */
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
  outline: none;
}
@media (min-width: 768px) {
  /* optional: inline links on wider screens */
  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #f8f8ff;
  font-weight: 300;
  margin-top: 1rem;
  width: 100%;
}
.footer-disclaimer {
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-column {
    max-width: 100%;
  }
  .social-icons {
    margin: 1rem auto;
  }
}

/* =========================
   Volunteer
   ========================= */
.volunteer-container {
  background-color: var(--color-bodybck);
  border-radius: 3px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
}
.volunteer-container h1 {
  color: #fed107;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2.3rem;
}
.volunteer-container label {
  color: #fed107;
  font-weight: bold;
  margin-top: 1rem;
  display: block;
  text-align: left;
}
.volunteer-form {
  border: 1px solid var(--color-drkgreen, #0f1e1b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 3px;
  background-color: var(--color-bodybck);
  height: auto;
  width: 70%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.volunteer-form input,
.volunteer-form textarea {
  width: 90%;

  margin: 1.2rem 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 0.75rem;
  font-size: 0.9rem;
}
.volunteer-form p a {
  color: #00594c;
  text-decoration: underline;
}
.volunteer-container button:hover {
  background: #222;
}

.volunteer-signup h5,
.donate-container p {
  font-weight: 600;
}
.intro-text {
  color: black;
  font-size: 1.2rem;
  font-weight: 600;
}
.contact-info {
  margin-top: 1.5rem;
  color: var(--color-bodybck);
  font-size: 1.5rem;
}
.contact-info a {
  color: var(--color-bodybck);
  text-decoration: underline;
}

/* =========================
   Anedot / donate embeds
   ========================= */
.donate-container {
  outline: 3px solid hotpink;
  background: rgba(255, 0, 0, 0.03);
}
.anedot-frame {
  outline: 3px solid lime;
  background: rgba(0, 255, 0, 0.03);
}
.anedot-frame > iframe {
  outline: 3px solid dodgerblue;
}

/* Navigation controls for embeds */
.anedot-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.scroll-btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.scroll-btn:hover {
  background: var(--color-drkgreen);
  transform: scale(1.1);
}

.scroll-indicators {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.scroll-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.scroll-indicator.active {
  background: var(--color-primary);
  transform: scale(1.2);
}
.scroll-indicator {
  transition: transform 0.2s ease-out;
}

@media (max-width: 768px) {
  .anedot-frame {
    width: 350px;
    min-width: 350px;
  }
  .scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* =========================
   Tiny type safety on very small screens
   ========================= */
@media (max-width: 360px) {
  h1 {
    font-size: var(--text-size-500);
  }
  h2 {
    font-size: var(--text-size-400);
  }
  h3 {
    font-size: var(--text-size-300);
  }
}
