/* =============================================================================
   Hero banner
   ============================================================================= */

/* Base banner */
.cch .cch-hero-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--cch-white);
    background-color: var(--cch-medium-blue);
}

/* Banner containing an image */
.cch .cch-hero-banner--image {
    width: 100%;
    aspect-ratio: 60 / 19;
    min-height: 26rem;
    max-height: 38rem;
    padding-block: 4rem;
    background-image: linear-gradient( 90deg, rgba(0, 41, 87, 0.94) 0%, rgba(0, 41, 87, 0.82) 42%, rgba(0, 41, 87, 0.38) 100% ), var(--cch-hero-banner-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Banner without an image */
.cch .cch-hero-banner--no-image {
    min-height: clamp(10rem, 25vh, 18.75rem);
    padding-block: 3rem;
    background-color: var(--cch-medium-blue);
    background-image: none;
}

/* Content */
.cch .cch-hero-banner__content {
    max-width: 42rem;
}

/* Category label */
.cch .cch-hero-banner__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--cch-white);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Banner heading */
.cch .cch-hero-banner__title {
    max-width: 42rem;
    margin-bottom: 0;
    color: var(--cch-white);
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.1;
    text-wrap: balance;
}

/* Introductory text */
.cch .cch-hero-banner__intro {
    max-width: 36rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    color: var(--cch-white);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
}

/* Centre no-image banner content */
.cch .cch-hero-banner--no-image .row {
    justify-content: center;
}

.cch .cch-hero-banner--no-image .cch-hero-banner__content {
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
}

.cch .cch-hero-banner--no-image .cch-hero-banner__title,
.cch .cch-hero-banner--no-image .cch-hero-banner__intro,
.cch .cch-hero-banner--no-image .cch-hero-banner__category {
    margin-inline: auto;
}

.cch .cch-hero-banner--no-image .cch-hero-banner__title,
.cch .cch-hero-banner--no-image .cch-hero-banner__intro {
    text-align: center;
}

/* Tablet */
@media (max-width: 991.98px) {
    .cch .cch-hero-banner--image {
        min-height: clamp(22rem, 50vh, 32rem);
        background-image: linear-gradient( rgba(0, 41, 87, 0.9), rgba(0, 41, 87, 0.9) ), var(--cch-hero-banner-image);
    }
}

/* Small mobile screens */
@media (max-width: 575.98px) {
    .cch .cch-hero-banner--image {
        min-height: 22rem;
        padding-block: 2.5rem;
    }

    .cch .cch-hero-banner--no-image {
        min-height: auto;
        padding-block: 2.5rem;
    }

    .cch .cch-hero-banner__title {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }
}
