.p4-blocks-carousel-hero {
    align-items: stretch;
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    margin: 16px auto;
    width: 100%;
    max-width: 1200px;
}

.p4-blocks-carousel-hero__carousel {
    height: 279px;
    width: 100%;
    max-width: 897px;
}

.p4-blocks-carousel-hero__carousel .swiper-wrapper {
    height: 100%;
}

.p4-blocks-carousel-hero__carousel-navigation .swiper-button-prev,
.p4-blocks-carousel-hero__carousel-navigation .swiper-button-next {
    display: none;
}

.p4-blocks-carousel-hero__carousel-navigation .swiper-pagination {
    position: absolute;
}

.p4-blocks-carousel-hero__carousel-navigation .swiper-pagination.swiper-pagination-bullets {
    bottom: 12px;
}

.p4-blocks-carousel-hero__carousel-navigation .swiper-pagination-bullet {
    background-color: transparent;
    border: 1px solid #ffffff;
    border-radius: 100%;
    height: 10px;
    margin: 0 8px !important; /* Needed to override library */
    opacity: 1;
    width: 10px;
}

.p4-blocks-carousel-hero__carousel-navigation .swiper-pagination-bullet-active {
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide {
    position: relative;
    z-index: 1;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-link {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-content {
    background-color: rgba(38, 40, 45, .6);
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding: 16px 12px 42px;
    position: absolute;
    right: 0;
    transition: all 300ms ease;
    z-index: 2;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-heading {
    display: -webkit-box;
    font-family: 'Raleway SemiBold', sans-serif;
    font-size: 20px;
    font-weight: normal !important;
    line-height: 1.2;
    margin: 0 0 8px;
    overflow: hidden;
    padding: 0;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-teaser {
    display: -webkit-box;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: unset;
    line-height: 1.23;
    margin: 0;
    overflow: hidden;
    padding: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-button,
.p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-button:visited {
    display: none;
}

.p4-blocks-carousel-hero__widgets {
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    padding: 0 15px;
    width: 100%;
}

.p4-blocks-carousel-hero__widget {
    align-items: stretch;
    background: #324983;
    color: white;
    display: flex;
    flex-flow: column nowrap;
    gap: 10px;
    justify-content: center;
    padding: 12px;
    width: 100%;
}

.p4-blocks-carousel-hero__widget-heading,
.p4-blocks-carousel-hero__widget-text {
    display: -webkit-box;
    font-weight: normal !important;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p4-blocks-carousel-hero__widget-heading {
    font-family: 'Raleway Medium', sans-serif;
    font-size: 25px;
    line-height: 1.2;
}

.p4-blocks-carousel-hero__widget-text {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.25;
}

.p4-blocks-carousel-hero__widget-button,
.p4-blocks-carousel-hero__widget-button:visited {
    background: #5eddaa;
    border-radius: 3px;
    color: #26282d !important; /* Added for theme override */
    display: block;
    font-family: 'Lato SemiBold', sans-serif;
    font-size: 13px;
    font-weight: normal !important;
    line-height: 1.23;
    margin: 10px auto 0;
    padding: 8px 20px 9px;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.p4-blocks-carousel-hero__widget-button:active,
.p4-blocks-carousel-hero__widget-button:focus,
.p4-blocks-carousel-hero__widget-button:hover,
.p4-blocks-carousel-hero__slide-button:active,
.p4-blocks-carousel-hero__slide-button:focus,
.p4-blocks-carousel-hero__slide-button:hover {
    background-color: #8ee7c4 !important;
    color: #26282d !important; /* Added for theme override */
}

.p4-blocks-carousel-hero__widget-button--inner {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

@media all and (min-width: 600px) {
    .p4-blocks-carousel-hero__widget {
        width: calc(50% - 4px);
    }
}

@media all and (min-width: 897px) {
    .p4-blocks-carousel-hero {
        flex-wrap: nowrap;
    }

    .p4-blocks-carousel-hero__carousel {
        height: 409px;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-heading {
        font-family: 'Raleway Medium', sans-serif;
        font-size: 30px;
        line-height: 1.16;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-teaser {
        font-size: 20px;
        line-height: 1.2;
    }

    .p4-blocks-carousel-hero__widgets {
        padding: 0;
        width: 294px;
    }

    .p4-blocks-carousel-hero__widget {
        width: 100%;
    }
}

@media all and (min-width: 1024px) {
    .p4-blocks-carousel-hero__carousel-navigation {
        align-items: center;
        bottom: 32px;
        display: flex;
        flex-flow: row nowrap;
        gap: 14px;
        position: absolute;
        right: 32px;
        max-width: 190px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-pagination {
        position: static;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-prev,
    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-next {
        align-items: center;
        background: #ffffff;
        border-radius: 100%;
        display: flex;
        justify-content: center;
        height: 28px;
        margin: 0;
        position: static;
        width: 28px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-prev::after,
    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-next::after {
        color: #26282d;
        font-size: 16px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-prev::after {
        padding: 6px 11px 6px 9px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-button-next::after {
        padding: 6px 9px 6px 11px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-pagination.swiper-pagination-bullets {
        bottom: 12px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-pagination-bullet {
        background-color: transparent;
        border: 1px solid #ffffff;
        border-radius: 100%;
        height: 10px;
        margin: 0 8px !important; /* Needed to override library */
        opacity: 1;
        width: 10px;
    }

    .p4-blocks-carousel-hero__carousel-navigation .swiper-pagination-bullet-active {
        background-color: #ffffff;
        border: 1px solid #ffffff;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-link {
        display: none;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-content {
        background-color: rgba(38, 40, 45, .3);
        bottom: -50px;
        padding-left: 32px;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide:hover .p4-blocks-carousel-hero__slide-content {
        background-color: rgba(38, 40, 45, .7);
        bottom: 0;
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-heading,
    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-teaser {
        width: calc(100% - 238px);
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-button,
    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide-button:visited {
        background: #5eddaa;
        border-radius: 3px;
        color: #26282d !important; /* Added for theme override */
        display: inline-block;
        font-family: 'Lato SemiBold', sans-serif;
        font-size: 18px;
        font-weight: unset;
        line-height: 1.4;
        margin: 12px auto 0;
        padding: 10px 38px;
        position: relative;
        text-align: center;
        text-decoration: none;
        top: 50px;
        transition: all 300ms ease;
        max-width: calc(100% - 238px);
    }

    .p4-blocks-carousel-hero__carousel .p4-blocks-carousel-hero__slide:hover .p4-blocks-carousel-hero__slide-button {
        top: 0;
    }

    .p4-blocks-carousel-hero__widget-button {
        font-size: 18px;
        line-height: 1.44;
    }
}
