/* case 1 start  ---------------------------------- */
.case-slider {
    .swiper-slide {
        border-radius: 24px;
        filter: blur(4px);

        &.swiper-slide-active {
            border-radius: 24px;
            filter: none !important;

            & .case-img {
                &::before {
                    opacity: .8;
                    visibility: visible;
                }

                & .case-action {
                    opacity: 1;
                    visibility: visible;
                }
            }
        }
    }

    .case-box {
        .case-content {
            visibility: visible;
            opacity: 1;
            transform: scale(1);
        }
    }
}

.case-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    --space: 40px;

    @include md {
        --space: 20px;
    }

    @include xs {
        padding: 10px;
        border-radius: 20px;
        --space: 10px;
    }

    .case-img {
        position: relative;
        overflow: hidden;
        border-radius: 24px;
        z-index: 2;

        @include md {
            margin-bottom: 0;
        }

        &:before {
            position: absolute;
            content: "";
            inset: 0;
            border-radius: 24px;
            background: linear-gradient(180deg, rgba(11, 20, 34, 0.8) 0%, rgba(11, 20, 34, 0.8) 100%);
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            transition: .4s;
        }

        @include xs {
            border-radius: 15px;
        }

        & img {
            width: 100%;
            object-fit: cover;
            border-radius: 24px;
            transition: 0.4s ease-in-out;

            @include xs {
                max-width: 100%;
                max-height: 100%;
                border-radius: 15px;
            }
        }
    }

    .case-content {
        position: absolute;
        bottom: 40px;
        z-index: 2;
        padding: 0 40px;
        visibility: hidden;
        opacity: 0;
        transform: scale(0);
        transition: 0.4s ease-in-out;

        @include md { 
            max-width: 380px;
            padding: 0 20px;
            bottom: 20px;
            gap: 60px;
        }

        @include sm {
            max-width: 100%;
            display: block;
            margin: auto;
        }
    }

    .box-title {
        margin-bottom: 0px;


        a {
            color: $white-color;
        }
    }

    .case-subtitle {
        font-size: 16px;
        color: $white-color;
        margin-bottom: 8px;
    }

    & .case-action {
        opacity: 0;
        visibility: hidden;
        z-index: 2;
        transition: .4s;
    }

    .th-btn {
        padding: 11.5px 34px;

        &:after {
            mask-image: url("../img/icon/arrow-right3.svg");
            width: 16px;
            height: 16px;
        }

        @include lg {
            padding: 10px 20px;
        }

        @include sm {
            padding: 7px 20px;
            margin-top: 10px;

            &:after {
                display: none;
            }
        }

        @include vxs {
            padding: 7px 10px;
        }
    }

    &:hover {
        .case-img {
            &:before {
                transform: scale(1);
            }


        }
    }
}

.case-title-box {
    @include lg {
        margin-bottom: 20px;
    }
}

.case-action {
    position: absolute;
    top: 20px;
    right: 20px;

    &.g4-bgn {
        opacity: 0;
        visibility: hidden;
        transform: scale(.2);
        transition: .4s;
    }
}

