@use "../utilities" as *;

/**----------------------------------------
START: Theme Testi CSS
----------------------------------------*/
.testimonial-section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    .overlay {
        background-color: rgba(41, 41, 48, 0.87);
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    .testi-shape {
        background-repeat: no-repeat;
        background-size: contain;
        background-position: bottom left;
        width: 378px;
        height: 350px;
        position: absolute;
        bottom: 0;
        left: 225px;
        z-index: -1;
        @include breakpoint(md) {
            width: 270px;
            left: 45px;
        }
        @include breakpoint(sm) {
            display: none;
        }
    }
    .section-heading {
        .section-title {
            color: var(--mt-color-common-white);
            margin-bottom: 15px;
        }
        p {
            color: var(--mt-color-common-white);
            max-width: 720px;
            width: 100%;
            margin: 0 auto;
        }
    }
}

.testi-carousel-wrap {
    position: relative;
    @include breakpoint(md) {
        margin-left: 305px;
    }
    @include breakpoint(sm) {
        margin-left: 0;
    }
    &:before {
        content: "";
        height: calc(100% - 45px);
        width: 60%;
        border-right: 5px solid var(--mt-color-common-white);
        border-top: 5px solid var(--mt-color-common-white);
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .quote-3{
        position: absolute;
        top: 30px;
        left: -115px;
    }
    .testi-thumb-wrap {
        overflow: hidden;
        width: 250px;
        margin-bottom: 30px;
    }
    .thumb-carousel {
        width: 85px;
        margin: 0 auto;
        padding-top: 10px;
        overflow: visible;
        .swiper-slide {
            height: 85px;
            width: 85px;
        }
    }
    .testi-thumb {
        border: 5px solid transparent;
        height: 75px;
        width: 75px;
        border-radius: 50%;
        cursor: pointer;
        img {
            border-radius: 50%;
        }
    }
    .swiper-slide.swiper-slide-active {
        .testi-thumb {
            height: 80px;
            width: 80px;
            border: 5px solid var(--mt-color-theme-secondary);
            border-radius: 50%;
        }
    }
    .content-carousel{
        padding-bottom: 55px;
        .swiper-pagination{
            left: 0;
            text-align: left;
        }
    }
}


.testi-content {
    position: relative;
    .quote {
        position: absolute;
        bottom: 10px;
        right: 120px;
    }
    p {
        color: var(--mt-color-common-white);
        font-style: italic;
        max-width: 470px;
        width: 100%;
        margin-bottom: 20px;
    }
    .author {
        color: var(--mt-color-common-white);
        font-size: 22px;
        margin-bottom: 20px;
        span {
            font-family: var(--mt-ff-body);
            display: block;
            font-size: 16px;
            font-weight: 400;
            margin-top: 10px;
        }
    }
    .review {
        li {
            display: inline-flex;
            font-size: 14px;
            color: var(--mt-color-theme-secondary);
            &:not(:last-of-type) {
                margin-right: 10px;
            }
        }
    }
}

.testi-2{
    padding: 310px 0 215px 0;
    position: relative;
    z-index: 2;
    @include breakpoint(md){
        padding-top: 270px;
        padding-bottom: 150px;
    }
    .bg-img{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    .bg-color-bottom{
        @include breakpoint(md){
            height: 270px;
        }
    }
    .custom-container{
        max-width: 1865px;
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }
    .testi-items{
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 0;
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        justify-content: center;
        >div{
            flex: 0 0 auto;
            width: calc(100% / 3);
            padding: 12px;
            &.small{
                width: 20%;
            }
            &.large{
                width: 30%;
            }
            @include breakpoint(md){
                width: 50%;
                &.small,
                &.large{
                    width: 50%;
                }
            }
            @include breakpoint(md){
                width: 100%;
                &.small,
                &.large{
                    width: 100%;
                }
            }
        }
    }
    .testi-item{
        position: relative;
        overflow: hidden;
        @include transition(all 0.3s ease-in-out);
        .testi-content{
            position: relative;
            padding: 50px 40px;
            border: 1px solid #474750;
            overflow: hidden;
            @include transition(all 0.3s ease-in-out);
            border-radius: 20px;
            @include breakpoint(xl){
                padding: 40px 20px;
            }
            @include breakpoint(sm){
                padding: 40px 20px;
            }
            &:hover{
                background-color: var(--mt-color-border-3);
            }
            .author-box{
                display: grid;
                align-items: center;
                grid-template-columns: 69px 1fr;
                grid-gap: 25px;
                margin-bottom: 30px;
                .author{
                    margin-bottom: 0;
                    @include breakpoint(xl){
                        font-size: 18px;
                    }
                }
            }
        }
        .icon{
            font-size: 40px;
            color: var(--mt-color-theme-secondary);
            position: absolute;
            bottom: 15px;
            right: 30px;
        }
        .shape{
            background-repeat: no-repeat;
            background-size: contain;
            background-position: right bottom;
            width: 100%;
            height: 100%;
            position: absolute;
            bottom: -120px;
            right: -120px;
            opacity: 0.12;
            visibility: hidden;
            opacity: 0;
            @include transition(all 0.4s ease-in-out);
        }
        &:hover{
            .shape{
                visibility: visible;
                opacity: 0.12;
            }
        }
    }
}

// Testi 3

.testi-carousel-wrap.wrap-2{
    &:before{
        width: 40%;
    }
    &:after{
        content: "";
        height: calc(100% - 45px);
        width: 40%;
        border-left: 5px solid var(--mt-color-common-white);
        border-top: 5px solid var(--mt-color-common-white);
        position: absolute;
        bottom: 0;
        left: 0;
    }
    @include breakpoint(md){
        margin-left: 0;
    }
    .testi-thumb-wrap{
        margin: 0 auto;
        margin-bottom: 20px;
    }
    .content-carousel{
        .testi-content{
            p{
                color: var(--mt-color-text-body);
                max-width: 510px;
                margin: 0 auto;
                font-size: 16px;
                margin-bottom: 30px;
            }
            .author{
                color: var(--mt-color-heading-primary);
                font-weight: 700;
                span{
                    margin-top: 5px;
                }
            }
            .quote{
                right: 280px;
                opacity: 0.2;
                @include breakpoint(md){
                    right: 100px;
                }
                @include breakpoint(sm){
                    display: none;
                }
            }
            .quote-2 {
                position: absolute;
                bottom: 30px;
                right: auto;
                left: 280px;
                opacity: 1;
                @include breakpoint(md){
                    left: 100px;
                }
            }
        }
    }
}

.testi-page{
    padding: 100px 0;
    @include breakpoint(md){
        padding: 70px 0;
    }
    @include breakpoint(sm){
        padding: 50px 0px;
    }
    .section-heading{
        .section-title{
            color: var(--mt-color-heading-primary);
        }
    }
    .testi-item{
        .testi-content{
            border: 1px solid var(--mt-color-border-1);
            p,
            .author-box .author{
                color: var(--mt-color-heading-primary);
            }
            &:hover{
                p,
                .author-box .author{
                    color: var(--mt-color-common-white);
            }
            }
        }
    }
}

.testimonial-section-2{
    position: relative;
    z-index: 1;
    .bg-shape{
        @include background;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    .section-heading{
        p{
            max-width: 700px;
            margin: 0 auto;
            width: 100%;
            margin-top: 20px;
            &:last-child{
                margin-bottom: 0;
            }
        }
    }
}

/* !END: Theme Testi CSS */
