.case-studies {
    .case-studies-cards {
        &.layout-half {
            .case-study-hidden {
                display: none;
            }
            .case-study-fade-in {
                animation: fadeInUp 0.5s ease-in-out;
            }
            .col-lg-6 {
                .case-study-card {
                    height: 460px;

                    .case-study-video {
                        display: none;
                    }
                    .case-study-hover {
                        padding: 50px;

                        @media screen and (max-width: 991px) {
                            padding: 40px;
                        }
                        @media screen and (max-width: 768px) {
                            padding: 30px;
                        }
                        h2 {
                            font-size: var(--font-size-lg);
                            letter-spacing: 3px;

                            @media screen and (max-width: 991px) {
                                font-size: var(--font-size-xl);
                            }
                            @media screen and (max-width: 576px) {
                                font-size: var(--font-size-md);
                                letter-spacing: 2px;
                            }
                        }
                        h3 {
                            font-size: var(--font-size-md);
                            margin-top: 5px;

                            @media screen and (max-width: 576px) {
                                margin-top: 10px;
                            }
                        }
                    }
                }
            }
        }
        .case-study-card {
            position: relative;
            display: block;
            height: 560px;
            border-radius: 30px;
            overflow: hidden;
            cursor: url('../../../assets/svg/green-circle-white-arrow.svg') 50 50, pointer !important;

            @media screen and (max-width: 991px) {
                height: 460px;
            }
            @media screen and (max-width: 576px) {
                cursor: pointer !important;
            }
            &:hover, &:focus-visible {
                .case-study-video {
                    opacity: 0;
                    visibility: hidden;
                }
                .case-study-image {
                    transform: scale(1.1);

                    @media screen and (max-width: 576px) {
                        transform: none;
                    }
                }
                .case-study-hover {
                    opacity: 1;
                    visibility: visible;
                }
            }
            .case-study-video {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 30px;
                overflow: hidden;
                z-index: 1;
                opacity: 1;
                visibility: visible;
                transition: 1s ease;

                @media screen and (max-width: 576px) {
                    display: none;
                }
                video {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .case-study-image {
                width: 100%;
                height: 100%;
                border-radius: 30px;
                overflow: hidden;
                transition: 1s ease;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
                .full-image {
                    width: 100%;
                    height: 100%;

                    @media screen and (max-width: 576px) {
                        display: none;
                    }
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                .half-image {
                    display: none;
                    width: 100%;
                    height: 100%;

                    @media screen and (max-width: 576px) {
                        display: block;
                    }
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
            .case-study-hover {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border-radius: 30px;
                overflow: hidden;
                padding: 60px;
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                opacity: 0;
                visibility: hidden;
                z-index: 2;
                transition: 1s ease;

                @media screen and (max-width: 991px) {
                    padding: 40px;
                }
                @media screen and (max-width: 768px) {
                    padding: 30px;
                }
                @media screen and (max-width: 576px) {
                    opacity: 1;
                    visibility: visible;
                }
                &:after {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 1;
                    background-color: rgba(0, 0, 0, .5);
                }
                h2, h3 {
                    position: relative;
                    z-index: 2;
                    margin-bottom: 0;
                    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
                }
                h2 {
                    font-weight: 800;
                    text-transform: uppercase;
                    letter-spacing: 4.8px;
                    position: relative;

                    @media screen and (max-width: 991px) {
                        letter-spacing: 3px;
                    }
                    @media screen and (max-width: 576px) {
                        font-size: var(--font-size-md);
                        letter-spacing: 2px;
                    }
                    &:before {
                        display: none;
                        content: '';
                        position: absolute;
                        top: -70px;
                        left: 0;
                        width: 50px;
                        height: 50px;
                        background-image: url('../../../assets/svg/green-circle-white-arrow.svg');
                        background-size: cover;
                        background-repeat: no-repeat;

                        @media screen and (max-width: 576px) {
                            display: block;
                        }
                    }
                }
                h3 {
                    @media screen and (max-width: 991px) {
                        margin-top: 5px;
                    }
                    @media screen and (max-width: 576px) {
                        font-size: var(--font-size-md);
                        margin-top: 10px;
                    }
                }
            }
        }
    }
    .case-study-ctas {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: var(--spacing-4xl);

        @media screen and (max-width: 991px) {
            margin-top: var(--spacing-3xl);
        }
        @media screen and (max-width: 800px) {
            display: block;
            text-align: center;
        }
        @media screen and (max-width: 768px) {
            margin-top: var(--spacing-2xl);
        }
        @media screen and (max-width: 576px) {
            margin-top: var(--spacing-xl);
        }
        .view-more {
            @media screen and (max-width: 800px) {
                margin-bottom: 30px;
            }
            @media screen and (max-width: 576px) {
                margin-bottom: 25px;
            }
        }
        .explore-services {
            @media screen and (max-width: 800px) {
                margin-bottom: 30px;
            }
            @media screen and (max-width: 576px) {
                margin-bottom: 25px;
            }
            .service-link {
                display: inline-block;
                font-size: 2rem;
                font-weight: 800;
                line-height: 1.2;
                text-transform: uppercase;
                letter-spacing: 2px;
                color: #B4B4B4;

                @media screen and (max-width: 768px) {
                    font-size: 1.8rem;
                    letter-spacing: 1.8px;
                }
                &:hover, &:focus-visible {
                    color: var(--color-white);

                    .link-arrow {
                        top: -5px;
                        right: -3px;
                    }
                }
                .link-arrow {
                    position: relative;
                    top: -2px;
                    right: 0;
                    transition: .2s ease-in-out;
                }
            }
        }
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}