@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #dc2626;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --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);
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark mode variables */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-dark: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Dark mode specific overrides for better contrast */
[data-theme="dark"] .btn-white {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .btn-white:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

[data-theme="dark"] .donation-option {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .tax-credit-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .mission-card,
[data-theme="dark"] .tech-feature,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .value-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .resource-type, 
[data-theme="dark"] .resource-size {
    background: var(--bg-dark);
    color: var(--text-secondary);
}

[data-theme="dark"] .support-type-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    text-align: center;
}

[data-theme="dark"] .feature-tag {
    background: var(--bg-dark);
    color: var(--text-secondary);
}

/* Comprehensive dark mode fixes for all white background elements */
[data-theme="dark"] .capability-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-preview-card,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .project-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .value-card,
[data-theme="dark"] .team-member,
[data-theme="dark"] .leader-card,
[data-theme="dark"] .media-item,
[data-theme="dark"] .validation-card,
[data-theme="dark"] .credential,
[data-theme="dark"] .step-card,
[data-theme="dark"] .webinar-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .material-card,
[data-theme="dark"] .support-card,
[data-theme="dark"] .terms-section,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .appreciation-card,
[data-theme="dark"] .corporate-partner,
[data-theme="dark"] .community-partner,
[data-theme="dark"] .healthcare-partner {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .capability-card p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .service-preview-card p,
[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .validation-card p,
[data-theme="dark"] .step-card p,
[data-theme="dark"] .webinar-card p,
[data-theme="dark"] .support-card p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .capability-card h3,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .service-preview-card h3,
[data-theme="dark"] .testimonial-card h3,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .validation-card h3,
[data-theme="dark"] .step-card h3,
[data-theme="dark"] .webinar-card h3,
[data-theme="dark"] .support-card h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .capability-features li,
[data-theme="dark"] .service-features li,
[data-theme="dark"] .webinar-topics li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .benefit-tag,
[data-theme="dark"] .tech-badge,
[data-theme="dark"] .tag {
    background: var(--bg-dark) !important;
    color: var(--text-secondary) !important;
}

/* Fix highlight items and stats */
[data-theme="dark"] .highlight-item,
[data-theme="dark"] .study-highlights,
[data-theme="dark"] .heritage-credentials,
[data-theme="dark"] .feature-benefits {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .highlight-stat,
[data-theme="dark"] .stat-number {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .highlight-label,
[data-theme="dark"] .stat-label {
    color: var(--text-secondary) !important;
}

/* Fix form elements */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-secondary) !important;
}

/* Fix visual placeholders */
[data-theme="dark"] .visual-placeholder {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Fix heritage content */
[data-theme="dark"] .heritage-content,
[data-theme="dark"] .heritage-text {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .heritage-text p {
    color: var(--text-secondary) !important;
}

/* Fix file type and size tags */
[data-theme="dark"] .file-type,
[data-theme="dark"] .file-size,
[data-theme="dark"] .material-details span,
[data-theme="dark"] .video-duration,
[data-theme="dark"] .duration {
    background: var(--bg-dark) !important;
    color: var(--text-secondary) !important;
}

/* Fix video thumbnails */
[data-theme="dark"] .video-thumbnail {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

/* Fix impact labels */
[data-theme="dark"] .impact-label,
[data-theme="dark"] .impact-text {
    color: var(--text-secondary) !important;
}

/* Fix FAQ sections */
[data-theme="dark"] .faq-question {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .faq-answer {
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix dropdown and select elements */
[data-theme="dark"] .dropdown-content,
[data-theme="dark"] .select-dropdown {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Fix any remaining white backgrounds */
[data-theme="dark"] .white-bg,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .card-white {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Fix checkboxes and radio buttons */
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix table elements */
[data-theme="dark"] table,
[data-theme="dark"] thead,
[data-theme="dark"] tbody,
[data-theme="dark"] th,
[data-theme="dark"] td {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] tr:nth-child(even) {
    background: var(--bg-primary) !important;
}

/* Fix contact form wrapper and items */
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .quick-contact-item,
[data-theme="dark"] .benefit-item {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix checkmark elements */
[data-theme="dark"] .checkmark {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .checkbox-label {
    color: var(--text-secondary) !important;
}

/* Fix contact links */
[data-theme="dark"] .contact-link {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .contact-link:hover {
    color: var(--accent-hover) !important;
}

/* Fix form messages */
[data-theme="dark"] .form-message {
    color: var(--text-primary) !important;
}

/* Fix social links */
[data-theme="dark"] .social-links a {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .social-links a:hover {
    background: var(--accent-color) !important;
    color: var(--bg-primary) !important;
}

/* Fix any missed elements with hardcoded white/light backgrounds */
[data-theme="dark"] .white,
[data-theme="dark"] .light-bg,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .card-bg,
[data-theme="dark"] .section-bg {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

/* Fix placeholder text */
[data-theme="dark"] ::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

/* Fix option elements in select dropdowns */
[data-theme="dark"] option {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    padding: 1.25rem 0;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Show light logo by default, hide dark logo */
.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

/* In dark mode: hide light logo, show dark logo */
[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-base);
}

main {
    margin-top: 80px;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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"),
        linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(30, 58, 138, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .accent {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700 !important;
    margin-bottom: 1rem;
    opacity: 1 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.6);
    color: white !important;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 1 !important;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.6);
    font-weight: 600 !important;
    color: white !important;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
    text-align: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

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

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

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

/* Override for dark backgrounds where we want white buttons */
.hero-section .btn-secondary,
.cta-section .btn-secondary,
.page-hero .btn-secondary,
.training-cta .btn-secondary {
    color: white;
    border-color: white;
}

.hero-section .btn-secondary:hover,
.cta-section .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.training-cta .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

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

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-section {
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 2rem;
    border-radius: 20px;
}

.services-preview {
    position: relative;
    overflow: hidden;
}

.services-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-preview-card {
    background-color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.service-preview-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 2.5rem;
    border-radius: 25px;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.learn-more i {
    transition: transform var(--transition-base);
}

.learn-more:hover i {
    transform: translateX(5px);
}

.portfolio-preview {
    background-color: var(--bg-secondary);
}

.portfolio-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

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

.cta-section-home {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.stats-home {
    padding: 4rem 0;
}

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

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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");
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.hero-notice, .eyespy-notice, .cta-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-notice i, .eyespy-notice i, .cta-banner i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.text-accent {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.text-white {
    color: white !important;
}

.about-intro {
    padding: 5rem 0;
}

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

.about-content h2 {
    text-align: left;
}

.about-image .image-placeholder {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    color: var(--primary-color);
}

.values {
    background-color: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all var(--transition-base);
}

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

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 1.5rem;
    border-radius: 15px;
}

.team {
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

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

.member-image {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-details {
    padding: 5rem 0;
}

.service-details.alternate {
    background-color: var(--bg-secondary);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-details.alternate .service-row {
    direction: rtl;
}

.service-details.alternate .service-content {
    direction: ltr;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 2rem;
    border-radius: 20px;
}

.service-features ul {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-features i {
    color: var(--secondary-color);
}

.tech-stack {
    margin-top: 2rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-badge {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.service-visual .visual-placeholder {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    color: var(--primary-color);
}

.outcome-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.outcome {
    text-align: center;
}

.outcome-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.outcome-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
    margin-top: 1.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-weight: 500;
}

.project-info {
    padding: 2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonials {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats {
    padding: 5rem 0;
}

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

.contact-section {
    padding: 5rem 0;
}

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

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.contact-text {
    flex: 1;
    min-width: 0;
}

.contact-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-text p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.social-connect {
    margin-top: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    transition: all var(--transition-base);
}

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

.social-links.large a {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.85rem;
    background: var(--bg-primary);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

.map-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.map-container {
    height: 400px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.faq-section {
    padding: 5rem 0;
}

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

.faq-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 992px) {
    .about-grid,
    .service-row,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-details.alternate .service-row {
        direction: ltr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 110px; /* Increased for new header height */
    }
    
    .nav-top {
        margin-bottom: 0.5rem; /* Reduced spacing on mobile */
    }
    
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 110px; /* Increased for new header height */
        right: -100%;
        width: 100%;
        height: calc(100vh - 110px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: right var(--transition-base);
        z-index: 1000;
        border-left: 1px solid var(--border-color);
        display: flex;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .services-carousel,
    .portfolio-grid-preview,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .outcome-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* VisionQuest 20/20 Specific Styles */

.vision-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    color: white;
    padding: 1rem;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-stats .stat-label {
    font-size: 1rem;
    opacity: 1;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    transition: background-color var(--transition-base);
}

.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
}

.donate-btn {
    background: var(--accent-color) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all var(--transition-base) !important;
}

.donate-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
}

.arizona-tax-credit {
    background: linear-gradient(135deg, var(--accent-color), #b91c1c);
    padding: 3rem 0;
}

.tax-credit-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
}

.tax-credit-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tax-credit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #b91c1c);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.tax-credit-text {
    flex: 1;
    min-width: 300px;
}

.tax-credit-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.tax-amounts {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
}

.mission-section {
    background-color: var(--bg-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.eyespy-technology {
    padding: 5rem 0;
}

.technology-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-feature {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.tech-feature:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.supporters-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.supporter-logo {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.supporter-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.supporter-logo i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.supporter-logo span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

/* Rolling Credits Styles */
.rolling-credits-container {
    position: relative;
    height: 300px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.rolling-credits {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
    animation: perfectScroll 15s linear infinite;
}

.rolling-credits.paused {
    animation-play-state: paused;
}

.credit-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    min-width: 250px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 1;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.credit-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.credits-overlay {
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}

.credits-overlay-top {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, rgba(249, 250, 251, 0.8) 50%, transparent 100%);
}

.credits-overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(249, 250, 251, 0.8) 50%, transparent 100%);
}

.credits-pause-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 3;
    user-select: none;
}

.rolling-credits-container:hover .credits-pause-indicator {
    opacity: 1;
}

.rolling-credits.paused + .credits-pause-indicator {
    opacity: 1;
    background: rgba(220, 38, 38, 0.9);
}

.rolling-credits.paused + .credits-pause-indicator::before {
    content: "⏸ Paused • ";
}

@keyframes perfectScroll {
    0% {
        transform: translateY(300px);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Dark theme support for rolling credits */
[data-theme="dark"] .rolling-credits-container {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(5, 150, 105, 0.2));
    border-color: var(--border-color);
}

[data-theme="dark"] .credit-item {
    background: rgba(31, 41, 55, 0.95);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .credits-overlay-top {
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, rgba(31, 41, 55, 0.8) 50%, transparent 100%);
}

[data-theme="dark"] .credits-overlay-bottom {
    background: linear-gradient(to top, var(--bg-secondary) 0%, rgba(31, 41, 55, 0.8) 50%, transparent 100%);
}

.donation-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.donation-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.donation-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.donation-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

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

.donation-option h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.donation-option p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tax-reminder {
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.impact-stats {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.nonprofit-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nonprofit-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .tax-credit-content {
        text-align: center;
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .donation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
        border-radius: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats .stat-item {
        padding: 0.5rem;
    }
    
    .donation-grid {
        grid-template-columns: 1fr;
    }
    
    /* Rolling credits mobile adjustments */
    .rolling-credits-container {
        height: 250px;
        margin: 2rem auto;
    }
    
    .rolling-credits {
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .credit-item {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
        min-width: 180px;
    }
    
    .credits-pause-indicator {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .response-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Specific Styles */

.organization-overview {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.credential-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-highlight {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-light);
}

.stat-highlight .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-highlight .stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.leadership-section {
    padding: 5rem 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leader-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.leader-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.leader-image i {
    font-size: 2rem;
}

.leader-image::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: left 0.6s ease;
}

.leader-card:hover .leader-image::before {
    left: 100%;
}

.leader-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.leader-card .title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.leader-card .bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

.media-recognition {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.media-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.media-icon {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.media-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.media-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.board-of-directors {
    padding: 5rem 0;
}

.board-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.board-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .credentials {
        align-items: center;
    }
    
    .credential-item {
        justify-content: center;
        text-align: center;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* EyeSpy Technology Pages Styles */

.technology-overview {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.tech-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.tech-showcase {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.showcase-text {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.capabilities-section {
    padding: 5rem 0;
}

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

.capability-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.capability-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.capability-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.capability-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.capability-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.capability-icon i {
    font-size: 1.75rem;
}

.capability-icon::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: left 0.6s ease;
}

.capability-card:hover .capability-icon::before {
    left: 100%;
}

.capability-features {
    margin-top: 2rem;
}

.capability-features ul {
    list-style: none;
    margin-top: 1rem;
}

.capability-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.capability-features i {
    color: var(--secondary-color);
}

.features-showcase {
    padding: 3rem 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-content h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.benefit-tag {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-visual .visual-placeholder {
    height: 300px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tech-blue { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.tech-green { background: linear-gradient(135deg, #10b981, #059669); }
.tech-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tech-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.validation-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.validation-content {
    max-width: 800px;
    margin: 0 auto;
}

.validation-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.validation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

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

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

.highlight-stat {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cmu-heritage {
    padding: 5rem 0;
}

.heritage-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.heritage-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.heritage-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.heritage-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
}

.credential i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.cmu-colors {
    background: linear-gradient(135deg, #C41E3A, #8B0000);
}

.getting-started {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

/* Training Page Styles */

.training-overview {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.training-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.training-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.webinar-section {
    padding: 5rem 0;
}

.webinar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.webinar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.webinar-icon {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.duration {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.webinar-topics {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.webinar-topics h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.webinar-topics ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.webinar-topics li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.webinar-btn {
    width: 100%;
    margin-top: 1rem;
}

.video-library {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.video-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.video-info {
    padding: 2rem;
}

.video-duration {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-btn {
    width: 100%;
    margin-top: 1rem;
}

.training-materials {
    padding: 5rem 0;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.material-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.material-icon {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.material-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.file-type, .file-size {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.download-btn {
    margin-top: 1rem;
}

.support-options {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.support-icon {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.support-details {
    margin: 1.5rem 0;
    text-align: left;
}

.support-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.training-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.training-cta .section-title,
.training-cta .section-subtitle,
.training-cta h1,
.training-cta h2,
.training-cta h3,
.training-cta p {
    color: white !important;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Support Page Styles */

.support-types {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.support-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-type-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.support-type-card:hover,
.support-type-card.selected {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.support-type-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.support-type-card h3 {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.support-type-card p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.support-features {
    flex-shrink: 0;
    margin-top: auto;
}

.feature-tag {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.support-form-section {
    padding: 5rem 0;
}

.support-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-info h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-options {
    margin-top: 3rem;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-details p {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.hours {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-container {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.support-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.95rem;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-weight: bold;
}

.response-times {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.response-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 4px solid;
}

.response-card.critical { border-top-color: #ef4444; }
.response-card.high { border-top-color: #f59e0b; }
.response-card.medium { border-top-color: #3b82f6; }
.response-card.low { border-top-color: #10b981; }

.priority-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.priority-indicator.critical { background: #ef4444; }
.priority-indicator.high { background: #f59e0b; }
.priority-indicator.medium { background: #3b82f6; }
.priority-indicator.low { background: #10b981; }

.response-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-preview {
    padding: 5rem 0;
}

@media (max-width: 992px) {
    .tech-intro,
    .heritage-content,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .support-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .getting-started-grid {
        grid-template-columns: 1fr;
    }
    
    .study-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .training-stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .support-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .contact-option {
        flex-direction: column;
        text-align: center;
    }
    
    .response-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .response-grid {
        grid-template-columns: 1fr;
    }
}

/* Terms & Conditions Page Styles */
.terms-content {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.terms-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.terms-meta {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.terms-meta p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.terms-section h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.25rem;
}

.terms-section p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.terms-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.terms-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.trademark-list {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.trademark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.trademark-grid li {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.contact-info p {
    margin: 1rem 0;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .terms-wrapper {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .trademark-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-list {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-wrapper {
        padding: 1.5rem;
    }
    
    .terms-meta {
        padding: 1rem;
    }
    
    .legal-notice {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
}

/* Navigation Tools (Language Selector & Theme Toggle) */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Google Translate Styling */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.language-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 10000;
    max-height: 300px;
    overflow-y: auto;
    pointer-events: auto;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
    pointer-events: auto;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.lang-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Dark mode support for language selector */
[data-theme="dark"] .language-btn {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .language-btn:hover {
    background: var(--bg-dark);
    border-color: var(--primary-color);
}

[data-theme="dark"] .language-dropdown {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .lang-option {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .lang-option:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

/* Google Translate element is hidden via inline style and CSS rules below */

/* All Google Translate elements are hidden, no styling needed */

/* Hide Google Translate UI visually but keep functional elements accessible */
#google_translate_element {
    position: absolute !important;
    top: -100px !important;
    left: 0 !important;
    width: 200px !important;
    height: 50px !important;
    opacity: 0.01 !important; /* Almost invisible but not completely hidden */
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Allow Google Translate to create functional elements but keep them hidden */
.goog-te-gadget,
.goog-te-combo {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: auto !important; /* Keep them interactive for programmatic access */
}

/* Hide notification banners completely */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
body > .skiptranslate,
.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
}

/* Force hide Google Translate notifications */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

/* Ensure body stays in position despite Google Translate */
body {
    top: 0 !important;
}

/* Ensure mobile navigation links are visible in dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu a {
        color: var(--text-primary) !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    [data-theme="dark"] .nav-menu a:hover {
        color: var(--accent-color) !important;
    }
    
    [data-theme="dark"] .donate-btn {
        background: var(--accent-color) !important;
        color: white !important;
    }
}

/* Google Translate elements are completely hidden - no styling needed */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Featured sections and cards */
.featured-section {
    background: var(--bg-secondary);
}

.category-card.featured {
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
}

.category-card.featured h3,
.category-card.featured p {
    color: white !important;
}

.category-card.featured .category-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.category-card.featured .resource-count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

[data-theme="dark"] .category-card.featured {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)) !important;
    color: white !important;
    border: 2px solid var(--primary-light) !important;
}

.resource-card.highlight {
    border: 2px solid var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
}

.resource-card.highlight h3,
.resource-card.highlight p {
    color: white !important;
}

/* Arizona-focused elements */
.arizona-focused {
    border-left: 4px solid var(--accent-color);
}

/* Supporter page specific styles */
.gratitude-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.gratitude-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gratitude-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.impact-highlight {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.impact-highlight i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.individual-donors-section {
    padding: 5rem 0;
}

.donor-appreciation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.appreciation-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

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

.appreciation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.donor-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 3rem;
}

.donor-cta h3 {
    margin-bottom: 1rem;
    color: white;
}

.donor-cta p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Partner sections */
.philanthropic-partners, .corporate-partners, .community-partners, .healthcare-partners {
    padding: 5rem 0;
}

.philanthropic-partners {
    background: var(--bg-secondary);
}

.healthcare-partners {
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

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

.partner-card.placeholder {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
}

.partner-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.partner-impact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.impact-label {
    font-weight: 600;
    color: var(--primary-color);
}

.corporate-grid, .community-grid, .healthcare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.corporate-partner, .community-partner, .healthcare-partner {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.corporate-partner:hover, .community-partner:hover, .healthcare-partner:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.corporate-partner.placeholder, .community-partner.placeholder, .healthcare-partner.placeholder {
    border: 2px dashed var(--border-color);
    background: var(--bg-secondary);
}

.corporate-logo, .community-logo, .healthcare-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.become-supporter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

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

.supporter-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.supporter-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.supporter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.option-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.option-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/* Responsive navigation tools */
@media (max-width: 768px) {
    .nav-tools {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .language-selector {
        order: 1;
    }

    .language-selector .language-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        order: 2;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .mobile-nav-toggle {
        order: 3;
        z-index: 1001;
    }

    .donor-appreciation {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .corporate-grid, .community-grid, .healthcare-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .supporter-options {
        grid-template-columns: 1fr;
    }
}

/* Resources/Library Page Styles */
.resources-overview {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.resources-intro h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.resources-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.quick-stats .stat-item {
    text-align: center;
}

.quick-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quick-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-categories {
    padding: 4rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 87, 156, 0.3);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resource-count {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.resource-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.resource-type, .resource-size {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resource-btn {
    margin-top: auto;
    align-self: flex-start;
}

.section-nav {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-pill {
    padding: 0.8rem 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.nav-pill:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Resources */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .quick-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .nav-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .resource-section {
        padding: 3rem 0;
    }
}

/* =================================================================
   CONSISTENCY FIXES - UNIFIED CARD STYLING SYSTEM
   ================================================================= */

/* 1. UNIFIED CARD BASE STYLES - All cards should have consistent foundation */
.mission-card,
.tech-feature,
.donation-option,
.tax-credit-card,
.leader-card,
.media-item,
.category-card,
.resource-card,
.contact-option-card,
.contact-item,
.support-type-card,
.feature-card,
.value-card,
.project-card,
.testimonial-card,
.capability-card,
.validation-card,
.step-card,
.webinar-card,
.video-card,
.material-card,
.support-card,
.response-card,
.appreciation-card,
.partner-card,
.option-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center; /* Unified text alignment */
    color: var(--text-primary);
}

/* 2. UNIFIED HOVER STATES - All cards should have consistent hover behavior */
.mission-card:hover,
.tech-feature:hover,
.donation-option:hover,
.leader-card:hover,
.media-item:hover,
.category-card:hover,
.resource-card:hover,
.contact-option-card:hover,
.support-type-card:hover,
.feature-card:hover,
.value-card:hover,
.project-card:hover,
.testimonial-card:hover,
.capability-card:hover,
.validation-card:hover,
.step-card:hover,
.webinar-card:hover,
.video-card:hover,
.material-card:hover,
.support-card:hover,
.appreciation-card:hover,
.partner-card:hover,
.option-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* 3. UNIFIED DARK MODE FIXES - Comprehensive dark mode consistency */
[data-theme="dark"] .mission-card,
[data-theme="dark"] .tech-feature,
[data-theme="dark"] .donation-option,
[data-theme="dark"] .tax-credit-card,
[data-theme="dark"] .leader-card,
[data-theme="dark"] .media-item,
[data-theme="dark"] .category-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .contact-option-card,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .support-type-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .capability-card,
[data-theme="dark"] .validation-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .webinar-card,
[data-theme="dark"] .video-card,
[data-theme="dark"] .material-card,
[data-theme="dark"] .support-card,
[data-theme="dark"] .response-card,
[data-theme="dark"] .appreciation-card,
[data-theme="dark"] .partner-card,
[data-theme="dark"] .option-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* 4. UNIFIED HEADING STYLES - All card headings consistent */
.mission-card h3,
.tech-feature h3,
.donation-option h3,
.leader-card h3,
.media-item h3,
.category-card h3,
.resource-card h3,
.contact-option-card h3,
.support-type-card h3,
.feature-card h3,
.value-card h3,
.testimonial-card h3,
.capability-card h3,
.validation-card h3,
.step-card h3,
.webinar-card h3,
.video-card h3,
.material-card h3,
.support-card h3,
.appreciation-card h3,
.partner-card h3,
.option-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* 5. UNIFIED PARAGRAPH STYLES - All card descriptions consistent */
.mission-card p,
.tech-feature p,
.donation-option p,
.leader-card p,
.media-item p,
.category-card p,
.resource-card p,
.contact-option-card p,
.support-type-card p,
.feature-card p,
.value-card p,
.testimonial-card p,
.capability-card p,
.validation-card p,
.step-card p,
.webinar-card p,
.video-card p,
.material-card p,
.support-card p,
.appreciation-card p,
.partner-card p,
.option-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 6. UNIFIED ICON STYLING - All card icons consistent */
.mission-icon,
.tech-icon,
.leader-image,
.media-icon,
.category-icon,
.resource-icon,
.option-icon,
.contact-icon,
.support-icon,
.feature-icon,
.value-icon,
.capability-icon,
.validation-icon,
.step-number,
.webinar-icon,
.video-icon,
.material-icon,
.support-type-icon,
.appreciation-icon,
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
}

/* 7. DARK MODE ICON FIXES */
[data-theme="dark"] .mission-icon,
[data-theme="dark"] .tech-icon,
[data-theme="dark"] .leader-image,
[data-theme="dark"] .media-icon,
[data-theme="dark"] .category-icon,
[data-theme="dark"] .resource-icon,
[data-theme="dark"] .option-icon,
[data-theme="dark"] .contact-icon,
[data-theme="dark"] .support-icon,
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .value-icon,
[data-theme="dark"] .capability-icon,
[data-theme="dark"] .validation-icon,
[data-theme="dark"] .step-number,
[data-theme="dark"] .webinar-icon,
[data-theme="dark"] .video-icon,
[data-theme="dark"] .material-icon,
[data-theme="dark"] .support-type-icon,
[data-theme="dark"] .appreciation-icon {
    background: var(--primary-light);
    color: white;
}

/* 8. ENHANCED CONTRAST FOR LIGHT MODE */
/* Light mode improvements for better readability */
.mission-card,
.tech-feature,
.feature-card,
.value-card,
.capability-card,
.validation-card,
.step-card,
.webinar-card,
.video-card,
.material-card,
.support-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 9. SPECIAL STYLING FIXES FOR SPECIFIC ELEMENTS */

/* Contact items need left-aligned text */
.contact-item {
    text-align: left !important;
}

/* Donation options keep center alignment but need better contrast */
.donation-option {
    text-align: center;
}

[data-theme="dark"] .donation-option {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--primary-color) !important;
}

/* Supporter option cards specific fixes - these were showing inconsistent dark cards */
.option-card {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    text-align: center;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .option-card {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Corporate, community, healthcare partner cards consistency */
.corporate-partner,
.community-partner,
.healthcare-partner {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .corporate-partner,
[data-theme="dark"] .community-partner,
[data-theme="dark"] .healthcare-partner {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Supporter logos section consistency */
.supporter-logo {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .supporter-logo {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Tax credit card special styling */
.tax-credit-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

[data-theme="dark"] .tax-credit-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
}

.tax-credit-card h3,
.tax-credit-card p {
    color: white !important;
}

/* 10. METADATA AND TAGS CONSISTENCY */
.resource-type,
.resource-size,
.file-type,
.file-size,
.duration,
.contact-method,
.feature-tag,
.benefit-tag,
.tech-badge,
.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
}

[data-theme="dark"] .resource-type,
[data-theme="dark"] .resource-size,
[data-theme="dark"] .file-type,
[data-theme="dark"] .file-size,
[data-theme="dark"] .duration,
[data-theme="dark"] .contact-method,
[data-theme="dark"] .feature-tag,
[data-theme="dark"] .benefit-tag,
[data-theme="dark"] .tech-badge,
[data-theme="dark"] .tag {
    background: var(--bg-dark) !important;
    color: var(--text-secondary) !important;
}

/* 11. GRID LAYOUT CONSISTENCY */
.mission-grid,
.technology-showcase,
.leadership-grid,
.media-grid,
.category-grid,
.resources-grid,
.contact-options-grid,
.support-types-grid,
.features-grid,
.values-grid,
.capabilities-grid,
.getting-started-grid,
.webinar-grid,
.video-grid,
.materials-grid,
.support-grid,
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* =================================================================
   SECTION-SPECIFIC CARD UNIFORMITY - ALL CARDS WITHIN SECTIONS IDENTICAL
   ================================================================= */

/* MISSION SECTION - All mission cards identical */
.mission-section .mission-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .mission-section .mission-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* TECHNOLOGY SECTION - All tech feature cards identical */
.eyespy-technology .tech-feature {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .eyespy-technology .tech-feature {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* DONATION SECTION - All donation option cards identical */
.donation-section .donation-option {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .donation-section .donation-option {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* SUPPORTERS SECTION - All supporter logo cards identical */
.supporters-section .supporter-logo {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .supporters-section .supporter-logo {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* LEADERSHIP SECTION - All leader cards identical */
.leadership-section .leader-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .leadership-section .leader-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* MEDIA RECOGNITION SECTION - All media items identical */
.media-recognition .media-item {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .media-recognition .media-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* RESOURCE CATEGORIES SECTION - All category cards identical (except featured) */
.resource-categories .category-card:not(.featured) {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .resource-categories .category-card:not(.featured) {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* RESOURCE SECTIONS - All resource cards identical (except highlighted) */
.resource-section .resource-card:not(.highlight) {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .resource-section .resource-card:not(.highlight) {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* CONTACT OPTIONS SECTION - All contact option cards identical */
.contact-options-section .contact-option-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .contact-options-section .contact-option-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* CONTACT DETAILS SECTION - All contact items identical */
.contact-details-section .contact-item {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: left !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .contact-details-section .contact-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* SUPPORT TYPES SECTION - All support type cards identical */
.support-types .support-type-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .support-types .support-type-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* RESPONSE TIMES SECTION - All response cards identical */
.response-times .response-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .response-times .response-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* PHILANTHROPIC PARTNERS SECTION - All partner cards identical */
.philanthropic-partners .partner-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .philanthropic-partners .partner-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* CORPORATE PARTNERS SECTION - All corporate partner cards identical */
.corporate-partners .corporate-partner {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .corporate-partners .corporate-partner {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* COMMUNITY PARTNERS SECTION - All community partner cards identical */
.community-partners .community-partner {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .community-partners .community-partner {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* HEALTHCARE PARTNERS SECTION - All healthcare partner cards identical */
.healthcare-partners .healthcare-partner {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .healthcare-partners .healthcare-partner {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* BECOME SUPPORTER SECTION - All option cards identical */
.become-supporter .option-card {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

[data-theme="dark"] .become-supporter .option-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* UNIFORM HOVER EFFECTS WITHIN SECTIONS */
.mission-section .mission-card:hover,
.eyespy-technology .tech-feature:hover,
.donation-section .donation-option:hover,
.supporters-section .supporter-logo:hover,
.leadership-section .leader-card:hover,
.media-recognition .media-item:hover,
.resource-categories .category-card:not(.featured):hover,
.resource-section .resource-card:not(.highlight):hover,
.contact-options-section .contact-option-card:hover,
.support-types .support-type-card:hover,
.response-times .response-card:hover,
.philanthropic-partners .partner-card:hover,
.corporate-partners .corporate-partner:hover,
.community-partners .community-partner:hover,
.healthcare-partners .healthcare-partner:hover,
.become-supporter .option-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-light) !important;
}

/* UNIFORM TEXT STYLES WITHIN SECTIONS */
.mission-section .mission-card h3,
.eyespy-technology .tech-feature h3,
.donation-section .donation-option h3,
.leadership-section .leader-card h3,
.media-recognition .media-item h3,
.resource-categories .category-card:not(.featured) h3,
.resource-section .resource-card:not(.highlight) h3,
.contact-options-section .contact-option-card h3,
.support-types .support-type-card h3,
.response-times .response-card h3,
.philanthropic-partners .partner-card h3,
.corporate-partners .corporate-partner h3,
.community-partners .community-partner h3,
.healthcare-partners .healthcare-partner h3,
.become-supporter .option-card h3 {
    color: var(--text-primary) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.mission-section .mission-card p,
.eyespy-technology .tech-feature p,
.donation-section .donation-option p,
.leadership-section .leader-card p,
.media-recognition .media-item p,
.resource-categories .category-card:not(.featured) p,
.resource-section .resource-card:not(.highlight) p,
.contact-options-section .contact-option-card p,
.support-types .support-type-card p,
.response-times .response-card p,
.philanthropic-partners .partner-card p,
.corporate-partners .corporate-partner p,
.community-partners .community-partner p,
.healthcare-partners .healthcare-partner p,
.become-supporter .option-card p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

/* Hero text contrast fix - high specificity override */
.hero-section .hero-content .hero-subtitle {
    color: white !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-section .hero-content .hero-description {
    color: white !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.6);
}

/* Apply same blue patterned background as other pages */
.hero-section .hero-overlay {
    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"),
        linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(30, 58, 138, 0.5) 100%) !important;
}

/* Force white text on hero stats for proper contrast */
.hero-section .hero-stats .stat-number {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-section .hero-stats .stat-label {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Dark mode: Make learn-more links white for better contrast */
[data-theme="dark"] .learn-more {
    color: white !important;
}

[data-theme="dark"] .learn-more:hover {
    color: #f0f0f0 !important;
}

/* Real-time statistics enhancements */
.date-range-display {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date-range-display i {
    color: var(--primary-color);
}

.since-date {
    font-weight: 600;
    color: var(--primary-color);
}

[data-theme="dark"] .date-range-display {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.stat-trend {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-trend i {
    font-size: 0.9rem;
}

.trend-text {
    font-weight: 500;
}

/* Donation progress bar */
.donation-progress {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.progress-header {
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.progress-header p {
    color: var(--text-secondary);
    margin: 0;
}

.progress-bar-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 2s ease-in-out;
    width: 65%; /* This will be updated dynamically */
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.current-amount {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.goal-amount {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Dark mode support for new elements */
[data-theme="dark"] .donation-progress {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .progress-header h3 {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .progress-header p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .current-amount {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .stat-trend {
    color: var(--text-secondary) !important;
}

/* Real-time update indicator */
.stats-update-indicator {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(100px);
    transition: all var(--transition-base);
    z-index: 1000;
}

.stats-update-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

.stats-update-indicator i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced stat number formatting */
.stat-number {
    position: relative;
    overflow: hidden;
}

.stat-number.updating {
    color: var(--primary-light);
}

.stat-number.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: loading-sweep 1s ease-in-out;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .donation-progress {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .stat-trend {
        font-size: 0.8rem;
    }
    
    .stats-update-indicator {
        right: 10px;
        top: 90px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}