/* ==========================================================================
   Janet Foundation - Design System & Custom Stylesheet
   Color Theme:
   - Navy Blue: #1F3A5F
   - Accent Gold: #E2B84A
   - Background Cream: #FAF6ED
   ========================================================================== */

:root {
    /* This site is designed for light mode only. Without this declaration,
       some mobile browsers (notably Android Chrome's "Force Dark" feature)
       will auto-invert/tint the page, breaking card backgrounds and text
       contrast in ways that look like layout bugs but aren't. */
    color-scheme: light;

    /* Color Palette */
    --primary-navy: #1F3A5F;
    --primary-navy-dark: #142640;
    --primary-navy-light: #2c4e7d;
    --accent-gold: #BEBA69;
    --accent-gold-hover: #88854B;
    --accent-gold-light: #F5F5E9;
    --bg-cream: #FAF6ED;
    --bg-white: #ffffff;
    --text-dark: #1c2534;
    --text-muted: #5b687a;
    --text-light: #ffffff;
    --text-light-muted: #e2e8f0;
    --border-color: rgba(31, 58, 95, 0.12);
    --border-light: rgba(255, 255, 255, 0.25);

    /* Glassmorphism Design Tokens */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-bg-dark: rgba(31, 58, 95, 0.88);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 16px 40px rgba(31, 58, 95, 0.14);
    --glass-blur: blur(16px);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Styled Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-navy-light);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ==========================================================================
   Custom Preloader Screen
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-navy-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preloader-logo-img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(190, 186, 105, 0.45));
    animation: preloader-pulse 1.8s infinite ease-in-out;
}

.preloader-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 700;
    margin-top: 0.5rem;
}

.preloader-tagline {
    font-size: 0.9rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.preloader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 1rem;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: break-word;
    word-break: break-word;
}

p { margin-bottom: 1rem; overflow-wrap: break-word; word-break: break-word; }
p:last-child { margin-bottom: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.text-center { text-align: center; }
.text-light { color: var(--text-light) !important; }
.text-light-muted { color: var(--text-light-muted) !important; }

/* Section Badges & Titles */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(226, 184, 74, 0.15);
    color: var(--primary-navy);
    border: 1px solid rgba(226, 184, 74, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.text-center-badge {
    margin-left: auto;
    margin-right: auto;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-gold);
    border-color: rgba(226, 184, 74, 0.4);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

/* Button Components & Glow Micro-Interaction */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    white-space: nowrap;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}
.btn-gold:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(226, 184, 74, 0.45);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}
.btn-glow:hover::after {
    transform: rotate(30deg) translate(50%, 50%);
}

.btn-navy {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}
.btn-navy:hover {
    background-color: var(--primary-navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 58, 95, 0.35);
}

.btn-outline-light {
    background: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}
.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}
.btn-whatsapp:hover {
    background-color: #1eb956;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* Skeleton Loader Effect */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Navbar & Navigation (High-Contrast Overlays Solved)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
}

/* Permanent scrim behind the unscrolled navbar so nav text is always
   readable and visually separated from the hero content beneath it,
   regardless of which slide/background is showing. */
.navbar:not(.scrolled)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.15) 80%, rgba(10, 18, 32, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

/* State 1: Navbar at top over dark hero */
.navbar:not(.scrolled) .brand-name {
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}
.navbar:not(.scrolled) .brand-tagline {
    color: #FFDD88 !important;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.navbar:not(.scrolled) .nav-link {
    color: #FFFFFF !important;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: #FFDD88 !important;
}
.navbar:not(.scrolled) .hamburger-btn {
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

/* State 2: Navbar scrolled over light background */
.navbar.scrolled {
    padding: 0.75rem 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(31, 58, 95, 0.08);
}
.navbar.scrolled .brand-name {
    color: var(--primary-navy);
}
.navbar.scrolled .brand-tagline {
    color: var(--text-muted);
}
.navbar.scrolled .nav-link {
    color: var(--text-dark);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-navy);
}
.navbar.scrolled .hamburger-btn {
    color: var(--primary-navy);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    padding: 0 1rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-img {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo-img {
    height: 42px;
}

.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.brand-tagline {
    display: block;
    font-size: 0.725rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Hero Section & 3-Slide Auto Slider
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-navy-dark);
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
    display: flex;
    align-items: center;
    padding: 10rem 0 6rem 0;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.95) 0%, rgba(24, 45, 74, 0.90) 60%, rgba(0, 0, 0, 0.86) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content-full {
    max-width: 880px;
    margin: 0 auto;
    color: var(--text-light);
    text-align: center;
}

/* Slide Content Keyframe Animations */
.hero-slide.active .animate-badge { animation: fadeInDown 0.8s ease forwards; }
.hero-slide.active .animate-title { animation: fadeInUp 0.9s ease forwards 0.15s; }
.hero-slide.active .animate-subtitle { animation: fadeInUp 0.9s ease forwards 0.3s; }
.hero-slide.active .animate-cta { animation: fadeInUp 0.9s ease forwards 0.45s; }
.hero-slide.active .animate-trust { animation: fadeIn 1s ease forwards 0.6s; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(226, 184, 74, 0.22);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.18;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-light-muted);
    margin-bottom: 2.25rem;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-light-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-item i { color: var(--accent-gold); }

/* Slider Navigation Controls */
.hero-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(20, 38, 64, 0.65);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active,
.dot:hover {
    background: var(--accent-gold);
    width: 24px;
    border-radius: var(--radius-full);
}

/* Glassmorphic Container Standards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

.glass-card-solid {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(31, 58, 95, 0.05);
    padding: 3rem;
}

/* ==========================================================================
   Mission Section
   ========================================================================== */
.mission-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--primary-navy);
    text-align: center;
    max-width: 850px;
    margin: 1.5rem auto 3rem auto;
    position: relative;
    line-height: 1.6;
}

