/* ============================================
   UNSTOPPABLE — STORIES THAT MOVE
   Main Stylesheet
   Custom HTML + CSS + PHP (No WordPress)
   ============================================ */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --teal-light: #62c8d6;
    --teal-medium: #00a0b1;
    --teal-primary: #2f7695;
    --teal-dark: #1d5a75;
    --orange-accent: #f16422;
    --orange-hover: #d9571d;
    --text-dark: #2c3e50;
    --text-gray: #5a6a7a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    color: var(--teal-primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--teal-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   NAVIGATION (shared)
   ============================================ */

/* Transparent nav (NPF-style) — default state */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo img {
    height: 70px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Default: show white logo, hide color logo */
.nav-logo .logo-color { display: none; }
.nav-logo .logo-white { display: block; }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* --- Nav hover: white bg, color logo, teal links --- */
.nav-header:hover {
    background: var(--white);
}

.nav-header:hover .logo-color { display: block; }
.nav-header:hover .logo-white { display: none; }

.nav-header:hover .nav-links a {
    color: var(--teal-primary);
    opacity: 1;
}

.nav-header:hover .nav-links a:hover {
    color: var(--teal-dark);
}

/* --- Internal pages: solid nav (no hero to overlay) --- */
.page-solid-nav .nav-header {
    position: relative;
    background: var(--white);
}

.page-solid-nav .nav-logo .logo-color { display: block; }
.page-solid-nav .nav-logo .logo-white { display: none; }
.page-solid-nav .nav-logo img { height: 80px; }

.page-solid-nav .nav-links a {
    color: var(--teal-primary);
}

.page-solid-nav .nav-links a:hover {
    color: var(--teal-dark);
    opacity: 1;
}

/* ============================================
   BUTTONS (shared)
   ============================================ */
.btn-donate {
    background: #c94e14;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-donate:hover {
    background: #a84010;
    opacity: 1 !important;
    text-decoration: none;
}

/* Solid nav donate button stays the same */
.page-solid-nav .btn-donate {
    background: #c94e14;
    color: var(--white) !important;
}

/* Donate link inside nav (mobile only) — hidden on desktop */
.nav-donate-link {
    display: none;
}

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.page-solid-nav .hamburger span {
    background: var(--teal-primary);
}

/* Animate to X when open */
.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--white);
}
.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--white);
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--white);
    color: var(--teal-dark);
    background: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-outline:hover {
    background: transparent;
    color: var(--white);
}

