/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Terre Haute Color Palette */
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #1e40af;
    --secondary-orange: #f59e0b;
    --accent-green: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-claim {
    background-color: var(--secondary-orange);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-claim:hover {
    background-color: #d97706;
    color: var(--bg-white) !important;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 50%, #3b82f6 100%);
    /* Fallback - will add background image via inline style or CSS below */
    background-image: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 64, 175, 0.92) 50%, rgba(59, 130, 246, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%231e3a8a;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%233b82f6;stop-opacity:0.1"/></linearGradient></defs><rect fill="url(%23g)" width="1200" height="600"/><g fill="white" opacity="0.05"><circle cx="100" cy="100" r="80"/><circle cx="400" cy="200" r="60"/><circle cx="800" cy="150" r="100"/><circle cx="1100" cy="300" r="70"/><circle cx="300" cy="450" r="90"/><circle cx="700" cy="500" r="60"/><circle cx="1000" cy="100" r="50"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/><circle cx="40" cy="25" r="1.5" fill="white" opacity="0.2"/><circle cx="70" cy="15" r="1" fill="white" opacity="0.4"/><circle cx="85" cy="45" r="1.2" fill="white" opacity="0.25"/><circle cx="25" cy="60" r="1" fill="white" opacity="0.3"/><circle cx="60" cy="75" r="1.3" fill="white" opacity="0.2"/><circle cx="90" cy="85" r="1" fill="white" opacity="0.35"/></svg>');
    background-size: 200px 200px;
    opacity: 0.4;
    animation: float 60s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--bg-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1.125rem 140px 1.125rem 3.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.search-input:focus {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--secondary-orange) 0%, #d97706 100%);
    color: var(--bg-white);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-50%) translateY(-1px);
}

.search-button:active {
    transform: translateY(-50%) translateY(0px);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 450px;
    overflow-y: auto;
    z-index: 100;
    border: 1px solid var(--border-gray);
}

.search-result-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-gray);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}

