/* =============================================
   BERACAH CHARITY & WELFARE FOUNDATION
   Core Design System - Premium Edition
   ============================================= */

:root {
    /* Primary Colors - Deep Blue (Trust & Stability) */
    --primary-blue: #0f172a;
    --primary-blue-light: #1e293b;
    --primary-blue-dark: #020617;

    /* Secondary Colors - Gold/Amber (Hope & Blessing) */
    --secondary-gold: #d97706;
    --secondary-gold-light: #fbbf24;
    --secondary-gold-dark: #b45309;

    /* Accents & Neutrals */
    --accent-glow: rgba(217, 119, 6, 0.3);
    --neutral-white: #ffffff;
    --neutral-light: #f8fafc;
    --neutral-gray: #64748b;
    --neutral-dark: #0f172a;
    --surface-glass: rgba(255, 255, 255, 0.7);
    --surface-glass-dark: rgba(15, 23, 42, 0.7);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-backdrop: blur(12px);
}

/* =============================================
   BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-blue);
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    /* Responsive range: 36px to 72px */
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 6vw, 3.25rem);
    /* Responsive range: 28px to 52px */
}

h3 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    /* Responsive range: 24px to 36px */
}

h4 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    /* Responsive range: 20px to 28px */
}

p {
    font-size: clamp(0.95rem, 1.1vw + 0.5rem, 1.125rem);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =============================================
   UTILITIES & ANIMATIONS
   ============================================= */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-panel-dark {
    background: var(--surface-glass-dark);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    color: var(--secondary-gold);
}

.text-blue {
    color: var(--primary-blue);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--neutral-white);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.5);
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--secondary-gold-dark) 100%);
    color: var(--neutral-white);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, var(--secondary-gold-light) 0%, var(--secondary-gold) 100%);
}

.btn-outline {
    border-color: var(--neutral-white);
    color: var(--neutral-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--neutral-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-outline-dark {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-dark:hover {
    background: var(--primary-blue);
    color: var(--neutral-white);
    transform: translateY(-3px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-gold);
}

.logo-text-small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-gray);
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-gray);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

/* Dropdown */
.nav-links li {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--neutral-white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 1rem;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: var(--transition);
}

.nav-links li:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: fadeIn 0.2s ease-out forwards;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.nav-dropdown-content a:hover {
    background: var(--neutral-light);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center items horizontally */
        gap: 1.5rem;
        /* Increased gap */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem 1rem;
        /* More padding */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links.active li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.active li a {
        display: block;
        font-size: 1.1rem;
        /* Larger text for mobile */
    }

    /* Show Dropdowns statically on mobile for now or style them */
    .nav-dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        /* Keep hidden until clicked/active? Or just show all? */
        border: none;
        padding: 0.5rem 0;
        transform: none;
        opacity: 1;
        text-align: center;
        min-width: auto;
    }

    .nav-links li:hover .nav-dropdown-content {
        display: block;
        /* Show on hover/tap */
    }

    .nav-cta {
        display: none;
        /* Still hidden, but we might want to show it via JS cloning or manual visibility */
    }

    /* If we want to show CTA in mobile menu, we'd need to restructure HTML or use JS. 
       For now, aligning the links is the request. */
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 90vh;
}

/* =============================================
   FIXED BACKGROUND SECTION (responsive fallback)
   Uses `images/full-shot-smiley-kid-outdoors.jpg` by default
   - desktop: background-attachment: fixed for a parallax-like look
   - mobile: attachment reset to scroll for smooth performance
   Accessibility: content sits above a translucent overlay to maintain contrast
   ============================================= */
.fixed-bg-section {
    position: relative;
    overflow: hidden;
}

.fixed-bg-section .fixed-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/full-shot-smiley-kid-outdoors.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: contrast(1) brightness(0.6);
    z-index: 0;
}

.fixed-bg-section .fixed-bg::after {
    /* subtle overlay to ensure readable text */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
}

