/* ===================================
   MUSEZERO FOUNDATION
   Production Stylesheet
   
   Table of Contents:
   1. Variables & Tokens
   2. Reset & Base
   3. Accessibility
   4. Typography
   5. Buttons
   6. Navigation
   7. Hero
   8. Impact Bar
   9. Sections (Urgent, Donation, Stories, Programs, Transparency, FAQ)
   10. Program Detail Page
   11. Contact Page
   12. Footer
   13. Utilities & Animations
   14. Responsive Breakpoints
   =================================== */

/* -----------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   ----------------------------------------------- */
:root {
    /* Brand Colors */
    --primary-green: #2D7A4F;
    --primary-dark: #1F5438;
    --secondary-blue: #1B8AAE;
    --accent-gold: #F4A900;
    --urgent-orange: #E85D04;
    
    /* Supporting Colors */
    --text-dark: #2C2C2C;
    --text-medium: #6B7280;
    --text-light: #9CA3AF;
    --bg-cream: #FAF8F5;
    --bg-light: #F5EFE6;
    --white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Karla', sans-serif;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4.5rem;
    
    /* Effects */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease-out;
    
    /* Accessibility */
    --focus-ring: 0 0 0 3px rgba(45, 122, 79, 0.5);
}

/* -----------------------------------------------
   2. RESET & BASE
   ----------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

img {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Prevent layout shift while loading */
img[src] {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
}

/* -----------------------------------------------
   UNIVERSAL RESPONSIVE IMAGE SYSTEM
   Handles any image dimension/aspect ratio across
   all layouts and devices (320px → 4K).
   ----------------------------------------------- */

/* --- A. Image Container Wrappers ---
   Use these classes on the parent <div> wrapping an <img>.
   Each enforces a consistent aspect ratio with object-fit: cover. */

/* Hero / Banner images */
.hero-image-wrapper,
.banner-wrapper {
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.hero-image-wrapper img,
.banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card images (students, programs, blog) */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-base);
}

.card-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Landscape images (tours, activities, wide shots) */
.landscape-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.landscape-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Portrait images (team, testimonials) */
.portrait-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

.portrait-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Thumbnail images */
.thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- B. Gallery / Grid Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- C. Full-Width / Content Images --- */
.full-width-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.content-image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* --- D. Background Image Sections --- */
.bg-image-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
}

.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

/* --- E. Placeholder / Loading States --- */
@keyframes img-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.image-loading {
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: img-spin 1s linear infinite;
    z-index: 0;
}

.image-loading img {
    opacity: 0;
    transition: opacity var(--transition-base);
    position: relative;
    z-index: 1;
}

.image-loading img.loaded {
    opacity: 1;
}

/* --- F. Utility Classes --- */
.fill-container {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contain-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.maintain-ratio {
    width: 100%;
    height: auto;
    max-height: none;
}

.decorative-image {
    pointer-events: none;
    user-select: none;
}

/* --- G. CMS Image Handling (auto-classification) ---
   Applied by JS based on natural dimensions. */

/* All CMS images inside known containers */
.student-image img,
.program-image img,
.partnership-image img,
.program-image-large img,
.image-placeholder img,
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Portrait: square or near-square */
.student-image img.cms-img-portrait,
.program-image img.cms-img-portrait,
.story-image img.cms-img-portrait,
.image-placeholder img.cms-img-portrait {
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    max-height: 100%;
}

/* Landscape: wide aspect ratio */
.student-image img.cms-img-landscape,
.program-image img.cms-img-landscape,
.partnership-image img.cms-img-landscape,
.program-image-large img.cms-img-landscape,
.story-image img.cms-img-landscape,
.image-placeholder img.cms-img-landscape {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
    background-color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* -----------------------------------------------
   3. ACCESSIBILITY
   ----------------------------------------------- */

/* Skip-to-content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

/* Focus-visible for keyboard navigation only */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

/* Remove focus ring for mouse users */
:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -----------------------------------------------
   4. TYPOGRAPHY
   ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 0.625rem;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 122, 79, 0.08);
    border-radius: var(--radius-full);
}