.search-result-item:hover {
    background-color: var(--bg-light);
    padding-left: 1.25rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.search-result-category {
    font-size: 0.8125rem;
    color: var(--secondary-orange);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.search-result-desc {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.category-card {
    background-color: var(--bg-white);
    padding: 0;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 1.5rem 0.75rem;
    color: var(--text-dark);
}

.category-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    margin: 0 1.5rem 1rem;
    line-height: 1.5;
}

.category-count {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--secondary-orange);
    font-weight: 600;
    margin: 0 1.5rem 1.5rem;
    background-color: rgba(245, 158, 11, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
}

.browse-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all 0.2s;
}

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

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: var(--spacing-2xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-orange);
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.step p {
    color: var(--text-gray);
}

/* ===== FEATURED SECTION ===== */
.featured {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.org-card {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.2s, box-shadow 0.2s;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.org-category-tag {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.org-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.org-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.org-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background-color: var(--bg-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ===== FOR ORGANIZATIONS CTA ===== */
.for-organizations {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3, .footer-section h4 {
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

.sponsor-text {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and below */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section - Mobile Optimized */
    .hero {
        padding: 3rem 0 3.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Search - Mobile Optimized */
    .search-input {
        padding: 1rem 110px 1rem 3rem;
        font-size: 0.9375rem;
    }
    
    .search-icon {
        left: 1rem;
        width: 18px;
        height: 18px;
    }
    
    .search-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        right: 0.375rem;
    }
    
    /* Categories - Stack on Mobile */
    .category-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .category-card {
        border-radius: 12px;
    }
    
    .category-image {
        height: 120px;
    }
    
    .category-svg {
        width: 56px;
        height: 56px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Featured Organizations */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .for-organizations h2 {
        font-size: 1.75rem;
    }
    
    .for-organizations p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Touch-friendly buttons */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve tap targets */
    .category-card,
    .org-card,
    .search-result-item {
        min-height: 48px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    .search-input {
        padding: 0.875rem 100px 0.875rem 2.75rem;
        font-size: 0.875rem;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
        left: 0.875rem;
    }
    
    .search-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    /* Make category cards more compact on very small screens */
    .category-image {
        height: 100px;
    }
    
    .category-svg {
        width: 48px;
        height: 48px;
    }
    
    .category-card h3 {
        font-size: 1.125rem;
        margin: 1rem 1rem 0.5rem;
    }
    
    .category-card p {
        font-size: 0.875rem;
        margin: 0 1rem 0.75rem;
    }
    
    .category-count {
        margin: 0 1rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Large screens - optimize for desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== LEGAL PAGES ===== */
.legal-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.legal-updated {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-style: italic;
}

.legal-content {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-white);
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.legal-text h2 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-gray);
}

.legal-text h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.legal-text h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-text p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-text ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.legal-text li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-text strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.legal-text a {
    color: var(--secondary-orange);
    text-decoration: underline;
}

.legal-text a:hover {
    color: #d97706;
}

.legal-footer-note {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    border-left: 4px solid var(--secondary-orange);
}

.legal-footer-note p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-gray);
}

.legal-footer-note strong {
    color: var(--text-dark);
}

/* Mobile optimization for legal pages */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-text {
        padding: var(--spacing-md);
    }
    
    .legal-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-text h3 {
        font-size: 1.125rem;
    }
}

/* ===== BROWSE PAGE ===== */
.browse-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.browse-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.browse-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.browse-controls {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
}

.browse-controls .search-container {
    flex: 2;
    min-width: 300px;
}

.filter-container {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

.category-select {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23374151" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    padding-right: 3rem;
}

.category-select:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.results-counter {
    font-size: 0.9375rem;
    opacity: 0.9;
    font-weight: 500;
}

.browse-content {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.org-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.org-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.org-card-header {
    padding-left: 1rem;
    border-radius: 4px;
}

.org-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.org-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.org-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.org-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.org-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.org-detail svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--primary-blue);
}

.org-detail a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.org-detail a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.org-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.org-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-gray);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-small svg {
    width: 14px;
    height: 14px;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.no-results svg {
    color: var(--text-gray);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.browse-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.browse-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.browse-cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile optimization for browse page */
@media (max-width: 768px) {
    .browse-header h1 {
        font-size: 2rem;
    }
    
    .browse-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .browse-controls .search-container {
        min-width: 100%;
    }
    
    .filter-container {
        min-width: 100%;
    }
    
    .organizations-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .org-actions {
        flex-direction: column;
    }
    
    .org-actions .btn-small {
        width: 100%;
        justify-content: center;
    }
    
    .browse-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .org-card {
        padding: var(--spacing-md);
    }
    
    .org-name {
        font-size: 1.125rem;
    }
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.about-section {
    padding: var(--spacing-2xl) 0;
}

.about-section.alt-bg {
    background-color: var(--bg-light);
}

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

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

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.mission-list, .not-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.mission-list li, .not-list li {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: 2rem;
}

.how-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.how-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-orange) 0%, #d97706 100%);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.how-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.how-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.value-card svg {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.about-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.about-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.involvement-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
}

.involvement-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.involvement-card p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* Mobile optimization for about page */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .involvement-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FORM PAGES (CONTACT & CLAIM) ===== */
.form-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    color: var(--bg-white);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.form-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

.benefits-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
    text-align: center;
}

.benefits-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-card svg {
    color: var(--secondary-orange);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.form-section {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-white);
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.form-container.single {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.contact-info {
    background-color: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: 12px;
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method svg {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method p, .contact-method a {
    font-size: 0.9375rem;
    color: var(--text-gray);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.quick-links {
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.quick-links h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9375rem;
}

.quick-links a:hover {
    text-decoration: underline;
}

.form-wrapper {
    background-color: var(--bg-white);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gray);
}

.form-section-title:first-of-type {
    margin-top: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input[readonly] {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

.form-group small {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-top: 0.375rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9375rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.form-note {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-orange);
}

.form-note p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.form-note a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-status {
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.form-status.success {
    background-color: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.form-status.error {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.form-status svg {
    flex-shrink: 0;
}

.form-status strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.form-status p {
    margin: 0;
    font-size: 0.9375rem;
}

.form-status a {
    color: inherit;
    font-weight: 600;
}

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

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2.5rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: 2rem;
}

.faq-item {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.faq-contact {
    text-align: center;
    margin-top: 2rem;
}

.faq-contact p {
    font-size: 1rem;
    color: var(--text-dark);
}

.faq-contact a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

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

/* Mobile optimization for forms */
@media (max-width: 768px) {
    .form-hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .form-wrapper {
        order: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}
