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

:root {
    --primary: #175CB9;
    --primary-foreground: #ffffff;
    --secondary: #5db3e8;
    --secondary-foreground: #ffffff;
    --background: #fafafa;
    --foreground: #1d1d1f;
    --muted: #f5f5f7;
    --muted-foreground: #86868b;
    --border: #d2d2d7;
    --card: #ffffff;
    --nav-bg: #f5f5f7;
    --radius: 12px;
    
    /* Apple-style spacing system (8px grid) */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Apple-style shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Apple-style transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fluid Typography Scale - scales with viewport width */
    --fluid-min-width: 320;
    --fluid-max-width: 1920;
    --fluid-min-scale: 0.875;
    --fluid-max-scale: 1.25;
    
    /* Base font size that scales smoothly with viewport */
    --base-font-size: clamp(16px, calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320))), 20px);
    
    /* Container max-width scales with viewport */
    --container-max-width: clamp(1000px, 90vw, 1400px);
    --content-max-width: clamp(70%, 50rem, 75%);
    /* Unified horizontal padding for all sections */
    --section-padding-x: clamp(3rem, 6vw, 5rem);
    /* Unified max-width for all sections */
    --section-max-width: var(--content-max-width);
}
.content-max {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #fafafa; /* Fallback */
    background-color: var(--background);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro TC", "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", "Roboto", "Segoe UI", Arial, sans-serif;
    background-color: #fafafa; /* Fallback */
    background-color: var(--background);
    color: #1d1d1f; /* Fallback */
    color: var(--foreground);
    line-height: 1.47059;
    font-size: 18px; /* Fallback */
    font-size: var(--base-font-size);
    font-weight: 400;
    letter-spacing: -0.011em;
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari fix */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    /* Performance optimizations */
    will-change: scroll-position;
    contain: layout style paint;
}

