/*------------------------------------*\
    
    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 {
    padding-left: 22px;
    padding-right: 22px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #000;
}

.half-and-half.bg-navy {
    color: #ffffff;
}

.half-and-half::before {
    content: '';
    position: absolute;
    top: -40px;
    left: calc(50% - 70px);
    height: 1050px;
    width: 1050px;
    background: #cde0f1;
    -webkit-clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
}

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

.half-and-half-image {
    height: 206px;
    width: 100%;
    border-radius: 20px;
    z-index: 1;
}

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

.half-and-half-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(51, 72, 104, 0.40);
    border-radius: 20px;
    z-index: 1;
}

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

.half-and-half-text h5 span::after {
    content: var(--heading-icon);
    display: inline-flex;
    width: 40.9px;
    height: 11.15px;
    position: relative;
    left: 6px;
    top: -1px;
}

.half-and-half-text h5 span::after {
    content: var(--heading-icon);
    display: inline-flex;
    width: 40.9px;
    height: 11.15px;
    position: relative;
    left: 6px;
    top: -1px;
}

.half-and-half-text.right {
    margin-right: auto;
}

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

.half-and-half--video .video-image {
    width: 100%;
    height: 100%;
    position: absolute;
    border: none;
    left: 0;
    top: 0;
    z-index: 2;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.half-and-half--video .video-image svg {
    width: 80px;
    transition: all ease-in-out 0.3s;
}

.half-and-half--video .half-and-half-image {
    margin-top: 45px;
}

.video-tag {
    position: absolute;
    left: 50%;
    top: -45px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(81, 112, 144, 0.25);
    z-index: 3;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
    padding: 8px 40px 8px 38px;
    width: 245px;
    font-size: 15px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    line-height: 1.33em;
    transition: all ease-in-out 0.3s;
}

.video-tag:hover {
    box-shadow: 0 0 15px rgba(81, 112, 144, 0.35);
    background: #3A5A78;
    color: #FFFFFF;
}

.half-and-half-image .video-tag img {
    display: inline-block;
    max-width: 18px;
    position: absolute;
    left: 12px;
    top: 10px;
    border-radius: 0;
    width: auto;
    height: auto;
}

.half-and-half-image .video-tag img.right-arrow {
    display: inline-block;
    max-width: 54px;
    position: absolute;
    left: auto;
    right: 14px;
    top: 16px;
    border-radius: 0;
    width: auto;
    height: auto;
}

.bg-navy.half-and-half::before {
    left: -225px;
    height: 1120px;
    width: 1120px;
    -webkit-transform: none;
            transform: none;
    background: linear-gradient(to right,  rgba(58, 90, 120,1) 0%,rgba(58, 90, 120,1) 25%, rgba(68,105,162,0.6) 30%,rgba(68,105,162,0.6) 70%,rgba(58, 90, 120,1) 100%);
}

.bg-light-blue.half-and-half::before {
    left: -490px;
    height: 1120px;
    width: 1120px;
    -webkit-transform: none;
            transform: none;
    background: linear-gradient(to bottom,  rgba(229,239,250,1) 0%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 70%,rgba(229,239,250,1) 76%,rgba(229,239,250,1) 100%);
}

.half-and-half--inner .half-and-half-image {
    height: 220px;
    width: calc(100% + 22px);
    margin-left: -22px;
    border-radius: 0 20px 20px 0;
}

.half-and-half--inner .half-and-half-image img {
    border-radius: 0 20px 20px 0;
}

.half-and-half--inner.image-block-right .half-and-half-image {
    height: 220px;
    width: calc(100% + 22px);
    margin-left: 0px;
    margin-right: -22px;
    border-radius: 20px 0 0 20px;
}

.half-and-half--inner.image-block-right .half-and-half-image img {
    border-radius: 20px 0 0 20px;
}

.half-and-half--inner .video-tag {
    left: 22px;
    top: -55px;
    z-index: 3;
    -webkit-transform: none;
            transform: none;
    padding: 10px 40px 11px 40px;
    width: auto;
}

.half-and-half--inner.image-block-right .video-tag {
    left: auto;
    right: 22px;
}

.half-and-half--inner .half-and-half-image .video-tag img {
    max-width: 24px;
    left: 7px;
    top: 8px;
}

.half-and-half--inner .half-and-half-image .video-tag img.right-arrow {
    max-width: 54px;
    left: auto;
    right: 10px;
    top: 19px;
    border-radius: 0;
}

.half-and-half--inner.half-and-half--video .half-and-half-image {
    margin-top: 55px;
}

.half-and-half--inner.bg-blue.half-and-half::before {
    left: -218px;
    height: 1120px;
    width: 1120px;
    -webkit-transform: none;
            transform: none;
    background: linear-gradient(to right,  rgba(205, 224, 241,1) 0%,rgba(205, 224, 241,1) 22%,rgba(229,239,250,0.75) 35%,rgba(229,239,250,0.75) 65%,rgba(205, 224, 241,1) 77%,rgba(205, 224, 241,1) 100%);
}



@media (min-width: 768px) {
    .half-and-half {
        padding-left: 52px;
        padding-right: 52px;
    }
    
    .half-and-half::before {
        top: -40px;
        left: calc(50% - 165px);
        height: 1410px;
        width: 1410px;
    }

    .half-and-half-image {
        height: 415px;
    }
    
    .half-and-half-text {
        padding: 40px 0 0 0;
    }

    .half-and-half-text__wrapper p {
        font-size: 18px;
    }

    .half-and-half--video .video-image svg {
        width: 108px;
    }

    .half-and-half--video .half-and-half-image {
        margin-top: 20px;
    }
    
    .video-tag {
        left: 32px;
        top: -20px;
        -webkit-transform: none;
                transform: none;
        padding: 12px 44px 12px 50px;
        width: auto;
        font-size: 16px;
    }
    
    .half-and-half-image .video-tag img {
        max-width: 20px;
        left: 20px;
        top: 14px;
    }
    
    .half-and-half-image .video-tag img.right-arrow {
        max-width: 54px;
        left: auto;
        right: 16px;
        top: 20px;
    }

    .half-and-half--inner .half-and-half-image {
        height: 447px;
        width: calc(100% + 52px);
        margin-left: -52px;
    }
    
    .half-and-half--inner.image-block-right .half-and-half-image {
        height: 447px;
        width: calc(100% + 52px);
        margin-left: 0px;
        margin-right: -52px;
    }

    .half-and-half--inner.half-and-half--video .half-and-half-image {
        margin-top: 32px;
    }

    .half-and-half--inner .video-tag {
        left: auto;
        right: 58px;
        top: -32px;
        font-size: 14px;
    }
    
    .half-and-half--inner.image-block-right .video-tag {
        left: 40px;
        right: auto;
    }

    .bg-navy.half-and-half::before {
        left: auto;
        right: -490px;
        top: -214px;
        height: 1425px;
        width: 1425px;
        -webkit-transform: none;
                transform: none;
        background: linear-gradient(to right,  rgba(58, 90, 120,1) 0%,rgba(58, 90, 120,1) 20%,rgba(68,105,162,0.6) 40%,rgba(68,105,162,0.6) 75%,rgba(58, 90, 120,1) 100%);
    }
    
    .bg-light-blue.half-and-half::before {
        left: -490px;
        top: -210px;
        height: 1410px;
        width: 1410px;
        -webkit-transform: none;
                transform: none;
        background: linear-gradient(to bottom,  rgba(229,239,250,1) 0%,rgba(229,239,250,1) 20%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 65%,rgba(229,239,250,1) 76%,rgba(229,239,250,1) 100%);
    }

    .half-and-half--inner.bg-blue.half-and-half::before {
        left: -175px;
        top: -210px;
        height: 1425px;
        width: 1425px;
        background: linear-gradient(to bottom,  rgba(205, 224, 241,1) 0%,rgba(205, 224, 241,1) 22%,rgba(229,239,250,0.75) 35%,rgba(229,239,250,0.75) 65%,rgba(205, 224, 241,1) 77%,rgba(205, 224, 241,1) 100%);
    }

    .half-and-half--inner .half-and-half-text__wrapper p {
        font-size: 17px;
    }

}

@media (min-width: 980px) {
    .half-and-half::before {
        left: 50%;
    }
}


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

    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        width: 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
        border-radius: 0 20px 20px 0;
    }

    .image-block-right .half-and-half-image img {
        border-radius: 20px 0 0 20px;
    }

    .half-and-half-image {
        height: 600px;
        border-radius: 0;
    }
    
    .half-and-half-text {
        padding: 80px 0;
    }

    .half-and-half-text__wrapper p {
        font-size: 18px;
    }

    .half-and-half-image::before {
        border-radius: 0 20px 20px 0;
    }

    .image-block-right .half-and-half-image::before {
        border-radius: 20px 0 0 20px;
    }

    .half-and-half-text.right {
        padding-left: 80px;
        padding-right: 16px;
    }

    .half-and-half-text.left {
        padding-right: 80px;
        padding-left: 16px;
    }

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

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

    .half-and-half-text.left .half-and-half-text__wrapper {
        float: right;
    }

    .half-and-half::before {
        left: auto;
        right: -90px;
        -webkit-transform: none;
                transform: none;
        top: -300px;
    }

    .half-and-half--video .video-image:hover svg {
        width: 120px;
        transition: all ease-in-out 0.3s;
    }

    .half-and-half--video .half-and-half-image {
        margin-top: 40px;
    }
    
    .video-tag {
        left: 50px;
        top: -40px;
        -webkit-transform: none;
                transform: none;
        padding: 13px 50px 13px 54px;
        font-size: 20px;
    }
    
    .half-and-half-image .video-tag img {
        max-width: 24px;
        left: 20px;
        top: 15px;
    }
    
    .half-and-half-image .video-tag img.right-arrow {
        max-width: 54px;
        left: auto;
        right: 20px;
        top: 24px;
    }

    .half-and-half--inner .half-and-half-image {
        height: auto;
        width: 50%;
        margin-left: 0px;
    }

    .half-and-half--inner.image-block-right .half-and-half-image {
        height: auto;
        width: 50%;
        margin-left: 0px;
        margin-right: 0;
    }

    .half-and-half--inner .video-tag {
        left: 50px;
        right: auto;
        top: -40px;
        font-size: 20px;
        padding: 13px 45px 13px 54px;
    }
    
    .half-and-half--inner.image-block-right .video-tag {
        left: 50px;
        right: auto;
    }

    .half-and-half--inner .half-and-half-image .video-tag img {
        max-width: 25px;
        left: 20px;
        top: 14px;
    }

    .half-and-half--inner .half-and-half-image .video-tag img.right-arrow {
        max-width: 54px;
        left: auto;
        right: 16px;
        top: 25px;
        border-radius: 0;
    }

    .half-and-half--inner.half-and-half--video .half-and-half-image {
        margin-top: 40px;
    }

    .half-and-half--inner .half-and-half-text__wrapper p {
        font-size: 18px;
    }

    .half-and-half-text__wrapper h2 {
        padding-bottom: 15px;
    }

    .bg-navy.half-and-half::before {
        left: auto;
        right: -170px;
        top: -260px;
        height: 1366px;
        width: 1366px;
        background: linear-gradient(to bottom,  rgba(58, 90, 120,1) 0%,rgba(58, 90, 120,1) 20%,rgba(68,105,162,0.6) 35%,rgba(68,105,162,0.6) 65%,rgba(58, 90, 120,1) 77%,rgba(58, 90, 120,1) 100%);
    }
    
    .bg-light-blue.half-and-half::before {
        left: -250px;
        top: -260px;
        height: 1366px;
        width: 1366px;
        background: linear-gradient(to bottom,  rgba(229,239,250,1) 0%,rgba(229,239,250,1) 22%,rgba(255,255,255,1) 40%,rgba(255,255,255,1) 65%,rgba(229,239,250,1) 77%,rgba(229,239,250,1) 100%);
    }

    .half-and-half--inner.bg-blue.half-and-half::before {
        left: auto;
        right: -170px;
        top: -260px;
        height: 1366px;
        width: 1366px;
        background: linear-gradient(to bottom,  rgba(205, 224, 241,1) 0%,rgba(205, 224, 241,1) 22%,rgba(229,239,250,0.75) 35%,rgba(229,239,250,0.75) 65%,rgba(205, 224, 241,1) 79%,rgba(205, 224, 241,1) 100%);
    }
}

@media (min-width: 1400px) {
    .half-and-half-text.right {
        padding-left: 129px;
        padding-right: 0;
    }

    .half-and-half-text.left {
        padding-right: 129px;
        padding-left: 0;
    }

    .bg-navy.half-and-half::before,
    .half-and-half--inner.bg-blue.half-and-half::before {
        right: -84px;
    }
    
    .bg-light-blue.half-and-half::before {
        left: -90px;
    }
}