.vision-mission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 1.75rem auto 2rem auto;
}

.vm-block {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
}

.vm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold-hover);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.vm-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.mission-body-copy {
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.7;
}

.mission-photo {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md, 12px);
    margin: 0 auto 2.5rem auto;
    box-shadow: var(--glass-shadow);
}

@media (max-width: 640px) {
    .mission-photo { height: 220px; }
}

.mission-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--bg-cream);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-normal);
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: 0 14px 32px rgba(31, 58, 95, 0.1);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem auto;
    transition: var(--transition-normal);
}

.pillar-card:hover .pillar-icon {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: rotateY(180deg);
}

.pillar-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Impact Metrics Counter Section
   ========================================================================== */
.impact-section {
    background: var(--primary-navy);
    color: var(--text-light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 2rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.impact-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold);
    box-shadow: 0 14px 36px rgba(226, 184, 74, 0.25);
}

.impact-icon-badge {
    width: 50px;
    height: 50px;
    background: rgba(226, 184, 74, 0.2);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem auto;
}

.counter-val {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.counter-desc {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

/* ==========================================================================
   Core Programs Preview Section
   ========================================================================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(226, 184, 74, 0.22);
    border-color: var(--accent-gold);
}

.program-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover .program-img {
    transform: scale(1.08);
}

.card-icon-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.program-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.program-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.program-features li i {
    color: var(--accent-gold);
}

.program-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.program-link:hover {
    color: var(--accent-gold);
    gap: 0.75rem;
}

/* ==========================================================================
   Stories Section (Blog-style teaser cards -> dedicated story pages)
   ========================================================================== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.story-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(31, 58, 95, 0.08);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(31, 58, 95, 0.14);
}

.story-card-img-wrap {
    height: 200px;
    overflow: hidden;
}

.story-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.story-card:hover .story-card-img-wrap img {
    transform: scale(1.06);
}

.story-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-gold-hover);
    margin-bottom: 0.6rem;
}

.story-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.story-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.story-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.story-card-link i {
    transition: var(--transition-fast);
}

.story-card:hover .story-card-link {
    color: var(--accent-gold-hover);
}

.story-card:hover .story-card-link i {
    transform: translateX(4px);
}

.stories-view-all {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ==========================================================================
   Founders / Leadership Page
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(31, 58, 95, 0.07);
    transition: var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(31, 58, 95, 0.12);
}

.team-avatar-initials {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
    border: 3px solid var(--accent-gold);
    color: var(--accent-gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold-hover);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.founder-spotlight {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 2.5rem;
    margin-top: -3.5rem;
}

.founder-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow);
}

.founder-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.founder-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .founder-spotlight {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        margin-top: -2rem;
        text-align: center;
    }
    .founder-photo { height: 280px; }
    .founder-content .section-title { text-align: center; }
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.board-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.board-avatar-initials {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 0.9rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold-light);
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.board-avatar-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 0.9rem auto;
    display: block;
    object-fit: cover;
    border: 3px solid var(--accent-gold-light);
}

.board-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.2rem;
}

.board-title {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.org-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 2.5rem auto 0 auto;
    text-align: center;
}

.page-hero {
    position: relative;
    padding: 11rem 0 5rem 0;
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.94) 0%, rgba(24, 45, 74, 0.90) 60%, rgba(0, 0, 0, 0.88) 100%),
                url('assets/gallery/community-children.jpg') center/cover no-repeat;
    text-align: center;
    color: var(--text-light);
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(226, 184, 74, 0.15);
    border: 1px solid rgba(226, 184, 74, 0.4);
    color: var(--accent-gold-light);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto;
}

.page-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.25rem;
}

.page-breadcrumb a {
    color: var(--accent-gold-light);
    text-decoration: none;
}

.page-breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Story Article Page
   ========================================================================== */
.article-wrapper {
    max-width: 780px;
    margin: -3.5rem auto 0 auto;
    position: relative;
    z-index: 2;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(31, 58, 95, 0.15);
    padding: 3rem;
}

.article-hero-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.article-gallery-wrap {
    margin: 2rem 0;
}

.article-gallery-viewport {
    position: relative;
}

.article-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    scrollbar-width: none;
}

.article-gallery::-webkit-scrollbar { display: none; }

.article-gallery img {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    scroll-snap-align: center;
    cursor: pointer;
}

.article-gallery-arrow {
    display: none; /* shown via JS only when there's more than 1 photo */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-navy);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

.article-gallery-arrow:hover { background: #fff; }
.article-gallery-arrow.prev { left: 12px; }
.article-gallery-arrow.next { right: 12px; }

@media (max-width: 640px) {
    /* Touch swipe already works here — arrows would just clutter a small screen */
    .article-gallery-arrow { display: none !important; }
}

.article-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.article-gallery-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-color, #d8d8d8);
    transition: background 0.2s ease, transform 0.2s ease;
}

.article-gallery-dots .dot.active {
    background: var(--primary-navy);
    transform: scale(1.25);
}

@media (max-width: 640px) {
    .article-gallery img { aspect-ratio: 1 / 1; }
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta-row img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.article-meta-name {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.article-meta-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-body p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 1.4rem;
}

.article-pullquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-navy);
    border-left: 4px solid var(--accent-gold);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
}

