/* 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;
}

.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);
}

/* === 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: 3rem 2rem;
    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;
    font-size: 3.5rem;
    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: 3rem 2rem;
    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;
    font-size: 3rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

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

/* Hero + Slideshow */
.hero {
  position: relative;
  min-height: 45vh;
  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;
}
.mySlides {
  display: none;
}
.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}
.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;
}
.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  margin: 0 5px;  
  background-color: #938f8f64;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.dot.active,
.dot:hover {
  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(320px, 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 {
  margin-right: 0.5rem;
  font-size: 1.25rem;
  color: var(--color-blue);
  transition: color 0.2s;
}
.social-icons a:hover {
  color: var(--color-green);
}
/* 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"] {
    /* Reduce overall vertical space */
    padding-block: clamp(16px, 4vw, 32px);
    /* Keep it visually strong but not huge */
    min-height: clamp(180px, 30vh, 320px);
  }

  /* 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/hero, cap their height on smaller screens */
  .hero img,
  .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);
    min-height: clamp(150px, 28vh, 260px);
  }

  .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);
  }

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

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

  .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);
  }

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

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


/* === MOBILE PANEL: robust selectors + no-left-line when closed === */

/* Desktop/tablet defaults */
.panel-close { display: none; }
.hamburger { display: none; }

/* Phones only */
@media (max-width: 768px) {
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 0; background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
  }

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

  /* Target the nav container no matter how it's structured */
  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(80vw - var(--panel-offset)), 320px);
    background: var(--panel-bg, #fff);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    z-index: 1001;
    overflow-y: auto;

    /* Closed state: absolutely no paint/peek */
    transform: translateX(calc(-100% - 2px)) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(0 100% 0 0);           /* further ensures nothing paints */
    transition:
      transform .28s ease,
      opacity .18s ease,
      visibility 0s linear .28s,
      clip-path 0s linear .28s;
    will-change: transform;
  }

  /* Open state */
  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 .28s ease,
      opacity .18s ease;
  }

  /* Backdrop under panel */
  .backdrop { z-index: 1000; }
  .backdrop[hidden] { display: none; }

  /* Show the close button only on phones */
  .panel-close {
    display: inline-block;
    align-self: flex-end;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    margin-bottom: 8px;
  }
}

/* Safety: ensure hamburger never shows above phone sizes */
@media (min-width: 769px) {
  .hamburger { display: none !important; }
  .panel-close { display: none !important; }
}

/* FIX: Stack nav links vertically inside the mobile side panel */
@media (max-width: 768px) {
  /* Ensure the panel container is a vertical flex column */
  #site-nav,
  nav[role="navigation"],
  .navbar nav,
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 24px 16px; /* comfy tap targets */
  }

  /* Make each link a full-width tappable row */
  #site-nav a,
  .nav-links a,
  #site-nav .btn,
  .nav-links .btn {
    display: block !important;
    width: 100%;
    text-align: left;
    padding: 10px 8px;
  }
}

/* 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.35rem 0.75rem;   /* smaller pill */
    min-height: 36px;           /* keep tap target accessible */
    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;
  border: 1px solid #cde8d3;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* 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);
  }
}