
/* Impact Hero - Modernized & Compact */
.impact-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    color: #ffffff;
    padding: 15px 0; /* Reduced from 20px */
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0; /* Curved top corners */
}
/* .impact-hero::before removed for compact banner look */

.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 0; /* Reduced from 30px */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px; /* Reduced from 40px 30px */
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 0; 
    border: 1px solid #edf2f7;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.stat-number {
    font-size: 2.2rem; /* Reduced from 3.5rem */
    font-weight: 800;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.9rem; /* Slightly reduced for 2-line fit */
    color: #4a5568;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em; /* Ensures 2-line space even for 1-word labels if any */
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-grid {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Reduced from 30px */
}
.impact-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05), 0 0 0 1px rgba(102, 126, 234, 0.1); /* Added subtle accent border */
    transition: all 0.25s ease;
    border: 1px solid #edf2f7; /* Keep the base border */
}
.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.3);
}
.impact-card-image {
    width: 100%;
    height: 160px; /* Reduced from 200px */
    object-fit: cover;
}
.impact-card-content {
    padding: 15px; /* Reduced from 25px */
}
.impact-card h3 {
    font-size: 1.15rem; /* Reduced from 1.4rem */
    margin-bottom: 8px;
    color: #1a202c;
    font-weight: 700;
}
.impact-card p {
    color: #4a5568;
    line-height: 1.5; /* Reduced from 1.7 */
    margin-bottom: 12px;
    font-size: 0.88rem;
}
.impact-badge {
    display: inline-block;
    padding: 4px 10px; /* Reduced */
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 0.75rem; /* Reduced from 0.85rem */
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.timeline {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 24px;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px; /* Restored to 4px as requested */
    background: linear-gradient(180deg, #4c1d95, #6d28d9);
    transform: translateX(-50%);
    opacity: 0.8; /* Restored visibility */
}
.timeline-item {
    position: relative;
    margin-bottom: 25px; /* Stay compact */
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 52%;
    padding-right: 25px;
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    padding-left: 25px;
}
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 15px;
    width: 18px; /* Restored larger size */
    height: 18px;
    background: #ffffff;
    border: 3px solid #6d28d9; /* Thick border restored */
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.timeline-content {
    background: white;
    padding: 15px 20px; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #6d28d9; /* Restore the "line around each leaflet" */
    position: relative;
}

@media (max-width: 768px) {
    /* Stats grid - Responsive wrapping */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .stat-card {
        padding: 15px 12px !important;
        margin-bottom: 12px !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem !important;
    }
    
    /* Impact cards - 2 per row GRID (Not Carousel) */
    .impact-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
    
    .impact-card {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        margin-bottom: 0 !important;
    }
    
    .impact-card-image {
        height: 120px !important;
    }
    
    .impact-card-content {
        padding: 12px !important;
    }
    
    .impact-card h3 {
        font-size: 1rem !important;
    }
    
    .impact-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .impact-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    /* Timeline mobile adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .timeline {
        padding: 0 12px !important;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        padding-left: 15px;
        text-align: left;
    }
    .timeline-dot {
        left: 20px;
    }
    .timeline-content {
        padding: 15px !important;
        font-size: 0.9rem;
    }
    .timeline-content h4 {
        font-size: 1rem !important;
    }
    .timeline-content p {
        font-size: 0.85rem !important;
    }
}