.btn-white {
    display: inline-block;
    padding: 14px 28px;
    background: var(--white);
    color: var(--teal-primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: all 0.3s;
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-teal {
    display: inline-block;
    padding: 12px 24px;
    background: var(--teal-primary);
    color: var(--white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    border: 2px solid var(--teal-primary);
    transition: all 0.3s;
}

.btn-teal:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--teal-primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    border: 2px solid var(--teal-primary);
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: var(--teal-primary);
    color: var(--white);
}

/* ============================================
   SECTION DIVIDER (shared)
   ============================================ */
.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 50px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #ccc;
}

.section-title::before { left: 0; }
.section-title::after { right: 0; }

/* ============================================
   PAGE HERO BANNER (internal pages)
   ============================================ */
.page-hero {
    position: relative;
    height: 300px;
    background-color: var(--teal-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 118, 149, 0.75);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero .page-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.page-hero h1 {
    font-size: 42px;
    color: var(--white);
    font-weight: 700;
}

/* ============================================
   CONTENT SECTION (internal pages)
   ============================================ */
.content-section {
    padding: 60px 40px;
    background: var(--white);
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.content-narrow p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.content-narrow h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
    margin-top: 40px;
}

.content-narrow h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
}

/* ============================================
   ALTERNATING IMAGE/TEXT ROWS (Our Work style)
   ============================================ */
.alt-row {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.alt-row:nth-child(even) {
    flex-direction: row-reverse;
}

.alt-row-image {
    flex: 0 0 45%;
}

.alt-row-image img {
    width: 100%;
    height: auto;
    display: block;
}

.alt-row-text {
    flex: 1;
}

.alt-row-text h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.alt-row-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* ============================================
   CARD GRID (shared)
   ============================================ */
.card-grid {
    display: grid;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    overflow: hidden;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Featured card (large) */
.card-featured {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.card-featured .card-image {
    flex: 0 0 45%;
    height: 300px;
}

.card-featured .card-content {
    flex: 1;
    padding: 0;
}

/* ============================================
   STATS / BY THE NUMBERS (shared)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item .number {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.stat-item .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-gray);
    letter-spacing: 2px;
    margin: 10px 0;
}

.stat-item .description {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    max-width: 250px;
    margin: 0 auto;
}

/* ============================================
   CTA SECTIONS (shared)
   ============================================ */
.cta-section {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    background-color: var(--teal-primary);
    background-size: cover;
    background-position: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 118, 149, 0.9);
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ============================================
   NEWSLETTER SECTION (shared)
   ============================================ */
.newsletter-section {
    position: relative;
    padding: 80px 40px;
    background-image: url('/img/cta-background.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 118, 149, 0.9);
    z-index: 0;
}

.newsletter-section > * {
    position: relative;
    z-index: 1;
}

.newsletter-section h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 20px;
}

.newsletter-section p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ============================================
   PARTNERS SECTION (shared)
   ============================================ */
.partners-section {
    padding: 80px 40px;
    background: var(--white);
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.partner-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partners-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partners-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* ============================================
   FOOTER (shared)
   ============================================ */
.footer {
    background: var(--teal-primary);
    color: var(--white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px;
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand img {
    max-width: 250px;
    height: auto;
}

.footer-contact p {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-newsletter h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-newsletter > p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.footer-main > * { min-width: 0; }

.newsletter-form input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form .email-field {
    grid-column: 1 / -1;
}

.newsletter-form button {
    grid-column: 1 / -1;
    padding: 14px 24px;
    background: #c94e14;
    color: var(--white);
    border: none;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #a84010;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}

/* ============================================
   HOMEPAGE-SPECIFIC
   ============================================ */

/* Hero (full viewport) */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--teal-medium);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}

/* Top gradient overlay for nav readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(47, 118, 149, 0.78) 0%, rgba(47, 118, 149, 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(to top, rgba(47, 118, 149, 0.85) 0%, rgba(47, 118, 149, 0.6) 40%, transparent 50%);
}

.hero-text-box {
    max-width: 80%;
}

.hero-text-box h2 {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-text-box p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-banner {
    background: var(--teal-primary);
    padding: 20px 40px;
    text-align: center;
}

.hero-banner h1 {
    font-size: 42px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-banner h1 span {
    color: var(--orange-accent);
}

/* Stats with integrated photo */
.stats-photo-section {
    position: relative;
    min-height: 900px;
    text-align: center;
    background-color: #c5c5c5;
    background-size: cover;
    background-position: center bottom;
}

.stats-photo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,1) 0%, 
        rgba(255,255,255,1) 30%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 70%,
        rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.stats-photo-section .stats-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px 350px;
}

.stats-photo-section h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.stats-photo-section > .stats-content > p {
    color: var(--text-gray);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Programs section */
.programs-section {
    padding: 60px 0 60px 40px;
    background-color: var(--white);
}

.programs-intro {
    text-align: left;
    max-width: 900px;
    margin: 0 0 40px 70px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.programs-wrapper {
    position: relative;
    margin-left: auto;
    margin-right: 0;
    max-width: 95%;
    padding: 60px 0 60px 60px;
    background-size: cover;
    background-position: center right;
}

.programs-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
}

.programs-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.program-card {
    position: relative;
    aspect-ratio: 2 / 3;
    background-color: #888;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0s;
    z-index: 1;
}

.program-card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.program-card h3 {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
}

/* Our Work cards */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.work-card {
    background: var(--white);
    text-align: center;
}

.work-card-image {
    height: 300px;
    background: #e0e0e0;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content {
    padding: 25px;
}

.work-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.work-card p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid,
    .card-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 12px;
    }

    .alt-row,
    .alt-row:nth-child(even) {
        flex-direction: column;
    }

    .alt-row-image {
        flex: none;
        width: 100%;
    }

    .card-featured {
        flex-direction: column;
    }

    .card-featured .card-image {
        flex: none;
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================
   BLOG (Substack RSS feed)
   ============================================ */
.blog-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-featured {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.blog-featured-image {
    flex: 1;
    min-width: 0;
}

.blog-featured-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.blog-featured-content {
    flex: 1;
}

.blog-featured-content h2 {
    margin: 8px 0 16px;
    font-size: 28px;
    line-height: 1.3;
}

.blog-featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-featured-content h2 a:hover {
    color: var(--teal-primary);
}

.blog-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin: 8px 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.blog-card-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card-content h3 a:hover {
    color: var(--teal-primary);
}

.blog-card-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Blog empty state */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty-icon {
    color: var(--teal-light);
    margin-bottom: 20px;
}

.blog-empty h2 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.blog-empty p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Blog single post */
.blog-post-container {
    max-width: 740px;
    margin: 0 auto;
}

.blog-post-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body a {
    color: var(--teal-primary);
    text-decoration: underline;
}

.blog-post-body a:hover {
    color: var(--teal-dark);
}

.blog-post-featured-image {
    margin-bottom: 30px;
}

.blog-post-featured-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.blog-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
    gap: 20px;
}

.blog-nav-link {
    text-decoration: none;
    max-width: 45%;
}

.blog-nav-prev {
    text-align: left;
}

.blog-nav-next {
    text-align: right;
    margin-left: auto;
}

.blog-nav-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--teal-primary);
    margin-bottom: 4px;
}

.blog-nav-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.blog-nav-link:hover .blog-nav-title {
    color: var(--teal-primary);
}

@media (max-width: 768px) {
    .blog-featured {
        flex-direction: column;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-post-nav {
        flex-direction: column;
    }
    .blog-nav-link {
        max-width: 100%;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form-wrap h2 {
    margin-bottom: 24px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form label span {
    color: var(--orange-accent);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 3px rgba(47, 118, 149, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-teal {
    display: inline-block;
    padding: 14px 32px;
    background: var(--teal-primary);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-teal:hover {
    background: var(--teal-dark);
}

.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success h3 {
    margin: 16px 0 8px;
    color: var(--teal-primary);
}

.contact-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #cc3333;
    font-size: 14px;
}

.contact-info-block {
    margin-bottom: 30px;
}

.contact-info-block h3 {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.contact-info-block h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--teal-primary);
}

.contact-info-block p {
    margin-bottom: 4px;
    color: var(--text-gray);
}

.contact-info-block a {
    color: var(--teal-primary);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-socials a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-light);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.contact-socials a:hover {
    background: var(--teal-primary);
    color: var(--white);
}

.contact-map {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   EPISODE LIST (Podcast page)
   ============================================ */
.episode-list-scroll {
    max-width: 900px;
    margin: 0 auto;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Styled scrollbar */
.episode-list-scroll::-webkit-scrollbar {
    width: 6px;
}
.episode-list-scroll::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}
.episode-list-scroll::-webkit-scrollbar-thumb {
    background: var(--teal-light);
    border-radius: 3px;
}
.episode-list-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--teal-primary);
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 15px;
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
}

.episode-item:hover {
    background: var(--gray-light);
}

.episode-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--teal-primary);
    min-width: 32px;
    text-align: center;
}

.episode-info {
    flex: 1;
}

.episode-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.episode-info p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

.episode-duration {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

@media (max-width: 600px) {
    .episode-item {
        gap: 12px;
    }
    .episode-info h4 {
        font-size: 14px;
    }
}

/* ============================================
   MOBILE NAV (1125px and below)
   ============================================ */
@media (max-width: 1125px) {
    /* --- Hamburger visible --- */
    .hamburger {
        display: block;
    }

    /* --- Hide desktop donate button --- */
    .nav-donate-desktop {
        display: none;
    }

    /* --- Show donate link in nav dropdown --- */
    .nav-donate-link {
        display: block !important;
    }

    /* --- Nav header: row layout with logo + hamburger --- */
    .nav-header {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 12px 20px;
    }

    .nav-left {
        flex-direction: row;
        align-items: center;
        gap: 0;
        flex: 1;
    }

    .nav-logo img,
    .page-solid-nav .nav-logo img {
        height: 50px;
        width: auto !important;
    }

    /* --- Nav links: hidden dropdown --- */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--teal-primary);
        padding: 10px 0 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }

    .nav-links a {
        display: block;
        padding: 14px 24px;
        color: var(--white) !important;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        opacity: 1;
    }

    /* Donate button inside nav */
    .nav-links .btn-donate {
        margin: 15px 24px 0;
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: none;
    }

    /* --- Open state --- */
    .nav-open .nav-links {
        display: flex;
    }

    .nav-open.nav-header {
        background: var(--teal-primary);
    }

    /* When open, always show white logo */
    .nav-open .logo-color { display: none !important; }
    .nav-open .logo-white { display: block !important; }

    /* Solid-nav pages: show white logo when open */
    .page-solid-nav .nav-open .logo-color { display: none !important; }
    .page-solid-nav .nav-open .logo-white { display: block !important; }
    .page-solid-nav .nav-open .hamburger span { background: var(--white); }

    /* Override hover effects on mobile — transparent nav only */
    .nav-header:hover {
        background: transparent;
    }
    .nav-header:hover .logo-color { display: none; }
    .nav-header:hover .logo-white { display: block; }
    .nav-header:hover .nav-links a { color: var(--white); }

    /* Solid nav: keep color logo on hover */
    .page-solid-nav .nav-header:hover .logo-color { display: block; }
    .page-solid-nav .nav-header:hover .logo-white { display: none; }

    .nav-open.nav-header:hover {
        background: var(--teal-primary);
    }

    /* Solid nav on mobile: keep the solid white background */
    .page-solid-nav .nav-header {
        background: var(--white);
    }
    .page-solid-nav .nav-header:hover {
        background: var(--white);
    }
    .page-solid-nav .nav-open.nav-header,
    .page-solid-nav .nav-open.nav-header:hover {
        background: var(--teal-primary);
    }
}

/* ============================================
   MOBILE HERO (640px and below)
   ============================================ */
@media (max-width: 640px) {
    /* --- Hero: left-aligned text pinned to bottom, teal overlay, no CTA button --- */
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 0 20px 30px;
        background: linear-gradient(to top, rgba(47, 118, 149, 0.92) 0%, rgba(47, 118, 149, 0.75) 40%, transparent 60%);
    }

    .hero-text-box {
        max-width: 100%;
    }

    .hero-text-box h2 {
        font-size: 24px;
        text-align: left;
    }

    .hero-text-box p {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }

    /* Hide Support Our Work button on mobile */
    .hero-content .btn-outline {
        display: none;
    }

    .hero-banner h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .programs-grid,
    .card-grid.cols-2,
    .card-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .partners-logos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .content-section {
        padding: 40px 20px;
    }
}

/* ============================================
   RESPONSIVE BACKGROUND IMAGES (AVIF + WebP)
   Desktop: 1920w | Tablet: 1024w | Mobile: 640w
   ============================================ */

/* --- Hero Section --- */
.bg-hero {
    background-image: url('/img/final-post-its.webp');
    background-image: image-set(
        url('/img/final-post-its-1920.avif') type('image/avif'),
        url('/img/final-post-its.webp') type('image/webp')
    );
}

/* --- Stats Section --- */
.bg-stats {
    background-image: url('/img/Canoe-Marathon.webp');
    background-image: image-set(
        url('/img/Canoe-Marathon-1920.avif') type('image/avif'),
        url('/img/Canoe-Marathon.webp') type('image/webp')
    );
}

/* --- Programs Wrapper --- */
.bg-programs {
    background-image: url('/img/Sally-and-Levi-Shank-Winnipeg.webp');
    background-image: image-set(
        url('/img/Sally-and-Levi-Shank-Winnipeg-1920.avif') type('image/avif'),
        url('/img/Sally-and-Levi-Shank-Winnipeg.webp') type('image/webp')
    );
}

/* --- Program Cards --- */
.bg-card-youth {
    background-image: url('/img/kids-in-hospitals.webp');
    background-image: image-set(
        url('/img/kids-in-hospitals-1920.avif') type('image/avif'),
        url('/img/kids-in-hospitals.webp') type('image/webp')
    );
}
.bg-card-research {
    background-image: url('/img/illuminate-the-path.webp');
    background-image: image-set(
        url('/img/illuminate-the-path-1920.avif') type('image/avif'),
        url('/img/illuminate-the-path.webp') type('image/webp')
    );
}
.bg-card-sports {
    background-image: url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg.webp');
    background-image: image-set(
        url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg-1920.avif') type('image/avif'),
        url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg.webp') type('image/webp')
    );
}
.bg-card-community {
    background-image: url('/img/Sally-Thanh-Michelle-NYC-dock-2023.webp');
    background-image: image-set(
        url('/img/Sally-Thanh-Michelle-NYC-dock-2023-1920.avif') type('image/avif'),
        url('/img/Sally-Thanh-Michelle-NYC-dock-2023.webp') type('image/webp')
    );
}

/* --- CTA Section --- */
.bg-cta-lab {
    background-image: url('/img/sally-laboratory-professional.webp');
    background-image: image-set(
        url('/img/sally-laboratory-professional-1920.avif') type('image/avif'),
        url('/img/sally-laboratory-professional.webp') type('image/webp')
    );
}
.bg-cta-default {
    background-image: url('/img/cta-background.webp');
    background-image: image-set(
        url('/img/cta-background-1920.avif') type('image/avif'),
        url('/img/cta-background.webp') type('image/webp')
    );
}

/* --- Podcast CTA --- */
.bg-cta-tokyo {
    background-image: url('/img/sally-tokyo-marathon.jpg');
    background-image: image-set(
        url('/img/sally-tokyo-marathon-1920.avif') type('image/avif'),
        url('/img/sally-tokyo-marathon.jpg') type('image/jpeg')
    );
}

/* --- Sally Story (About page hero) --- */
.bg-illuminate-sally {
    background-image: url('/img/illuminate-the-path-sally.webp');
    background-image: image-set(
        url('/img/illuminate-the-path-sally-1920.avif') type('image/avif'),
        url('/img/illuminate-the-path-sally.webp') type('image/webp')
    );
}

/* --- Page Heroes (reuse existing bg classes) --- */
/* .bg-hero = final-post-its (homepage, podcast, about) */
/* .bg-stats = Canoe-Marathon (events, our-work) */

/* --- Tablet: 1024w images --- */
@media (max-width: 1024px) {
    .bg-hero {
        background-image: url('/img/final-post-its.webp');
        background-image: image-set(
            url('/img/final-post-its-1024.avif') type('image/avif'),
            url('/img/final-post-its.webp') type('image/webp')
        );
    }
    .bg-stats {
        background-image: image-set(
            url('/img/Canoe-Marathon-1024.avif') type('image/avif'),
            url('/img/Canoe-Marathon.webp') type('image/webp')
        );
    }
    .bg-programs {
        background-image: image-set(
            url('/img/Sally-and-Levi-Shank-Winnipeg-1024.avif') type('image/avif'),
            url('/img/Sally-and-Levi-Shank-Winnipeg.webp') type('image/webp')
        );
    }
    .bg-card-youth { background-image: image-set(url('/img/kids-in-hospitals-1024.avif') type('image/avif'), url('/img/kids-in-hospitals.webp') type('image/webp')); }
    .bg-card-research { background-image: image-set(url('/img/illuminate-the-path-1024.avif') type('image/avif'), url('/img/illuminate-the-path.webp') type('image/webp')); }
    .bg-card-sports { background-image: image-set(url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg-1024.avif') type('image/avif'), url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg.webp') type('image/webp')); }
    .bg-card-community { background-image: image-set(url('/img/Sally-Thanh-Michelle-NYC-dock-2023-1024.avif') type('image/avif'), url('/img/Sally-Thanh-Michelle-NYC-dock-2023.webp') type('image/webp')); }
    .bg-cta-lab { background-image: image-set(url('/img/sally-laboratory-professional-1024.avif') type('image/avif'), url('/img/sally-laboratory-professional.webp') type('image/webp')); }
    .bg-cta-default { background-image: image-set(url('/img/cta-background-1024.avif') type('image/avif'), url('/img/cta-background.webp') type('image/webp')); }
    .bg-cta-tokyo { background-image: image-set(url('/img/sally-tokyo-marathon-1024.avif') type('image/avif'), url('/img/sally-tokyo-marathon.jpg') type('image/jpeg')); }
    .bg-illuminate-sally { background-image: image-set(url('/img/illuminate-the-path-sally-1024.avif') type('image/avif'), url('/img/illuminate-the-path-sally.webp') type('image/webp')); }
}

/* --- Mobile: 640w images --- */
@media (max-width: 640px) {
    .bg-hero {
        background-image: url('/img/final-post-its.webp');
        background-image: image-set(
            url('/img/final-post-its-640.avif') type('image/avif'),
            url('/img/final-post-its.webp') type('image/webp')
        );
    }
    .bg-stats {
        background-image: image-set(
            url('/img/Canoe-Marathon-640.avif') type('image/avif'),
            url('/img/Canoe-Marathon.webp') type('image/webp')
        );
    }
    .bg-programs {
        background-image: image-set(
            url('/img/Sally-and-Levi-Shank-Winnipeg-640.avif') type('image/avif'),
            url('/img/Sally-and-Levi-Shank-Winnipeg.webp') type('image/webp')
        );
    }
    .bg-card-youth { background-image: image-set(url('/img/kids-in-hospitals-640.avif') type('image/avif'), url('/img/kids-in-hospitals.webp') type('image/webp')); }
    .bg-card-research { background-image: image-set(url('/img/illuminate-the-path-640.avif') type('image/avif'), url('/img/illuminate-the-path.webp') type('image/webp')); }
    .bg-card-sports { background-image: image-set(url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg-640.avif') type('image/avif'), url('/img/Sally-and-Levi-Shank-and-Mike-in-orange-shirt-Winnipeg.webp') type('image/webp')); }
    .bg-card-community { background-image: image-set(url('/img/Sally-Thanh-Michelle-NYC-dock-2023-640.avif') type('image/avif'), url('/img/Sally-Thanh-Michelle-NYC-dock-2023.webp') type('image/webp')); }
    .bg-cta-lab { background-image: image-set(url('/img/sally-laboratory-professional-640.avif') type('image/avif'), url('/img/sally-laboratory-professional.webp') type('image/webp')); }
    .bg-cta-default { background-image: image-set(url('/img/cta-background-640.avif') type('image/avif'), url('/img/cta-background.webp') type('image/webp')); }
    .bg-cta-tokyo { background-image: image-set(url('/img/sally-tokyo-marathon-640.avif') type('image/avif'), url('/img/sally-tokyo-marathon.jpg') type('image/jpeg')); }
    .bg-illuminate-sally { background-image: image-set(url('/img/illuminate-the-path-sally-640.avif') type('image/avif'), url('/img/illuminate-the-path-sally.webp') type('image/webp')); }
}
