/* ==========================================================================
   TABLE OF CONTENTS
   1. VARIABLES & FONTS
   2. BASE & SETUP
   3. TYPOGRAPHY
   4. NAVIGATION & FOOTER
   5. BUTTONS
   6. HERO SECTION
   7. DASHBOARD & MOMENTUM (Stats)
   8. CARDS & GRIDS (Schools & Goals)
   9. ARTICLES, EVENTS & PHOTOS
  10. FORMS & CONTACT
  11. MODALS & UTILITIES
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & FONTS
   ========================================================================== */
   @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

   :root {
     /* The New Palette */
     --color-lightest: #ffffff;     
     --color-light-bg: #F8F7F2;     
     
     --color-accent: #478372;       
     --color-accent-hover: #366658; 
     --color-highlight: #FC8C46;    
     
     /* Text Colors */
     --color-text-main: #2b3a36;    
     --color-text-muted: #6b7a75;
   
     /* Typography */
     --font-heading: 'Montserrat', sans-serif;
     --font-body: 'Open Sans', sans-serif;
   
     /* Spacing & Borders */
     --spacing-section: 4rem;       
     --radius-button: 10px;         
     --radius-card: 12px;
     --shadow-card: 0 4px 12px rgba(71, 131, 114, 0.08); 
   }
   
   /* ==========================================================================
      2. BASE & SETUP
      ========================================================================== */
   html {
     scroll-behavior: smooth;
   }
   
   body {
     font-family: var(--font-body);
     background-color: var(--color-light-bg);
     color: var(--color-text-main);
     line-height: 1.6;
     margin: 0;
     padding: 0;
   }
   
   body.components-loaded {
     opacity: 1;
   }
   
   main {
     max-width: 95%;
     margin: 0 auto;
     padding: 0 1rem 0rem 1rem; 
   }
   

   /* ==========================================================================
   Global Mobile Overflow & Horizontal Scroll Guard
   ========================================================================== */

/* 1. Global Box-Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Lock Viewport Width & Kill Side-Scroll */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* 3. Contain Media Elements */
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* 4. Responsive Wrapper Safety Net */
main, section, div {
  max-width: 100%;
}
   /* ==========================================================================
      3. TYPOGRAPHY
      ========================================================================== */
   h1, h2, h3, h4 {
     font-family: var(--font-heading);
     color: #111111;
     margin-top: 0;
     line-height: 1.2;
   }
   
   .big-page-title {
     font-size: 4rem;
     font-weight: 600;
     text-align: center;
     margin: 2rem 0;
   }
   
   .big-paragraph-text {
     font-size: 1.5rem;
     text-align: center;
     max-width: 800px;
     margin: 0 auto 3rem auto;
   }
   
   .narrow-page-header {
     width: 100% !important;
     max-width: 650px !important;
     margin: 0 auto 3rem auto !important;
     box-sizing: border-box !important;
     background: #ffffff !important;
     border: 1px solid #eaeaea !important;
     border-bottom: 4px solid #1b4d3e !important;
     border-radius: 12px !important;
     padding: 2.5rem 2rem !important;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
     text-align: center !important;
   }
   
   .narrow-page-header h1 {
     font-size: 2.5rem !important;
     color: #1b4d3e !important;
     margin: 0 !important;
   }
   
   .narrow-page-header p {
     font-size: 1rem !important;
     color: #666 !important;
     margin: 0 auto !important;
     line-height: 1.5 !important;
   }
   
   /* ==========================================================================
      4. NAVIGATION & FOOTER
      ========================================================================== */
   #nav-placeholder {
     display: block;
     min-height: 135px; 
   }
   
   nav {
     position: sticky;
     top: 0;
     z-index: 1000;
     background-color: rgba(54, 102, 88, 0.85);
     padding: 1rem 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 2px solid rgba(255, 255, 255, 1);
     /* border-radius removed so the bottom corners are sharp against the edges */
     box-shadow: 0 2px 4px rgba(0,0,0,0.02);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     width: 100%;
     box-sizing: border-box;
     /* max-width: 1500px; --- REMOVED */
     margin-bottom: var(--spacing-section); /* Removed the 'auto' centering margins */
}
   
   .nav-logo {
     height: 90px;
     width: auto;
     display: block;
   }
   
   .logo-link {
     margin: 0;
   }
   
   nav a {
     text-decoration: none;
     color: var(--color-lightest);
     font-family: var(--font-heading);
     font-weight: 600;
     margin: 0 1rem;
     transition: color 0.2s ease;
   }
   
   nav a:hover {
     color: var(--color-highlight);
   }
   
   .nav-links {
     display: flex;
     align-items: center;
   }
   
   .nav-toggle, .hamburger {
     display: none !important;
   }
   
   footer {
     background-color: var(--color-lightest);
     padding: 2rem;
     margin-top: 4rem;
     border-top: 1px solid #e0e0e0;
     text-align: center;
   }
   
   .footer-content {
     max-width: 1000px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 1rem;
     color: var(--color-text-muted);
   }
   
   .footer-links a {
     color: var(--color-accent);
     text-decoration: none;
     margin: 0 1rem;
     font-weight: 600;
   }
   
   .footer-links a:hover {
     text-decoration: underline;
   }

   /* ==========================================================================
   Footer Layout & Mobile Reordering
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Push the side columns down slightly on desktop to align with the logo */
.footer-explore, 
.footer-involved {
  padding-top: 0.85rem;
}

