/* ==========================================================================
   Sacred Bloom Health Foundation – Mobile-First Optimized CSS (2026)
   ========================================================================== */

:root {
    --primary:       #ed3176;
    --primary-dark:  #d42a67;
    --secondary:     #7fc142;
    --dark:          #2c3e50;
    --light:         #f8f9fa;
    --gray:          #6c757d;

    --font-size-base: clamp(1rem,   0.5rem + 2vw, 1.125rem);
    --font-size-h1:   clamp(2.1rem, 6vw + 1rem,   3.6rem);
    --font-size-h2:   clamp(1.7rem, 5vw + 0.8rem, 2.6rem);
    --font-size-h3:   clamp(1.35rem,4vw + 0.6rem, 1.9rem);

    --spacing-xs: 0.75rem;
    --spacing-sm: 1.25rem;
    --spacing-md: 2rem;
    --spacing-lg: clamp(3rem, 6vw, 5rem);

    --shadow-sm: 0 3px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}


/* ==========================================================================
   TYPOGRAPHY & REUSABLES (mobile base)
   ========================================================================== */

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: var(--font-size-h1); margin-block-end: 1rem; }
h2 { font-size: var(--font-size-h2); margin-block: 0 1.25rem; position: relative; }
h3 { font-size: var(--font-size-h3); }

h2:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.text-center h2:after { left: 50%; transform: translateX(-50%); }

p {
    margin-block-end: 1.25rem;
    font-size: 1.05rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary { background: var(--secondary); color: white; }
.btn-outline    { border: 2px solid var(--primary); color: var(--primary); background: transparent; }

.btn-outline:hover,
.btn-outline:focus-visible { background: var(--primary); color: white; }

/* Focus & motion */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; transform: none !important; }
}

/* ==========================================================================
   HEADER & NAVIGATION (mobile hamburger first)
   ========================================================================== */

/* ==========================================================================
   HEADER & NAVIGATION (enhanced mobile-first + nonprofit best practices)
   ========================================================================== */

.site-header {  /* Use a class like .site-header on your <header> for specificity */
    position: sticky;               /* Better than fixed in most cases – allows natural flow */
    inset-block-start: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    box-shadow: var(--shadow-sm);
    padding-block: 0.2rem;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding-block: 0.65rem;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

/* Container layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;          /* Prevent wrapping on mobile – keeps everything in one line */
    position: relative;         /* Anchor for absolute donate button */
    padding-inline: 1rem;       /* Breathing room on sides */
}

/* Mobile: allow donate to sit in center without shrinking logo too much */
@media (max-width: 767px) {
    .header-container {
        flex-wrap: nowrap;      /* Force single row */
        padding-inline: 2.2rem; /* Slightly less padding for tight screens */
    }

    /* Protect logo size – don't let it shrink below readable */
    .logo img {
        max-height: 60px;       /* Good visible size on phones */
        min-height: 48px;       /* Never too tiny */
        width: auto;
        flex-shrink: 0;         /* Prevent logo from being squished */
    }

    /* Donate centered – but give logo priority */
    .nav-cta {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Hamburger on right – always visible */
    .mobile-toggle {
        margin-left: auto;
        z-index: 11;
    }
}

.logo img {
    width: auto;
    height: auto;
    max-height: 80px;           /* Desktop: nice visible size */
    min-height: 48px;           /* Minimum readable size on any screen */
    object-fit: contain;
    flex-shrink: 0;
}

/* Mobile scaling */
@media (max-width: 767px) {
    .logo img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 52px;
    }
}

.logo h1 {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    margin-inline-start: 0.75rem; /* If keeping text beside logo */
    white-space: nowrap;
}

.logo span { color: var(--primary); }
.logo .bloom { color: var(--secondary); }

/* Mobile toggle – larger touch target, accessible */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.9rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.75rem;          /* ≥44px touch target */
    margin-inline-start: auto; /* Push to right if needed */
    display: flex;
    align-items: center;
}

.mobile-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 50%;
}

/* Navigation – hidden on mobile */
nav {
    display: none;
}

nav.active {
    display: block;
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: white;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--spacing-sm);
    max-height: calc(100vh - var(--header-height, 70px)); /* Prevent overflow */
    overflow-y: auto;
}

/* Optional: Backdrop overlay when menu open */
nav.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

/* Menu list */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 0.8rem 1rem;
    display: block;
    transition: color 0.2s;
}

