/* input(11,18): run-time error CSS1035: Expected colon, found 'img'
input(106,28): run-time error CSS1035: Expected colon, found '{'
input(129,31): run-time error CSS1035: Expected colon, found '{'
input(140,31): run-time error CSS1035: Expected colon, found '{'
input(151,31): run-time error CSS1035: Expected colon, found '{'
input(162,31): run-time error CSS1035: Expected colon, found '{'
input(182,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(211,31): run-time error CSS1035: Expected colon, found '{' */
.hero-banner-cabots {
    aspect-ratio: 1910 / 480;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 400px;
    min-height: 480px;

    .hero-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .hero-banner__overlay {
        position: absolute;
        z-index: 2;
        width: 100%;
        text-align: center;
        padding: 0 15px;
        bottom: -89%;
    }

    .hero-banner__overlay-content {
        background-color: #f2f2f3;
        border-radius: 8px;
        text-align: left;
        padding: 36px 24px;
        gap: 24px;
        display: grid;
        width: 100%;
        min-height: 388.39px;
    }

    .hero-banner__overlay-content__title {
        font-size: 32px;
        font-weight: 400;
        line-height: 140%;
        color: var(--cabot-black-20);
        font-family: var(--font-family-header);
        padding-top: 8px;
    }

    .hero-banner__overlay-content__title p {
        margin-bottom: 0;
    }

    .hero-banner__overlay-content__description {
        font-size: 16px;
        line-height: 150%;
        color: var(--cabot-black-60);
        font-family: var(--font-family-base);
        font-weight: 500;
    }

    .hero-banner__overlay-content__cta {
        width: 181px;
        border-radius: 4px;
        font-size: 16px;
        line-height: 150%;
        font-weight: 700;
        display: flex;
        padding: 15px 15px;
        align-items: center;
        text-decoration: none;
        position: relative;
        cursor: pointer;
    }

    .hero-banner__overlay-content__cta p {
        margin-bottom: 0;
    }

    .hero-banner__overlay-content__cta:hover {
        text-decoration: underline;
    }

    .text-block_wrapper--left {
        width: 50%;
        display: flex;
        justify-content: flex-end;
    }

    .text-block_wrapper--right {
        width: 50%;
    }

    .content-clickable {
        cursor: pointer;
    }
}

/* Tablet and below - Common styles */
@media (max-width: 767px) {

    .hero-banner-cabots {
        min-height: 376px;

        .content-clickable {
            margin-bottom: 0;
        }

        .hero-banner img {
            min-height: 376px;
        }

        .text-block_wrapper--left {
            width: auto;
        }

        .text-block_wrapper--right {
            width: auto;
        }
    }
}

/* Mobile L - 481px to 575px */
@media (min-width: 481px) and (max-width: 575px) {
    .hero-banner-cabots {
        margin-bottom: 300px;

        .hero-banner__overlay {
            bottom: -70%;
        }
    }
}

/* Small tablets - 576px to 600px */
@media (min-width: 576px) and (max-width: 600px) {
    .hero-banner-cabots {
        margin-bottom: 290px;

        .hero-banner__overlay {
            bottom: -70%;
        }
    }
}

/* Medium tablets - 601px to 767px */
@media (min-width: 601px) and (max-width: 767px) {
    .hero-banner-cabots {
        margin-bottom: 290px;

        .hero-banner__overlay {
            bottom: -65%;
        }
    }
}

/* Large tablets - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-banner-cabots {
        margin-bottom: 230px;

        .hero-banner__overlay {
            bottom: -40%;
        }

        .text-block_wrapper--right {
            width: auto;
        }
    }
}

/* Below desktop, the image hero stacks the overlay card in normal flow so it sizes to its content */
@media (max-width: 991px) {
    .hero-banner-cabots.hero-banner-cabots--image {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        aspect-ratio: auto;
        min-height: 0;
        margin-bottom: 0;

        & > picture {
            display: block;
            position: relative;
            width: 100%;
            height: 480px;
        }

        .hero-banner__overlay {
            position: relative;
            bottom: auto;
            margin-top: -54px;
        }

        .hero-banner__overlay-content {
            min-height: 0;
        }
    }
}

@media (max-width: 767px) {
    .hero-banner-cabots.hero-banner-cabots--image > picture {
        height: 376px;
    }
}

@media (min-width: 992px) {
    .hero-banner-cabots {
        margin-bottom: 0;

        .hero-banner__overlay {
            bottom: 0;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .hero-banner__overlay--right {
            justify-content: end;
        }

        .hero-banner__overlay--left {
            justify-content: start;
        }

        .hero-banner__overlay-content {
            max-width: 590px;
            min-height: 400px;
            padding: 56px;
            gap: 24px;
            min-height: unset;
        }

        .hero-banner__overlay-content__title {
            font-family: var(--font-family-header);
            font-weight: 400;
            font-size: 60px;
            color: var(--primary-color);
            padding-top: 0px;
        }

        .hero-banner__overlay-content__description {
            line-height: 150%;
        }
    }
}

