/* Community Page Styles */

/* Community Hero adjustments */
.community-hero .hero-content h1 {
    font-size: 3.25rem;
}

.community-hero .tagline {
    font-size: 1.2rem;
    max-width: 550px;
}

/* Community Problem Section */
.community-problem .problem-card .number {
    font-size: 2.5rem;
}

.community-problem .problem-card .label {
    font-size: 0.95rem;
    line-height: 1.5;
}

.community-problem .problem-card .label strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Community Story Section */
.community-story {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.story-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-narrative {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-block {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.story-block h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

.story-block p:last-child {
    margin-bottom: 0;
}

.story-block.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.story-block.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.result-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-stat.success {
    background: var(--success);
}

.result-stat.success .stat-number,
.result-stat.success .stat-label {
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

.result-arrow {
    font-size: 2rem;
    color: var(--success);
    font-weight: bold;
}

.result-description {
    color: var(--text);
    line-height: 1.8;
}

.story-timeline {
    position: sticky;
    top: 100px;
}

.story-timeline h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.story-timeline .timeline-visual {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.story-timeline .timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.story-timeline .timeline-item:last-child {
    border-bottom: none;
}

.story-timeline .timeline-item .date {
    width: 90px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.story-timeline .timeline-item .count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    width: 50px;
}

.story-timeline .timeline-item .count.success {
    color: var(--success);
}

.story-timeline .timeline-item .count.warning {
    color: var(--warning);
}

.story-timeline .timeline-item .note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Get Involved Section */
.get-involved {
    padding: 6rem 0;
    background: var(--bg);
}

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

.involvement-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.involvement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.involvement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.involvement-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.involvement-card p {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.involvement-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-light);
}

.involvement-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Partners Section */
.partners-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
}

.partnership-model {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.partnership-model h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.model-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.model-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.partnership-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: white;
}

.partnership-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.partnership-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.partnership-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.partnership-cta .btn-primary:hover {
    background: var(--bg-alt);
}

/* Health Equity Section */
.health-equity {
    padding: 6rem 0;
    background: var(--bg);
}

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

.equity-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.equity-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

.equity-card ul {
    margin: 1rem 0 0 1.5rem;
    color: var(--text);
}

.equity-card ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.equity-card ul li strong {
    color: var(--primary);
}

.equity-quote {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    color: white;
}

.equity-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.equity-quote cite {
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Community CTA adjustments */
.community-cta select option {
    color: var(--text);
    background: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
    }

    .story-timeline {
        position: static;
    }

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

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

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

@media (max-width: 768px) {
    .community-hero .hero-content h1 {
        font-size: 2rem;
    }

    .result-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .result-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .equity-quote {
        padding: 2rem;
    }

    .equity-quote blockquote {
        font-size: 1.1rem;
    }
}