.section-tag.urgent {
    color: var(--urgent-orange);
    background: rgba(232, 93, 4, 0.08);
}

.section-title {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header.centered {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

/* -----------------------------------------------
   5. BUTTONS
   ----------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(45, 122, 79, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(45, 122, 79, 0.35);
}

.btn-primary:focus-visible {
    box-shadow: var(--focus-ring), 0 4px 12px rgba(45, 122, 79, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(45, 122, 79, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

.btn-secondary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline:focus-visible {
    box-shadow: var(--focus-ring);
}

.btn-large {
    min-height: 52px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-back {
    color: var(--text-medium);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

.btn-back:hover {
    color: var(--primary-green);
}

/* -----------------------------------------------
   6. NAVIGATION
   ----------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-green);
    display: block;
    line-height: 1;
    text-decoration: none;
}

.nav-logo .logo-subtext {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-medium);
}

.nav-logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    height: 2px;
    background: var(--primary-green);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    position: relative;
    z-index: 1002;
}

.nav-toggle:hover {
    background: rgba(0,0,0,0.04);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(45, 122, 79, 0.06);
    }
    
    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}


/* Hero Section */
.hero {
    padding: clamp(100px, 12vw, 130px) 1.25rem clamp(2.5rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Homepage hero with background image gets taller + flex centering */
.hero:has(.hero-background) {
    min-height: 85vh;
    padding-top: clamp(80px, 10vw, 110px);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-background > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(31, 84, 56, 0.72) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(31, 84, 56, 0.72) 100%
    );
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(244, 169, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(27, 138, 174, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-title {
    font-size: clamp(2.25rem, 2rem + 3.5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Impact Bar */
.impact-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 3;
}

.impact-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 900;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* Urgent Needs Section */
.urgent-needs {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
}

.need-card {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.need-card.featured {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border: 1px solid rgba(244, 169, 0, 0.3);
}

.need-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,0,0,0.06);
}

.need-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.need-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.need-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.need-progress {
    margin: var(--spacing-md) 0;
}

.progress-bar {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    border-radius: 6px;
    transition: width 1s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.need-impact {
    background-color: rgba(45, 122, 79, 0.08);
    padding: 1rem;
    border-left: 3px solid var(--primary-green);
    border-radius: var(--radius-sm);
    margin: var(--spacing-md) 0;
    font-size: 0.9375rem;
}

.need-impact strong {
    color: var(--primary-green);
    font-size: 1.125rem;
}

/* Donation Section */
.donation-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
}

.donation-card {
    background-color: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    transition: box-shadow var(--transition-base);
}

.donation-card:hover {
    box-shadow: var(--shadow-md);
}

.donation-card.featured {
    border: 2px solid rgba(244, 169, 0, 0.4);
    background: linear-gradient(135deg, #FFFBF0 0%, #FFFFFF 100%);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(244, 169, 0, 0.3);
}

.donation-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.donation-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Amount Selector */
.amount-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    min-height: 48px;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.amount-btn:hover {
    border-color: var(--primary-green);
    background-color: rgba(45, 122, 79, 0.08);
}

.amount-btn.active {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Impact Preview */
.impact-preview {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.impact-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.impact-text strong {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.impact-list {
    list-style: none;
    padding-left: 0;
}

.impact-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-weight: 500;
}

/* Sponsorship Tiers */
.sponsorship-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.sponsorship-tier {
    padding: 1.5rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.sponsorship-tier:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.sponsorship-tier.highlighted {
    border-color: var(--accent-gold);
    background-color: rgba(244, 169, 0, 0.05);
    transform: scale(1.02);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.tier-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

.tier-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
}

.tier-price span {
    font-size: 1rem;
    color: var(--text-medium);
}

.tier-benefits {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.tier-benefits li {
    padding: 0.5rem 0;
    color: var(--text-medium);
}

/* PayPal Form */
.paypal-form {
    margin-top: var(--spacing-md);
}

.paypal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.secure-note {
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-medium);
}

/* Other Ways */
.other-ways {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.way-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.way-item:hover {
    background-color: rgba(45, 122, 79, 0.08);
}

.way-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.way-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.way-content p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.link-arrow {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

/* Stories Section */
.stories-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-cream);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.25rem;
}

.story-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.story-card.large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.story-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.story-card.large .story-image {
    aspect-ratio: auto;
    height: 100%;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
}

.story-content {
    padding: 1.5rem;
}

.story-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
}

.story-name {
    font-size: 1.375rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.story-quote,
.story-text {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.story-impact {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.story-impact strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

/* Programs Section */
.programs-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
}

.program-card {
    text-align: center;
    padding: 1.75rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,0,0,0.04);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.program-title {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.program-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.program-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.program-stats .stat {
    text-align: center;
}

.program-stats .stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary-green);
}

.program-stats .stat span {
    font-size: 0.75rem;
    color: var(--text-medium);
}

/* Transparency Section */
.transparency-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-cream);
}

.transparency-breakdown {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

.pie-chart {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-green) 0deg 162deg,
        var(--accent-gold) 162deg 288deg,
        var(--secondary-blue) 288deg 342deg,
        var(--text-light) 342deg 360deg
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.center-label {
    width: 150px;
    height: 150px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-label strong {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-green);
}

.center-label span {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    padding: 1.25rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.breakdown-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.breakdown-color.education {
    background-color: var(--primary-green);
}

.breakdown-color.nutrition {
    background-color: var(--accent-gold);
}

.breakdown-color.healthcare {
    background-color: var(--secondary-blue);
}

.breakdown-color.facilities {
    background-color: var(--text-light);
}

.breakdown-header h4 {
    flex: 1;
    font-size: 1.125rem;
}

.breakdown-header strong {
    color: var(--primary-green);
    font-size: 1.25rem;
}

.breakdown-item p {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.transparency-note {
    margin-top: var(--spacing-md);
    padding: 1.25rem;
    background-color: rgba(45, 122, 79, 0.06);
    border-left: 3px solid var(--primary-green);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.faq-category {
    margin-bottom: var(--spacing-md);
}

.faq-category-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
    background-color: rgba(45, 122, 79, 0.06);
    color: var(--primary-green);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-green);
    background-color: rgba(45, 122, 79, 0.06);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    flex-shrink: 0;
    margin-left: 1rem;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p,
.faq-answer ul {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.faq-answer ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.faq-answer ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.faq-answer a {
    color: var(--primary-green);
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-green);
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: var(--spacing-md);
    padding: 2rem;
    background-color: var(--bg-cream);
    border-radius: var(--radius-lg);
}

.faq-cta h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.faq-cta p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Final CTA */
.final-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.1rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-note a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.cta-note a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    display: block;
    text-decoration: none;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-green);
    display: block;
}

.footer-logo .logo-subtext {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand p {
    margin-top: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
    line-height: 1.7;
}

.footer-contact {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 0.25rem 0;
    display: inline-block;
    min-height: 32px;
    line-height: 2;
}

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

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* ===================================
   HOMEPAGE SPECIFIC STYLES
   =================================== */

/* Mission Section */
.mission-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.mission-content {
    max-width: 100%;
}

.mission-text {
    min-width: 0;
}

.mission-text .large-text {
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.65;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.value-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

.partnership-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 0.75rem;
}

.placeholder-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
}

.placeholder-text {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Programs Overview */
.programs-overview {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    background-color: var(--bg-cream);
}

.section-header.centered {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition-base);
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.program-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.program-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.program-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.program-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.program-description {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.program-stats-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
}

.program-stats-mini div {
    font-size: 0.875rem;
    color: var(--text-medium);
    min-width: 0;
}

.program-stats-mini strong {
    display: block;
    font-size: 1.25rem;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.link-arrow {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

.link-arrow:active {
    opacity: 0.8;
}

.programs-cta {
    text-align: center;
}

/* Featured Students */
.featured-students {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

/* --- Student Card Fade-In Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.student-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.student-card:nth-child(1) { animation-delay: 0.1s; }
.student-card:nth-child(2) { animation-delay: 0.2s; }
.student-card:nth-child(3) { animation-delay: 0.3s; }
.student-card:nth-child(4) { animation-delay: 0.4s; }
.student-card:nth-child(5) { animation-delay: 0.5s; }
.student-card:nth-child(6) { animation-delay: 0.6s; }
.student-card:nth-child(7) { animation-delay: 0.7s; }
.student-card:nth-child(8) { animation-delay: 0.8s; }
.student-card:nth-child(9) { animation-delay: 0.9s; }

.student-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}

/* --- Featured / Large Card --- */
.student-card.large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--white);
}

.student-card.large .student-image {
    aspect-ratio: 3 / 4;
    max-height: none;
    height: 100%;
}

.student-card.large .student-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Student Image --- */
.student-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 300px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
}

.student-image.card-image-wrapper {
    border-radius: 0;
}

.student-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.student-image > img.loaded {
    opacity: 1;
}

.student-image:hover > img {
    transform: scale(1.04);
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.student-image .image-placeholder {
    width: 100%;
    height: 100%;
}

/* --- Student Content --- */
.student-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.student-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.student-name {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.student-quote {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-green);
}

.student-text {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.student-impact {
    background-color: var(--bg-cream);
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: auto;
}

.student-impact strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.student-impact p {
    color: var(--text-medium);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.highlight-text {
    color: var(--primary-green);
    font-weight: 700;
}

.students-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Partnership Section */
.partnership-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-cream);
}

.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.partnership-stats {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.partnership-stat {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.partnership-stat strong {
    display: block;
    color: var(--primary-green);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.partnership-stat span {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section .cta-content h2 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-section .cta-content p {
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.1rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.cta-section .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   PROGRAMS DETAIL PAGE STYLES
   =================================== */

/* Program Detail Grid - 2 column layout for each program section */
.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: var(--spacing-sm);
}

.program-content-detail h3 {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.program-content-detail p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

/* Program Image Placeholder (large) */
.program-image-large {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.program-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.program-image-large.white-bg {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #E85D04 100%);
}

.program-image-large .placeholder-icon {
    font-size: 4rem;
}

/* Program Features List */
.program-features {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary-green);
}

.program-features.white-bg {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.program-features h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.program-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features ul li {
    padding: 0.625rem 0;
    color: var(--text-medium);
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
}

.program-features ul li:last-child {
    border-bottom: none;
}

.program-features ul li strong {
    color: var(--text-dark);
}

/* Program Stats Grid (3 column mini stats) */
.program-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.program-stat-box {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.program-stat-box:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.program-stat-box .stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.program-stat-box .stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Program Menu Box (nutrition section) */
.program-menu-box {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent-gold);
}

.program-menu-box h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.program-menu-box p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.program-menu-box p:last-child {
    margin-bottom: 0;
    font-style: italic;
    font-size: 0.875rem;
}

.program-menu-box strong {
    color: var(--primary-green);
}

/* Section header for programs page */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* -----------------------------------------------
   11. CONTACT PAGE
   ----------------------------------------------- */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-item a:hover {
    color: var(--primary-green);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.contact-social a {
    color: var(--primary-green);
    font-weight: 600;
    transition: color var(--transition-base);
}

.contact-social a:hover {
    color: var(--primary-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border: 1.5px solid var(--bg-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--text-light);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

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

.form-submit {
    width: 100%;
    padding: 0.875rem;
    min-height: 52px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 79, 0.3);
}

.form-submit:focus-visible {
    box-shadow: var(--focus-ring);
}

.form-submit:active {
    transform: translateY(0);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary-green);
    flex-shrink: 0;
    display: inline;
}

/* -----------------------------------------------
   12. WHATSAPP FLOAT
   ----------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    display: inline;
}

/* -----------------------------------------------
   13. UTILITIES & ANIMATIONS
   ----------------------------------------------- */

/* Fade-in on scroll (applied via JS) */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation delay */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Pulse animation for featured cards - disabled for cleaner feel */

/* Smooth page load fade-in */
@keyframes page-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: page-fade-in 0.4s ease-out;
}

/* -----------------------------------------------
   15. ABOUT PAGE STYLES
   ----------------------------------------------- */
.about-content-section {
    background: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.about-content-section .container {
    max-width: 900px;
}

.about-content-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.about-content-section h3 {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    margin: 2rem 0 1rem;
    color: var(--primary-green);
}

.about-content-section p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-content-section .lead-text {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.about-values-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 3px solid var(--primary-green);
    border-radius: var(--radius-sm);
    margin: 2rem 0;
}

.about-values-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.about-values-box ul {
    list-style: none;
    padding: 0;
}

.about-values-box li {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.about-values-box li:last-child {
    margin-bottom: 0;
}

.about-values-box strong {
    color: var(--primary-green);
}

.about-cta-buttons {
    text-align: center;
    margin: 2.5rem 0;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -----------------------------------------------
   16. PROGRAMS PAGE UTILITY STYLES
   ----------------------------------------------- */
.programs-overview-stats {
    background: var(--bg-cream);
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.stats-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-grid-auto .stat-value {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    font-weight: 700;
    color: var(--primary-green);
    font-family: var(--font-display);
}

.stats-grid-auto .stat-desc {
    color: var(--text-medium);
    font-weight: 600;
}

.program-section-white {
    background: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.program-section-cream {
    background: var(--bg-cream);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.impact-story-section {
    background: var(--bg-cream);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.impact-story-section .container {
    max-width: 800px;
    text-align: center;
}

.impact-story-section p {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    color: var(--text-medium);
    line-height: 1.7;
    margin-top: 1.25rem;
}

.impact-story-section .cta-group {
    margin-top: 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.green-cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.green-cta-section .container {
    max-width: 700px;
}

.green-cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
    margin-bottom: 0.75rem;
    color: var(--white);
}

.green-cta-section p {
    font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.green-cta-section .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.green-cta-section .btn-primary-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    background: var(--white);
    color: var(--primary-green);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--white);
}

.green-cta-section .btn-primary-inverted:hover {
    background: transparent;
    color: var(--white);
}

/* -----------------------------------------------
   14. RESPONSIVE BREAKPOINTS (CONSOLIDATED)
   ----------------------------------------------- */

/* --- Tablet landscape (1024px) --- */
@media (max-width: 1024px) {
    .partnership-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .students-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .student-card.large,
    .story-card.large {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr;
    }

    .student-card.large .student-image {
        aspect-ratio: 1 / 1;
        max-height: 350px;
    }

    .student-image {
        max-height: 350px;
    }

    .story-card.large .story-image {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .hero-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .transparency-breakdown {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pie-chart {
        margin: 0 auto;
        width: 240px;
        height: 240px;
    }

    .center-label {
        width: 120px;
        height: 120px;
    }

    .center-label strong {
        font-size: 2.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .program-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-image-large {
        position: static;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-cta-buttons,
    .green-cta-section .cta-group,
    .impact-story-section .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .placeholder-icon {
        font-size: 3.5rem;
    }
}

/* --- Tablet portrait (768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .impact-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .needs-grid,
    .donation-options,
    .programs-grid,
    .stories-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .program-stats {
        flex-direction: column;
    }

    .program-stats-mini {
        gap: 0.5rem 1rem;
        padding: 0.75rem 1rem;
    }

    .program-stats-mini strong {
        font-size: 1rem;
    }

    .mission-values {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .value-icon {
        font-size: 1.75rem;
    }

    .value-item h4 {
        font-size: 0.875rem;
    }

    .value-item p {
        font-size: 0.8125rem;
    }

    .programs-grid,
    .students-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .student-card.large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .student-card.large .student-image {
        aspect-ratio: 4 / 3;
        max-height: 300px;
        height: auto;
    }

    .student-card.large .student-content {
        padding: 1.5rem;
    }

    .student-image {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }

    .hero-image-wrapper {
        aspect-ratio: 4 / 3;
    }

    .bg-image-section {
        min-height: 300px;
        background-attachment: scroll;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-grid-auto {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stats-grid-auto .stat-value {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .program-content-detail h3 {
        font-size: 1.375rem;
    }

    .program-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .program-stat-box {
        padding: 1rem 0.75rem;
    }

    .program-stat-box .stat-number {
        font-size: 1.5rem;
    }

    .program-features {
        padding: 1.25rem;
    }

    .program-image-large {
        aspect-ratio: 16 / 9;
    }

    .program-image-large .placeholder-icon {
        font-size: 3.5rem;
    }

    .trust-badges {
        gap: 0.75rem;
        padding: 1rem;
    }

    .trust-badge {
        font-size: 0.75rem;
    }

    .about-content-section h3 {
        margin: 2rem 0 1rem;
    }

    .about-values-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-answer.active {
        padding: 0 1.25rem 1rem;
    }

    .donation-card {
        padding: 1.5rem;
    }

    .way-item {
        padding: 1rem;
    }

    .sponsorship-tier {
        padding: 1.25rem;
    }
}

/* --- Mobile (480px) --- */
@media (max-width: 480px) {
    .impact-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: var(--radius-md);
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .amount-selector {
        flex-direction: column;
    }

    .amount-btn {
        width: 100%;
        min-height: 48px;
    }

    .program-content-detail h3 {
        font-size: 1.25rem;
    }

    .program-content-detail p {
        font-size: 0.9375rem;
    }

    .program-image-large {
        aspect-ratio: 4 / 3;
    }

    .program-menu-box {
        padding: 1.25rem;
    }

    .program-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.375rem;
    }

    .btn-large {
        width: 100%;
        min-height: 52px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid-auto {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stats-grid-auto .stat-value {
        font-size: 1.75rem;
    }

    .about-content-section p {
        font-size: 0.9375rem;
    }

    .mission-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }

    .value-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .need-card {
        padding: 1.25rem;
    }

    .student-image,
    .student-card.large .student-image {
        aspect-ratio: 4 / 3;
        height: auto;
        max-height: 280px;
    }

    .image-placeholder {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    .placeholder-icon {
        font-size: 2.5rem;
    }

    .placeholder-text {
        font-size: 0.875rem;
    }

    .hero-cta,
    .cta-buttons {
        max-width: 100%;
    }

    .footer-social a {
        min-width: 40px;
        min-height: 40px;
    }
}

/* --- Mobile story-card refactor (640px) ---
   Optimized for thumb-scroll: compact, content-first cards
   that fit within ~1–1.2 screen heights on small devices. */
@media (max-width: 640px) {

    /* Image: 4/3 ratio, constrained height, faces always visible */
    .student-image,
    .student-card.large .student-image {
        aspect-ratio: 4 / 3;
        height: auto;
        max-height: 250px;
    }

    /* Grid: single column, comfortable gap */
    .students-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }

    /* Card: slightly smaller radius on mobile */
    .student-card {
        border-radius: 16px;
    }

    /* Content area: compact padding */
    .student-content {
        padding: 1.25rem;
    }

    /* Badge: smaller pill */
    .student-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Name: slightly smaller */
    .student-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    /* Story text: readable, not truncated */
    .student-quote,
    .student-text {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    /* Impact section: compact */
    .student-impact {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .student-impact strong {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .student-impact p {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    /* Highlight text: compact */
    .highlight-text {
        font-size: 0.875rem;
    }

    /* Large card: stack vertically */
    .student-card.large {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }

    .student-card.large .student-content {
        padding: 1.25rem;
    }

    /* CTA below cards */
    .students-cta {
        margin-top: 0;
    }
}
