/*------------------------------------*\
    
    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 {
    padding-right: 22px;
    height: 216px;
}

.half-and-half-image:not(.has-video)::after {
    border-radius: 0px 30px 30px 0px;
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: var(--color-primary);
    opacity: 0.36;
}

.half-and-half-image a > img,
.half-and-half-image img {
    border-radius: 0px 30px 30px 0px;
}

.image-block-right .half-and-half-image a > img,
.image-block-right .half-and-half-image img {
    border-radius: 30px 0px 0px 30px;
}

.half-and-half-image .point-arrow {
    position: absolute;
    border-radius: 0;
    display: block;
    bottom: -60px;
    transform: rotate(52.462deg);
    right: 211px;
    z-index: 1;
}

.half-and-half-image.has-video a {
    display: block;
    height: 100%;
    position: relative;
    z-index: 1;
}

.half-and-half-image.has-video a::after {
    border-radius: 0px 30px 30px 0px;
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: var(--color-primary);
    opacity: 0.36;
}

.image-block-right .half-and-half-image.has-video a::after,
.image-block-right .half-and-half-image:not(.has-video)::after {
    border-radius: 30px 0px 0px 30px;
}

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

.about-choose {
    background: var(--color-white);
    border-radius: 10px;
    padding: 20px;
}

.about-choose {
    .choices[data-type*='select-one'] .choices__input {
        display: block;
    }
}

.about-choose h4 {
    color: var(--color-black);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.27778em;
    margin-bottom: 15px;
}

.about-choose .choices {
    height: 60px;
}

.about-choose .choices__inner {
    background-color: var(--color-offwhite);
    border-radius: 4px;
    min-height: 60px;
    padding: 0;
    color: var(--color-black);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
    padding: 15px 52px 15px 15px;
    border: none;
}

.about-choose .choices[data-type*="select-one"]::after {
    content: '\e900';
    font-family: var(--font-icomoon);
    height: auto;
    width: auto;
    border: none;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%);
    margin-top: 0 !important;
    font-size: 16px;
}

.about-choose .choices.is-open[data-type*="select-one"]::after {
    content: '\e905';
}

.about-choose .choices[data-type*="select-one"] .choices__input {
    display: block;
}

.about-choose .choices__list--dropdown .choices__item {
    padding: 15px;
    font-size: 16px;
}

.about-choose .choices__list--dropdown {
    border: none;
}

.about-choose .choices__list--dropdown .choices__item--selectable.is-highlighted::after {
    display: none;
}

@media (min-width: 768px) {
        
    .half-and-half-image {
        padding-right: 52px;
        height: 440px;
    }

    .half-and-half-image::after {
        width: calc(100% - 52px);
    }


    .half-and-half-image img.point-arrow {
        right: 393px;
    }

    .half-and-half-image.has-video .video-play__btn {
        bottom: 33px;
        right: 81px;
        width: auto;
    }

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

    .about-choose {
        padding: 37px;
    }

    .about-choose h4 {
        font-size: 22px;
        margin-bottom: 10px;
    }

}
  
@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
    }
         
    .half-and-half-image {
        padding-right: 0;
        height: auto;
        width: calc(50% - 126px);
    }


    .half-and-half-image img.point-arrow {
        right: 347px;
        bottom: -45px;
    }

    .half-and-half-image.has-video .video-play__btn {
        bottom: 40px;
        right: 48px;
        transition: all .3s;
    }

    .half-and-half-image.has-video > a:hover .video-play__btn {
        background: var(--color-primary-light);
    }

    .half-and-half-image.has-video > a:hover .video-play__btn-inner,
    .half-and-half-image.has-video > a:hover .video-play__btn i {
        color: var(--color-white);
    }

    .half-and-half-text {
        padding: 80px 63px;
        width: calc(50% + 126px);
    }

    .image-block-left .half-and-half-text {
        padding-bottom: 0;
        padding-left: 72px;
        padding-top: 0;
    }

    .half-and-half-text__wrapper {
        max-width: 684px;
    }

    .about-choose {
        padding: 37px;
        margin-top: 50px;
    }

    .about-choose h4 {
        font-size: 26px;
    }

}

/* Certificate promo (Half Text Half Media — static front page, version-1) */
.image-text__certificate {
    display: flex;
    align-items: center;
    margin: 0 0 30px;
    padding: 33px 32px 24px 38px;
    font-size: 16px;
    color: var(--color-black);
    line-height: 1.75em;
    font-weight: 400;
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: var(--color-shadow);
    gap: 32px;
    flex-direction: column;
}
.image-text__certificate-image {
    max-width: 140px;
}

.image-text__certificate-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-text__certificate-blurb > *:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .image-text__certificate-image {
        max-width: 280px;
    }
    .image-text__certificate {
        flex-direction: row;
    }
}
