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


:root {
  --color-blue: #005b96;
  --color-green: #6b7a52;
  --color-light: #fafafa;
  --color-white: #ffffff;
  --color-gray: #f1f1f1;
  --border-width: 24px;
  --light-blue: #c4e2f5;
  --white: #fff;
  --bg: #ffffff;
  /* --logo-size: clamp(28px, 6vw, 44px); */
  /* --logo-size: clamp(90px, 18vw, 132px); */
  --logo-size: clamp(40px, 6vw, 65px);


}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  border: var(--border-width) solid transparent;
  border-image: url('/static/img/mosaic.png') 70 round;
  /* Slightly smaller base type on phones via clamp */
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.6;
}

main, header, footer {
  padding: 1rem 2rem;
}

.divider {
  border: none;
  border-top: 3px solid var(--color-green);
  width: 85%;
  margin: 2rem auto;
}

/*--------------------------------------------------
  NAVBAR
--------------------------------------------------*/
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}


.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  color: var(--color-blue);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
  /* Stop "About Us" from wrapping into two lines */
  white-space: nowrap;
}

.nav-links a.active {
  color: var(--light-blue);
}

.btn {
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: transform .2s;
}

.btn:hover {
  transform: scale(1.05);
}

.donate {
  background: var(--color-blue);
  color: var(--white);
  /* Center the text both axes — needed because min-height (set on phones
     for tap-target a11y) makes the button taller than its text content */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Restore the space between "Donate" and "Today" — flex strips whitespace
     between items. On phones, .donate-extra is display:none so this is a no-op. */
  gap: 0.25em;
}

/* On phones, shorten "Donate Today" → "Donate" so the button text doesn't
   wrap onto two lines. The span is in HTML; we just hide it here. */
@media (max-width: 480px) {
  .donate-extra { display: none; }
}

/* Tighten the navbar at any laptop-sized viewport (≤1700px) so
   nav links and the donate button don't overlap on MacBook 13" at any
   display scaling. Above 1700px (true desktop monitors) keeps full size. */