.article-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(31, 58, 95, 0.04);
    border-radius: var(--radius-sm);
}

.article-stat-item { text-align: center; }

.article-stat-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.article-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-cta-box {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--primary-navy);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-light);
}

.article-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.article-cta-box p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.article-nav-back:hover { color: var(--accent-gold-hover); }

.related-stories-section {
    background: rgba(31, 58, 95, 0.03);
    padding: 5rem 0;
    margin-top: 3rem;
}

/* ==========================================================================
   Get Involved Page
   ========================================================================== */
.gi-tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.gi-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.gi-block:last-child { border-bottom: none; }

.gi-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.gi-block.reverse .gi-block-visual { order: 2; }

.gi-block-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(226, 184, 74, 0.12);
    color: var(--accent-gold-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.gi-block h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    color: var(--primary-navy);
    margin-bottom: 0.9rem;
}

.gi-block p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.gi-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.gi-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.gi-checklist i {
    color: var(--accent-gold-hover);
    margin-top: 0.2rem;
}

.gi-block-visual {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    box-shadow: 0 10px 30px rgba(31, 58, 95, 0.1);
}

.gi-block-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gi-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.gi-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.gi-share-btn.whatsapp { background: #25D366; }
.gi-share-btn.x { background: #000; }
.gi-share-btn.facebook { background: #1877F2; }
.gi-share-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* Simple CTA strip used at the bottom of sub-pages */
.donation-cta-strip {
    background: linear-gradient(135deg, rgba(20, 38, 64, 0.92) 0%, rgba(31, 58, 95, 0.88) 100%), url('assets/campaign/crowd-tent-1.jpg') center/cover no-repeat;
    color: var(--text-light);
}

.donation-cta-strip .section-title { color: var(--text-light); }
.donation-cta-strip .section-subtitle { color: rgba(255,255,255,0.75); }


/* ==========================================================================
   Story / Beneficiary Spotlight Section
   ========================================================================== */
.story-section {
    background: rgba(31, 58, 95, 0.03);
}

.story-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.quote-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(31, 58, 95, 0.05);
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(226, 184, 74, 0.35);
    margin-bottom: 1rem;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: var(--primary-navy);
    margin-bottom: 2rem;
}

.beneficiary-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.beneficiary-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

/* ==========================================================================
   Beneficiary Testimonial Auto-Slider
   ========================================================================== */
.testimonial-slider {
    position: relative;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.testimonial-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.testimonial-arrow {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--primary-navy);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(31, 58, 95, 0.08);
}

.testimonial-arrow:hover {
    background: var(--primary-navy);
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.t-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.t-dot.active,
.t-dot:hover {
    background: var(--accent-gold);
    width: 22px;
    border-radius: var(--radius-full);
}

.beneficiary-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.beneficiary-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.beneficiary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-size: 0.725rem;
    background: var(--accent-gold-light);
    color: var(--primary-navy);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.story-image-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.story-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.story-overlay-stat {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.overlay-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.overlay-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Get Involved & Partnership Section
   ========================================================================== */
.involved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.involved-card {
    background: var(--bg-white);
    padding: 2.5rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-normal);
}

.involved-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(31, 58, 95, 0.08);
    border-color: var(--accent-gold);
}

.involved-icon {
    width: 64px;
    height: 64px;
    background: rgba(226, 184, 74, 0.15);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.5rem auto;
}

.involved-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.involved-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Dedicated Donation Section (Positioned Towards Bottom)
   ========================================================================== */
.donation-section-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(31, 58, 95, 0.08);
    padding: 3rem;
}

.donation-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.donation-split-grid > * {
    /* Grid items default to min-width:auto, which lets wide, non-wrapping
       content (like the 4-column amount button row below) force the
       whole grid — and the whole page — wider than the viewport. This
       lets a column shrink below its content's natural width instead. */
    min-width: 0;
}

.donation-info-side h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    margin-bottom: 1rem;
}