.case-btn {
    position: relative;
    font-size: 24px;
    width: 55px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    display: inline-block;
    border-radius: 30px;
    color: $white-color;
    border: 1px solid #fff;
    transition: .4s;

    & i {
        position: relative;
        transform: rotate(-45deg);
        transition: .4s;
    }

    &::before {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        content: "";
        opacity: 0;
        visibility: hidden;
        transform: scale(.5);
        border-radius: 50%;
        background-color: $theme-color;
        transition: .4s;
    }

    &:hover {
        border: 1px solid $theme-color;

        & i {
            color: $white-color;
            transform: rotate(0);
        }

        &::before {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
    }
}

/* case 2 start  ---------------------------------- */

.case-action {
    position: absolute;
    top: 20px;
    right: 20px;
}

.case-btn {
    position: relative;
    font-size: 24px;
    width: 55px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    display: inline-block;
    border-radius: 30px;
    color: $white-color;
    border: 1px solid #fff;
    transition: .4s;

    & i {
        position: relative;
    }

    &::before {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        content: "";
        opacity: 0;
        visibility: hidden;
        transform: scale(.5);
        border-radius: 50%;
        background-color: $theme-color;
        transition: .4s;
    }

    &:hover {
        border: 1px solid $theme-color;

        & i {
            color: $white-color;
        }

        &::before {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }
    }
}

/* start case style3 start  ---------------------------------- */
.case-area3 {
    .th-container {
        --main-container: 1472px;
    }
}

.case-slider3 {
    .swiper-slide {
        box-shadow: none;
        border-radius: 24px;
        overflow: hidden;

        &.swiper-slide-active {
            border-radius: 24px;

            .case-img {
                width: 425px;
                height: 470px;
                display: block;
                margin: auto;

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

        }
    }
}

.case-box3 {
    position: relative;

    .case-img {
        position: relative;
        border-radius: 24px;
        height: 470px;
        overflow: hidden;
        box-shadow: none;

        &:after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(13, 13, 12, 0.5);
            border-radius: 24px;
            opacity: 0;
            transition: 0.4s ease;
            transform: scale(0);
            z-index: 1;
        }

        .icon-btn {
            position: absolute;
            top: calc(50% - 20px);
            left: calc(50% - 20px);
            z-index: 3;
            transform: scale(0);
            border: none;
            font-size: 40px;
            font-weight: 300;
            color: $white-color;

            &:hover {
                background-color: transparent;
            }

        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 24px;
        }
    }

    &:hover {
        .case-img {
            &:after {
                opacity: 1;
                transform: scale(1);
            }
        }

        .icon-btn {
            transform: scale(1);
        }
    }
}

/* case 1 end  ---------------------------------- */

/* case study 2 start  ---------------------------------- */
.case-row4 {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: flex-start;
    margin: 0 12px;

    @include lg {
        grid-template-columns: auto auto auto;
    }

    @include sm {
        grid-template-columns: auto auto;
    }

    @include xs {
        grid-template-columns: auto;
    }
}

.case-box {
    position: relative;

    &.style2 {
        & .case-img {
            position: relative;
            height: 360px;
            overflow: hidden;
            z-index: 2;
            border-radius: 16px;

            & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 16px;

                @include md {
                    margin-bottom: 0;
                }
            }

            &::before {
                width: 100%;
                height: 100%;
                transition: 0.4s ease;
            }

            &:after {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                content: '';
                inset: 0;
                background: rgba(11, 20, 34, 0.7);
                border-radius: 16px;
                opacity: 0;
                transition: 0.4s ease;
                transform: scale(0);
                z-index: 2;
            }

            &.global-img {
                @include xs {
                    margin-bottom: 0;
                }
            }
        }

        & .icon-btn {
            position: absolute;
            width: 56px;
            height: 56px;
            top: 20px;
            right: 20px;
            line-height: 56px;
            text-align: center;
            border: 1px solid $white-color;
            z-index: 3;
            transform: scale(0);
            font-size: 15px;
            font-weight: 300;
            color: $white-color;

            &:hover {
                background-color: transparent;
            }

        }

        & .box-title {
            @include md {
                font-size: 24px;
            }
        }

        & .case-content {
            z-index: 2;
            text-align: start;

            @include md {
                padding: 0 20px;
                bottom: 50px;
            }
        }

        &:hover {
            .case-img {
                &:after {
                    opacity: 1;
                    transform: scale(1);
                }
            }

            & .case-content {
                opacity: 1;
                visibility: visible;
                transform: scale(1);
            }

            .icon-btn {
                transform: scale(1);
            }
        }
    }

}

/* case study 2 end  ---------------------------------- */


/* case study 3 start  ---------------------------------- */
.case-box3 {
    & .case {
        &-content {
            position: absolute;
            max-width: 348px;
            bottom: -100px;
            left: 24px;
            right: 67px;
            margin: auto;
            opacity: 0;
            visibility: hidden;
            padding: 17px 24px;
            border-radius: 16px;
            display: inline-block;
            background-color: $white-color;
            z-index: 2;
            transition: .4s;
        }

        &-title {
            font-weight: 600;
            font-size: 22px;
            display: inline-block;
            line-height: 1;
            margin-bottom: 0;
            text-transform: capitalize;
            color: $title-color;
        }

        &-categ {
            font-weight: 600;
            font-size: 14px;
            display: block;
            text-transform: capitalize;
            color: $body-color;
        }

        &-icon {
            position: absolute;
            width: 56px;
            height: 56px;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            line-height: 56px;
            text-align: center;
            color: $white-color;
            background: $theme-color;
            border-radius: 50%;
            opacity: 0;
            visibility: hidden;
            transition: .4s;

            &:hover {
                color: $white-color;
                background-color: $title-color;
            }
        }

        &-img {
            &:hover {
                & .case {
                    &-content {
                        bottom: 24px;
                        opacity: 1;
                        visibility: visible;

                        &:hover {
                            & .case-icon {
                                right: -44px;
                                opacity: 1;
                                visibility: visible;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* case study 3 end  ---------------------------------- */

/* case inner style start ----------------------------------- */
.case-box {
    &.inner-style1 {
        & .case-img {
            height: 100%;
        }
    }
}

.case4-btn {
    border: 0;
    font-size: 14px;
    padding: 7px 25px;
    border-radius: 10px;
    transition: .4s;
    background: #EEF1FF;

    &:not(:last-child) {
        margin-right: 6px;
        margin-bottom: 10px;
    }

    &.active {
        color: $white-color;
        background: $theme-color;
    }

    &:hover {
        color: $white-color;
        background: $theme-color;
    }
}

.case-study {
    &-list-item {
        & .icon {
            margin-right: 17px;
            color: $theme-color;
        }
    }
}

/* case inner style end ----------------------------------- */