/* ============================================================
   MWAYI WOMEN EMPOWERMENT INITIATIVE — GLOBAL STYLESHEET
   Inspired by womenempowerment.org
   Green & Gold Theme
   ============================================================ */

:root {
  --green:       #1a6b30;
  --green-dark:  #124d22;
  --green-light: #e8f5ea;
  --gold:        #F5A623;
  --gold-dark:   #d4881a;
  --gold-light:  #fff8ec;
  --white:       #ffffff;
  --off-white:   #f9f9f9;
  --text:        #222222;
  --text-muted:  #666666;
  --border:      #e0e0e0;
  --radius:      8px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow:      0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.14);
  --transition:  all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- UTILITY ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-white  { background: var(--white); }
.bg-off    { background: var(--off-white); }
.bg-green  { background: var(--green); }
.bg-gold   { background: var(--gold); }
.text-center { text-align: center; }

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-gold   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,166,35,0.4); }
.btn-green  { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--green); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-white  { background: var(--white); color: var(--green-dark); font-weight: 800; }
.btn-white:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

/* ======================================================
   NAVIGATION  (inspired by womenempowerment.org)
   ====================================================== */
.top-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  text-align: right;
}
.top-bar a { color: rgba(255,255,255,0.85); margin-left: 1.5rem; transition: color 0.2s; }
.top-bar a:hover { color: var(--gold); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 64px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-text .name { font-size: 1.2rem; font-weight: 800; color: var(--green-dark); }
.nav-logo-text .tagline { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; }

.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1.2rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--green); }
.nav-menu > li > a .arrow { font-size: 0.65rem; transition: transform 0.2s; }
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
  animation: dropFade 0.2s ease;
}
@keyframes dropFade { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.nav-menu > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--green-light); color: var(--green); padding-left: 1.6rem; }

.nav-donate {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 4px;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em;
  margin-left: 0.8rem;
  transition: var(--transition) !important;
}
.nav-donate:hover { background: var(--gold-dark) !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 2px solid var(--green); color: var(--green); font-size: 1.3rem; padding: 0.3rem 0.7rem; border-radius: 4px; cursor: pointer; }

/* ======================================================
   HERO SLIDER
   ====================================================== */
.hero-slider { position: relative; overflow: hidden; height: 580px; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18,77,34,0.82) 40%, rgba(18,77,34,0.30) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  max-width: 680px;
  margin: 0 auto 0 8%;
}
.slide-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  width: fit-content;
}
.slide-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slide-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.90);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
}
.dot.active { background: var(--gold); transform: scale(1.3); }

.slider-arrows { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 1rem; z-index: 10; pointer-events: none; }
.slider-btn { pointer-events: all; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.5); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--gold); border-color: var(--gold); }

/* ======================================================
   MISSION SECTION  (like "We Are WE International")
   ====================================================== */
.mission-section { padding: 5rem 0; background: var(--white); }
.mission-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.mission-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--green-dark); margin-bottom: 1rem; }
.mission-text .lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.mission-text p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.mission-photo { position: relative; }
.mission-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 420px; object-fit: cover; }
.mission-photo-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.mission-photo-badge .number { font-size: 2rem; font-weight: 900; line-height: 1; }
.mission-photo-badge .label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.9; }

/* ======================================================
   STATS COUNTER  (animated)
   ====================================================== */
.stats-section { background: var(--green-dark); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.88rem; opacity: 0.85; letter-spacing: 0.04em; line-height: 1.4; }

/* ======================================================
   FEATURED PROGRAMS  (photo cards like womenempowerment.org)
   ====================================================== */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.program-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.program-card:hover .program-card-img { transform: scale(1.05); }
.program-card-img-wrap { overflow: hidden; }
.program-card-body { padding: 1.5rem; }
.program-card-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.program-card-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.6rem; line-height: 1.3; }
.program-card-body p { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.program-card-link { font-size: 0.85rem; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 0.3rem; }
.program-card-link:hover { color: var(--gold); gap: 0.6rem; }

/* ======================================================
   CTA BANNER
   ====================================================== */
.cta-banner {
  padding: 5rem 0;
  background: var(--gold);
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: var(--white); margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ======================================================
   IMPACT HIGHLIGHT
   ====================================================== */
.impact-highlight { padding: 5rem 0; background: var(--off-white); }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.impact-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.impact-card-img { width: 100%; height: 180px; object-fit: cover; }
.impact-card-body { padding: 1.4rem; }
.impact-card-body h4 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; }
.impact-card-body p { font-size: 0.85rem; color: var(--text-muted); }

/* ======================================================
   NEWSLETTER  (like womenempowerment.org)
   ====================================================== */
.newsletter-section {
  background: var(--green-dark);
  padding: 4.5rem 0;
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.newsletter-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 0.8rem; }
.newsletter-text p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.newsletter-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.18); }
.newsletter-form .btn { align-self: flex-start; }

/* ======================================================
   FOOTER  (like womenempowerment.org)
   ====================================================== */
.footer { background: #111; color: rgba(255,255,255,0.80); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 80px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.6); margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.6rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
  color: rgba(255,255,255,0.8);
}
.social-btn:hover { background: var(--gold); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); width: fit-content; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.87rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.9rem; }
.footer-contact-item .icon { font-size: 1rem; color: var(--gold); margin-top: 0.1rem; }
.footer-contact-item p, .footer-contact-item a { font-size: 0.87rem; color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 1.4rem; font-size: 0.80rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--gold); }