/* Skip to Content Link for Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Prevent orphan words in paragraphs */
p {
    orphans: 2;
    widows: 2;
    text-wrap: pretty;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Apply to all text content elements - prevent orphans and widows */
.hero-title,
.hero-caption,
.section-title,
.section-description,
.card-title,
.card-text,
.mission-text,
.donate-button,
.donate-button-2,
.faq-title,
.faq-question,
.faq-answer p,
.donate-note {
    orphans: 2;
    widows: 2;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.container {
    width: 100%;
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    box-sizing: border-box;
}

/* Header container should be wider to prevent nav clipping */
.header .container {
    max-width: 100%;
    padding: 0;
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: #175CB9;
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(23, 92, 185, 0.95);
    border-bottom: none;
    height: clamp(45px, 4.5vw, 67.5px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    overflow: visible;
    /* Backdrop filter with fallback */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-sm);
    /* Fallback shadow */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-base);
    transition: box-shadow var(--transition-base);
    transition: box-shadow var(--transition-base);
    /* Fallback transition */
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-width: 0;
    overflow: visible;
    position: relative;
    padding: 0;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    border-radius: 4px;
    padding: 4px;
    flex-shrink: 0;
    z-index: 2;
    margin-left: 0;
    margin-right: 0;
}

.header-right {
    flex-shrink: 0;
    z-index: 2;
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.logo:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.logo-img {
    display: block;
    height: clamp(20px, 2.5vw, 25px);
    width: auto;
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    filter: brightness(1);
    -webkit-filter: brightness(1);
}

.logo:hover .logo-img {
    filter: brightness(1.1);
    -webkit-filter: brightness(1.1);
}

.nav-desktop {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    position: static;
    margin: 0;
    min-width: 0;
    overflow: visible;
    z-index: 1;
    flex: 1;
    padding-left: clamp(1.5rem, 3vw, 2rem);
    padding-right: 0;
    box-sizing: border-box;
}

.nav-desktop a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.1vw, 1rem);
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem clamp(0.25rem, 0.5vw, 0.5rem);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width var(--transition-base);
    transition: width var(--transition-base);
    transition: width var(--transition-base);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-desktop a:hover {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-desktop a:active {
    color: rgba(255, 255, 255, 1);
}

/* ========================================
   Mobile Menu Toggle (Hamburger)
   ======================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    min-width: 0;
    z-index: 2;
}

.header-right .social-buttons {
    order: 1;
}

.header-right .lang-toggle {
    order: 2;
    display: flex;
    align-items: center;
    height: clamp(2rem, 4vw, 2.5rem);
    margin: 0;
}

.header-right .mobile-menu-toggle {
    order: 3;
}

.header-right .nav-mobile {
    order: 4;
}

.mobile-menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 0.375rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s;
    z-index: 101;
    padding: 0;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 1.25rem;
    height: 0.125rem;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    display: block;
    transform-origin: center;
}

/* Hamburger icon stays the same when menu is active - no transform applied */

/* ========================================
   Mobile Navigation
   ======================================== */
.nav-mobile {
    display: none;
    position: fixed;
    top: clamp(45px, 4.5vw, 67.5px);
    /* Fallback for older browsers */
    top: 67.5px;
    left: 0;
    width: 100%;
    background-color: #175CB9;
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(23, 92, 185, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-mobile.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    background-color: #175CB9;
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(23, 92, 185, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.nav-mobile a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(1.125rem, 1.4vw, 1.25rem);
    font-weight: 500;
    white-space: nowrap;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    transition: all var(--transition-base);
    display: block;
    width: 100%;
    text-align: left;
}

.nav-mobile a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width var(--transition-base);
    transition: width var(--transition-base);
    transition: width var(--transition-base);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    padding-left: 0.5rem;
}

.nav-mobile a:hover::after {
    width: 100%;
}

.nav-mobile a:active {
    color: rgba(255, 255, 255, 1);
}

.social-buttons {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.lang-toggle {
    padding: clamp(0.25rem, 0.5vw, 0.35rem) clamp(0.6rem, 1.2vw, 0.9rem);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.7rem, 1vw, 0.875rem);
    font-weight: 600;
    letter-spacing: clamp(0.01em, 0.02vw, 0.02em);
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: clamp(0.15rem, 0.3vw, 0.25rem);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    min-width: fit-content;
}

.lang-toggle:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.header.scrolled .lang-toggle {
    border-color: rgba(23, 92, 185, 0.3);
    color: var(--primary);
}

.header.scrolled .lang-toggle:hover {
    background-color: rgba(23, 92, 185, 0.1);
}

@media (max-width: 767px) {
    .lang-toggle {
        margin: 0;
        align-self: center;
        padding: clamp(0.2rem, 0.4vw, 0.3rem) clamp(0.5rem, 1vw, 0.75rem);
        font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    }
}

/* ========================================
   Pre-Hero Color Section
   ======================================== */
.pre-hero-color {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(2rem, 4vw, 90px);
    background-color: #0d4a8a;
    z-index: 50;
    pointer-events: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: clamp(400px, 50vh, 700px);
    overflow: visible;
    border-bottom-right-radius: clamp(150px, 36vw, 960px);
    z-index: 1;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: clamp(10px, 2.5vw, 40px);
    width: clamp(120px, 18vw, 320px);
    height: clamp(81px, 12vw, 216px);
    background-image: url('../img/ribbon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 3;
    pointer-events: none;
}

.hero-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    border-bottom-right-radius: inherit;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease-out;
    top: 0;
    left: 0;
    border-bottom-right-radius: inherit;
    transform: scale(1.1);
    will-change: transform, opacity;
}

.hero-image.active {
    opacity: 1;
    transform: scale(1);
    animation: heroImageFadeIn 1.5s ease-out;
}

/* Hero image fade in and subtle zoom animation */
@keyframes heroImageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.15);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
    border-bottom-right-radius: inherit;
}

/* Subtle shimmer effect on hero image */
.hero-image.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-content {
    position: absolute;
    bottom: clamp(2rem, 4vw, 3rem);
    left: 0;
    right: 0;
    width: 100%;
    color: white;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
    box-sizing: border-box;
}

.hero-content-inner {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.hero-content-inner.content-max {
    width: 100%;
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding-left: clamp(1.5rem, 3vw, 2rem);
    padding-right: clamp(1.5rem, 3vw, 2rem);
    box-sizing: border-box;
}

.hero-title {
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    color: white;
    text-align: left;
    width: 100%;
    max-width: clamp(280px, 50ch, 100%);
    margin-left: 0;
    box-sizing: border-box;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
    word-spacing: normal;
    display: block;
    overflow-wrap: break-word;
    hyphens: none;
    /* Larger font size with width constraint to ensure two lines */
    font-size: clamp(1.75rem, 4.5vw, 4rem);
}

.hero-title br {
    display: block;
    line-height: 0.1;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(14px, 1.8vw, 18px);
    opacity: 0.9;
    display: block;
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    width: auto;
    height: auto;
    max-width: 100%;
}

.hero-caption {
    font-size: clamp(0.5rem, 1vw, 0.875rem);
    color: rgba(255, 255, 255, 0.5);
    margin-top: clamp(0.75rem, 1.5vw, 1rem);
    line-height: 1.5;
    text-align: left;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========================================
   Mission Statement
   ======================================== */
.mission {
    padding-top: 0;
    padding-bottom: clamp(2rem, 6vw, 4rem);
    padding-left: 0;
    padding-right: 0;
    position: relative;
    overflow: visible;
    z-index: 0;
}

.mission::before {
    content: none;
}

.mission::after {
    content: "";
    position: absolute;
    left: clamp(10px, 1.25vw, 20px);
    top: calc(-1 * (clamp(0.75rem, 2vw, 1rem) + clamp(50px, 6vw, 60px) + clamp(0.75rem, 2vw, 1rem)));
    width: clamp(120px, 18vw, 391px);
    height: auto;
    max-height: 80vh;
    aspect-ratio: 391 / 1038;
    background-image: url('../img/CNA.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.mission-card {
    background-color: #175CB9;
    color: var(--primary-foreground);
    border-radius: clamp(32px, 4vw, 60px);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.mission-text {
    font-size: clamp(0.875rem, 1.8vw, 1.375rem);
    line-height: 1.75;
    text-align: left;
    word-wrap: break-word;
    text-wrap: pretty;
}

/* ========================================
   Section Dividers
   ======================================== */

/* ========================================
   Content Sections
   ======================================== */
.content-section {
    padding: clamp(2rem, 6vw, 4rem) 0;
    position: relative;
}


.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--section-max-width);
    height: 0.5px;
    background: rgba(128, 128, 128, 0.2);
    box-shadow: 0 0.25px 0 0 rgba(128, 128, 128, 0.15);
}

.bg-light {
    background-color: rgba(245, 245, 245, 0.3);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-description {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: clamp(90%, 48rem, 95%);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.875rem, 1.3vw, 1.125rem);
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.card {
    background-color: #175CB9; /* Fallback */
    background-color: var(--primary);
    color: #ffffff; /* Fallback */
    color: var(--primary-foreground);
    border-radius: clamp(32px, 4vw, 60px);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* GPU acceleration */
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
    /* Flexbox layout for consistent alignment */
    display: flex;
    flex-direction: column;
}

.card:hover,
.card.animate-in:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-6px);
}

.card-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    text-align: center;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Fixed min-height to reserve space for two lines - ensures card-text alignment */
    min-height: clamp(2.8rem, 5.6vw, 4.2rem);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    font-size: clamp(0.875rem, 1.3vw, 1rem);
    line-height: 1.75;
    opacity: 0.95;
    /* Flex grow to push text to top after title */
    flex: 1;
    margin-top: 0;
    /* Dynamic padding to adjust text width and improve spacing */
    padding-left: clamp(0.25rem, 1vw, 0.75rem);
    padding-right: clamp(0.25rem, 1vw, 0.75rem);
    /* Natural word and letter spacing */
    word-spacing: normal;
    letter-spacing: 0.01em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ========================================
   Donate CTA
   ======================================== */
.donate-cta {
    padding: clamp(2rem, 6vw, 4rem) 0;
    text-align: center;
    position: relative;
}

.donate-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--section-max-width);
    height: 0.5px;
    background: rgba(128, 128, 128, 0.2);
    box-shadow: 0 0.25px 0 0 rgba(128, 128, 128, 0.15);
}