nav a:hover,
nav a:focus-visible {
    color: var(--primary);
}

/* Donate button – always visible on desktop, in menu or separate on mobile */
.nav-cta .btn-primary {
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(237, 49, 118, 0.25);
}

/* Desktop layout – full nav + CTA */
@media (min-width: 768px) {
    .mobile-toggle { display: none; }

    nav {
        display: flex;
        position: static;
        flex-grow: 1;
        justify-content: flex-end;
    }

    nav ul {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    nav a {
        padding: 0.5rem 0;
        font-size: 1.05rem;
    }

    .header-container {
        flex-wrap: nowrap;
    }

    /* Push Donate further right */
    .nav-cta {
        margin-inline-start: 1.5rem;
    }
    
}

/* ==========================================================================
   Mobile: Donate button BETWEEN logo and hamburger
   ========================================================================== */

@media (max-width: 767px) {

    .header-container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        /* padding-inline: 0.75rem; */
    }

    /* Donate button centered (visually between logo and hamburger) */
    .nav-cta {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    /* Hamburger stays on the far right */
    .mobile-toggle {
        margin-left: auto;
        flex-shrink: 0;
        z-index: 11;                    /* slightly above donate if overlap risk */
        padding: 0.8rem;                /* good touch target */
    }

    /* Make Donate button more compact on mobile */
    .donate-btn {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
        min-width: 110px;
        box-shadow: 0 3px 10px rgba(237, 49, 118, 0.3);
        white-space: nowrap;
    }

    /* Optional: even smaller screens → icon-only button */
    @media (max-width: 360px) {
        .donate-btn {
            padding: 0.6rem 0.9rem;
            font-size: 0.9rem;
            min-width: 90px;
        }

        .donate-btn i {
            margin-right: 0.4rem;
        }
    }
}

/* Desktop layout remains unchanged (your existing rules) */
@media (min-width: 768px) {
    .nav-cta {
        position: static;
        transform: none;
        margin-left: 1.5rem;
    }

    .mobile-toggle {
        display: none;
    }

    .donate-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1.05rem;
    }
}

/* Extra small screens – ensure nothing overflows */
@media (max-width: 480px) {
    .header-container {
        padding-inline: 2rem;
    }

    .logo img {
        max-height: 49px;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   HERO SECTION – Background Video Version
   ========================================================================== */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
    padding-block: clamp(6rem, 15vh, 10rem) 1rem;
}

/* Video background */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.72); /* Adjust opacity (0.6–0.8) for your video */
    z-index: 2;
}

/* Content layer */
.hero-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-block-end: 1.4rem;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-heading-highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
    opacity: 0.95;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    margin-block: 1.5rem 2.5rem;
}

.hero-cta-primary {
    padding: 1rem 2.4rem;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(237,49,118,0.4);
}

.hero-cta-secondary {
    padding: 0.9rem 2rem;
    border-color: white;
    color: white;
}

.hero-cta-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-trust {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .hero {
        min-height: 70vh;
    }

    .hero-video video {
        object-position: center 30%; /* Adjust focus if video has faces higher up */
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Desktop – slightly larger text/buttons */
@media (min-width: 768px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
        gap: 1.8rem;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        min-width: 220px;
    }
}

/* ==========================================================================
   OUR PARTNERS – Infinite horizontal logo carousel
   ========================================================================== */

.partners {
    padding-block: clamp(4rem, 9vw, 7rem);
    background: var(--light);
}

.partners h2 {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    margin-bottom: 1rem;
}

.partners p {
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.logo-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.logo-carousel {
    display: flex;
    animation: scroll 30s linear infinite; /* 30s = speed – adjust as needed */
    width: max-content; /* Allows seamless loop */
}

.partner-logo {
    flex: 0 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 80px;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.15);
}

.partner-logo img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(70%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Infinite scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly half the duplicated content */
    }
}

/* Pause on hover/focus */
.logo-carousel-wrapper:hover .logo-carousel,
.logo-carousel-wrapper:focus-within .logo-carousel {
    animation-play-state: paused;
}

/* Responsive – slower on mobile, smaller logos */
@media (max-width: 767px) {
    .partner-logo {
        padding: 0 1.2rem;
        min-width: 120px;
        height: 60px;
    }

    .partner-logo img {
        max-height: 48px;
        max-width: 110px;
    }

    .logo-carousel {
        animation-duration: 40s; /* Slower on mobile */
    }
}


