/* ========================================
   ANANDA EDUCATIONAL FOUNDATION - CSS
   Modern, Professional, Responsive Design
   Updated: Text Visibility Fixes v2.0
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    /* Primary Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    
    /* Accent Colors */
    --accent-color: #10b981;
    --accent-dark: #059669;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --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;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only, .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Accessibility */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === GLOBAL RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    image-rendering: auto;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* === CONTAINER === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-800);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 6rem 0 3rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    z-index: 0;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 70vh;
}

.hero-text {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Stats Section */
.hero-stats {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .hero-illustration {
        order: -1;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* === QUICK LINKS === */
.quick-links {
    background: var(--gray-50);
    padding: 3rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.quick-link-card span {
    font-weight: 600;
    color: var(--gray-800);
}

/* === SECTION STYLES === */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    background: rgba(30, 64, 175, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

/* === ABOUT SECTION === */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.about-card {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* === PROGRAMS SECTION === */
.programs-section {
    background: var(--gray-50);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.program-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.program-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.program-card.featured .program-icon {
    background: rgba(255, 255, 255, 0.2);
}

.program-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.program-card.featured .program-content h3 {
    color: var(--white);
}

.program-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.program-card.featured .program-content p {
    color: rgba(255, 255, 255, 0.9);
}

.program-features {
    margin-bottom: 2rem;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.program-card.featured .program-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.program-card.featured .program-features i {
    color: var(--white);
}

/* === SERVICES SECTION === */
.services-section {
    background: var(--white);
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.service-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.service-item:hover i {
    color: var(--white);
}

.service-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.service-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* === IMPACT SECTION === */
.impact-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.impact-section .section-subtitle {
    color: var(--secondary-color);
}

.impact-section .section-title {
    color: var(--white);
}

.impact-section .section-description {
    color: rgba(255, 255, 255, 0.95);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.impact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.impact-card h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.impact-stat {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    margin: 1rem 0;
    color: var(--secondary-color);
}

.impact-card p {
    opacity: 0.95;
    line-height: 1.7;
    color: var(--white);
}

/* === TEXT UTILITIES === */
.text-center {
    text-align: center;
}

/* === EVENTS SECTION === */
.events-section {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 70px;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.event-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-content i {
    color: var(--primary-color);
}

.event-content .btn {
    margin-top: 1rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    background: var(--gray-50);
    position: relative;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.testimonial-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.info-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* === FORM STYLES === */
.contact-form {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* === FOOTER === */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--primary-light);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    transition: var(--transition-normal);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top.visible {
    display: flex;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .programs-grid,
    .about-grid,
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid,
    .quick-links-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        min-height: calc(100vh + 100px);
        height: auto;
        padding-bottom: 140px;
    }
    
    .hero-slide {
        top: 80px;
        height: calc(100vh - 220px);
        background-position: top center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
    .hero-content {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-stats {
        position: absolute;
        bottom: 0;
        padding: 1rem 0;
        margin-top: 0;
    }
    
    .stat-item {
        padding: 0.5rem 0.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .programs-grid,
    .about-grid,
    .impact-grid,
    .events-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .quick-links-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .program-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* === ANIMATIONS === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    animation: slideInUp 0.6s ease forwards;
}

[data-aos="fade-left"].aos-animate {
    animation: slideInRight 0.6s ease forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: slideInLeft 0.6s ease forwards;
}

[data-aos="zoom-in"].aos-animate {
    animation: zoomIn 0.6s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

[data-aos="flip-left"].aos-animate {
    animation: flipIn 0.6s ease forwards;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0);
    }
}

/* === PAGE HEADER === */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header-image {
    width: 100%;
    position: relative;
}

.page-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-header-content {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    padding: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.page-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.page-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* === ABOUT PAGE === */
.about-mission {
    padding: 6rem 0;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mv-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.mv-content {
    padding: 2.5rem;
}

.mv-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mv-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.values-section {
    background: var(--gray-50);
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.story-section {
    padding: 6rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-images {
    position: relative;
}

.story-img-main {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.story-img-small {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 50%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.story-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.story-stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* === PROGRAMS PAGE === */
.programs-detail-section {
    padding: 6rem 0;
}

.program-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.program-detail.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.program-detail.reverse .program-detail-content {
    order: 2;
}

.program-detail.reverse .program-detail-image {
    order: 1;
}

.program-detail-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.program-detail-content h3 i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.program-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    color: var(--gray-700);
}

.program-list i {
    color: var(--accent-color);
    margin-right: 0.75rem;
}

.program-detail-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 1024px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .story-img-small {
        position: static;
        width: 60%;
        margin-top: 1rem;
    }
    
    .program-detail,
    .program-detail.reverse {
        grid-template-columns: 1fr;
    }
    
    .program-detail.reverse .program-detail-content,
    .program-detail.reverse .program-detail-image {
        order: initial;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 4rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
    }
}

/* === DONATION PAGE STYLES === */
.donation-options-section {
    padding: 6rem 0;
    background: var(--white);
}

.donation-type-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.donation-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.donation-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.donation-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.amount-selection {
    margin-bottom: 2.5rem;
}

.amount-selection > label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-300);
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.amount-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.custom-amount {
    margin-top: 1.5rem;
}

.custom-amount label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.input-with-icon {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-600);
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.donation-form h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 2.5rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: var(--gray-700);
}

.form-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.recurring-info {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
}

.recurring-info h4 {
    border: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 1.25rem;
    color: var(--accent-color);
}

.recurring-info p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
}

.sponsorship-benefits {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.sponsorship-benefits h4 {
    color: var(--white);
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.sponsorship-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sponsorship-benefits li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.sponsorship-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Responsive Design for Donation Forms */
@media (max-width: 768px) {
    .donation-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .donation-type-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large,
    .btn-submit {
        width: 100%;
    }
}

/* === VOLUNTEER PAGE STYLES === */
.why-volunteer-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.opportunity-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.opportunity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.opportunity-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.opportunity-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.opportunity-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.opportunity-requirements {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.opportunity-requirements li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-200);
}

.opportunity-requirements li:first-child {
    border-top: none;
}

.opportunity-requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.volunteer-testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.volunteer-application-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.volunteer-application-section .section-title,
.volunteer-application-section .section-description {
    color: var(--white);
}

.volunteer-form {
    max-width: 800px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.volunteer-form h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.volunteer-form .form-group {
    margin-bottom: 1.5rem;
}

.volunteer-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.volunteer-form input,
.volunteer-form select,
.volunteer-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.volunteer-form input:focus,
.volunteer-form select:focus,
.volunteer-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.volunteer-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* === GALLERY PAGE STYLES === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* === EVENTS PAGE STYLES === */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.event-date {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}

.event-date .day {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.event-date .month {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: 0.5rem;
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.event-content .event-time,
.event-content .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.event-content .event-time i,
.event-content .event-location i {
    color: var(--primary-color);
}

.event-content p {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 1rem 0;
}

/* === SUCCESS STORIES PAGE STYLES === */
.story-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 3rem;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.story-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.story-card.featured .story-image {
    height: 100%;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.story-content {
    padding: 2.5rem;
}

.story-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.story-content .story-quote {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.story-details {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.detail-item {
    text-align: center;
}

.detail-item .label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.story-impact h4 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.story-impact ul {
    list-style: none;
    padding: 0;
}

.story-impact li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-700);
    line-height: 1.6;
}

.story-impact li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-box .label {
    font-size: 1rem;
    opacity: 0.95;
}

/* === NEWS PAGE STYLES === */
.featured-news-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.featured-news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-news-image {
    position: relative;
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.featured-badge {
    background: var(--secondary-color);
}

.featured-news-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-date,
.news-category {
    font-size: 0.95rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-category {
    color: var(--primary-color);
    font-weight: 600;
}

.featured-news-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--gray-700);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.news-grid-section {
    padding: 6rem 0;
    background: var(--white);
}

.news-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 1rem 0;
    line-height: 1.4;
}

.news-content p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Additional Pages */
@media (max-width: 768px) {
    .story-card.featured {
        grid-template-columns: 1fr;
    }
    
    .featured-news-card {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        height: 300px;
    }
    
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
    }
    
    .story-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}

/* === ENHANCED ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* === LOADING STATE === */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded .loading {
    opacity: 1;
}

/* === ENHANCED FOCUS STYLES === */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--secondary-color);
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .footer,
    .scroll-to-top,
    .hamburger,
    .hero-slider,
    .testimonial-controls {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    .page-break {
        page-break-after: always;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-slide {
        transition: none !important;
    }
    
    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === HIGH CONTRAST MODE === */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --gray-700: #000000;
        --gray-300: #FFFFFF;
    }
    
    .btn {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --black: #ffffff;
        --gray-50: #2d2d2d;
        --gray-100: #363636;
        --gray-200: #404040;
        --gray-300: #4d4d4d;
        --gray-800: #e0e0e0;
        --gray-900: #f0f0f0;
    }
    
    body {
        background: var(--white);
        color: var(--gray-900);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: var(--gray-200);
    }
    
    .footer {
        background: var(--gray-100);
    }
    
    .program-card,
    .about-card,
    .impact-card,
    .event-card {
        background: var(--gray-50);
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.hero-slide,
.testimonial-card,
.gallery-item {
    will-change: transform, opacity;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === IMPROVED IMAGE STYLING === */
.logo img {
    object-fit: contain !important;
    width: 100px !important;
    height: 100px !important;
}

.footer-logo img {
    object-fit: contain !important;
    width: 75px !important;
    height: 75px !important;
}

/* Gallery Images */
.gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
}

/* Card Images */
.program-card img,
.event-card img,
.news-card img {
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Feature Images */
.about-card img,
.impact-card img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

/* Ensure hero images fill properly */
.hero-slide {
    background-size: cover;
    background-position: center;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-slide {
        background-size: cover;
        background-position: center;
    }
    
    .logo img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .footer-logo img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }

.fw-bold { font-weight: 700; }
.fw-normal { font-weight: 400; }
.fw-light { font-weight: 300; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* === END OF STYLESHEET === */