.donate-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--section-max-width);
    height: 0.5px;
    background: rgba(128, 128, 128, 0.2);
    box-shadow: 0 0.25px 0 0 rgba(128, 128, 128, 0.15);
}

.donate-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.donate-button {
    display: flex;
    width: clamp(280px, 30vw, 448px);
    max-width: 100%;
    min-height: clamp(50px, 6vw, 60px);
    height: auto;
    padding: clamp(8px, 1.2vw, 12px) clamp(1rem, 2vw, 1.5rem);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3CA9FF 0%, #2a8fe6 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 2.25rem);
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.donate-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
    transition: background var(--transition-base);
}

.donate-button:hover {
    background: linear-gradient(135deg, #4db3ff 0%, #3CA9FF 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.1);
}

.donate-button:hover::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
}

.donate-button:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, #1e7dd4 0%, #1869b8 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Donate Button 2 (Between Hero and Mission)
   ======================================== */
.donate-button-2-section {
    padding-top: clamp(0.75rem, 2vw, 1rem);
    padding-bottom: clamp(0.75rem, 2vw, 1rem);
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    position: relative;
    z-index: 1;
}



.donate-button-2 {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: clamp(50px, 6vw, 60px);
    height: auto;
    padding: clamp(8px, 1.2vw, 12px) clamp(1rem, 2.5vw, 2rem);
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3CA9FF 0%, #2a8fe6 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 2.25rem);
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateY(0) scale(1);
    -ms-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
}