/* ==========================================================================
   SECTIONS (stacked on mobile)
   ========================================================================== */

.section {
    padding-block: var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-block-end: 3rem;
}

.section-header p {
    max-width: 680px;
    margin-inline: auto;
    color: var(--gray);
}

/* ==========================================================================
   MINI ABOUT TEASER
   Compact • Modern • Emotional • Mobile-first
   ========================================================================== */

.mini-about {
    padding-block: clamp(4rem, 9vw, 7rem);
    background: var(--light);
}

.mini-about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.mini-about-text h2 {
    font-size: clamp(2.1rem, 5.5vw, 2.8rem);
    margin-block-end: 1.25rem;
    color: var(--dark);
}

.mini-about-text .lead {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--dark);
    margin-block-end: 1.5rem;
}

.mini-about-text p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--gray);
}

.mini-about-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.mini-about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CTA button */
.mini-about-cta {
    margin-block-start: 3.5rem;
}

.mini-about-cta .btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 280px;
    box-shadow: 0 6px 20px rgba(237, 49, 118, 0.28);
}

/* ────────────────────────────────────────
   Responsive layout
   ──────────────────────────────────────── */

@media (min-width: 768px) {
    .mini-about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .mini-about-text {
        padding-inline-end: 1.5rem;
    }

    .mini-about-cta .btn-lg {
        padding: 1.2rem 2.8rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .mini-about {
        padding-block: 9rem 7rem;
    }

    .mini-about-content {
        max-width: 1100px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   IMPACT SECTION
   ========================================================================== */

.impact {
    background: linear-gradient(135deg, var(--secondary), #6db03a); /* green gradient for hope/health theme */
    color: white;
    padding-block: clamp(4rem, 10vw, 7rem);
}

.impact .section-header {
    text-align: center;
    margin-block-end: 3.5rem;
}

.impact .section-header h2 {
    color: white;
    font-size: clamp(2rem, 5.5vw, 3rem);
}

.impact .section-header h2:after {
    background: white; /* underline in white for contrast */
    width: 100px;
}

.impact .section-header p {
    color: rgba(255,255,255,0.92);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 1rem auto 0;
}

/* Stats grid – responsive auto-fit */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-item h3 {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    font-weight: 700;
    margin-block-end: 0.5rem;
    color: white;
    line-height: 1;
}

.stat-item p {
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0.95;
}

/* Optional impact story / testimonial block */
.impact-story {
    margin-block: 4rem 3rem;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
}

.impact-story blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-block-end: 1.5rem;
    padding: 0 1.5rem;
    border-left: 5px solid rgba(255,255,255,0.4);
}

.impact-story footer {
    font-style: normal;
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA at bottom of impact */
.impact .text-center .btn-primary {
    padding: 1rem 2.2rem;
    font-size: 1.12rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: white;
    color: var(--primary);
}

.impact .text-center .btn-primary:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────
   Responsive adjustments
   ──────────────────────────────────────── */

/* Stats grid – 5 columns on large screens */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem 1.5rem;
    text-align: center;
}

/* Force 5 columns on large screens */
@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Exactly 5 equal columns */
        gap: 1.8rem 2rem;
    }

    .stat-item {
        padding: 2.2rem 1.6rem;
    }

    .stat-item h3 {
        font-size: clamp(2.8rem, 5vw, 4rem);
    }

    .stat-item p {
        font-size: 1.1rem;
    }
}

/* Tablet – 2 or 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
}

/* Mobile – 1 column */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .stat-item {
        padding: 1.8rem 1.4rem;
    }
}

/* ==========================================================================
   UPCOMING EVENT CARD & CUSTOM MODAL – No Bootstrap
   ========================================================================== */

.upcoming-events {
    padding-block: clamp(4rem, 9vw, 7rem);
    background: var(--light);
}

.event-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transition: transform 0.35s ease;
    max-width: 900px;
    margin-inline: auto;
}

.event-card:hover {
    transform: translateY(-12px);
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.event-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.event-date .day   { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 1.2rem; text-transform: uppercase; }
.event-date .year  { font-size: 1.05rem; opacity: 0.9; }

.event-card h3 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
}

