.image-buttons {
    color: #3b3b3b;
    position: relative;
    margin-top: -55px;
    z-index: 4;
}

.image-buttons__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color:#e8f4ff ;
}

.image-buttons__wrap {
    position: relative;
    z-index: 3;
    padding-top: 85px;
}

.image-buttons__top-content {
    padding-bottom: 10px;
}

.image-buttons__top-content h2 {
    color: #003c71;
}
.image-button-col {
    padding: 0 46px;
}

.image-button {
    width: 100%;
    height: 125px;
    overflow: hidden;
    border-radius: 154px;
    display: block;
    position: relative;
    box-shadow: 5px 8px 10px rgba(0, 60, 113, 0.35);
    transition: all 0.3s ease-in-out !important;
}

.image-button__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.image-button__description {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgb(0 60 113 / 75%) 0%, rgb(0 60 113 / 75%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 35px;
    text-align: center;
}

.image-button__description h4 {
    margin: 0 0 3px;
    padding: 0;
    line-height: 1.55em;
    font-weight: 400;
    font-size: 18px;
    color: #ffffff;
}

.image-button__btn {
    margin: 0 0 0;
    padding: 0;
    line-height: 1.2em;
    font-weight: 600;
    font-size: 17px;
    color: #ff6720;
}

.image-button__btn span {
    display: none;
}

.image-button__btn i {
    font-size: 18px;
    font-weight: normal;
}

.image-buttons .slick-arrow {
    top: 50%;
    transform: translate(0, -50%);
}

.image-buttons .slick-initialized .slick-slide {
    margin: 8px 0;
}

.image-buttons .slick-vertical .slick-slide {
    border: none;
}

.image-button__hover-text {
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease-in-out;
}

.image-button__hover-text p {
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 14px;
}

.overlay {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.8) 20%,
        rgba(255, 255, 255, 1) 50%
    );
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* .image-buttons--homepage .image-buttons__bg .overlay {
    display: none;
} */

.image-buttons--overlay.image-buttons--homepage .image-buttons__bg .overlay {
    display: block;
}

.image-buttons__bottom-content{
    padding-top: 50px;
    padding-bottom: 70px;
}