.fixed-bg-section .fixed-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .fixed-bg-section .fixed-bg {
        background-attachment: scroll;
        background-position: center top;
    }

    .fixed-bg-section .fixed-content {
        padding: 3rem 0;
    }
}

.hero {
    display: flex;
    align-items: center;
    color: var(--neutral-white);
    padding: 7rem 0 4rem;
    overflow: hidden;
    background: var(--primary-blue);
}

/* Darker overlay for improved contrast on hero media */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.45));
    z-index: 1;
    /* Overlay on top of images */
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    /* Content on top of overlay */
}

/* Hero text shadows for better readability */
.hero-text h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-text p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    text-shadow:
        0 0 20px rgba(217, 119, 6, 0.6),
        0 0 40px rgba(217, 119, 6, 0.4),
        0 4px 12px rgba(217, 119, 6, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.4);
}


/* Hero actions spacing and donate button prominence */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-donate {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--secondary-gold-light) 100%);
    color: var(--neutral-white);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.25);
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(217, 119, 6, 0.32);
}

/* Floating donate handled via Tailwind utilities (removed custom styles) */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        gap: 0.5rem;
    }
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-container iframe,
.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    opacity: 0.6;
    /* Adjusted for better visibility */
    pointer-events: none;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Maintain iframe aspect ratio hack for fallbacks if needed */
.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.85) 50%,
            rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
    display: inline-block;
    color: var(--secondary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: rgba(217, 119, 6, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.hero-text h1 {
    color: var(--neutral-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.05;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Glass Card in Hero */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: white;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.hero-glass-card:hover {
    transform: rotate(0deg) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-hero h3 {
    color: var(--secondary-gold);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-item-hero p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: #94a3b8;
}

/* =============================================
   SECTIONS & COMPONENTS
   ============================================= */
.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

/* Programs page helpers */
/* =============================================
   PAGE HERO (GENERIC)
   ============================================= */
.page-hero {
    position: relative;
    padding: clamp(6rem, 15vh, 10rem) 0 clamp(4rem, 10vh, 6rem);
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
    color: var(--neutral-white);
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 45vh;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-hero-title {
    font-size: clamp(2.25rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--neutral-white);
    font-weight: 800;
}

.page-hero-lead {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        width: 92%;
    }
}

.program-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.program-img-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.45s var(--transition);
}

.program-img-wrapper:hover {
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .program-row {
        grid-template-columns: 1fr;
    }

    .program-img-wrapper {
        min-height: 220px;
    }
}

.program-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-text .section-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--secondary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(217, 119, 6, 0.06);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
}

.program-highlight {
    border-left: 4px solid var(--secondary-gold);
    padding: 1rem;
    border-radius: var(--radius-md);
    background: white;
}

.lead {
    color: var(--neutral-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Buttons: finer hover + focus styles */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.btn-outline:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* Subtle section entrance animation helpers */
.fade-init {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* CTA polishing */
.cta-section .cta-content {
    text-align: center;
}

.cta-section .btn {
    padding: 0.95rem 2rem;
}


.section-wrapper {
    position: relative;
    z-index: 10;
}

.bg-white {
    background: var(--neutral-white);
}

.bg-light {
    background: var(--neutral-light);
}

.bg-blue {
    background: var(--primary-blue);
    color: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-label {
    color: var(--secondary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

/* Program Cards (Feature Highlight) */
.program-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.program-card {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-gold);
}

.program-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .program-img img {
    transform: scale(1.1);
}

.program-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-icon {
    width: 60px;
    height: 60px;
    background: var(--neutral-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-gold);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--secondary-gold);
    color: white;
}

.program-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.program-card p {
    color: var(--neutral-gray);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    transition: gap 0.3s ease;
}

.btn-link:hover {
    gap: 1rem;
    color: var(--secondary-gold);
}

/* Impact & Stats */
.stats-section {
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-gold);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--neutral-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--neutral-light);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.quote-mark {
    font-size: 5rem;
    color: var(--secondary-gold);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--neutral-gray);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-gold);
}

.author-info h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--neutral-gray);
}

/* Contact/CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: var(--primary-blue-dark);
    color: #cbd5e1;
    padding: 5rem 0 0;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary-gold);
}

.footer-brand p {
    max-width: 300px;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-gold);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-gold);
    padding-left: 5px;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

.subscribe-form input:focus {
    border-color: var(--secondary-gold);
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .container {
        width: 92%;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-glass-card {
        margin: 2rem auto 0;
        max-width: 600px;
        transform: rotate(0);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu styles would go here, managed by JS */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-gray);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    background: #f8fafc;
    color: var(--primary-blue);
}