.theme {
    font-size: 1.18rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-details p {
    /*margin-bottom: 0.7rem;*/
    font-size: 1.05rem;
}

.event-details-text {
    margin-bottom: 0.1rem;
}

.register-btn {
    margin-top: auto;
    padding: 1rem 2.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Countdown Timer */
/* Countdown Wrapper */
.countdown-wrapper {
    margin: 2rem 0 2.5rem;
    text-align: center;
}

.event-countdown-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Countdown Grid */
.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 70px;
}

.countdown-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    background: white;
    padding: 0.7rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Mobile - Make it compact and stacked nicely */
@media (max-width: 480px) {
    .countdown-wrapper {
        margin: 1.8rem 0 2.2rem;
    }

    .event-countdown-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        min-width: 58px;
    }

    .countdown-number {
        font-size: 1.9rem;
        padding: 0.55rem 0.5rem;
    }

    .countdown-label {
        font-size: 0.78rem;
    }
}

/* Medium phones / tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .countdown-number {
        font-size: 2.4rem;
    }
}

/* Custom Modal */
.custom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.custom-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    text-align: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 2rem;
}

.form-intro {
    color: #666;
    margin-bottom: 1.8rem;
}

.form-group {
    margin-bottom: 1.6rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237,49,118,0.15);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.submit-btn {
    padding: 1rem 2.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.modal-close-btn {
    padding: 1rem 2.4rem;
    font-size: 1.1rem;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

/* Form message inside modal */
.form-message {
    padding: 1rem 1.3rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    margin-top: 1.5rem;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Responsive */
@media (max-width: 576px) {
    .event-content {
        padding: 2rem 1.5rem;
    }

    .custom-modal-content {
        width: 95%;
    }
}



/* ==========================================================================
   PROGRAMS & SERVICES SECTION
   Card-based • Modern • Mobile-first • Nonprofit-friendly
   ========================================================================== */

.programs {
    background: var(--light);
    padding-block: clamp(4rem, 10vw, 7rem);
}

.programs .section-header {
    max-width: 780px;
    margin-inline: auto;
    margin-block-end: 4rem;
}

.programs .section-header h2 {
    font-size: clamp(2.2rem, 5.8vw, 3.2rem);
}

.programs .section-header p {
    font-size: 1.15rem;
    color: var(--gray);
}

/* Grid layout – auto-fit cards */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem 1.8rem;
}

.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: all 0.28s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.program-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.program-card:hover .program-img img {
    transform: scale(1.08);
}

.program-content {
    padding: 1.8rem 1.6rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-block-end: 0.9rem;
}

.program-content p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.65;
    margin-block-end: 0;
}

/* CTA at bottom */
.programs-cta {
    margin-block-start: 4rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.programs-cta p {
    font-size: 1.15rem;
    color: var(--dark);
}

.programs-cta .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ────────────────────────────────────────
   Responsive tweaks
   ──────────────────────────────────────── */

@media (min-width: 768px) {
    .programs {
        padding-block: clamp(6rem, 12vw, 9rem);
    }

    .program-content {
        padding: 2rem 1.8rem 2.5rem;
    }

    .program-content h3 {
        font-size: 1.55rem;
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        gap: 2.5rem 2rem;
    }
}

@media (min-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   TEAM SECTION
   4-column desktop • 2-column tablet • 1-column mobile
   Modern, warm, nonprofit style
   ========================================================================== */

.team {
    background: var(--light);
    padding-block: clamp(4rem, 10vw, 7rem);
}

.team .section-header {
    max-width: 780px;
    margin-inline: auto;
    margin-block-end: 4rem;
}

.team .section-header h2 {
    font-size: clamp(2.2rem, 5.8vw, 3.2rem);
}

.team .section-header p {
    font-size: 1.12rem;
    color: var(--gray);
}

/* Grid – controls the 4 / 2 / 1 layout */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 1.8rem;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.team-photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.08);
}

.team-info {
    padding: 1.8rem 1.5rem 2.2rem;
}

.team-info h3 {
    font-size: 1.35rem;
    margin-block-end: 0.4rem;
    color: var(--dark);
}

.team-role {
    font-size: 0.98rem;
    color: var(--primary);
    font-weight: 600;
    margin-block-end: 1rem;
    display: block;
}

.team-bio {
    font-size: 0.75rem;
    line-height: 1.65;
    color: var(--gray);
    margin: 0;
}

/* CTA */
.team-cta {
    margin-block-start: 4rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.team-cta p {
    font-size: 1.1rem;
    margin-block-end: 1.2rem;
    color: var(--dark);
}

/* ────────────────────────────────────────
   Responsive breakpoints
   ──────────────────────────────────────── */

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem 1.6rem;
    }

    .team-card {
        display: flex;
        flex-direction: column;
    }

    .team-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media (min-width: 1200px) {
    .team .container {
        max-width: 1180px;
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   Emotional • Trust-building • Modern card layout
   ========================================================================== */

.testimonials {
    background: var(--light-pink); /* soft, warm background for emotion */
    padding-block: clamp(4rem, 10vw, 7rem);
}

.testimonials .section-header {
    max-width: 800px;
    margin-inline: auto;
    margin-block-end: 4rem;
}

.testimonials .section-header h2 {
    font-size: clamp(2.2rem, 5.8vw, 3.2rem);
}

.testimonials .section-header p {
    font-size: 1.15rem;
    color: var(--gray);
}

/* Grid of testimonial cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Quote styling */
.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-block-end: 1.8rem;
    font-style: italic;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    line-height: 1;
}

/* Author / photo */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA */
.testimonials-cta p {
    font-size: 1.15rem;
    margin-block-end: 1.5rem;
    color: var(--dark);
}

.testimonials-cta .btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(237,49,118,0.3);
}

/* Responsive */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 2.5rem;
    }

    .testimonial-card {
        padding: 2.5rem 2rem;
    }

    .testimonial-quote {
        font-size: 1.18rem;
    }
}

