/* Inline fixes and small page-specific helpers */

/* Compact history cards (matches business feature-box feel) */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 30px 0 40px;
}

.history-card {
    background: #f8f9fa;
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 4px solid #00b4db;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-year {
    font-size: 1.05em;
    font-weight: 800;
    color: #1e3c72;
}

.history-content {
    color: #666;
    line-height: 1.55;
    font-size: 0.98em;
}

/* Responsive tweaks: tighter spacing on tablet and mobile */
@media (max-width: 900px) {
    .history-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 14px;
    }
    .history-card {
        padding: 14px 16px;
    }
    .history-year {
        font-size: 1em;
    }
    .history-content {
        font-size: 0.975em;
        line-height: 1.5;
    }
}

@media (max-width: 560px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .history-card {
        padding: 12px 14px;
        border-left-width: 3px;
    }
    .history-year {
        font-size: 0.98em;
    }
    .history-content {
        font-size: 0.95em;
        line-height: 1.45;
    }
}

/* Masonry / brick layout for Community Impact (shared helper) */
.features-grid {
    column-count: 2;
    column-gap: 28px;
    margin: 30px 0;
}

.feature-box {
    display: inline-block;
    width: 100%;
    background: white;
    padding: 26px;
    margin: 0 0 20px 0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    text-align: center;
}

.feature-box h3 {
    color: #1e3c72;
    font-size: 1.15em;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 900px) {
    .features-grid {
        column-count: 1;
        column-gap: 0;
    }
}
