.workout-hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 16px #0002;
}

.workout-hero-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
}

.workout-hero-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 28px 24px 28px;
    color: #fff;
    z-index: 2;
    background: rgba(0,0,0,0.25); /* subtle overlay for readability */
    text-align: center;
}

.workout-badge {
    background: rgba(139, 0, 0, 0.85);
    padding: 7px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: inline-block;
}

.workout-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px #0008;
}

.workout-description {
    font-size: 1.08rem;
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 0 1px 4px #0008;
    max-width: 90%;
    text-align: center;
}

@media (max-width: 600px) {
    .workout-hero-image {
        height: 160px;
    }
    .workout-hero-content {
        padding: 16px 8px 12px 8px;
        font-size: 0.98rem;
        background: rgba(0,0,0,0.35); /* slightly stronger overlay for mobile */
    }
    .workout-title {
        font-size: 1.2rem;
    }
    .workout-description {
        font-size: 0.86rem;
    }
}

.workout-programs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.workout-program-link {
    flex: 0 0 calc(33.333% - 18px);
    max-width: calc(33.333% - 18px);
    text-decoration: none;
    color: black;
    box-sizing: border-box;
    display: block;
    padding: 12px;
}

.workout-program-card {
    background: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0001;
    padding: 18px;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 320px;
}

.workout-program-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .workout-program-link {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 600px) {
    .workout-programs-row {
        flex-direction: column;
        gap: 0;
        padding: 0 4px;
    }
    .workout-program-link {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 8px 0;
    }
    .workout-program-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}