/* ======================================================
   PAGE HERO (inner pages)
   ====================================================== */
.page-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(18,77,34,0.72); }
.page-hero-content { position: relative; z-index: 1; color: var(--white); padding: 0 2rem; max-width: 1140px; margin: 0 auto; width: 100%; }
.page-hero .breadcrumb { font-size: 0.82rem; opacity: 0.75; margin-bottom: 0.6rem; }
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.88; max-width: 600px; }

/* ======================================================
   SECTION PHOTO ROWS  (alternating image + text)
   ====================================================== */
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.photo-row.reverse > *:first-child { order: 2; }
.photo-row.reverse > *:last-child { order: 1; }
.photo-row-img { position: relative; overflow: hidden; min-height: 400px; }
.photo-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-row:hover .photo-row-img img { transform: scale(1.04); }
.photo-row-body { display: flex; flex-direction: column; justify-content: center; padding: 4rem; background: var(--white); }
.photo-row.bg-off .photo-row-body { background: var(--off-white); }
.photo-row-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--green-dark); margin-bottom: 1rem; }
.photo-row-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.photo-row-body .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tag { background: var(--green-light); color: var(--green-dark); padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; }

/* ======================================================
   VALUES / CARDS
   ====================================================== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}
.value-card:nth-child(even) { border-top-color: var(--green); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.value-card h4 { font-size: 1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.87rem; color: var(--text-muted); }

/* ======================================================
   RESULTS TABLE
   ====================================================== */
.results-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.results-table thead { background: var(--green-dark); color: var(--white); }
.results-table th { padding: 1rem 1.2rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.results-table td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:nth-child(even) td { background: var(--off-white); }
.results-table tr:hover td { background: var(--green-light); }
.badge-target { display: inline-block; background: var(--green); color: var(--white); padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.77rem; font-weight: 700; margin-bottom: 0.2rem; }
.badge-baseline { display: inline-block; background: var(--gold-light); color: var(--gold-dark); padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.77rem; font-weight: 700; margin-bottom: 0.2rem; }

/* ======================================================
   CONTACT FORM
   ====================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; font-weight: 800; color: var(--green-dark); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: 4px; font-size: 0.9rem; font-family: inherit; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,107,48,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-detail h4 { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-detail p, .contact-detail a { color: var(--text-muted); font-size: 0.9rem; }
.contact-detail a:hover { color: var(--gold); }

/* ======================================================
   ORG CHART
   ====================================================== */
.org-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem 2rem; text-align: center; box-shadow: var(--shadow-sm); min-width: 200px; }
.org-node.top  { border-color: var(--green); background: var(--green-light); }
.org-node.mid  { border-color: var(--gold); background: var(--gold-light); }
.org-node h4   { font-size: 0.9rem; font-weight: 800; color: var(--green-dark); }
.org-node p    { font-size: 0.78rem; color: var(--text-muted); }
.org-line { width: 2px; height: 28px; background: var(--border); margin: 0 auto; }
.org-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ======================================================
   BOARD MEMBER CARDS
   ====================================================== */
.board-section { padding: 5rem 0; background: var(--white); }
.board-intro { text-align: center; margin-bottom: 3.5rem; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.board-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.board-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Colored top accent bar per card */
.board-card:nth-child(1) .board-accent { background: var(--green); }
.board-card:nth-child(2) .board-accent { background: var(--gold); }
.board-card:nth-child(3) .board-accent { background: var(--green-dark); }
.board-card:nth-child(4) .board-accent { background: #c0392b; }
.board-accent { height: 5px; width: 100%; }

.board-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-light);
}
.board-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.board-card:hover .board-photo-wrap img { transform: scale(1.04); }

/* Initials fallback shown if photo doesn't load */
.board-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0;
  background: var(--green-light);
  pointer-events: none;
  transition: opacity 0.3s;
}
.board-photo-wrap img.errored ~ .board-initials,
.board-photo-wrap img.errored { display: none; }
.board-photo-wrap .board-initials.show { opacity: 1; }

.board-body {
  padding: 1.6rem 1.8rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.board-role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.board-card:nth-child(1) .board-role-tag { background: var(--green-light); color: var(--green-dark); }
.board-card:nth-child(2) .board-role-tag { background: var(--gold-light); color: var(--gold-dark); }
.board-card:nth-child(3) .board-role-tag { background: #e8f5ea; color: #124d22; }
.board-card:nth-child(4) .board-role-tag { background: #fdecea; color: #c0392b; }

.board-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.board-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.board-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.board-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.board-cred {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--off-white);
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ======================================================
   SCROLL ANIMATIONS
   ====================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-inner { gap: 3rem; }
}

@media (max-width: 820px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 1rem 0; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border); }
  .dropdown { display: block; position: static; box-shadow: none; border: none; background: var(--off-white); animation: none; border-top: none; }
  .nav-toggle { display: block; }
  .nav-donate { margin-left: 0; width: 90%; text-align: center; }
  .programs-grid, .impact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .photo-row, .photo-row.reverse > *:first-child, .photo-row.reverse > *:last-child { order: unset; }
  .photo-row { grid-template-columns: 1fr; }
  .photo-row-body { padding: 2.5rem 1.5rem; }
  .mission-inner { grid-template-columns: 1fr; }
  .mission-photo-badge { right: 0; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 480px; }
  .board-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 420px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