.form-input:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Donation Form Styles */
.frequency-btn {
    background: transparent;
    color: var(--neutral-gray);
    border: none;
    font-weight: 600;
}

.frequency-btn.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.amount-btn {
    padding: 1rem;
    border: 2px solid var(--neutral-light);
    border-radius: var(--radius-md);
    background: white;
    font-weight: 700;
    color: var(--neutral-gray);
    transition: all 0.2s ease;
    cursor: pointer;
}

.amount-btn:hover {
    border-color: var(--secondary-gold);
    color: var(--secondary-gold);
}

.amount-btn.active {
    border-color: var(--secondary-gold);
    background: rgba(217, 119, 6, 0.1);
    color: var(--secondary-gold);
}

/* Custom Input Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#custom-amount-container {
    animation: slideDown 0.3s ease-out;
}

.contact-info-card {
    background: var(--primary-blue);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.social-links-contact a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-links-contact a:hover {
    background: var(--secondary-gold);
    transform: translateY(-3px);
}

/* Map */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    margin-top: 5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Floating Donate Button */
.floating-donate {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--secondary-gold-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.floating-donate:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
    color: white;
}

.floating-donate i {
    font-size: 1.25rem;
}

/* Mobile specific for floating donate */
@media (max-width: 768px) {
    .floating-donate {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.85rem 1.5rem;
    }
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* =============================================
   NEW HERO COLLAGE STYLES
   ============================================= */
.hero-collage-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    gap: 1rem;
    padding: 2rem;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
    /* Slightly fade images so text pops */
}

.collage-item {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Staggered grid placement */
.collage-item:nth-child(1) {
    grid-area: 1 / 1 / 6 / 4;
    animation-delay: 0.1s;
}

.collage-item:nth-child(2) {
    grid-area: 2 / 10 / 7 / 13;
    animation-delay: 0.2s;
}

.collage-item:nth-child(3) {
    grid-area: 8 / 2 / 13 / 5;
    animation-delay: 0.3s;
}

.collage-item:nth-child(4) {
    grid-area: 7 / 9 / 12 / 12;
    animation-delay: 0.4s;
}

.collage-item:nth-child(5) {
    grid-area: 1 / 5 / 4 / 9;
    animation-delay: 0.5s;
    opacity: 0.6;
}

/* Top center small */

@media (max-width: 768px) {
    .hero-collage-wrapper {
        display: none;
        /* Fallback to simple bg on mobile */
    }
}

/* =============================================
   YOU CAN HELP SECTION
   ============================================= */
.help-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.help-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.icon-food {
    background: #f97316;
}

.icon-water {
    background: #0ea5e9;
}

.icon-medical {
    background: #22c55e;
}

/* Animations */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Responsive adjustments for masonry grid */
@media (max-width: 768px) {
    .grid-cols-2.md\:grid-cols-4>div {
        padding-top: 0 !important;
    }
}

/* Ensure images load properly */
img[src*="index_pictures"] {
    object-fit: cover;
}

/* Progress bar animations */
.bg-gradient-to-r {
    transition: width 0.5s ease-in-out;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}