/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    width: 100%;
}

.half-and-half-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

.half-and-half--top-padding {
    padding-top: 50px;
}

.half-and-half-text {
    padding: 30px 22px 30px;
}

.half-and-half-image {
    position: relative;
}

.half-and-half-image__col {
    width: 100%;
    height: 280px;
    padding-left: 97px;
}

.image-block-left .half-and-half-image__col {
    padding-left: 0;
    padding-right: 97px;
}

.half-and-half-image__info {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    width: 284px;
    margin: 0 ;
    background: var( --white );
    box-shadow: 0 0 10px rgba(0, 66, 122, 0.15);
    border-radius: 8px;
    padding: 18px 21px;
    z-index: 1;
}

.image-block-left .half-and-half-image__info {
    left: auto;
    right: 0;
}

.image-info-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    gap: 20px;

    @media( min-width : 1400px ) {
        justify-content: space-between;
    }
}

.image-info-flex__icon {
    font-size: 50px;
    line-height: 1em;
    color: var( --blue );
    font-weight: normal;
    width: 50px;
    margin: 0 auto 2px;
}

.image-info-flex__icon img {
    position: relative!important;
}

.image-info-flex__info h4 {
    margin: 0;
    padding: 0 0 4px;
    font-size: 25px;
    line-height: 1.3em;
    font-weight: 500;
    color: var( --primary-color ) !important;
    letter-spacing: 0em;
}

.image-info-flex__info h4::before {
    display: none;
}

.image-info-flex__info p {
    margin: 0;
    padding: 0 0 0;
    font-size: 12px;
    line-height: 1.5em;
    font-weight: 700;
    color: var( --blue-03 );
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.half-and-half + .cards-icons-column {
    padding-top: 100px;
}

@media (min-width: 768px) {
    .half-and-half--top-padding {
        padding-top: 80px;
    }
    
    .half-and-half-text {
        padding: 30px 52px 30px;
    }
    
    .half-and-half-image__col {
        width: 310px;
        height: 312px;
        padding-left: 0;
        margin: 0 0 0 auto;
    }
    
    .image-block-left .half-and-half-image__col {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    
    .half-and-half-image__info {
        left: 52px;
        width: calc(100% - 277px);
        margin: 0 ;
        padding: 30px 30px;
    }
    
    .image-block-left .half-and-half-image__info {
        left: auto;
        right: 52px;
    }
    
    .image-info-flex__icon {
        font-size: 75px;
        width: 75px;
        margin: 0 auto 24px;
    }
    
    .image-info-flex__info h4 {
        padding: 0 0 10px;
        font-size: 35px;
        line-height: 1.3em;
    }
    
    .image-info-flex__info p {
        font-size: 20px;
        line-height: 1.2em;
    }
}


    
@media (min-width: 1200px) {
    .half-and-half--top-padding {
        padding-top: 0;
    }

    .half-and-half.flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        width: 50%;
    }

    .half-and-half-text {
        padding: 100px 90px 100px;
    }

    .half-and-half-image img {
        position: absolute;
    }
    
    .half-and-half-text__wrapper {
       max-width: 660px;
    }

    .half-and-half-text.left .half-and-half-text__wrapper {
        margin: 0 0 0 auto;
    }

    .half-and-half-image__col {
        width: calc(100% - 120px);
        height: 100%;
        padding-left: 0;
        margin: 0 0 0 auto;
        position: relative;
    }
    
    .image-block-left .half-and-half-image__col {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }
    
    .half-and-half-image__info {
        left: 20px;
        width: 590px;
        margin: 0 ;
        padding: 33px 70px;
    }
    
    .image-block-left .half-and-half-image__info {
        left: auto;
        right: 20px;
    }

    .half-and-half-text--padding {
        padding: 167px 90px 167px;
    }

    .image-info-flex__info p {
        max-width: 134px;
    }
    
}

@media (min-width: 1367px) {
    .half-and-half-image__info {
        width: 617px;
        padding: 33px 70px;
    }

    .half-and-half-text {
        padding: 100px 0 100px;
    }

    .half-and-half-text--padding {
        padding: 167px 0 167px;
    }

    .half-and-half-text__wrapper {
       max-width: 635px;
       padding-right: 125px;
       margin-left: auto;
    }

    .image-block-left .half-and-half-text__wrapper {
        margin: 0 0;
        padding-right: 0;
        padding-left: 125px;
    }
}