@media (max-width: 1700px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .navbar .donate {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* === NAV LOGO SIZING === */
/* Keep the header compact */
.navbar { padding-block: .35rem; }

/* The anchor itself shouldn’t add extra text height */
.navbar .logo { line-height: 0; }

/* Already present in your CSS; keep it. Just here for clarity */
.navbar .logo img {
  height: var(--logo-size);
  width: auto;
  display: block;
  object-fit: contain;
}

/* .navbar { gap: 10px; }                comfy spacing across header */

/* .navbar .logo {
  display: flex;
  align-items: center;
} */

/* Only targets the <img> inside the logo area */
/* .navbar .logo img {
  height: var(--logo-size);          
  width: auto;                        
  max-width: 400px;                   
  object-fit: contain;                
  display: block;                     
} */

/*--------------------------------------------------
    ENHANCED PAGE BANNER
--------------------------------------------------*/
.page-banner {
    background: linear-gradient(135deg, #005b96 0%, #6b7a52 100%);
    color: white;
    padding: 2.75rem 2rem 1.75rem;
    margin: -1rem -2rem 3rem -2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-banner h1 {
    font-family: 'Montserrat', sans-serif;
    /* Smooth scaling across every viewport — no breakpoint cliffs */
    font-size: clamp(1.5rem, 0.7rem + 2.2vw, 3.2rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/*--------------------------------------------------
    HOME PAGE BANNER
--------------------------------------------------*/
.home-page-banner {
    background: linear-gradient(135deg, #005b96 0%, #6b7a52 100%);
    color: white;
    padding: 2.75rem 2rem 1.75rem;
    margin: -1rem -2rem 3rem -2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.home-page-banner h1 {
    font-family: 'Montserrat', sans-serif;
    /* Smooth scaling across every viewport — no breakpoint cliffs */
    font-size: clamp(1.4rem, 0.6rem + 2vw, 2.8rem);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.home-page-banner p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Hero + Slideshow */
.hero {
  position: relative;
  overflow: hidden;
}
/* .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
} */
.hero::after {
  display: none;
}
.slideshow-container {
  position: relative;
  z-index: 1;
  max-width: 99%;
  margin: auto;
  aspect-ratio: 16 / 9;
  /* Width-driven aspect on phones (where height < cap) keeps the
     compact mobile look. On wider screens the cap kicks in so the
     hero never dominates the viewport. */
  max-height: min(55vh, 480px);
  border-radius: 0.5rem;
  overflow: hidden;
}
.mySlides {
  display: none;
  position: absolute;
  inset: 0;
}
.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  user-select: none;
  background: rgba(255,255,255,0.7);
  color: var(--color-blue);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 2;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover {
  background: rgba(255,255,255,0.9);
}

/* Dots */
.dots {
  text-align: center;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}
/* Tap target is the full 44x44 element; the visible dot is the
   ::before pseudo-element so the visual stays 8x8 while the
   touch surface meets the 44x44 WCAG minimum. */
.dot {
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #938f8f64;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.dot.active::before,
.dot:hover::before {
  background-color: var(--color-blue);
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: var(--color-white);
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 1.25rem;
}
/*--------------------------------------------------
    ENHANCED PROGRAM CARDS
--------------------------------------------------*/
.program-section {
    margin-bottom: 4rem;
}
.program-section h2{
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  color: #2c3e50;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.belief-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Color accents for cards */
.core-section .belief-card {
    border-top: 4px solid #660c21;
    
}

.core-section .belief-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0,91,150,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.belief-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.core-section .belief-card:hover {
    border-color: #660c21;
}


.belief-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.belief-card p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* PROGRAM ROWS: 3 rows, left title card + right detail card */
.program-overview {
  padding: 2rem;
}

.program-overview h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  color: #2c3e50;
}

/* container for all rows */
.program-rows {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* width matches the Core Beliefs grid’s inner width */
  max-width: 1200px;
  margin: 0 auto;
}

/* each row: left + right */
.program-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* left title card */
.program-title-card {
  flex: 0 0 30%;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.program-title-card h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-blue);
  margin: 0;
}

/* right detail card */
.program-detail-card {
  flex: 1;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.program-detail-card ul {
  margin: 0;
  padding-left: 1.25rem;
}
.program-detail-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Responsive: stack on narrow screens */
@media (max-width: 800px) {
  .program-row {
    flex-direction: column;
  }
  .program-title-card {
    flex: none;
    width: 100%;
  }
}
@media (max-width: 992px) {
  .cards,
  .program-cards {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .cards,
  .program-cards {
    grid-template-columns: 1fr;
  }
}



/* Footer */
footer {
  background: var(--color-light);
  padding: 1.5rem 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  align-items: start;
}
.newsletter-form h3 {
  margin-bottom: 0.75rem;
  color: var(--color-blue);
}
.newsletter-form form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
.newsletter-form button {
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-blue);
  color: var(--color-white);
  cursor: pointer;
}
/* .footer-logo {
  font-size: 1.5rem;
  color: var(--color-blue);
  font-weight: 600;
} */

/* --- Footer Logo: Match navbar style, but smaller and centered --- */
.footer-logo {
  text-align: center;
  margin-top: 1rem;
}

.footer-logo img {
  height: clamp(50px, 11vw, 400px);
  width: auto;
  /* display: inline-block; */
  object-fit: contain;
  /* filter: brightness(0) saturate(100%) invert(14%) sepia(85%) saturate(526%) hue-rotate(187deg) brightness(90%) contrast(91%); */
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-info p strong {
  color: var(--color-blue);
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 0.25rem;
  font-size: 1.25rem;
  color: var(--color-blue);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.social-icons a:hover {
  color: var(--color-green);
  background: rgba(0, 91, 150, 0.06);
}
/* Volunteer card: 75% width, centered, horizontal */
.volunteer-card {
  width: 75%;
  margin: 3rem auto;
  background: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.volunteer-card .card-content {
  max-width: 600px;
}

.volunteer-card h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.volunteer-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.volunteer-btn {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.volunteer-btn:hover {
  transform: scale(1.05);
}


/* Responsive */
@media (max-width: 992px) {
  .cards,
  .program-cards {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .cards,
  .program-cards {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
}

/* STEP 1: Responsive border image size */
@media (max-width: 1024px) {
  :root { --border-width: 16px; }    /* very small phones */

}

@media (max-width: 768px) {
  :root { --border-width: 14px; }    /* very small phones */

}

@media (max-width: 480px) {
  :root { --border-width: 12px; }    /* very small phones */

}

@media (max-width: 360px) {
  :root { --border-width: 4px; }    /* very small phones */
}

/* STEP 2: Responsive banner + hero sizing */

/* Tablet (iPad) and below */
@media (max-width: 1024px) {
  /* Catch common banner/hero sections without relying on one class name */
  .hero,
  .banner,
  [class*="banner"],
  [class*="Banner"],
  [class*="hero"],
  [class*="Hero"] {
    padding-block: clamp(16px, 4vw, 32px);
  }

  /* Headline scaling inside banners */
  .hero h1,
  .banner h1,
  [class*="banner"] h1,
  [class*="hero"] h1 {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
    line-height: 1.15;
  }

  .hero h2,
  .banner h2,
  [class*="banner"] h2,
  [class*="hero"] h2 {
    font-size: clamp(1.05rem, 3.2vw, 1.4rem);
    line-height: 1.2;
  }

  /* If the banner uses a background image, keep it neat */
  .hero,
  .banner,
  [class*="banner"] {
    background-size: cover;
    background-position: center;
  }

  /* Decorative shapes commonly used in banners (safe, generic match) */
  .hero [class*="circle"],
  .banner [class*="circle"],
  .hero [class*="bubble"],
  .banner [class*="bubble"],
  .hero .decorative,
  .banner .decorative {
    transform: scale(0.75);
    transform-origin: center;
    filter: blur(0.5px);
  }

  /* If there are images inside a banner, cap their height on smaller screens
     (.hero img is intentionally excluded — slideshow uses aspect-ratio sizing) */
  .banner img,
  [class*="banner"] img {
    max-height: 260px;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .hero,
  .banner,
  [class*="banner"],
  [class*="hero"] {
    padding-block: clamp(12px, 4vw, 24px);
  }

  .hero h1,
  .banner h1,
  [class*="banner"] h1,
  [class*="hero"] h1 {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .hero h2,
  .banner h2,
  [class*="banner"] h2,
  [class*="hero"] h2 {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  }

  .hero [class*="circle"],
  .banner [class*="circle"],
  .hero [class*="bubble"],
  .banner [class*="bubble"],
  .hero .decorative,
  .banner .decorative {
    transform: scale(0.6);
  }

  .banner img,
  [class*="banner"] img {
    max-height: 200px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .hero,
  .banner,
  [class*="banner"],
  [class*="hero"] {
    padding-block: 10px;
  }

  .hero h1,
  .banner h1,
  [class*="banner"] h1,
  [class*="hero"] h1 {
    font-size: clamp(1.1rem, 6vw, 1.4rem);
  }

  .hero h2,
  .banner h2,
  [class*="banner"] h2,
  [class*="hero"] h2 {
    font-size: clamp(0.9rem, 4vw, 1.05rem);
  }

  .hero [class*="circle"],
  .banner [class*="circle"],
  .hero [class*="bubble"],
  .banner [class*="bubble"],
  .hero .decorative,
  .banner .decorative {
    transform: scale(0.45);
  }

  .banner img,
  [class*="banner"] img {
    max-height: 160px;
  }
}

/* Ultra-small phones */
@media (max-width: 360px) {
  .hero,
  .banner,
  [class*="banner"],
  [class*="hero"] {
    padding-block: 8px;
  }
}


/* ============================================================
   MOBILE NAV — animated hamburger, sliding panel, fading backdrop
   ============================================================ */

/* ── Hamburger: 3 CSS bars, hidden on desktop ── */
.hamburger {
  display: none;
}
.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}
/* Bars animate into an × when the nav is open */
body.nav-open .hamburger .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger .bar:nth-child(2) { opacity: 0; width: 0; }
body.nav-open .hamburger .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Backdrop: fades in/out over the page ── */
/* Use display:block always so the opacity transition works */
.backdrop {
  display: block !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
body.nav-open .backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Hide panel controls on desktop */
.panel-close      { display: none; }
.nav-panel-header { display: none; }

/* ── Mobile / tablet panel — raised to 1280px so iPads in BOTH
   portrait (744-834px) and landscape (1180-1194px) get the hamburger ── */
@media (max-width: 1280px) {

  /* Group [donate] + [hamburger] on the right side of the navbar
     so they stay together instead of being spread by space-between */
  .navbar .donate     { order: 1; margin-left: auto; padding: 0.4rem 0.85rem; }
  .navbar .hamburger  { order: 2; }

  /* Hamburger button — 44x44 to meet WCAG tap-target minimum */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .hamburger:hover,
  .hamburger:focus-visible {
    background: rgba(0, 91, 150, 0.08);
    outline: none;
  }

  :root { --panel-offset: var(--border-width, 0px); }

  /* Slide-in panel */
  nav#site-nav,
  nav[role="navigation"],
  .navbar nav,
  .nav-links {
    position: fixed !important;
    top: var(--panel-offset);
    left: var(--panel-offset);
    height: calc(100dvh - (2 * var(--panel-offset)));
    width: min(calc(82vw - var(--panel-offset)), 300px);
    background: #fff;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.18);
    z-index: 1001;
    overflow-y: auto;
    /* Layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    /* Closed */
    transform: translateX(calc(-100% - 2px)) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(0 100% 0 0);
    transition:
      transform 0.28s ease,
      opacity 0.18s ease,
      visibility 0s linear 0.28s,
      clip-path 0s linear 0.28s;
    will-change: transform;
  }

  /* Open */
  body.nav-open nav#site-nav,
  body.nav-open nav[role="navigation"],
  body.nav-open .navbar nav,
  body.nav-open .nav-links {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    clip-path: inset(0 0 0 0);
    transition: transform 0.28s ease, opacity 0.18s ease;
  }

  /* ── Panel header: gradient strip with brand + × button ── */
  .nav-panel-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
    flex-shrink: 0;
  }
  .nav-panel-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.3px;
  }

  /* Close button inside header */
  .panel-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .panel-close:hover { background: rgba(255, 255, 255, 0.38); }
  .panel-close .bar {
    position: absolute;
    width: 13px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
  }
  .panel-close .bar:nth-child(1) { transform: rotate(45deg); }
  .panel-close .bar:nth-child(2) { transform: rotate(-45deg); }

  /* ── Nav links ── */
  #site-nav a,
  .nav-links a {
    display: block !important;
    padding: 0.85rem 1.25rem !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 0.95rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: left;
    transition: background 0.18s, border-color 0.18s, padding-left 0.18s, color 0.18s;
  }
  #site-nav a:hover,
  .nav-links a:hover {
    background: rgba(0, 91, 150, 0.06);
    border-left-color: var(--color-blue);
    padding-left: 1.6rem !important;
    color: var(--color-blue) !important;
  }
  #site-nav a.active,
  .nav-links a.active {
    background: rgba(0, 91, 150, 0.09);
    border-left-color: var(--color-blue);
    padding-left: 1.6rem !important;
    color: var(--color-blue) !important;
  }

  /* Donate btn if it ever lands inside the panel */
  #site-nav .btn,
  .nav-links .btn {
    display: block !important;
    width: 100%;
    text-align: left;
    padding: 10px 8px;
  }
}

/* Safety: never show panel controls on desktop */
@media (min-width: 1281px) {
  .hamburger       { display: none !important; }
  .panel-close     { display: none !important; }
  .nav-panel-header{ display: none !important; }
}

/* STEP 4: Right-size the Donate button on smaller screens */

/* iPad & small laptops */
@media (max-width: 1024px) {
  .btn.donate {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    padding: 0.45rem 0.85rem;   /* was 0.5rem 1rem */
    line-height: 1.1;
  }
}

/* Phones */
@media (max-width: 768px) {
  .navbar { gap: 8px; }         /* keep header tidy */

  .btn.donate {
    font-size: clamp(0.8rem, 3.2vw, 0.95rem);
    padding: 0.5rem 0.85rem;
    min-height: 44px;           /* WCAG tap-target minimum */
    border-radius: 999px;       /* retain pill shape */
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .btn.donate {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

/* WIDEN the “Help Us Make a Difference” card */
.volunteer-card {
  /* wider on desktop while still responsive */
  width: min(1200px, 92%);
}

/* let the content breathe horizontally */
.volunteer-card .card-content {
  max-width: 900px;
}

/* iPad & small laptops */
@media (max-width: 1024px) {
  .volunteer-card { width: 95%; }
  .volunteer-card .card-content { max-width: 100%; }
}

/* Phones: full width inside the border */
@media (max-width: 768px) {
  .volunteer-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .volunteer-card .card-content { max-width: 100%; }
}


.form-success {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  background: #eef9f0;
  color: #276749;
  border: 1px solid #cde8d3;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}
.form-success.form-error {
  background: #fff5f5;
  color: #c53030;
  border-color: #fecaca;
}
.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.newsletter-form .name-row {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form .name-row input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .newsletter-form .name-row {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .footer-logo img {
    height: clamp(56px, 8vw, 80px);
  }
}

/* Medium phones (landscape or large phones) */
@media (max-width: 768px) {
  .footer-logo img {
    height: clamp(90px, 11vw, 300px);
  }
}

/* Small phones */
@media (max-width: 480px) {
  .footer-logo img {
    height: clamp(68px, 11vw, 100px);
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  .footer-logo img {
    height: clamp(72px, 13vw, 110px);
  }
}

/*--------------------------------------------------
  MOBILE LAYOUT FIXES
--------------------------------------------------*/

/* Reduce horizontal padding on small screens so content has room to breathe */
@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  footer {
    padding: 1rem;
  }

  /* Drop the decorative mosaic border on phones — 24px on each side
     eats ~13% of screen width and feels cramped. */
  body {
    --border-width: 0;
  }

  /* Page banners use negative margin to counteract main's padding.
     When main padding shrinks to 1rem, match the banner margin. */
  .page-banner,
  .home-page-banner {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  /* Program overview inner padding */
  .program-overview {
    padding: 1rem;
  }
}

/*--------------------------------------------------
  LAPTOP / SMALL DESKTOP — 13" MacBook + below
  Targets ~1280px-wide laptops so fonts and padding
  shrink before hitting the tablet/phone breakpoints.
--------------------------------------------------*/
@media (max-width: 1280px) {
  /* Tighter outer padding so content has room to breathe */
  main, header, footer {
    padding: 1rem 1.25rem;
  }

  /* Match banner negative margins to new main padding-x */
  .page-banner,
  .home-page-banner {
    padding: 2rem 1.5rem 1.25rem;
    margin: -1rem -1.25rem 2rem -1.25rem;
  }

  /* h1 sizes are handled by clamp() on the base rules — no overrides needed */
  .page-banner p,
  .home-page-banner p  { font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
}

/* Consistent banner headings across ALL pages
   These sit after the generic [class*="banner"] rules and are more specific,
   so they win the cascade and give uniform sizing regardless of which page CSS is loaded */
/* h1 sizes are handled by clamp() on the base rules.
   These overrides only adjust line-height and paragraph text. */
@media (max-width: 1024px) {
  .page-banner h1,
  .home-page-banner h1 { line-height: 1.2; }
  .page-banner p,
  .home-page-banner p  { font-size: 1.05rem; max-width: 90%; }
}
@media (max-width: 480px) {
  .page-banner p,
  .home-page-banner p  { font-size: 0.9rem; }
}

/* Volunteer card heading/text sizes on phones */
@media (max-width: 480px) {
  .volunteer-card h2 {
    font-size: 1.5rem;
  }
  .volunteer-card p {
    font-size: 1rem;
  }
  /* Belief card headings */
  .belief-card h3 {
    font-size: 1.2rem;
  }
}