/* ============================================
   Keanu Reeves Children's Hope Foundation
   Main Stylesheet
   Luxury | Premium | Elegant | Modern
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --primary: #5B2C83;
    --primary-dark: #3E1D5E;
    --primary-light: #7E57C2;
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --accent: #FF6B9D;
    --white: #FFFFFF;
    --off-white: #F8F5FF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --dark: #1E1E2E;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(91, 44, 131, 0.3);
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 16px;
    background: rgba(236,72,153,0.1);
    padding: 8px 20px;
    border-radius: var(--radius-full);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.8;
}

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

.text-gradient {
    color: var(--primary);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--white);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

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

.btn-sm {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

/* ----- Loading Screen ----- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s, visibility 0.6s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-align: center;
}

.loading-logo span {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-bar-inner {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ----- Header / Navigation ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 700;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo span {
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav .nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(91,44,131,0.4);
}

.nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91,44,131,0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.78);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 120px 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--secondary-light);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatAnimation 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    bottom: 100px;
    left: -50px;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--primary-light);
    top: 50%;
    right: 15%;
    animation-delay: -10s;
}

.floating-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    background: var(--secondary-light);
    bottom: 20%;
    right: 30%;
    animation-delay: -15s;
}

@keyframes floatAnimation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.9); }
    75% { transform: translate(40px, -20px) scale(1.05); }
}

/* ----- Stats Counter ----- */
.stats-section {
    background: var(--dark);
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    background: var(--secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ----- Programs Cards ----- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

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

.program-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.program-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.program-card-icon {
    position: absolute;
    bottom: 16px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.program-card-body {
    padding: 28px;
}

.program-card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.program-card-body p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.program-card-stats {
    display: flex;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
}

.program-stat span {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.program-stat strong {
    font-size: 1rem;
    color: var(--dark);
    display: block;
    margin-top: 4px;
}

/* ============================================
   PROGRESS & PROGRESSION — Extraordinary
   Premium | Animated | Glass | Interactive
   ============================================ */

/* --- Base Glass Progress Bar --- */
.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 16px 0;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.progress-fill {
    height: 100%;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
}

/* Animated shimmer on fill */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: progressShimmer 2.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* --- Premium Glass Progress --- */
.progress-glass {
    height: 10px;
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 2px 20px rgba(91, 44, 131, 0.08);
}

.progress-glass .progress-fill {
    background: var(--primary);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 12px rgba(91, 44, 131, 0.35);
}

.progress-gradient-fill {
    /* inherits from parent context */
}

/* --- Milestone Markers on Bar --- */
.progress-milestones {
    position: relative;
    margin: 0 0 12px;
}

.progress-milestones .milestone {
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    white-space: nowrap;
}

.progress-milestones .milestone::before {
    content: '';
    display: block;
    width: 2px;
    height: 8px;
    background: var(--gray-300);
    margin: 0 auto 4px;
    border-radius: 2px;
}

.progress-milestones .milestone.reached {
    color: var(--primary);
}

.progress-milestones .milestone.reached::before {
    background: var(--primary);
}

/* --- Donor Stacked Avatars --- */
.donor-avatars {
    display: flex;
    align-items: center;
    margin: 12px 0 8px;
}

.donor-avatars .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: var(--transition);
}

.donor-avatars .avatar:first-child {
    margin-left: 0;
}

.donor-avatars .avatar:hover {
    transform: translateY(-3px);
    z-index: 2;
}

.donor-avatars .avatar-count {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* --- Live Donation Pulse Counter --- */
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.live-counter .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* --- Donation Thermometer --- */
.thermometer {
    position: relative;
    width: 48px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thermometer-track {
    width: 24px;
    height: 260px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.thermometer-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, #5B2C83, #7E57C2, #EC4899);
    border-radius: 0 0 10px 10px;
    transition: height 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
}

.thermometer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(0deg, transparent, rgba(255,255,255,0.25));
    border-radius: 0 0 50% 50%;
}

.thermometer-bulb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -8px;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    border: 3px solid rgba(255,255,255,0.15);
}

.thermometer-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    left: -70px;
    top: 0;
    bottom: 48px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* --- Step Progression Indicator --- */
.progression-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
}

.progression-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    z-index: 0;
}

.progression-steps .step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.progression-steps .step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.progression-steps .step.active .step-circle {
    background: var(--primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 0 20px rgba(91, 44, 131, 0.3);
}

.progression-steps .step.completed .step-circle {
    background: var(--primary);
    border-color: transparent;
    color: var(--white);
}

.progression-steps .step.completed .step-circle i {
    font-size: 1rem;
}

.progression-steps .step-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.progression-steps .step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* --- Segmented Progress Bar --- */
.progress-segmented {
    display: flex;
    gap: 4px;
    height: 12px;
    margin: 16px 0;
}

.progress-segment {
    flex: 1;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.progress-segment.filled {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(91, 44, 131, 0.2);
}

.progress-segment.filled.animate {
    animation: segmentPop 0.4s ease backwards;
}

@keyframes segmentPop {
    0% { transform: scaleY(0.5); opacity: 0; }
    60% { transform: scaleY(1.15); }
    100% { transform: scaleY(1); opacity: 1; }
}

/* --- Impact Stats with Progress Rings --- */
.impact-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.impact-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.impact-ring .ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 6;
}

.impact-ring .ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 2s ease;
}

.impact-ring .ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.impact-ring .ring-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    display: block;
    font-weight: 500;
}

