﻿body { /* Prevent image stretching and fix card alignment */
    .initiative-container

{
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.initiative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.custom-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

    .custom-card:hover {
        transform: translateY(-5px);
    }

/* THE FIX FOR STRETCHED IMAGES */
.card-img-wrapper {
    width: 100%;
    height: 230px; /* Standardized height */
    overflow: hidden;
    background: #f0f0f0;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This is the fix: it fills the box without stretching */
        display: block;
    }

.card-body-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.card-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-link-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    margin-top: auto;
}

    .explore-link-btn:hover {
        background: #27ae60;
        color: #fff !important;
        text-decoration: none;
    }

.section-header {
    background: #2c3e50;
    color: white !important;
    padding: 15px;
    border-radius: 4px;
    margin: 30px 0;
    text-align: center;
}
}