@media (min-width: 1024px) {
    .testimonials {
        padding-block: 8rem 6rem;
    }
}

/* ==========================================================================
   CTA / GET INVOLVED SECTION
   High-conversion • Urgent • Mobile-first • Donor-focused
   ========================================================================== */

.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding-block: clamp(5rem, 12vw, 8rem);
    position: relative;
    overflow: hidden;
}

/* Optional subtle background pattern or overlay */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2.4rem, 6.5vw, 3.6rem);
    margin-block-end: 1.25rem;
    color: white;
    text-align: center;
}

.cta-lead {
    font-size: clamp(1.2rem, 3.8vw, 1.45rem);
    max-width: 760px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

.cta-subtext {
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    opacity: 0.92;
    line-height: 1.6;
    text-align: center;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-block: 1rem 2.5rem;
}

.cta .btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 1.15rem;
    min-width: 240px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.28s ease;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cta .btn-primary:hover,
.cta .btn-primary:focus-visible {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.cta .btn-secondary {
    background: var(--secondary);
    color: white;
}

.cta .btn-outline {
    border: 2px solid white;
    color: white;
}

.cta .btn-outline:hover,
.cta .btn-outline:focus-visible {
    background: white;
    color: var(--primary);
}

.cta-trust {
    font-size: 0.95rem;
    opacity: 0.85;
    text-align: center;
}

/* ────────────────────────────────────────
   Responsive layout
   ──────────────────────────────────────── */

@media (min-width: 576px) {
    .cta-btns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .cta .btn-lg {
        min-width: 220px;
    }
}

@media (min-width: 768px) {
    .cta {
        padding-block: clamp(7rem, 14vw, 10rem);
    }

    .cta-lead {
        font-size: 1.5rem;
    }

    .cta .btn-lg {
        padding: 1.2rem 2.8rem;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   FOOTER
   Modern, informative, mobile-friendly, nonprofit style
   ========================================================================== */
.site-footer {
    background: #0f172a; /* deep navy - modern dark base */
    color: #cbd5e1;
    padding-block: 5rem 3rem;
    font-size: 0.95rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-block-end: 4rem;
    padding-block-end: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    max-width: 340px;
}

.footer-brand .logo img {
    max-height: 130px;
    width: auto;
    margin-block-end: 1.2rem;
}

.footer-tagline {
    line-height: 1.6;
    opacity: 0.85;
}

.footer-newsletter h4 {
    color: white;
    margin-block-end: 1rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 380px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px 0 0 50px;
    background: rgba(255,255,255,0.05);
    color: white;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 1.6rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem 2rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.15rem;
    margin-block-end: 1.2rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-block-end: 0.7rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-block-start: 3.5rem;
    padding-block-start: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.copyright {
    opacity: 0.75;
    margin-block-end: 0.6rem;
}

.footer-legal a {
    color: #94a3b8;
    margin: 0 0.8rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter {
        width: 100%;
        max-width: 420px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 50px;
    }
}