﻿/* =============== 1) Fluid Type & Spacing Tokens =============== */
:root {
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-6: 2rem;
}

* {
    margin: 0;
    padding: 0;
    scroll-padding-top: 80px;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
}

h1,
.hero-text h1 {
    font-size: clamp(1.9rem, 4.5vw + 0.6rem, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.4rem, 2.8vw + 0.6rem, 3rem);
}

h3 {
    font-size: clamp(1.1rem, 1.6vw + 0.6rem, 2rem);
}

.hero {
    min-height: 100dvh;
    padding-top: clamp(4rem, 6vw, 6rem);
}

.hero-content {
    gap: clamp(1.25rem, 3vw, 4rem);
    padding: clamp(2rem, 5vw, 6rem) var(--space-3) var(--space-6);
}

.hero-buttons {
    flex-wrap: wrap; /* allow wrap on smaller screens */
    row-gap: var(--space-2);
}

.section a,
h3 a {
    text-decoration: none;
}

.page-top-fill {
    width: 100%;
    height: 80px;
    background-color: #1b3557;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    width: 90px;
    height: 90px;
    background: url("../../images/rh_logo_sm_new.png") no-repeat center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 2rem;
}

/* Remove bullets and default list styling */
.nav-menu,
.nav-menu ul,
.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Fix layout for dropdown parent items */
.nav-menu {
    display: flex;
    gap: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
}

    /* Reset link styling */
    .nav-menu a {
        color: #f4b63a;
        font-size: 0.9rem;
        text-decoration: none;
    }

        /* Hover styling */
        .nav-menu a:hover {
            color: white;
        }

    /* Fix dropdown layout */
    .nav-menu .has-dropdown {
        position: relative;
    }

    /* Dropdown submenu */
    .nav-menu .dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #1b3557;
        padding: 0.5rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        min-width: 200px;
        z-index: 999;
    }

    /* Show dropdown on hover (desktop) */
    .nav-menu .has-dropdown:hover .dropdown {
        display: block;
    }

    /* Dropdown links */
    .nav-menu .dropdown li {
        display: block;
    }

    .nav-menu .dropdown a {
        display: block;
        padding: 0.75rem 1.25rem;
        color: #f4b63a;
        text-transform: none;
        font-weight: 600;
    }

        .nav-menu .dropdown a:hover {
            background: #0d223c;
            color: #fff;
        }

