.program-groups-block {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

.program-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-group-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

.program-group-logo {
    display: grid;
    place-items: center;
    width: 6rem;
    height: 6rem;
    flex: 0 0 auto;
    margin-bottom: 1.25rem;
}

.program-group-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.program-group-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-primary, #0d6efd);
    font-size: 1.75rem;
    font-weight: 700;
}

.program-group-name {
    min-width: 0;
    max-width: 100%;
    margin: 0 0 .75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.program-group-description {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    line-height: 1.65;
    color: var(--bs-secondary-color, #595f65);
}

.program-group-card > :last-child { margin-bottom: 0; }

.program-groups-empty {
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
}

@media (max-width: 575.98px) {
    .program-groups-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .program-group-card {
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    .program-group-logo { width: 4rem; height: 4rem; margin: 0; }
    .program-group-card--no-icon { grid-template-columns: minmax(0, 1fr); }
    .program-group-initials { font-size: 1.25rem; }
    .program-group-name { margin: 0; font-size: 1.125rem; }
    .program-group-description { grid-column: 1 / -1; }
}
