/* Component-only rules; loaded by service templates that explicitly opt in. */
/* Shared serif heading rhythm for course templates using the approved BLS typography. */
body:is(.page-template-bls, .page-template-acls, .page-template-pals, .page-template-basic-d) {
    --cce-course-serif-letter-spacing: normal;
    --cce-course-serif-line-height: 1.2;
}

html:has(body.page-template-basic-d),
html:has(.cce-service-hero--critical-care) {
    scroll-behavior: smooth;
}

.page-template-basic-d #cce-basic-course-overview {
    scroll-margin-top: 5rem;
}

html:has(.cce-service-hero--critical-care) #enroll {
    scroll-margin-top: calc(6rem + var(--wp-admin--admin-bar--height, 0px));
}

.cce-service-hero--critical-care {
    --cce-course-serif-line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.page-template-basic-d),
    html:has(.cce-service-hero--critical-care) {
        scroll-behavior: auto;
    }
}

.cce-service-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
    margin-bottom: 3rem;
}

.cce-service-hero__art {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.cce-service-hero__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
}

.cce-service-hero__container {
    padding-top: 3.5rem;
    padding-bottom: 8rem;
    min-height: 46vw;
}

.cce-service-hero__content {
    max-width: 45rem;
}

.cce-service-hero__eyebrow {
    margin: 0 0 1.75rem;
    color: var(--cce-primary-red);
    font: 700 1.25rem/1.35 'Open Sans', Arial, sans-serif;
    text-transform: uppercase;
}

.cce-service-hero__eyebrow::after {
    content: '';
    display: block;
    width: 12rem;
    max-width: 55%;
    height: 3px;
    margin-top: 1rem;
    background: var(--cce-primary-red);
}

.cce-service-hero__title {
    margin: 0 0 1.5rem;
    color: #080808;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.5rem, 5.25vw, 6.75rem);
    font-weight: 700;
    line-height: var(--cce-course-serif-line-height, 1.1);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.cce-service-hero__description {
    max-width: 38rem;
    margin: 0 0 1.75rem;
    color: #303030;
    font: 400 1.3rem/1.45 'Open Sans', Arial, sans-serif;
    overflow-wrap: anywhere;
}

.cce-service-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    max-width: 100%;
    padding: 1rem 1.75rem;
    border: 2px solid #111;
    border-radius: .6rem;
    background: #111;
    color: #fff;
    font: 700 1.4rem/1.3 'Open Sans', Arial, sans-serif;
    white-space: normal;
    text-align: center;
}

.cce-service-hero__cta span {
    color: var(--cce-primary-red);
    font-size: 1.8em;
    line-height: .6;
}

.cce-service-hero__cta-arrow {
    display: block;
    flex: 0 0 auto;
    width: 1.8em;
    height: .9em;
    color: var(--cce-primary-red);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.cce-service-hero__cta:hover,
.cce-service-hero__cta:focus {
    background: #292929;
    color: #fff;
    text-decoration: none;
}

.cce-service-hero__cta:focus-visible {
    outline: 3px solid var(--cce-primary-red);
    outline-offset: 4px;
}

@media (max-width: 991.98px) {
    .cce-service-hero__art img {
        position: absolute;
        bottom: 0;
        height: auto;
        mask-image: linear-gradient(to bottom, transparent, #000 30%);
    }

    .cce-service-hero__container {
        min-height: 0;
        padding-top: 2.5rem;
        padding-bottom: clamp(7rem, 20vw, 10rem);
    }

    .cce-service-hero__content {
        max-width: none;
    }

    .cce-service-hero__title {
        font-size: clamp(2rem, 10.7vw, 4rem);
    }

    .cce-service-hero__eyebrow {
        font-size: clamp(1rem, 2.1vw, 1.125rem);
    }

    .cce-service-hero__description {
        font-size: clamp(1.1rem, 2.6vw, 1.25rem);
    }

    .cce-service-hero__cta {
        font-size: 1.125rem;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .cce-service-hero__art {
        mask-image: linear-gradient(to bottom, transparent 60%, #000 85%);
    }
}

@media (max-width: 575.98px) {
    .cce-service-hero__container {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

    .cce-service-hero__cta {
        width: 100%;
        padding: 1rem .75rem;
        font-size: 1.1rem;
    }

}