.image-button.no-link .image-button__btn{
  opacity: 0;
}
.image-button__description h4 {
    transition: all 0.5s ease-in-out;
}
@media (min-width: 768px) {
    .image-buttons .fx-slider .fx-slide {
        display: block;
    }

    .js-image-button-slider {
        box-sizing: border-box;
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin-right: -16px;
        margin-left: -16px;
        justify-content: center;
        text-align: center;
    }

    .image-button-slider-item {
        box-sizing: border-box;
        flex: 0 0 auto;
        flex-basis: auto;
        padding-right: 0;
        padding-left: 0;
        margin: 10px 16px;
        width: calc(33.33% - 32px);
    }

    .image-buttons {
        margin-top: -70px;
    }

    .image-buttons__bg {
        height: 83%;
    }

    .image-buttons__wrap {
        padding-top: 120px;
    }

    .image-buttons__top-content {
        padding-bottom: 30px;
    }

    .image-button-col {
        padding: 0 0;
    }

    .image-button {
        height: 420px;
        box-shadow: 5px 8px 28px rgba(0, 60, 113, 0.35);
    }

    .image-button:hover {
        transform: translate3d(0, -20px, 0);
    }

    .image-button__description {
        justify-content: flex-end;
        padding: 50px 15px;
    }

    .image-button:hover .image-button__description {
        padding: 35px 15px;
        background: linear-gradient(to bottom, rgba(0, 60, 113, 0.89) 0%, rgba(0, 60, 113, 0.89) 100%);
    }

    .image-button__description h4 {
        margin: 0 0 15px;
        line-height: 1.4em;
        font-size: 20px;
    }

    .image-button__btn i {
        font-size: 24px;
    }

    .image-button:hover .image-button__btn span {
        display: inline-block;
    }

    .image-button:hover .image-button__btn i {
        font-size: 14px;
    }

    .image-button:hover .image-button__hover-text {
        opacity: 1;
        max-height: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .location-template-default .text-content-slider + .image-buttons--homepage {
        margin-top: 0;
    }

    .text-content-slider + .image-buttons--homepage {
        margin-top: -100px;
    }
}

@media (min-width: 1168px) and (max-width: 1199px) {
    .text-content-slider + .image-buttons--homepage .image-buttons__bg {
        height: 86%;
    }
}

@media (min-width: 900px) {
    .image-buttons {
        margin-top: -90px;
    }
}

@media (min-width: 1200px) {
    .image-buttons {
        margin-top: -75px;
    }

    .image-buttons.image-buttons--homepage {
        margin-top: -170px;
    }

    .type-location .image-buttons.image-buttons--homepage {
        margin-top: -100px;
    }

    .location-template-default .type-location .image-buttons.image-buttons--homepage {
        margin-top: 0;
    }

    .image-buttons__bg {
        height: 100%;
    }

    .image-buttons__top-content {
        padding-bottom: 40px;
    }

    .image-buttons__wrap {
        padding-block: 90px;
    }

    .js-image-button-slider {
        margin-right: -15px;
        margin-left: -15px;
    }

    .image-button-slider-item {
        margin: 10px 15px;
        width: calc(20% - 30px);
    }

    .image-button {
        height: 504px;
    }

    .image-button__description {
        justify-content: flex-end;
        padding: 20px 2px 68px;
        background: linear-gradient(to bottom, rgba(0, 60, 113, 0) 0%, rgba(0, 60, 113, 1) 100%);
    }

    .image-button:hover .image-button__description {
        padding: 20px 2px 64px;
        background: linear-gradient(to bottom, rgba(0, 60, 113, 0.89) 0%, rgba(0, 60, 113, 0.89) 100%);
    }

    .image-button__description h4 {
        margin: 0 0 15px;
        line-height: 1.21em;
    }

    .image-button:hover {
        transform: translate3d(0, -35px, 0);
        transition: all 0.3s ease-in-out;
    }

    .image-buttons--homepage .image-buttons__wrap {
        padding-top: 120px;
    }

    .text-content-slider--homepage + .image-buttons--homepage .image-buttons__wrap {
        padding-top: 200px;
    }

    .image-buttons--homepage .image-buttons__bg {
        height: 876px;
    }

    .image-buttons--homepage .image-buttons__wrap:has(.image-buttons__bottom-content) +  .image-buttons__bg {
        height: 100%;
    }

    .image-buttons--homepage .image-buttons__top-content h2 {
        margin-bottom: 0;
    }

    .wysiwyg + .image-buttons--homepage {
        margin-top: 50px;
    }

    .wysiwyg.bg-blue + .image-buttons--homepage {
        margin-top: -80px;
    }
    .image-buttons--homepage + .icons-cards--homepage  {
        padding-top: 0;
    }
}

@media (min-width: 2000px) {
    .image-buttons {
        margin-top: -90px;
    }
}

.image-buttons--inner {
    margin: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.image-buttons--inner .image-button-col {
    padding: 0 66px;
}

.image-buttons--inner .image-button {
    height: 420px;
    transition: all 0.3s ease-in-out;
}

.image-buttons--inner .image-button__description {
    justify-content: flex-end;
    padding: 50px 15px;
}

.image-buttons--inner .image-button__description h4 {
    font-size: 24px;
}

@media (min-width: 768px) {
    .js-image-button {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-right: -16px;
        margin-left: -16px;
        justify-content: center;
        text-align: center;
    }

    .image-buttons--inner .image-button-col {
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .image-buttons--inner .image-button {
        height: 504px;
        border-radius: 45px;
    }

    .image-buttons--inner .image-button__description h4 {
        font-size: 28px;
    }
}


/* Location page specific styles */

.single-location .cta-bottom-curve{
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

.single-location .image-buttons:has(.cta-top-curve){
    margin-bottom: -55px;
}

@media (max-width: 600px) {
    .single-location .cta-top-curve + .image-buttons__wrap{
        padding-bottom: 30px;
    }
}


@media (min-width: 768px) {

    .single-location .cta-bottom-curve{
        display: block;
    }

    .single-location .cta-bottom-curve{
        bottom: 0;
    }

    .single-location .image-buttons__bg{
        height: 100%;
    }

    .single-location .image-buttons:has(.cta-top-curve){
        margin-bottom: -70px;
    }

}

@media (min-width: 1200px) {


    .single-location .cta-top-curve{
        top: -1px;
    }

    .location-template-default .type-location .image-buttons.image-buttons--homepage:has(.cta-top-curve){
        margin-top: -70px;
        margin-bottom: -80px;
    }


}