.donate-button-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
    transition: background var(--transition-base);
}

.donate-button-2:hover {
    background: linear-gradient(135deg, #4db3ff 0%, #3CA9FF 100%) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.1) !important;
}

.donate-button-2:hover::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
}

.donate-button-2:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, #1e7dd4 0%, #1869b8 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

 .donate-note {
     font-size: clamp(0.75rem, 1.1vw, 0.875rem);
     color: var(--muted-foreground);
     margin-top: clamp(0.75rem, 2vw, 1rem);
 }

 .donate-note a {
     color: var(--muted-foreground);
     text-decoration: underline;
     transition: color 0.3s;
 }

 .donate-note a:hover {
     color: var(--primary);
 }

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: clamp(2rem, 6vw, 4rem) 0;
    position: relative;
    overflow: visible;
}

.faq-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: clamp(10px, 2.5vw, 40px);
    width: clamp(120px, 18vw, 320px);
    height: clamp(81px, 12vw, 216px);
    background-image: url('../img/ribbon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 1;
    pointer-events: none;
    transform: scaleX(-1);
}

.faq-section::after {
    content: "";
    position: absolute;
    right: clamp(10px, 1.25vw, 20px);
    top: 0;
    width: clamp(120px, 18vw, 391px);
    height: auto;
    max-height: 80vh;
    aspect-ratio: 391 / 1038;
    background-image: url('../img/CNA.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}


.faq-card {
    background-color: var(--card);
    border: 2px solid var(--border);
    border-radius: clamp(32px, 4vw, 60px);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.faq-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    position: relative;
}

.faq-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: 0.5px;
    background: rgba(128, 128, 128, 0.2);
    box-shadow: 0 0.25px 0 0 rgba(128, 128, 128, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.75rem, 1.5vw, 1rem) 0;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.3vw, 1.125rem);
    cursor: pointer;
    color: var(--foreground);
    transition: color 0.3s;
    text-wrap: pretty;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1rem;
}

