/* Homepage course selection only; Bootstrap supplies the responsive grid. */
.cce-home-courses {
    padding: 3rem 0;
    color: #222;
    background: linear-gradient(150deg, #fff 60%, #f6f7f8);
    font-family: "Open Sans", Arial, sans-serif;
}
.cce-home-courses__header { text-align: center; margin-bottom: 2.5rem; }
.cce-home-courses__header h5 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 1rem;
    color: var(--cce-primary-red);
    font: 600 clamp(1.5rem, 2.5vw, 2rem)/1.35 "Open Sans", Arial, sans-serif;
}
.cce-home-courses__header h5::before,
.cce-home-courses__header h5::after { content: ""; flex: 1; height: 3px; background: var(--cce-primary-red); }
.cce-home-courses__header p { margin: 0; font-size: 1rem; line-height: 1.6; }
.cce-home-courses__column { min-width: 0; margin-bottom: 1.875rem; }
.cce-home-courses__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .09);
    color: #222;
    text-decoration: none;
    transition: box-shadow .15s ease;
}
.cce-home-courses__image-link { display: block; border-radius: 12px; }
.cce-home-courses__image { display: block; width: 100%; height: auto; aspect-ratio: 800 / 267; object-fit: contain; border-radius: 12px; }
.cce-home-courses__body { padding: 1.5rem .25rem .5rem; text-align: center; }
.cce-home-courses__title { text-decoration: none; margin: 0 0 1rem; color: #171717; font: 600 1.125rem/1.5 "Open Sans", Arial, sans-serif; }
.cce-home-courses__body p { margin: 0; font-size: 1rem; line-height: 1.7; }
.cce-home-courses__card:hover { color: #222; text-decoration: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .16); }
.cce-home-courses__image-link:focus-visible { outline: 3px solid var(--cce-primary-red); outline-offset: 4px; text-decoration: none; }
@media (max-width: 575.98px) {
    .cce-home-courses { padding: 2.5rem 0; }
    .cce-home-courses__header { margin-bottom: 1.75rem; }
    .cce-home-courses__header h5 { gap: .5rem; }
    .cce-home-courses__header h5::before, .cce-home-courses__header h5::after { display: none; }
    .cce-home-courses__card { padding: 1.125rem; }
    .cce-home-courses__body { padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .cce-home-courses__card { transition: none; } }
