/* testi card start -----------------------*/
.testi-sec {
    position: relative;
    max-width: 1620px;
    display: block;
    margin: auto;
    margin-bottom: 80px;

    @include lg {
        background-color: $smoke-color;
    }

    &:before {
        content: "";
        position: absolute;
        inset: 0;
        mask-image: url(../img/bg/shape_bg_1.png);
        background-repeat: no-repeat;
        background-size: auto;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: auto;
        background-color: var(--smoke-color);
        z-index: -2;
    }

    .testi-wrapper {
        position: relative;

        @include lg {
            text-align: center;
        }

        .testi-shape {
            position: absolute;
            top: 0;
            right: 55px;
            width: 300px;
            height: 600px;

            @media(max-width: 1399px) {
                right: 52px;
            }

            @include xl {
                right: 46px;
            }

            @include lg {
                right: 106px;
            }

            @include md {
                right: 0;
            }

            @media(max-width: 480px) {
                display: none;
            }

        }
    }

    .testi-image {
        min-width: 600px;
        margin: 0 80px 0 -90px;

        @include xl {
            min-width: 100%;
            margin: 0 80px 0 -40px;
        }

        @include lg {
            display: block;
            margin: auto;
        }
    }

}


.testi-area {
    padding: 170px 0 120px 0;

    @include lg {
        padding: 40px 0 120px 0;
    }

    @include md {
        padding: 40px 0 80px 0;
    }
}

.team-thumb {
    .tab-btn {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background-color: $title-color;
        cursor: pointer;
        position: absolute;

        @media(max-width: 480px) {
            top: 30%;
        }

        @media(max-width: 480px) {
            display: none;
        }

        &:nth-child(1) {
            top: 16%;
            right: 19%;

            @include xl {
                right: 22%;
            }

            @include lg {
                right: 18.5%;
            }

            @include md {
                right: 10%;

            }

            @include sm {
                right: 15%;
            }

            @include xs {
                right: 13%;
            }
        }

        &:nth-child(2) {
            top: 30%;
            right: 11%;

            @include xl {
                right: 13%;
            }

            @include md {
                right: 2%;
            }

            @include sm {
                right: 5%;
            }

            @include xs {
                right: 4%;
            }

        }

        &:nth-child(3) {
            top: 47%;
            right: 7.5%;

            @include lg {
                right: 10.8%;
            }

            @include md {
                right: -1%;
            }
        }

        &:nth-child(4) {
            top: 65%;
            right: 10%;

            @include xl {
                right: 8.5%;
            }

            // @include lg {
            //     right: 1.5%;
            // }

            @include lg {
                right: 12.5%;
            }

            @include md {
                right: 1.5%;
            }

            @include sm {
                right: -1%;

            }

            @include xs {
                right: 0%;
            }
        }

        &:nth-child(5) {
            top: 80%;
            right: 18%;

            @include xl {
                right: 14%;
            }

            @include lg {
                right: 18%;
            }

            @include md {
                right: 8.5%;
            }

            @include sm {
                right: 4%;
            }

            @include xs {
                right: 6%;
            }
        }

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



.testi-card {
    &_wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    &_review {
        i {
            color: #FBB040;
            font-size: 16px;
        }
    }

    &_text {
        font-family: $title-font;
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
        color: $body-color;
        margin-bottom: 30px;


    }

    &_profile {
        display: flex;
        gap: 20px;
    }

    &_avater {
        min-width: 56px;
        border-radius: 10px;

        img {
            background-color: $theme-color2;
            padding: 4px;
            width: 56px;
            height: 56px;
            border-radius: 10px;
        }
    }

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

    &_desig {
        font-size: 16px;
        font-weight: 500;
        color: $theme-color;
        text-transform: capitalize;
    }
}

/* testi card end -----------------------*/

/* testi box start -----------------------------------*/
.testi-image2 {
    position: relative;
    margin-right: 6px;

    @include lg {
        margin: 0px;
    }

    @include md {
        mask-size: 100%;
    }


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

.testi-slider {
    position: relative;
    margin: 100px 0 140px -250px;
    z-index: 5;

    @include lg {
        margin-left: 0;
    }

    @include sm {
        margin: 0;
    }

    .testi-frame {
        position: absolute;
        top: -3%;
        right: 15.5%;
        z-index: 4;

        @include sm {
            top: unset;
            right: 4%;
            z-index: 4;
            bottom: 35%;
            transform: rotate(60deg);
        }
    }

    .testi-quote {
        position: absolute;
        top: -45px;
        left: 40px;
        z-index: 2;

        @include lg {
            top: -15px;
        }

        @include sm {
            display: none;
        }
    }
}

.testi-box {
    background-color: #F9F6EF;
    border-radius: 50px;
    padding: 70px 35px 70px 100px;

    @media(max-width: 1399px) {
        padding: 70px 35px 70px 70px;
    }

    @include md {
        padding: 70px 20px 70px 70px;
    }

    @include sm {
        padding: 70px 40px;
    }

    @include xs {
        padding: 70px 20px;
    }

    &_profile {
        display: flex;
        justify-content: space-between;

        @include sm {
            display: block;
        }


    }

    &_text {
        font-family: $title-font;
        font-weight: 600;
        font-size: 24px;
        line-height: 34px;
        color: $title-color;
        max-width: 440px;
        margin-top: -0.4rem;
        margin-bottom: 30px;

        @include xs {
            font-size: 20px;
            line-height: 30px;
        }
    }

    &_img {
        position: relative;
        min-width: 182px;
        margin-top: -25px;

        @include sm {
            margin-top: 0;
            display: block;
            margin-left: auto;
            text-align: right;
        }

        .img1 {
            width: 182px;
            border: 15px solid $white-color;
            transform: rotate(-22.44deg);

            @include sm {
                transform: rotate(57deg);
            }

        }

    }

    &_wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: -0.6rem;
        padding-right: 50px;

        @include sm {
            display: block;
        }
    }

    &_review {
        i {
            color: #FBB040;
        }
    }

    .box-title {
        position: relative;
        margin: 0;
        padding-left: 60px;

        @include xs {
            font-size: 18px;
            padding-left: 40px;
        }

        &:before {
            content: "";
            height: 2px;
            width: 63px;
            background-color: $theme-color;
            position: absolute;
            top: 16px;
            left: -20px;

            @include xs {
                width: 43px;
            }
        }
    }
}

/* testi box end -----------------------------------*/

/*testi -----------------*/
.testi-sec3 {
    padding: 115px 0 150px 0;

    @include sm {
        padding: 80px 0 100px 0;
    }

    .shape-bottom {
        bottom: -25px;
    }
}

.testi-image-wrapp {
    position: relative;
    max-width: 610px;
    margin: 0px auto auto -22px;

    @include lg {
        margin: auto;
    }

    @include sm {
        max-width: 100%;
        margin-bottom: 40px;
    }

    &:after {
        content: "";
        inset: -10px;
        position: absolute;
        background-repeat: no-repeat;
        background-size: cover;
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: 100% 100%;
        mask-image: url(../img/shape/testi-bg-shape.png);
        background-color: var(--theme-color);
        z-index: -2;
    }
}

.testi-image3 {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100% 100%;
    z-index: 2;



    .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        &:before,
        &:after {
            background-color: $theme-color;
        }

        i {
            --icon-size: 55px;
            background-color: $theme-color;
        }
    }

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

        @include lg {
            margin: 0;
        }
    }
}

.testi-slider3 {
    position: relative;

    .icon-box {
        position: absolute;
        right: 0;
        bottom: 0;

        .slider-arrow {
            border-radius: 50%;
            border: none;

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