/*------------------------------------*\
    
    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;
    flex: 0 0 100%;
}

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


.green-bg {
    background-color: #01190A;
    color: var(--color-white);
}

.green-bg h2 {
    color: var(--color-white);
}

.green-bg p a {
    color: var(--color-green);
}

.green-bg .btn-primary {
    color: #012537;
    background: var(--color-white);
    box-shadow: inset 0 0 0 #8db0ba;
}

@media (min-width: 1200px) {
    .green-bg .btn-primary:hover {
        color: var(--color-white);
        box-shadow: inset 500px 0 0 #8db0ba;
    }
}

.half-and-half-image__wrapper {
    height: 257px;
    position: relative;
}

.half-and-half-text__wrapper {
    padding: 36px 22px 40px;
    position: relative;
}

.half-and-half-image__bttn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.half-and-half-image__bttn svg {
    width: 87px;
    height: auto;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .half-and-half-image__wrapper {
        height: 452px;
    }
    
    .half-and-half-text__wrapper {
        padding: 56px 52px 34px;
    }

    .half-and-half-text__wrapper::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 228px;
        bottom: -227px;
        left: 0;
        z-index: -1;
    }

    .green-bg::after {
        background-color: #01190A;
    } 

    .half-and-half-image {
        padding: 0 52px 29px;
    }

    .watch-now {
        position: relative;
        color: #408B5A;
        font-size: 20px;
        font-weight: 700;
        font-family: 'Philosopher', sans-serif;
        padding-top: 9px;
        display: flex;
        align-items: center;
    }

    .watch {
        margin-right: 9px;
    }

    .half-and-half-image img.rotating-arrows {
        width: 52px;
        transform: rotate(-42deg);
        margin-left: -10px;
    }

    .half-and-half-image__bttn svg {
        width: 102px;
    }
}
    
@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
    }
    
    .half-and-half-image img {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }
    
    .half-and-half-image__wrapper {
        height: auto;
        width: 100%;
    }

    .half-and-half-image {
        padding: 0 0 0 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .half-and-half-text {
        z-index: 1;
        padding: 54px 0 38px 0;
    }

    .half-and-half-text__wrapper::after {
        display: none;
    }

    .half-and-half-text__wrapper {
        max-width: 724px;
        margin-left: auto;
        margin-right: -92px;
        padding: 58px 76px 81px 56px;
    }

    .watch-now {
        position: absolute;
        right: 43px;
        bottom: 0;
        padding: 0 0 25px 0;
    }

    .rotating-arrows {
        position: absolute;
        bottom: 15px;
        right: -25px;
    }

    .half-and-half-text__wrapper {
        z-index: 1;
    }

    .half-and-half-image__bttn svg {
        width: 120px;
    }

    .half-and-half-image__bttn:hover svg {
        transform: scale(1.05);
    }
}

.half-and-half-image__bttn:hover {
    border: none;
}

@media (min-width: 1200px) {
    .image-block--left {
        flex-direction: row-reverse;
    }

    .image-block--left .half-and-half-text__wrapper {
        margin-left: -92px;
        margin-right: auto;
    }

    .image-block--left .half-and-half-image {
        padding: 0 16px 0 0;
    }

    .image-block--left .watch-now {
        right: auto;
        left: 43px; 
    }

    .image-block--left .watch-now .rotating-arrows {
        right: auto;
        bottom: 11px;
        left: -35px;
        transform: scale(-1, 1);
    }
}