/* Mobile Stacking Rules */
@media (max-width: 768px) {
  .footer-brand {
    order: -1; /* Forces the Logo & Mission to jump to the top */
    margin-bottom: 0.5rem;
  }
  
  .footer-explore, 
  .footer-involved {
    padding-top: 0; /* Resets padding so they don't have awkward gaps when stacked */
    text-align: center; /* Centers the headings */
  }
  
  /* Centers the actual flex-box links inside the columns */
  .footer-grid ul {
    align-items: center; 
  }
}
   
/* --- Navigation Mobile Overrides --- */
@media (max-width: 768px) {
  /* Logo Resize */
  .navbar img, header img, .nav-brand img, .nav-logo {
    max-height: 65px !important; 
    height: auto !important;
  }

  /* Keep Logo and Hamburger side-by-side */
  nav {
    position: relative; 
    padding: 0.6rem 1rem !important;
    display: flex !important;
    flex-direction: row !important;     
    justify-content: space-between !important; 
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .logo-link {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  /* 1. BRING BACK THE HAMBURGER ICON */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 !important;
  }

  .hamburger span {
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    background-color: var(--color-lightest) !important;
    border-radius: 2px !important;
  }

  .nav-toggle {
    display: none !important;
  }

  /* 2. HIDE LINKS BY DEFAULT (The Dropdown Menu) */
  .nav-links {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-top: 0.75rem !important;
  }

  .nav-links a {
    margin: 0.5rem 0 !important;
    font-size: 1.1rem !important;
  }

  nav span.separator {
    display: none;
  }

  /* 3. SHOW LINKS WHEN HAMBURGER IS CLICKED */
  .nav-toggle:checked ~ .nav-links {
    display: flex !important;
  }
}
   /* ==========================================================================
      5. BUTTONS
      ========================================================================== */
   .button-primary {
     background-color: var(--color-accent);
     color: var(--color-lightest);
     padding: 0.8rem 2rem;
     text-decoration: none;
     border: none;
     border-radius: var(--radius-button);
     font-family: var(--font-heading);
     font-weight: 600;
     cursor: pointer;
     display: inline-block;
     transition: background-color 0.2s ease, transform 0.1s ease;
   }
   
   .button-primary:hover {
     background-color: var(--color-accent-hover);
     transform: translateY(-1px);
   }
   
   .button-secondary {
     background-color: var(--color-highlight);
     color: var(--color-lightest);
     border: 2px solid var(--color-highlight);
     padding: 0.7rem 1.9rem;
     border-radius: var(--radius-button);
     text-decoration: none;
     font-family: var(--font-heading);
     font-weight: 600;
     cursor: pointer;
     display: inline-block;
     transition: all 0.2s ease;
   }
   
   .button-secondary:hover {
     background-color: transparent;
     color: var(--color-highlight);
   }
   
   .button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

   /* Force identical widths */
.button-container .button-primary,
.button-container .button-secondary {
  width: 200px; /* Adjust this number if the text wraps or feels too tight */
  text-align: center;
  box-sizing: border-box;
}
   
   .jump-btn {
     background-color: #ffffff;
     color: var(--color-text-main, #333);
     border: 1px solid rgba(0, 0, 0, 0.12);
     padding: 0.5rem 1.25rem;
     border-radius: 50px;
     text-decoration: none;
     font-weight: 600;
     font-size: 0.95rem;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
     transition: all 0.2s ease;
   }
   
   .jump-btn:hover {
     background-color: var(--color-highlight, #478372);
     color: #ffffff;
     border-color: transparent;
     transform: translateY(-2px);
   }
   
   .nav-links a.nav-join-us-btn {
     color: #ffffff;
     background: #e67e22;
     border: 2px solid #e67e22;
     padding: 6px 14px;
     border-radius: 6px;
     font-weight: 600;
     transition: background-color 0.2s, color 0.2s, border-color 0.2s;
   }
   
   .nav-links a.nav-join-us-btn:hover {
     background-color: #ffffff;
     color: #e67e22;
     border-color: #e67e22;
   }
   
   /* --- Button Mobile Overrides --- */
   @media (max-width: 768px) {
    .button-container {
      margin-top: 100px; 
      flex-direction: row;    /* Forces them back side-by-side */
      justify-content: center;
      width: 100%;
      gap: 10px;              /* Slightly smaller gap to save space */
    }
  
    .button-container .button-primary,
    .button-container .button-secondary {
      width: 48%;             /* Each button takes up just under half the screen */
      max-width: 180px;       /* Caps the size on larger phones */
      padding: 0.8rem 0.5rem; /* Reduces side padding to prevent text overflow */
      font-size: 0.9rem;      /* Shrinks text slightly so "Our Four Goals" fits perfectly */
    }
  }
   
   /* ==========================================================================
      6. HERO SECTION
      ========================================================================== */
     /* Hero Container */
/* Hero Container with Custom Background */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem; 
  padding-bottom: 4rem;
  background-color: rgb(247, 246, 240); 
}

/* Text and Buttons Block */
.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-text-block h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem); 
  white-space: nowrap;                     
  color: #1b4d3e;                          
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: -0.02em; 
}

