.banner_with_text_and_cta {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
}

.banner_with_text_and_cta_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner_with_text_and_cta_bg img,
.banner_with_text_and_cta_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner_with_text_and_cta_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(1 29 56 / 78%);
    z-index: 1;
}

.banner_with_text_and_cta > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner_with_text_and_cta_inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 60px);
    width: 100%;
}

.banner_with_text_and_cta_left {
    flex: 0 1 auto;
    max-width: 50%;
}

.banner_with_text_and_cta_subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.12rem;
    text-transform: uppercase;
    color: #FFEB01;
    margin: 0 0 1.6rem;
}

.banner_with_text_and_cta_title {
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

.banner_with_text_and_cta_btn_wrapper {
    margin-top: 0;
}

.banner_with_text_and_cta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    min-height: 56px;
    background: #FFDE00;
    color: #0A3956;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 500px;
    transition: background 0.3s ease, color 0.3s ease;
}

.banner_with_text_and_cta_btn:hover {
    background: #002446;
    color: #fff;
}

.banner_with_text_and_cta_right {
    flex: 1 1 auto;
    max-width: 50%;
}

.banner_with_text_and_cta_content {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

.banner_with_text_and_cta_content p {
    margin: 0 0 1rem;
    color: inherit;
}

.banner_with_text_and_cta_content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .banner_with_text_and_cta {
        min-height: auto;
        padding: 6rem 0;
    }

    .banner_with_text_and_cta_inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2.4rem;
    }

    /* Flatten the two columns so we can re-order the button to sit after the content */
    .banner_with_text_and_cta_left,
    .banner_with_text_and_cta_right {
        display: contents;
    }

    .banner_with_text_and_cta_btn_wrapper {
        order: 1;
    }

    .banner_with_text_and_cta_title {
        text-align: left;
    }

    .banner_with_text_and_cta_content {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .banner_with_text_and_cta {
        padding: 5rem 0;
    }

    .banner_with_text_and_cta_title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .banner_with_text_and_cta_content {
        font-size: 16px;
    }

    .banner_with_text_and_cta_btn {
        width: 100%;
        min-height: 48px;
    }
}