.donation-info-side > p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.donation-perks-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.perk-icon {
    width: 44px;
    height: 44px;
    background: rgba(226, 184, 74, 0.2);
    color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.perk-item strong {
    color: var(--primary-navy);
    font-size: 1rem;
    display: block;
}

.perk-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Interactive Donation Card */
.donation-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(31, 58, 95, 0.06);
}

.card-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--primary-navy);
    background: var(--accent-gold-light);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Frequency Toggle Switch */
.donation-frequency-switch {
    display: flex;
    background: rgba(31, 58, 95, 0.08);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 1.25rem;
}

.freq-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 0.65rem 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.freq-btn.active {
    background: var(--primary-navy);
    color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(31, 58, 95, 0.2);
}

/* Amount Presets */
.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-chip {
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    padding: 0.65rem 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-navy);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 44px;
    min-width: 0;
}

.amount-chip:hover,
.amount-chip.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: var(--primary-navy);
}

.custom-amount-group {
    position: relative;
    margin-bottom: 1rem;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--primary-navy);
}

#custom-amount {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
    outline: none;
    transition: var(--transition-fast);
    min-height: 48px;
}

#custom-amount:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(226, 184, 74, 0.2);
}

.donation-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(226, 184, 74, 0.12);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}
.donation-summary-note i {
    color: var(--primary-navy);
    margin-top: 2px;
}

.payment-security {
    text-align: center;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.donate-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-paystack-disabled {
    position: relative;
    background: #e9e9e9;
    color: #9a9a9a;
    cursor: not-allowed;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-paystack-disabled:hover { background: #e9e9e9; }

.coming-soon-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #cfcfcf;
    color: #6b6b6b;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.35rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details-list {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.detail-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-item strong {
    color: var(--primary-navy);
    display: block;
    font-size: 0.95rem;
}

.contact-detail-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.direct-whatsapp-box {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.direct-whatsapp-box .whatsapp-icon {
    font-size: 2rem;
    color: #25D366;
}

.contact-form-container {
    background: var(--bg-cream);
    padding: 2.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-form-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-white);
    outline: none;
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.15);
}

.form-group input.field-invalid,
.form-group textarea.field-invalid {
    border-color: #c0392b;
    background: #fdf2f1;
}

.form-group input.field-invalid:focus,
.form-group textarea.field-invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-group input.field-valid,
.form-group textarea.field-valid {
    border-color: #2f9e5c;
}

.field-error-msg {
    display: none;
    color: #c0392b;
    font-size: 0.775rem;
    margin-top: 0.35rem;
}

.form-group input.field-invalid + .field-error-msg,
.form-group textarea.field-invalid + .field-error-msg {
    display: block;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background: var(--primary-navy);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--accent-gold);
}

.footer-logo-img {
    height: 92px;
    width: auto;
}

.jof-fullname-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-light-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    margin-top: 0.4rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-light-muted);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.newsletter-desc {
    font-size: 0.85rem;
    color: var(--text-light-muted);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    min-height: 44px;
}