/* --- Donor Progression Bar (Horizontal with crowd avatars) --- */
.donor-progression {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.donor-progression .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.donor-progression .progress-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.donor-progression .progress-header .target {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.donor-progression .progress-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.donor-progression .progress-stat {
    text-align: center;
}

.donor-progression .progress-stat .value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.donor-progression .progress-stat .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

/* --- Pulse on milestone reached --- */
@keyframes milestoneReached {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 30px rgba(236,72,153,0.4); }
    100% { transform: scale(1); }
}

.milestone-pop {
    animation: milestoneReached 0.6s ease;
}

/* ----- About Section ----- */
.about-section {
    background: var(--off-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-content p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.about-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.9rem;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ----- Donation Section ----- */
.donation-section {
    background: linear-gradient(135deg, var(--dark), #2D1B4E);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.donation-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.donation-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.donation-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.donation-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.donation-method:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.donation-method i {
    font-size: 1.5rem;
    color: var(--secondary-light);
}

.donation-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.donation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.donation-card:hover {
    transform: translateY(-5px);
}

.donation-card .amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.donation-card .label {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 8px;
}

.donation-card .impact {
    margin-top: 16px;
    padding: 16px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ----- Success Stories ----- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.story-card-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

.story-card:hover .story-card-image img {
    transform: scale(1.1);
}

.story-card-image .story-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.story-card-body {
    padding: 28px;
}

.story-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.story-card-body p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.story-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.story-author-info strong {
    display: block;
    font-size: 0.95rem;
}

.story-author-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ----- Testimonials ----- */
.testimonials-section {
    background: var(--off-white);
}

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

.testimonial-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    font-family: var(--font-heading);
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 1rem;
    margin-bottom: 16px;
}

.testimonial-content {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ----- CTA Section ----- */
.cta-section {
    background: var(--dark);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ----- Footer ----- */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 16px 0 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ----- Floating Donation Widget ----- */
.floating-donate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-donate-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(91, 44, 131, 0.4);
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-donate-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(91, 44, 131, 0.5);
}

.floating-donate-tooltip {
    background: var(--white);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(91, 44, 131, 0.6); }
    50% { box-shadow: 0 0 0 20px rgba(91, 44, 131, 0); }
    100% { box-shadow: 0 0 0 0 rgba(91, 44, 131, 0); }
}

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ----- Glass Cards ----- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* ----- Micro Animations ----- */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ----- Page Header ----- */
.page-header {
    background: var(--dark);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,30,46,0.95), rgba(91,44,131,0.7));
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.7);
}

.breadcrumbs a:hover {
    color: var(--secondary-light);
}

/* ----- Page Transition ----- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ----- Typing Effect ----- */
.typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--secondary);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ----- Partner Logos ----- */
.partners-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-400);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

/* ----- Blog Cards ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-link:hover {
    gap: 12px;
    color: var(--secondary);
}

/* ----- Event Cards ----- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.event-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.event-date {
    width: 100px;
    min-width: 100px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 20px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.event-body {
    flex: 1;
    padding: 24px;
}

.event-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-body .event-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.event-body .event-detail i {
    width: 16px;
    color: var(--secondary);
}

/* ----- Volunteer Cards ----- */
.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.volunteer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.volunteer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