.hero-text-block p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  text-align: center;
  color: #4a5568;
}

.momentum-header {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  display: block;
  width: 90vw; 
  max-width: 1600px;
  aspect-ratio: 16 / 9; 
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  filter: brightness(1.15) contrast(1.05);
}

/* Added wrapper class to the selector for extra strength, and restored !important flags */
.hero-image-wrapper .hero-bottom-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; 
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-floating-callout {
  position: absolute;
  bottom: 30px;
  left: 24px;
  background: rgba(252, 140, 70, 0.25);
  color: white;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
  max-width: 160px;
  text-align: left;
  transition: transform 0.2s, background-color 0.2s;
}

.hero-floating-callout:hover {
  transform: translateY(-2px);
  background: #FC8C46;
  color: white;
}

.callout-tag {
  display: inline-block;
  background: #ffffff;
  color: #478372;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.callout-link {
  display: block;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.35;
}

.callout-link strong {
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

/* Who We Are Overlapping Card */
.who-we-are-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
  margin: -5rem auto 4rem auto; /* Desktop Overlap */
}

/* How It Works Step Card */
.step-card {
  background-color: #fcfcfb;
  border: 1px solid #dce0db;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

/* Get Involved Section Cards */
/* Get Involved Section Cards */
.get-involved-card {
  background-color: #f7f7f3;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.get-involved-banner {
  background-color: #faebd8;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

/* Mobile Alignment & Spacing Adjustments */
@media (max-width: 768px) {
  .get-involved-card {
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }
  
  .get-involved-banner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.25rem; /* Tightens vertical gap between text and button */
    padding: 1.75rem 1.25rem;
  }

  /* Overrides inline flex-basis constraint on mobile */
  .get-involved-banner > div:first-child {
    flex: 1 1 auto !important;
    width: 100%;
  }

  .get-involved-banner > div:last-child {
    width: 100%;
  }
}

/* Center card contents on Mobile */
@media (max-width: 768px) {
  .step-card {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .who-we-are-card {
    margin: 1.5rem auto 3rem auto; /* Sits comfortably below hero on mobile */
    padding: 1.75rem 1.25rem;       /* Reduced side padding for small screens */
  }
}

/* --- Hero Mobile Overrides --- */
@media (max-width: 768px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-text-block h1 {
    font-size: 2.2rem;
    white-space: normal; /* Allows wrapping on small mobile screens if needed */
  }
}

/* Mobile adjustments for Goal Cards */
@media (max-width: 768px) {
  .goal-card-simple {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem; /* Adds balanced spacing between stacked sections */
  }

  .card-icon-container {
    margin-bottom: 0.75rem; /* Creates breathing room directly under the icon */
    display: flex;
    justify-content: center;
  }
}

/* ==========================================================================
   Resources Page - Mobile Overflow & Card Width Fixes
   ========================================================================== */

/* 1. Prevent Grid Overflow on Mobile */
/* 1. Unified, Responsive Grid Container */
.articles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem; /* Keeps content off the glass on tablet/desktop */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  /* 2. Force single-column grid on mobile screens */
  .articles-container {
    grid-template-columns: 1fr;
    padding: 0; /* Container padding resets on mobile if the outer wrapper handles it */
  }

  /* 3. Reduce card padding so contents fit on narrow screens */
  .goal-card, 
  .article-card {
    padding: 1.25rem 1rem !important;
    box-sizing: border-box;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* 4. Allow icon badge + text to stack or fit smoothly */
  .goal-card > div {
    gap: 0.75rem !important;
  }

  /* 5. Fix link footers inside cards from overflowing */
  .goal-card div[style*="display: flex; flex-wrap: wrap"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem !important;
  }

  /* Hide vertical pipe separators when links stack on mobile */
  .goal-card div[style*="display: flex; flex-wrap: wrap"] span[style*="color: #cbd5e0"] {
    display: none;
  }
}

/* ==========================================================================
   Goal Cards - Base & Right Column Alignment
   ========================================================================== */

   .goal-card-simple {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    box-sizing: border-box;
    width: 100%;
  }
  
  .card-simple-left {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .goal-learn-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.5rem;
    color: #1b4d3e;
    font-weight: 700;
    font-size: 0.95rem;
  }
  
  /* Fix Right Column: Expand, left-align, and pad from edge */
  .card-simple-right {
    flex: 1 1 auto;
    width: 100%;
    text-align: left !important; /* Force text to start on left rather than flush right */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  /* Detail Block Headings & Paragraphs */
  .detail-block {
    text-align: left !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  .detail-block h4 {
    margin: 0 0 0.35rem 0;
    text-align: left;
  }
  
  .detail-block p {
    margin: 0;
    text-align: left;
    line-height: 1.5;
  }
  
  /* ==========================================================================
     Mobile Stacking (768px & below)
     ========================================================================== */
  @media (max-width: 768px) {
    .goal-card-simple {
      flex-direction: column;
      align-items: stretch;
      padding: 1.25rem 1rem;
      gap: 1rem;
    }
  
    .card-icon-container {
      align-self: center;
      margin-bottom: 0.25rem;
    }
  
    .card-simple-left {
      flex: 1 1 auto;
      width: 100%;
      text-align: center;
      align-items: center;
      }
    }
  
    .card-simple-right {
      width: 100%;
      text-align: left !important;
      padding: 0;
    }
  }

/* ==========================================================================
   Goal Cards - Mobile Layout & Responsive Spacing
   ========================================================================== */
   @media (max-width: 768px) {
    /* 1. Main Card Container: Stack vertically and pad for touch screens */
    .goal-card-simple {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 1.75rem 1.25rem;
      gap: 0.5rem;
    }
  
    /* 2. Icon Container: Center and add clear separation above H3 title */
    .card-icon-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 0.85rem;
      width: 100%;
    }
  
    .card-global-icon {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }
  
    /* 3. Title & Subtitle Section: Center text and space above details */
    .card-simple-left {
      width: 100%;
      margin-bottom: 1.25rem;
      text-align: center;
    }
  
    .card-simple-left h3 {
      font-size: 1.25rem;
      margin: 0 0 0.4rem 0;
      line-height: 1.35;
      color: var(--color-accent, #1b4d3e);
    }
  
    .card-simple-left .subtitle-green {
      font-size: 0.95rem;
      margin: 0;
    }
  
    /* 4. Right Column (Details): Full width stack with left-aligned reading text */
    .card-simple-right {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      text-align: left;
    }
  
    /* 5. Detail Blocks (Why it matters / What it looks like) */
    .detail-block {
      background-color: #f8fafc;
      padding: 1rem 1.15rem;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
      box-sizing: border-box;
    }
  
    .detail-block h4 {
      margin: 0 0 0.35rem 0;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
  
    .detail-block p {
      margin: 0;
      font-size: 0.92rem;
      line-height: 1.5;
      color: #4a5568;
    }
  }
   
   /* ==========================================================================
      7. DASHBOARD & MOMENTUM (Stats)
      ========================================================================== */
      .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
      }
      
      .dashboard-grid > * {
        margin-top: 0;
        min-width: 0;
        align-self: stretch;
        box-sizing: border-box;
      }
      
      .dashboard-grid .school-card {
        padding: 1.5rem;
        min-width: 0;
        overflow: hidden;
      }

      .dashboard-grid .school-card canvas {
        max-width: 100% !important;
      }

      .school-card {
        background-color: var(--color-lightest, #ffffff);
        border-radius: var(--radius-card, 12px);
        padding: 2rem;
        box-shadow: var(--shadow-card, 0 4px 12px rgba(0, 0, 0, 0.05));
        border: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }
      
      /* Keep chart cards on index.html pinned top-and-bottom */
      #stats-container .school-card {
        justify-content: space-between;
      }
      
      .school-card h3 {
        margin: 0 0 1rem 0;
        line-height: 1.3;
      }
      
      .school-card h3 span {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        color: #4a5568;
        margin-top: 0.25rem;
      }
   
   .momentum-header {
    margin-bottom: 3rem; /* Space between the badge and the image */
  }
   
   .grand-total-badge {
     display: inline-block;
     background-color: var(--color-lightest);
     padding: 1.5rem 2.5rem; 
     border-radius: var(--radius-card);
     box-shadow: var(--shadow-card);
     border: 1px solid rgba(0,0,0,0.05);
     margin: 0 auto;        
   }
   
   .grand-total-label {
     color: black;
   }
   
   #grand-total-number {
     display: block;
     font-size: 4rem;
     font-weight: 700;
     font-family: var(--font-heading);
     color: var(--color-accent);
     line-height: 1;
   }
   
   /* --- Dashboard Mobile Overrides --- */
   @media (max-width: 900px) {
    .dashboard-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  

  
   @media (max-width: 768px) {
     .supporters-container, 
     #supporters-stats-container,
     .dashboard-grid {
       grid-template-columns: 1fr !important;
       gap: 1.5rem !important;
       padding: 0 1rem !important;
       box-sizing: border-box !important;
     }
   
     .supporters-container > div,
     #supporters-stats-container > div,
     .dashboard-grid > div {
       width: 100% !important;
       box-sizing: border-box !important;
     }
   
     .grand-total-badge {
       padding: 1.25rem 1.5rem !important; 
       margin: 1rem auto !important;      
       display: block !important;         
       width: fit-content !important;
     }
   
     #grand-total-number {
       font-size: 3rem;
     }

     .momentum-section {
      padding: 1.5rem 0.75rem 3rem 0.75rem !important;
    }
    
    .momentum-outer-card {
      padding: 2rem 1rem !important;
      border-radius: 12px !important;
    }
    
    #stats-container.dashboard-grid {
      padding: 0 !important;
    }

   }
   
   /* ==========================================================================
      8. CARDS & GRIDS (Schools & Goals)
      ========================================================================== */
 /* Container: Stack cards vertically */
/* Container */
/* =========================================================
   GOALS GRID (3-COLUMN LAYOUT) - COMPLETE REPLACEMENT
   ========================================================= */

/* 1. Main Grid Container */
.goals-grid-stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* 2. Base Card */
.goal-card-simple {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* Allows the card to be as tall as the longest text */
  background: #ffffff;
  border-radius: 8px; 
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s;
}


.goal-card-simple:hover .goal-learn-more {
  text-decoration: underline;
  transform: translateY(-2px);
}

/* 3. Left Column: Icon (Vertically Centered) */
.card-icon-container {
  flex: 0 0 auto;
  padding-right: 1.5rem;
  display: flex;
  align-items: center; /* Forces the icon to stay perfectly centered vertically */
}

.card-global-icon {
  width: 70px;
  height: auto;
  display: block;
}

/* 4. Middle Column: Title Block (Top Aligned) */
.card-simple-left {
  flex: 0 0 30%; 
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns text to the top edge */
}

.card-simple-left h3 {
  margin: 0 0 0.25rem 0;
  color: #000000;
  font-size: 1.15rem;
  line-height: 1.3;
}

.subtitle-green {
  font-weight: 600;
  color: #1b4d3e;
  margin-bottom: 0;
}

/* 5. Right Column: Details (Top Aligned) */
.card-simple-right {
  flex: 1;
  border-left: 1px solid #e2e8f0;
  padding-left: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns text to the top edge */
  gap: 1rem;
}

.orange-head {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FC8C46;
  margin: 0 0 0.25rem 0;
}

.green-head {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1b4d3e;
  margin: 0 0 0.25rem 0;
}

.detail-block p {
  font-size: 0.95rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

/* 6. Mobile Collapse */
@media (max-width: 768px) {
  a.goal-card-simple.card-link,
  .goal-card-simple {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .card-icon-container {
    margin-bottom: 0.25rem;
  }
}

.school-card, .goal-card, fieldset {
  background-color: var(--color-lightest);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

.schools-container, .stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem; 
  align-items: start; 
}

.goal-card h3 {
  color: var(--color-accent);
  font-size: 1.4rem;
}

.goal-icon {
  width: 64px; 
  height: 64px; 
  object-fit: contain;
  margin: 0 auto 1.25rem auto; 
  display: block; 
}

a.card-link:not(.goal-card-simple) {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.goal-card-simple.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card-link:hover {
  transform: translateY(-5px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.1); 
  cursor: pointer;
}

.school-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 150px;
}

.school-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Card Mobile Overrides --- */
@media (max-width: 768px) {
  .school-card, .goal-card, fieldset {
    padding: 1.25rem;
  }
}
   
   /* ==========================================================================
      9. ARTICLES, EVENTS & PHOTOS
      ========================================================================== */

   
   .article-card {
     background: #ffffff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     padding: 1rem; 
     text-align: left;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
   }
   
   .article-card h3 {
     margin-top: 0;
     font-size: 1rem;       
     line-height: 1.2;      
     margin-bottom: 0.5rem; 
   }
   
   .article-card p {
     margin-top: 0;
     margin-bottom: 0.75rem; 
     color: var(--color-text-muted);
     font-size: 0.9rem;      
     line-height: 1.35;      
   }
   
   /* --- Events --- */
   .event-images-wrapper {
     display: flex;
     gap: 10px;
     width: 100%;
     height: 320px;
     background-color: #f4f4f4;
     overflow: hidden;
     border-radius: 10px; 
   }
   
   .event-img-box {
     flex: 1;
     position: relative;
     height: 100%;
     overflow: hidden;
     border-radius: 8px; 
   }
   
   .event-img-box img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center;
     display: block;
     transition: transform 0.3s ease;
   }
   
   .event-img-box:hover img {
     transform: scale(1.03);
   }
   
   .img-badge {
     position: absolute;
     top: 10px;
     left: 10px;
     background-color: rgba(0, 0, 0, 0.75);
     color: #ffffff;
     font-size: 0.7rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     padding: 4px 8px;
     border-radius: 4px;
     z-index: 2;
     backdrop-filter: blur(4px);
   }
   
   .events-container {
     max-width: 800px;
     padding: 0 20px;
     display: flex;
     flex-direction: column;
     gap: 16px; 
     margin-top: 10px;
     margin-bottom: 10px;
   }
   
   .event-card {
     background: #ffffff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     transition: transform 0.2s ease;
   }
   
   .event-card:hover {
     transform: translateY(-3px);
   }
   
   .event-card img {
     width: 100%;
     height: auto;
     display: block; 
   }
   
   .event-details {
     padding: 12px 16px; 
     text-align: center;
     background: #ffffff; 
   }
   
   /* --- Photos --- */
   .photo-card {
     max-width: 600px;
     margin: 2rem auto;
     background: #ffffff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     text-align: left;
   }
   
   .photo-container {
     width: 100%;
     height: 400px;
     background-color: #f4f4f4;
     overflow: hidden;
   }
   
   .photo-container img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center;
     display: block;
   }
   
   .photo-caption {
     padding: 1.5rem;
     display: flex;
     flex-direction: column;
     gap: 0.35rem;
   }
   
   .caption-title {
     font-family: var(--font-heading, sans-serif);
     font-size: 1.2rem;
     font-weight: 600;
     color: #222;
   }
   
   .caption-people {
     font-size: 0.95rem;
     color: var(--color-text-muted, #666);
     line-height: 1.5;
   }
   
   /* --- Articles & Events Mobile Overrides --- */

   

   
   @media (max-width: 768px) {
     .event-images-wrapper {
       flex-direction: column;
       height: auto;
       border-radius: 8px;
     }
   
     .event-img-box {
       height: 220px;
       width: 100%;
       border-radius: 6px;
     }
   
     .school-card .event-image-container,
     .school-card div[style*="height: 420px"] {
       width: 100% !important;
       height: 240px !important; 
       overflow: hidden !important;
       background-color: #f4f4f4 !important;
     }
   
     .school-card img[alt="Event Graphic"] {
       width: 100% !important;
       height: 100% !important;
       object-fit: cover !important;
       object-position: center !important;
       margin: 0 !important;
       display: block !important;
     }
   
     .photo-card {
       margin: 1rem auto;
       border-radius: 8px;
     }
   
     .photo-container {
       height: 280px; 
     }
   
     .photo-caption {
       padding: 1rem;
     }
   }
   
   /* ==========================================================================
     10. FORMS & CONTACT
      ========================================================================== */
   /* Global Inputs */
   input[type="text"], input[type="email"], input[type="number"], select, textarea {
     width: 100%;
     padding: 0.8rem 1rem;
     margin-top: 0.5rem;
     border: 1px solid #ddd;
     border-radius: 6px;
     font-family: var(--font-body);
     font-size: 1rem;
     box-sizing: border-box;
     transition: border-color 0.2s ease;
   }
   
   input:focus, select:focus, textarea:focus {
     outline: none;
     border-color: var(--color-accent);
   }
   
   /* Community Form */
   #communityForm {
     max-width: 650px;
     margin: 3rem auto;
     background: #ffffff;
     padding: 2.5rem;
     border-radius: var(--radius-card, 12px);
     box-shadow: var(--shadow-card, 0 4px 12px rgba(0, 0, 0, 0.05));
     border: 1px solid #eaeaea;
   }
   
   #communityForm label {
     display: block;
     font-weight: 600;
     margin-bottom: 0.5rem;
     color: #333333;
     font-size: 0.95rem;
   }
   
   #communityForm input[type="text"],
   #communityForm input[type="email"],
   #communityForm input[type="number"],
   #communityForm select {
     width: 100%;
     padding: 10px 14px;
     margin-bottom: 1.25rem;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 1rem;
     font-family: inherit;
     background-color: #fff;
     transition: border-color 0.2s, box-shadow 0.2s;
   }
   
   #communityForm input:focus,
   #communityForm select:focus {
     outline: none;
     border-color: #478372;
     box-shadow: 0 0 0 3px rgba(71, 131, 114, 0.15);
   }
   
   #communityForm fieldset {
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     padding: 1.5rem;
     margin-bottom: 1.5rem;
     background-color: #fcfcfd;
   }
   
   #communityForm legend {
     font-weight: 700;
     color: #1b4d3e;
     padding: 0 0.5rem;
     font-size: 1.1rem;
   }
   
   #communityForm button[type="submit"] {
     display: block;
     width: 100%;
     background-color: #478372;
     color: #ffffff;
     border: none;
     padding: 12px 20px;
     font-size: 1rem;
     font-weight: 600;
     border-radius: 6px;
     cursor: pointer;
     transition: background-color 0.2s, transform 0.1s;
     margin-top: 1.5rem;
   }
   
   #communityForm button[type="submit"]:hover {
     background-color: #3c6e61;
   }
   
   /* Contact Form */
   .contact-main {
     max-width: 600px;
     margin: 2rem auto;
     padding: 0 1rem;
   }
   
   .contact-card {
     background: #ffffff;
     padding: 2rem;
     border-radius: 12px;
     box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
     text-align: left;
   }
   
   .contact-card h1 {
     margin-top: 0;
     margin-bottom: 0.5rem;
     font-size: 1.75rem;
   }
   
   .contact-subtitle {
     color: var(--color-text-muted, #666);
     font-size: 0.95rem;
     margin-bottom: 1.5rem;
   }
   
   .compact-form {
     display: flex;
     flex-direction: column;
     gap: 1rem;
   }
   
   .form-group {
     display: flex;
     flex-direction: column;
     gap: 0.35rem;
   }
   
 .form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #4a5568;
  background-color: #fcfcfc;
  box-sizing: border-box; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* The dark green highlight when a user clicks into the box */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1b4d3e;
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.15);
  background-color: #ffffff;
}

/* Label styling to ensure the text above the inputs stays green and bold */
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1b4d3e;
  margin-bottom: 0.35rem;
}
   
   .submit-btn {
     background-color: var(--color-highlight, #478372);
     color: #ffffff;
     border: none;
     padding: 0.75rem 1.5rem;
     border-radius: 6px;
     font-weight: 600;
     font-size: 0.95rem;
     cursor: pointer;
     transition: background-color 0.2s ease;
     align-self: flex-start; 
     margin-top: 0.5rem;
   }
   
   .submit-btn:hover {
     background-color: #366658; 
   }
   
   /* ==========================================================================
     11. MODALS & UTILITIES
      ========================================================================== */
   .modal {
     position: fixed;
     z-index: 1000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     display: flex;
     justify-content: center;
     align-items: center;
   }
   
   .modal-content {
     background: white;
     padding: 24px;
     border-radius: 8px;
     width: 90%;
     max-width: 500px;
     max-height: 80vh;
     overflow-y: auto;
     position: relative;
   }
   
   .close-btn {
     position: absolute;
     top: 12px;
     right: 16px;
     font-size: 24px;
     cursor: pointer;
   }
   
   section[id] {
     scroll-margin-top: 120px;
   }