/* Inherit the menu, container, typography and button from the schedule/shop detail. */
header:has(.event-detail-hero--cert) {
    --event-detail-hero-height: 40.625rem;
}
header:has(.event-detail-hero--cert) .hero-section {
    top: 36%;
}
.event-detail-hero--cert {
    max-width: 38rem;
}
.cert-course-hero__tags {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: .375rem .5rem;
    padding: 0;
    margin: 0 0 1rem;
    list-style: none;
}
.cert-course-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.625rem;
    padding: .3125rem .375rem;
    border: .0625rem solid transparent;
    border-radius: .5rem;
    background: #008bf3;
    color: #fff;
    font-size: .625rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}
.cert-course-hero__tag--format {
    border-color: currentColor;
    background: transparent;
}
.event-detail-hero--cert .event-detail-hero__title {
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
}
.event-detail-hero--cert .event-detail-hero__level {
    display: none;
}
.event-detail-hero--cert .event-detail-hero__button {
    min-width: 16.6875rem;
    text-align: center;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .event-detail-hero--cert { max-width: 55%; }
    .event-detail-hero--cert .event-detail-hero__title { font-size: 2rem; }
    .cert-course-hero__tags { gap: .375rem; }
    .cert-course-hero__tag { font-size: .5625rem; }
}
@media (max-width: 767.98px) {
    /* Same 607px header + 97px background overlap as the other mobile event covers. */
    header:has(.event-detail-hero--cert) {
        --event-detail-hero-height: clamp(37.9375rem, 161.866667vw, 55rem);
    }
    header:has(.event-detail-hero--cert) .hero-section {
        top: auto;
        /* About section overlaps by 2.0625rem; leave 1.75rem (28px) below the button. */
        bottom: calc(2.0625rem + 1.75rem);
    }
    .event-detail-hero--cert { max-width: none; }
    .event-detail-hero--cert .cert-course-hero__tags { display: none; }
    .event-detail-hero--cert .event-detail-hero__title { margin-bottom: 1rem; }
    .event-detail-hero--cert .event-detail-hero__level { display: flex; margin-bottom: 1.5rem; }
    .event-detail-hero--cert .event-detail-hero__button { min-width: 0; min-height: 3.0625rem; }
}

/* Separate desktop portrait follows the shared container and rem scale. */
.cert-course-hero__doctor-layer { display: none; }
@media (min-width: 768px) {
    .cert-course-hero__doctor-layer {
        display: block;
        position: absolute;
        inset: 0;
        height: 100%;
        pointer-events: none;
    }
    .cert-course-hero__doctor {
        position: absolute;
        right: 7rem;
        bottom: 1.5rem;
        display: block;
        width: 33rem;
        height: 33rem;
    }
    .cert-course-hero__doctor img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: right bottom;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .cert-course-hero__doctor { right: 2.5rem; width: 45%; }
}