.volunteer-card-body {
    padding: 24px;
}

.volunteer-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.volunteer-card-body span {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ----- Contact Section ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.contact-item-content h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--gray-50);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 44, 131, 0.1);
    background: var(--white);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ----- Map ----- */
.map-container {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- Auth Forms ----- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--off-white), var(--white));
    padding: 120px 24px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.auth-image {
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--white);
    text-align: center;
}

.auth-image h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
}

.auth-image p {
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.7;
}

.auth-form {
    padding: 60px;
}

.auth-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-form p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.auth-form .form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-form .form-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .volunteer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .donation-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .auth-container { grid-template-columns: 1fr; }
    .auth-image { display: none; }
    .events-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-toggle { display: flex; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(30, 30, 46, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
    }
    .nav.active a { width: 100%; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: 1fr; }
    .stories-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .volunteer-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .section { padding: 60px 0; }
    .donation-preview { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .auth-form { padding: 40px 24px; }
    .contact-form { padding: 24px; }
    .page-header h1 { font-size: 2.2rem; }
    /* Donation page mobile fixes */
    .donation-section .impact-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .donation-section .live-progression { grid-template-columns: 1fr !important; }
    .gift-card-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .crypto-wallet-row { flex-direction: column !important; text-align: center; }
    /* Live thermometer section */
    .live-thermometer-wrap { flex-direction: column !important; gap: 24px !important; padding: 24px !important; }
    .live-thermometer-wrap .thermometer { margin: 0 auto; }
    .live-stats-row { flex-wrap: wrap !important; gap: 12px 16px !important; }
    .live-stats-row .stat-divider { display: none !important; }
    .live-amount { font-size: 2.2rem !important; }
    /* Donor progression */
    .progress-header { flex-direction: column !important; gap: 8px !important; text-align: center; }
    .progress-header .target { font-size: 0.8rem; }
    .progress-stats { flex-direction: column !important; gap: 16px !important; align-items: center; }
    .progress-stats .progress-stat .value { font-size: 1.4rem; }
    .donor-avatars { flex-wrap: wrap; justify-content: center; }
    .donor-progression { padding: 24px !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { min-height: 70vh; }
    .hero-content { padding: 100px 0 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 1.8rem; }
    .btn { padding: 14px 24px; font-size: 0.9rem; }
    .container { padding: 0 16px; }
    .page-header { padding: 120px 0 50px; }
    .page-header h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.95rem; }
    .section { padding: 40px 0; }
    .program-card-image { height: 180px; }
    .program-card-body { padding: 20px; }
    .story-card-image { height: 200px; }
    .event-card { flex-direction: column; }
    .event-date { width: 100%; flex-direction: row; padding: 12px 20px; gap: 8px; }
    .event-date .day { font-size: 1.2rem; }
    .auth-form { padding: 30px 16px; }
    .auth-section { padding: 100px 16px; }
    .contact-form { padding: 20px; }
    .about-image img { height: 300px; }
    .footer { padding: 50px 0 0; }
    .footer-grid { gap: 24px; }
    .floating-donate { bottom: 16px; right: 16px; }
    .floating-donate-btn { width: 50px; height: 50px; font-size: 1.2rem; }
    .donation-preview { grid-template-columns: 1fr; }
    .donation-card { padding: 24px; }
    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: 2rem; }
    .testimonial-card { padding: 24px; }
    .testimonials-grid { gap: 16px; }
    .stories-grid { gap: 20px; }
    .programs-grid { gap: 20px; }
    .events-grid { gap: 20px; }
    .blog-grid { gap: 20px; }
    /* Prevent content overflow */
    img, video, iframe { max-width: 100% !important; height: auto; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Donation page tighter mobile */
    .donation-section .impact-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .live-thermometer-wrap { padding: 16px !important; gap: 16px !important; }
    .live-amount { font-size: 1.8rem !important; }
    .live-stats-row { gap: 8px 12px !important; }
    .live-stats-row div div:first-child { font-size: 1rem !important; }
    .donor-progression { padding: 16px !important; }
    .donor-avatars .avatar, .donor-avatars .avatar-count { width: 36px !important; height: 36px !important; font-size: 0.7rem !important; }
}