/* Shared Section Structure */
.section {
    padding: 4rem 1.5rem;
    margin: 0 auto;
    text-align: center;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section h2 {
    font-size: 2rem;
    color: #1b3557;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section h3 {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Three Column Card Layout */
.cards-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: stretch; /* This makes all items the same height */
}

.card {
    min-height: 320px;
    flex: 0 1 300px;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Optional: for spacing content vertically */
}

    .card:hover {
        transform: translateY(-5px);
    }

/* Two Column Layout */
.columns-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

/* Single Centered Text */
.centered-text {
    max-width: 700px;
    margin: 2rem auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Section background variants */
.bg-light {
    background-color: #f9f9f9;
}

.bg-cream {
    background-color: #fdf1d6;
}

.bg-dark {
    background-color: #1b3557;
    color: #fff;
}

.bg-accent {
    background-color: #f4b63a;
    color: #1b3557;
}

/* Optional text fixes for dark backgrounds */
.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

.bg-accent h2,
.bg-accent h3 {
    color: #1b3557;
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url("../../images/girl.webp") no-repeat center;
        background-size: cover;
        z-index: 0;
    }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fdf1d6;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f4b63a;
    font-weight: 400;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* don't wrap */
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #de3227;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

    .btn-primary:hover {
        background: #c53030;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(229, 62, 62, 0.6);
    }

.btn-secondary {
    background: #b8941f;
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

    .btn-secondary:hover {
        background: #b8941f;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    }

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subhero {
    min-height: 40vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: top center;
}

    .subhero .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .subhero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subhero p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

.hero.subhero::before {
    content: none !important;
}

.hero.subhero.about {
    background-image: url("../../images/subhero_haiti_sunlight.webp") !important;
}

.hero.subhero.trips {
    background-image: url("../../images/trips.jpg") !important;
}

.hero.subhero.volunteer {
    background-image: url("../../images/subhero_volunteer.jpg") !important;
}

.hero.subhero.faq {
    background-image: url("../../images/subhero_faq.jpg") !important;
}

.hero.subhero.team {
    background-image: url("../../images/subhero_haiti_staff.jpg") !important;
}

.hero.subhero.financials {
    background-image: url("../../images/subhero_financials.jpg") !important;
}

.hero.subhero.success {
    background-image: url("../../images/subhero_success_stories.jpg") !important;
}

.hero.subhero.news {
    background-image: url("/uploads/wix_migrated/492534_d6ae0741d5a844f6bbc16e8a6baff6c8~mv2.jpg") !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0); /* default transparent */
}

/* Example tint variants */
.tint-orange .hero-overlay {
    background-color: rgba(244, 182, 58, 0.4);
}

.tint-blue .hero-overlay {
    background-color: rgba(27, 53, 87, 0.4);
}

.tint-yellow .hero-overlay {
    background-color: rgba(255, 235, 130, 0.4);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.video-thumb {
    position: relative;
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    text-align: center;
}

.lazy-video {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

    .lazy-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .lazy-video .play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 60px;
        height: 60px;
        background: url("/images/play-icon.svg") no-repeat center center;
        background-size: contain;
        border: none;
        transform: translate(-50%, -50%);
        z-index: 2;
        pointer-events: none;
    }

/* Card Variants */
.card-image {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

    .card-image .card-overlay {
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        width: 100%;
        text-align: left;
    }

.image-card-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .image-card-grid .card {
        flex: 1;
        min-width: 250px;
    }

.card-light {
    background-color: #ffffff;
    color: #1b3557;
}

.card-dark {
    background-color: #1b3557;
    color: #ffffff;
}

h2 {
    font-size: 3rem;
    color: #1f2937;
    font-weight: 900;
}

h3 {
    font-size: 2rem;
    color: #1f2937;
    font-weight: 700;
}

.heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Why Haiti Section */
.why-haiti {
    background: #f8f9fa;
    padding: 6rem 0;
}

.why-haiti-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.haiti-flag {
    width: 72px;
    height: auto;
    object-fit: contain;
}

.why-haiti-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.why-haiti h2 {
    font-size: 3rem;
    color: #1f2937;
    font-weight: 900;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 1.5rem 1rem 1rem;
    border-radius: 15px;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* min-height: 340px; */
    transition: background-position 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    /* Animation base */
    opacity: 0;
    transform: translateY(20px);
}

    .stat-card.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* Dark overlay with optional blur */
    .stat-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        z-index: 0;
    }

    /* All child elements layered above overlay */
    .stat-card * {
        position: relative;
        z-index: 1;
    }

/* Number at the top */
.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Text under number, padded from icon */
.stat-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #f1f1f1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 2.5rem;
    min-height: 3.5rem; /* helps align cards visually */
}

/* Icon at bottom */
.stat-icon {
    font-size: 3rem;
    color: #ff6c6c;
    opacity: 0.85;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
    max-width: 150px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* About Section */
.about {
    background: #fdf1d6;
    padding: 6rem 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.headline-video {
    display: grid;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

    .headline-video h2 {
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1.4;
        color: #111827;
    }

.about-video video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.about-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

    .about-images img {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

.image-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-height: 400px; /* Ensures the container is tall enough */
}

.img-bottom {
    position: relative;
    top: -70px;
    left: -70px;
    z-index: 1;
}

.img-top {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 70%;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mission-highlight {
    background: rgba(212, 175, 55, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #d4af37;
    margin: 2rem 0;
}

    .mission-highlight h3 {
        //color: #d4af37;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

/* Statistics Section */
.statistics {
    background: white;
    padding: 6rem 0;
}

.statistics-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rh-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.statistics-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.statistics h2 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 900;
}

.statistics-subtitle {
    font-size: 1.2rem;
    color: #e53e3e;
    margin-bottom: 4rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.impact-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .impact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

.impact-number {
    font-size: 4rem;
    font-weight: 900;
    color: #d4af37;
    display: block;
    margin-bottom: 1rem;
}

.impact-label {
    font-size: 1.2rem;
    color: #1f2937;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notdone {
    background: white;
    padding: 6rem 0;
}

.notdone-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.notdone h2 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 900;
}

.notdone-subtitle {
    font-size: 1.2rem;
    color: #e53e3e;
    margin-bottom: 4rem;
}

.notdone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 400px;
    gap: 3rem;
}

/* Mission & Vision */
.mission-vision {
  background: #f8f9fa; /* soft neutral backdrop */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.mv-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* gold top accent bar */
.mv-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(to right, #f5d27d, #d4af37); /* your golds */
}

.mv-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #1b3557; /* RH deep blue */
  margin-bottom: 0.35rem;
}

.mv-title {
  margin: 0.1rem 0 0.8rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0b1220; /* dark readable */
}

.mv-body {
  color: #334155; /* slate text */
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 900px) {
  .mv-grid { grid-template-columns: 1fr; }
}


.becomeasponsor-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures ::before doesn't spill out */
    background-color: transparent;
}

    .becomeasponsor-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient( rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4) ), url("https://images.squarespace-cdn.com/content/v1/67eb04a3de791d79e20452d3/0eb22816-5a68-4a99-b769-3dbbe32cf75a/20171209_150340.jpg?format=2500w");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
        border-radius: 20px;
    }

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.jointhefoundry-card {
    background-image: url("https://images.squarespace-cdn.com/content/v1/67eb04a3de791d79e20452d3/bc8e2805-c84e-4ecb-93ee-e3fce4e4c1d2/IMG_1126.JPG?format=2500w"); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.praywiththeteam-card {
    background-image: url("https://images.squarespace-cdn.com/content/v1/67eb04a3de791d79e20452d3/edd1068b-a537-4c3b-a155-981dc4101450/be66f5a2-ef7b-4e5f-8902-6408b7f9e345_D087-0336-43_344217-scaled.jpg?format=2500w"); /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notdone-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Foundry Section - Forge-Inspired Styling */
.foundry {
    /* background: radial-gradient(circle at top left, #0f0f11, #070707); */
    background: linear-gradient(to right, #09082c, #140c2c);
    color: #f9f5e9;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    font-family: "Arial Black", sans-serif;
}

    .foundry::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none;
    }

.foundry-title {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

    .foundry-title img {
        max-width: 100%;
        height: auto;
    }

.foundry-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Glowing Title */
.foundry h2 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, #f5d27d, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    margin-bottom: 1rem;
}

.foundry-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f1f1f1;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

.foundry-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* RH modal (global) */
.rh-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

    .rh-modal[aria-hidden="false"] {
        display: flex;
    }

.rh-modal__dialog {
    position: relative;
    background: #fff;
    color: #0b1220;
    width: min(520px, 92vw);
    border-radius: 16px;
    padding: 22px 18px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.rh-modal__title {
    margin: 0 0 0.25rem;
    color: #ad1123;
    font-weight: 800;
}

.rh-modal__sub {
    color: #475569;
    margin: 0.25rem 0 1rem;
}

.rh-modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.rh-login label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0.4rem 0;
}

.rh-login input {
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 0.75rem;
}

.rh-login__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.rh-login__err {
    margin-top: 0.6rem;
    color: #b91c1c;
    background: #fee2e2;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 650px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-title {
    color: #ad1123;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal input {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.modal-body p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

    .modal-body p:last-child {
        margin-bottom: 0;
    }

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background: #ad1123;
    color: #fff;
}

    .btn-primary:hover {
        background: #92101d;
    }

.divider {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #777;
}

.close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Toggle feedback for plan & amount buttons */
.seg-btn,
.amt-btn,
.btn-choice {
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

    .seg-btn.is-active,
    .amt-btn.is-active,
    .seg-btn[aria-pressed="true"],
    .amt-btn[aria-pressed="true"],
    .btn-choice.is-active,
    .btn-choice[aria-pressed="true"] {
        background-color: #32477e; /* Restore Haiti red */
        border-color: #32477e;
        color: #fff;
        box-shadow: 0 0 0 2px rgba(173, 17, 35, 0.15);
    }

/* Glowing Donation Form */
.donation-form {
    background: linear-gradient( to bottom right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02) );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-weight: 700;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Selected state must win the cascade */
.donation-amounts .amount-btn.is-active,
.donation-amounts .amount-btn[aria-pressed="true"] {
    background: #d4af37;
    color: #1f1f1f;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

    /* Keep look on hover too */
    .donation-amounts .amount-btn.is-active:hover,
    .donation-amounts .amount-btn[aria-pressed="true"]:hover {
        background: #d4af37;
        color: #1f1f1f;
    }

.custom-amount {
    grid-column: span 2;
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-weight: 700;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .custom-amount::placeholder {
        color: #aaa;
    }

.monthly-option {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.section.bg-light {
    background: #f7f7f9;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.intro-heading {
    text-align: center;
    margin: 0 0 0.5rem;
    font: 800 1.8rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0b1220;
}

.intro-sub {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 1.5rem;
    color: #475569;
    font-size: 1.05rem;
}

.tier-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .tier-grid {
        grid-template-columns: 1fr;
    }
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .tier-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(2, 6, 23, 0.1);
    }

.tier-top,
.tier-bottom {
    position: relative;
    z-index: 2;
}

.tier-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-bottom {
    margin-top: auto;
    padding: 12px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-kicker {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
    border-radius: 999px;
}

.tier-title {
    margin: 0.1rem 0;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #0b1220;
}

.tier-blurb {
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.tier-points {
    font-weight: 700;
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
    color: #334155;
}

    .tier-points li {
        margin: 0.15rem 0;
    }

.tier-cta {
    display: inline-block;
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

    .tier-cta:hover {
        filter: brightness(1.05);
    }

.reassure {
    margin-top: 1.25rem;
    text-align: center;
    color: #475569;
    font-size: 1.4rem;
    font-weight: 600;
}

    .reassure .dot {
        margin: 0 0.5rem;
        opacity: 0.5;
    }

.tier-bottom a {
    color: #fff; /* white text */
    text-decoration: none; /* remove underline */
}

    .tier-bottom a:hover {
        color: #f0f0f0; /* softer white on hover (optional) */
    }

.sponsor-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

    .sponsor-card:hover {
        transform: translateY(-10px);
    }

.price {
    text-align: center;
    margin-bottom: 30px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ad1123;
    display: block;
}

.price-period {
    font-size: 1.2rem;
    color: #666;
    margin-top: -10px;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.benefits-list {
    list-style: none;
    margin-bottom: 30px;
}

    .benefits-list li {
        padding: 12px 0;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        color: #555;
        border-bottom: 1px solid #f0f0f0;
    }

        .benefits-list li:before {
            content: "✓";
            color: #4caf50;
            font-weight: bold;
            margin-right: 15px;
            font-size: 1.2rem;
        }

/* CTA Button */
.btn-join-foundry {
    background: linear-gradient(to right, #f5d27d, #d4af37);
    color: #1a1a1a;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

    .btn-join-foundry:hover {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
        background: linear-gradient(to right, #d4af37, #f5d27d);
    }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    text-align: center;
    margin-top: 3rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

    .team-member img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }

    .team-member h4 {
        margin: 0.2rem 0 0.4rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .team-member p {
        margin: 0;
        font-size: 0.9rem;
        color: #1b3557;
    }

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.faq-question {
    width: 100%;
    background: #f2f2f2;
    border: none;
    padding: 1rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

    .faq-question:hover {
        background: #e9e9e9;
    }

.faq-answer {
    display: none;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.faq-item.active .faq-answer,
.faq-item.open .faq-answer {
    display: block;
}

/* Volunteer grid reuses your card system */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .volunteer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .volunteer-grid {
        grid-template-columns: 1fr;
    }
}

.opp-card {
    position: relative;
    display: block;
    min-height: 320px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .opp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(2, 6, 23, 0.1);
    }

.card-media {
    position: absolute;
    inset: 0;
    background-image: var(--card-bg);
    flex: 0 0 200px; /* Fixed height for image area */
    background-size: 150px;
    background-repeat: no-repeat;
    background-position: center bottom;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.55) 25%, rgba(255, 255, 255, 0.25) 55%, rgba(15, 23, 42, 0.15) 100% );
}

.card-top,
.card-bottom {
    position: relative;
    z-index: 2;
    padding: 12px 14px;
}

.card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: 999px;
}

.card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 800;
    color: #0b1220;
}

.card-sub {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 500;
}

.status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b98133;
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
}

/* ===== Blog 3-wide card grid ===== */
.rh-card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    /* sm */
    .rh-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    /* lg */
    .rh-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rh-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.rh-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16/9; /* keeps uniform row heights */
    background: #f3f4f6;
}

    .rh-card__media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rh-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.rh-card__body {
    padding: 1rem 1rem 0;
}

.rh-card__date {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.rh-card__title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0 0 0.4rem;
}

    .rh-card__title a {
        text-decoration: none;
        color: #111827;
    }

        .rh-card__title a:hover {
            text-decoration: underline;
        }

.rh-card__excerpt {
    color: #374151;
    margin: 0.25rem 0 0.5rem;
}

.rh-card__actions {
    padding: 0 1rem 1rem;
    margin-top: auto;
}

/* Pagination – reuse your existing look if you already have it */
.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.25rem;
}

    .pagination a {
        padding: 0.4rem 0.7rem;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        text-decoration: none;
        color: #111;
    }

        .pagination a.active {
            background: #111;
            color: #fff;
            border-color: #111;
        }

.kid-app {
    margin: 1rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    font-family: inherit;
}

/* Toolbar */
.kid-toolbar {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(160px, 220px));
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

    .kid-toolbar input[type="search"],
    .kid-toolbar select {
        padding: 0.65rem 0.8rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        font-size: 0.95rem;
        background: #fff;
    }

        .kid-toolbar input[type="search"]::placeholder {
            color: #94a3b8;
        }

@media (max-width: 900px) {
    .kid-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

/* Grid */
.kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
}

/* Card */
.kid-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.kid-photo {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    background: #f1f5f9;
}

.kid-body {
    padding: 0.85rem 0.9rem;
    display: grid;
    gap: 0.35rem;
}

.kid-name {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
}

.kid-meta {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .kid-meta span {
        background: #f8fafc;
        border: 1px solid #eef2f7;
        border-radius: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

/* Status badge (optional) */
.kid-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.kid-status--open {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.kid-status--full {
    background: #fafafa;
    color: #6b7280;
}

/* CTA */
.kid-cta {
    margin: 0.7rem 0.9rem 1rem;
}

    .kid-cta a {
        display: block;
        text-align: center;
        background: #059669;
        color: #fff;
        padding: 0.6rem 0.8rem;
        border-radius: 0.7rem;
        font-weight: 700;
        text-decoration: none;
    }

        .kid-cta a:hover {
            background: #047857;
        }

/* Empty state */
.kid-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #475569;
    padding: 2rem 1rem;
}

/* Keep original table for no-JS fallback; hide once enhanced */
.kids-table {
    width: 100%;
    border-collapse: collapse;
}

    .kids-table th,
    .kids-table td {
        border: 1px solid #e5e7eb;
        padding: 0.5rem;
    }

    .kids-table.enhanced-hidden {
        display: none;
    }

/* Statistics Section */
.newsletter {
    background: #f8f9fa;
    padding: 6rem 0;
}

.newsletter-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-image {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.newsletter h2 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: 900;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    color: #e53e3e;
    margin-bottom: 4rem;
}

.newsletter-form-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ad1123;
}

.newsletter-form-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #333;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

    .newsletter-form .form-group {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .newsletter-form input[type="text"],
    .newsletter-form input[type="email"] {
        flex: 1;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

.site-footer {
    background: #1b3557;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    font-family: sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    max-height: 150px;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f4b63a; /* matches your footer link color */
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .footer-links a,
    .footer-links a:visited,
    .footer-links a:hover,
    .footer-links a:active {
        color: #f4b63a;
        text-decoration: none;
        font-weight: 600;
    }

.footer-social {
    margin-bottom: 1.5rem;
}

    .footer-social a {
        margin: 0 0.5rem;
        color: white;
        font-size: 1.5rem;
    }

.footer-contact {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

    .footer-contact a,
    .footer-contact a:visited,
    .footer-contact a:hover,
    .footer-contact a:active {
        color: white;
        text-decoration: none;
    }

.footer-legal {
    font-size: 0.85rem;
    color: #ccc;
}

    .footer-legal a,
    .footer-legal a:visited,
    .footer-legal a:hover,
    .footer-legal a:active {
        color: #ccc;
        text-decoration: underline;
    }

.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: #f4b63a;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 1.2rem;
}

.card-icon {
    max-width: 38vw;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

    .modal.is-open {
        display: flex;
    }

.modal__dialog {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 92%;
    padding: 1.2rem 1.2rem 1.4rem;
    border-top: 6px solid #1b3557;
}

.modal__title {
    margin: 0 0 0.25rem;
    color: #1b3557;
}

.modal__sub {
    margin: 0.1rem 0 1rem;
    color: #475569;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

/* Form */
.form-row {
    margin-bottom: 0.8rem;
}

    .form-row label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.3rem;
        color: #1b3557;
    }

    .form-row .req {
        color: #c53030;
        margin-left: 0.25rem;
    }

    .form-row input {
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        font-size: 1rem;
        background: #f7f7f9;
    }

        .form-row input:focus {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
            background: #fff;
        }

.form-actions {
    margin-top: 0.6rem;
}

.form-msg {
    margin-top: 0.8rem;
    font-weight: 600;
}

    .form-msg.ok {
        color: #059669;
    }

    .form-msg.err {
        color: #b91c1c;
    }

/* Accessibly hide text but keep for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        width: min(720px, 92vw);
        margin: 0 auto;
    }

    .header.is-open .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 1rem;
        top: 0.9rem;
        background: transparent;
        border: 0;
        font-size: 1.75rem;
        color: #f4b63a;
    }

    body.no-scroll {
        overflow: hidden;
    }
}
/* =============== 4) Grids: earlier collapse & consistent cards =============== */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .columns-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cards-3 {
        gap: 1.25rem;
    }

    .card {
        padding: 1.25rem;
    }

    .image-card-grid {
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .notdone-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }
}

/* Kids app card grid: tighter on smaller phones */
@media (max-width: 480px) {
    .kids-grid {
        grid-template-columns: 1fr;
    }

    .kid-card {
        border-radius: 0.8rem;
    }

    .kid-body {
        padding: 0.75rem;
    }
}

/* =============== 5) Forms, modals, and CTAs: friendlier on phones =============== */
@media (max-width: 640px) {
    .donation-amounts {
        grid-template-columns: 1fr 1fr;
    }

    .custom-amount {
        grid-column: 1 / -1;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .modal-content {
        margin: 12% auto;
        padding: 1.25rem;
        max-width: 520px;
    }
}

/* =============== 6) Subhero headings & overlays =============== */
.subhero h1 {
    font-size: clamp(1.4rem, 3.8vw + 0.4rem, 2rem);
}

.subhero p {
    font-size: clamp(0.95rem, 1.2vw + 0.6rem, 1.1rem);
}

/* =============== 7) Footer: tighter stack =============== */
@media (max-width: 640px) {
    .site-footer {
        padding: 2.5rem 1.25rem;
    }

    .footer-links {
        gap: 0.75rem;
    }
    .footer-tagline {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* =============== 8) Misc polish =============== */
/* Prevent layout shift for the fixed top filler on small screens */
@media (max-width: 768px) {
    .page-top-fill {
        height: 64px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .headline-video {
        order: 2;
        width: 100%;
        max-width: 500px;
        margin-top: 1.5rem;
    }

        .headline-video video {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

    .about-content h2 {
        font-size: 1.6rem;
        text-align: center;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .about-images {
        order: 3;
        margin-top: 2rem;
    }

    .img-top,
    .img-bottom {
        position: relative;
        margin: 0 auto;
        width: 90%;
        max-width: 300px;
        height: auto;
    }

    .img-top {
        top: -20px;
        z-index: 2;
    }

    .img-bottom {
        top: 0;
        z-index: 1;
    }

    .image-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .subhero {
        min-height: 50vh;
    }

    .page-top-fill {
        width: 100%;
        height: 80px;
        background-color: #1b3557;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 49;
        transition: opacity 0.3s ease;
        opacity: 1;
        pointer-events: none;
    }

    .scroll-top-fill {
        height: 80px;
        background-color: #1b3557;
        z-index: 10;
        width: 100%;
        position: sticky;
        top: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        background: #1b3557;
        padding: 2rem;
    }

        .nav-menu .dropdown {
            position: static;
            display: none;
            background: #1b3557;
            padding-left: 1rem;
            box-shadow: none;
        }

        .nav-menu .has-dropdown.open .dropdown {
            display: block;
        }

    .hero-content,
    .about-content,
    .foundry-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .foundry h2,
    .about-text h2,
    .why-haiti h2,
    .statistics h2 {
        font-size: 2.5rem;
    }

    .foundry-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .students-group {
        width: 280px;
        height: 320px;
    }

    .stats-grid,
    .impact-grid,
    .notdone-grid,
    .donation-amounts {
        grid-template-columns: 1fr;
    }

    .donation-amounts {
        grid-template-columns: 1fr;
    }

    .about-content,
    .notdone-grid,
    .foundry-content,
    .newsletter-form .form-group {
        grid-template-columns: 1fr !important;
    }

    .notdone-grid {
        height: auto;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal {
        text-align: center;
    }
}

#bioText {
    white-space: pre-line;
}

.bio-link {
    color: #1b3557;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none; /* override the global flex */
        width: min(720px, 92vw);
        margin: 0 auto;
        flex-direction: column;
        gap: 1rem;
    }
    /* Either body.is-menu-open ... */
    body.is-menu-open .nav-menu {
        display: flex;
    }
    /* ...or header.is-open (kept for compatibility) */
    .header.is-open .nav-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 1rem;
        top: 0.9rem;
        background: transparent;
        border: 0;
        font-size: 1.75rem;
        color: #f4b63a;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* Optional: allow hero buttons to wrap on small screens */
@media (max-width: 600px) {
    .hero-buttons {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.prose img.post-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin: 1rem 0;
}

.prose p,
.prose li {
    line-height: 1.7;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

    .pagination a {
        padding: 0.4rem 0.7rem;
        border: 1px solid #ddd;
        border-radius: 999px;
        text-decoration: none;
    }

        .pagination a.active {
            background: #111;
            color: #fff;
            border-color: #111;
        }