.faq-answer p {
    font-size: clamp(0.875rem, 1.3vw, 1rem);
    color: var(--muted-foreground);
    line-height: 1.6;
}


/* ========================================
   Bottom Navigation
   ======================================== */
.bottom-nav {
    min-height: clamp(45px, 4.5vw, 67.5px);
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    background-color: var(--nav-bg);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    font-size: clamp(0.75rem, 1.1vw, 0.875rem);
    font-weight: 500;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.footer-row {
    text-align: center;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-size: clamp(0.75rem, 1.1vw, 0.875rem);
    opacity: 0.9;
}

.footer-row:last-child {
    margin-bottom: 0;
}

.footer-row p {
    margin: 0;
}

.footer-row a {
    color: var(--primary-foreground);
    text-decoration: none;
    transition: opacity 0.3s;
}

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

.footer-social-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    text-decoration: none;
}

.footer-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    text-decoration: none;
}

.footer-social-btn svg {
    width: 20px;
    height: 20px;
}

.footer-social-btn-threads .threads-icon {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
    object-fit: contain;
    opacity: 1;
    visibility: visible;
}

.footer-social-btn-threads {
    background-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
    .footer-social-btn {
        width: 3rem;
        height: 3rem;
    }
    
    .footer-social-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-social-btn-threads .threads-icon {
        width: 24px;
        height: 24px;
    }
}

/* ========================================
   Post-Footer Color Section
   ======================================== */