.newsletter-form button {
    background: var(--accent-gold);
    color: var(--primary-navy);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--accent-gold-hover);
}

.footer-security-badge {
    font-size: 0.775rem;
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-security-badge i { color: var(--accent-gold); }

.footer-reg-number {
    font-size: 0.7rem;
    color: rgba(226, 232, 240, 0.55);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

.footer-bottom {
    padding: 1.5rem 0;
    background: var(--primary-navy-dark);
    font-size: 0.825rem;
    color: var(--text-light-muted);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-light-muted);
}
.footer-legal a:hover {
    color: var(--accent-gold);
}

/* ==========================================================================
   Floating Actions & Toast Notification
   ========================================================================== */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 66px;
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.floating-whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
    transform: translateY(150%);
    opacity: 0;
    transition: var(--transition-normal);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9); }

.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
    .story-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .donation-split-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Screens & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .container { padding: 0 1.25rem; }

    .stories-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    .page-hero { padding: 9rem 0 4rem 0; }
    .article-wrapper { padding: 1.75rem 1.25rem; margin-top: -2rem; }
    .article-hero-img { height: 220px; }
    .article-stats-row { grid-template-columns: 1fr; gap: 0.75rem; }
    .gi-block, .gi-block.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
    .gi-block.reverse .gi-block-visual { order: 0; }
    .gi-block-visual { height: 220px; }

    .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .org-stats-strip { grid-template-columns: 1fr; gap: 1rem; }

    /* Navigation Mobile Overhaul */
    .hamburger-btn { display: block; }
    .btn-header-donate { display: none; }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 2rem 2rem 2rem;
        gap: 1.25rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.mobile-open {
        transform: translateX(0);
    }

    .navbar .nav-links.mobile-open .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark) !important;
        text-shadow: none !important;
    }

    .navbar .nav-links.mobile-open .nav-link.active,
    .navbar .nav-links.mobile-open .nav-link:hover {
        color: var(--primary-navy) !important;
    }

    /* Hero Section Mobile: kept as tight as possible so the container
       doesn't balloon past the viewport height. A tall container forces
       background-size:cover to zoom the photo in aggressively to fill
       it, which is what made the hero photos look oversized/cropped
       badly on mobile — this isn't really an image problem, it's a
       content-height problem. */
    .hero-slide {
        padding: 7rem 0 4.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.85rem, 7vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        margin-bottom: 1.25rem;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }

    /* Trust badges are supplementary and repeat what the subtitle already
       says — dropped on mobile specifically to keep the hero compact. */
    .hero-trust-badges {
        display: none;
    }

    /* Slider Controls Mobile: shrink & tuck closer to the edge so the
       pill never overlaps the CTA buttons above it */
    .hero-slider-controls {
        bottom: 1rem;
        gap: 0.75rem;
        padding: 0.35rem 0.85rem;
        transform: translateX(-50%) scale(0.85);
    }

    /* Mission Section Mobile */
    .glass-card-solid, .donation-section-wrapper {
        padding: 1.75rem 1.25rem;
    }
    .mission-pillars-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .vision-mission-row { grid-template-columns: 1fr; gap: 1rem; }

    /* Impact Section Mobile */
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .impact-card { padding: 1.5rem 1rem; }

    /* Programs Grid Mobile */
    .programs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .program-img-wrapper { height: 190px; }

    /* Beneficiary Story Mobile */
    .quote-card { padding: 1.75rem 1.25rem; }
    .story-img { height: 280px; }

    /* Overlay stat: on mobile, shrink to a compact badge tucked in the
       corner instead of a full-width bar across the bottom of the photo */
    .story-overlay-stat {
        left: auto;
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: 148px;
        padding: 0.65rem 0.85rem;
        border-radius: var(--radius-sm);
    }
    .story-overlay-stat .overlay-number { font-size: 1.05rem; }
    .story-overlay-stat .overlay-text { font-size: 0.65rem; line-height: 1.3; }

    /* Get Involved Mobile */
    .involved-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Donation Card Presets on Mobile */
    .amount-presets { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

    /* Contact Form Mobile */
    .contact-form-container { padding: 1.5rem 1.25rem; }
    .direct-whatsapp-box { text-align: center; align-items: center; }

    /* Footer Mobile */
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-content { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-legal { justify-content: center; }

    /* Floating WhatsApp Mobile */
    .floating-whatsapp-widget {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.65rem;
    }
    .whatsapp-tooltip { display: none; }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .impact-grid { grid-template-columns: 1fr; }
    .freq-btn { font-size: 0.825rem; }
    .toast-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}