.post-footer-color {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(2rem, 4vw, 106px);
    background-color: #0d4a8a;
    z-index: 50;
    pointer-events: none;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: clamp(0.5rem, 1.2vw, 1.5rem);
        position: static;
        justify-content: flex-start;
        flex: 1;
        padding: 0;
    }
    
    .nav-desktop a {
        font-size: clamp(0.75rem, 1vw, 1rem);
        padding: 0.5rem clamp(0.2rem, 0.4vw, 0.4rem);
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-mobile {
        display: none !important;
    }
    
    .hero {
        height: 700px;
    }
    
    .hero-content {
        left: 0;
        transform: none;
    }
    
    .hero-title {
        /* Larger font size with width constraint to ensure two lines on desktop */
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        max-width: clamp(400px, 55ch, 100%);
    }
    
    /* Hero content matches mission-card width on desktop - consistent with all sections */
    .hero-content-inner.content-max {
        max-width: var(--section-max-width);
        padding-left: clamp(1.5rem, 3vw, 2rem);
        padding-right: clamp(1.5rem, 3vw, 2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(16px, 1.8vw, 18px);
    }
    
    .mission-card {
        padding: clamp(1.5rem, 3vw, 3rem);
    }
    
    .mission-text {
        font-size: clamp(1rem, 1.6vw, 1.375rem);
        line-height: 1.75;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faq-card {
        padding: clamp(1.5rem, 3vw, 3rem);
    }
    
    .faq-title {
        font-size: 2.25rem;
    }
    
    .nav-links {
        font-size: clamp(0.875rem, 1.1vw, 1rem);
        gap: 3rem;
    }
    
    .donate-button {
        width: 448px;
        height: 60px;
    }
    
    .donate-button-2 {
        width: 100%;
        max-width: 100%;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .nav-desktop {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .bottom-nav {
        padding: clamp(1rem, 3vw, 1.5rem) 0;
    }
    
    .nav-links {
        padding: clamp(0.75rem, 2vw, 1rem) 0;
    }
    
    .hero {
        height: clamp(267px, 33.3vh, 467px);
    }
    
    .hero-title {
        /* Larger font size with width constraint to ensure two lines on mobile */
        font-size: clamp(1.5rem, 4vw, 3rem);
        width: 100%;
        max-width: clamp(250px, 45ch, 100%);
    }
    
    /* Hide social buttons in header on mobile */
    .header-right .social-buttons {
        display: none;
    }
    
    .hero-title br {
        display: block;
        line-height: 0.1;
    }
    
    /* Wider container width on mobile for better readability */
    .container {
        max-width: clamp(90%, 65rem, 95%);
    }
    
    /* Hero content matches mission-card width on mobile */
    .hero-content {
        padding-left: var(--section-padding-x);
        padding-right: var(--section-padding-x);
    }
    
    .hero-content-inner.content-max {
        width: 100%;
        max-width: clamp(90%, 65rem, 95%);
        margin: 0 auto;
        padding-left: clamp(1.5rem, 3vw, 2rem);
        padding-right: clamp(1.5rem, 3vw, 2rem);
        box-sizing: border-box;
    }
    
    .donate-button {
        width: clamp(280px, 30vw, 448px);
        height: clamp(50px, 6vw, 60px);
        padding: clamp(6px, 1vw, 9px);
        font-size: clamp(0.875rem, 2.2vw, 1.75rem);
    }
    
    .donate-button-2 {
        width: 100%;
        max-width: 100%;
        height: clamp(50px, 6vw, 60px);
        padding: clamp(6px, 1vw, 9px) clamp(1rem, 2.5vw, 2rem);
        font-size: clamp(0.875rem, 2.2vw, 1.75rem);
    }
    
    .hero::before {
        right: clamp(5px, 1.5vw, 20px);
        width: clamp(80px, 12vw, 150px);
        height: clamp(54px, 8vw, 101px);
        z-index: 3;
    }
    
    .hero-content {
        z-index: 10;
    }
    
    .hero-caption {
        font-size: clamp(0.5rem, 1.2vw, 0.75rem);
    }
    
    .faq-section::before {
        left: clamp(5px, 1.5vw, 20px);
        width: clamp(80px, 12vw, 150px);
        height: clamp(54px, 8vw, 101px);
    }
    
    .mission::after {
        left: clamp(5px, 1.25vw, 20px);
        width: clamp(100px, 15vw, 250px);
        top: clamp(267px, 33.3vh, 467px);
    }
    
    .faq-section::after {
        right: clamp(5px, 1.25vw, 20px);
        width: clamp(100px, 15vw, 250px);
    }
}

/* Specific adjustment for very narrow screens (foldable devices like Galaxy Z Fold 5) */
@media (max-width: 400px) {
    .hero-title {
        /* Larger font size with tighter width constraint for very narrow screens */
        font-size: clamp(1.25rem, 3.5vw, 2.5rem);
        max-width: clamp(220px, 40ch, 100%);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--section-padding-x);
    }
}

/* ========================================
   Dynamic & Interactive Enhancements
   ======================================== */

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Scroll Effects */
.header.scrolled {
    background-color: rgba(23, 92, 185, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-md);
}

.header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.header {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Scroll Animation - Fade In */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Card Stagger Animation */
.card-grid .card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Button Ripple Effect */
.donate-button,
.donate-button-2 {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* Smooth FAQ Animation */
.faq-item {
    transition: all 0.3s ease-out;
}

.faq-answer {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Lazy Load Animation */
img {
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Section Fade In - Only for initial load */
.content-section:not(.animate-in),
.mission:not(.animate-in),
.donate-cta:not(.animate-in),
.faq-section:not(.animate-in) {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Social Button Hover */
.social-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading State for Buttons */
.donate-button:active,
.donate-button-2:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .scroll-progress {
        height: 2px;
    }
    
    .header.header-hidden {
        transform: translateY(-100%);
    }
    
    .donate-buttons {
        flex-direction: column;
        gap: clamp(0.75rem, 2vw, 1rem);
    }
    
    .donate-button {
        width: 100%;
        max-width: 100%;
    }
    
    /* Reduce animation intensity on mobile for performance */
    .card:hover,
    .mission-card:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    /* Adjust card-text padding for better spacing on mobile */
    .card-text {
        padding-left: clamp(0.15rem, 0.8vw, 0.5rem);
        padding-right: clamp(0.15rem, 0.8vw, 0.5rem);
    }
    
}

