@use '../../utils' as *;

/*----------------------------------------*/
/*  7.17 testimonial css
/*--------------------------------*/

.tp-testimonial{
    &-quote{
        margin-bottom: 15px;
        & span{
            color: var(--tp-common-sky);
        }
    }
    &-text{
        margin-bottom: 35px;
        & p{
            font-weight: 400;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 0;
            color: var(--tp-common-white);
        }
    }
    &-author{
        display: inline-block;
        &-wrap {
            margin-bottom: 40px;
        }
        &-img{
            border-radius: 50%;
            border: 2px solid var(--tp-common-white);
        }
        &-logo{
            position: absolute;
            bottom: -5px;
            right: 0;
            border-radius: 50%;
            border: 2px solid var(--tp-common-black); 
        }
        &-name{
            font-weight: 700;
            font-size: 18px;
            letter-spacing: -0.02em;
            color: var(--tp-common-white);
            margin-bottom: 5px;
        }
        &-info{
            line-height: 1;
            margin-left: 15px;
            & span{
                font-weight: 500;
                font-size: 14px;
                line-height: 1.43;
                color: #828386;
            }
        }
    }
    &-slider-wrap{
        padding-right: 170px;
        @media #{$lg,$md,$xs}{
            padding-right: 0;
        }
    }
    &-dot{
        & .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            opacity: 1;
            transition: .3s;
            border-radius: 50%;
            display: inline-block;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.4);
            &.swiper-pagination-bullet-active{
                border-color: var(--tp-theme-1);
                background-color: var(--tp-theme-1);
            }
        }
    }
    &-space{
        @media #{$xl}{
            padding-top: 80px;
            padding-bottom: 80px;
        }
        @media #{$lg,$md,$xs}{
            padding-top: 0;
        }
    }
    &-thumb{
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 50%;
        overflow: hidden;
        @media #{$lg}{
            position: relative;
            width: 100%;
            height: 500px;
            margin-bottom: 60px;
        }
        @media #{$md}{
            position: relative;
            width: 100%;
            height: 400px;
            margin-bottom: 60px;
        }
        @media #{$xs}{
            position: relative;
            width: 100%;
            height: 250px;
            margin-bottom: 60px;
        }
        & img{
            margin-top: -200px;
            width: 100%;
            @media #{$xxl}{
                margin-top: -150px;
            }
            @media #{$xl}{
                margin-top: -50px;
            }
        }
    }
    &-playbtn{
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        width: 100px;
        height: 100px;
        margin: 0 auto;
        line-height: 100px;
        text-align: center;
        border-radius: 50%;
        transform: translateY(-50%);
        display: inline-block;
        backdrop-filter: blur(14px);
        color: var(--tp-common-black);
        background-color: var(--tp-common-white);
        animation: animate-pulse 3s linear infinite;
        & span{
            margin-left: 2px;
        }
        &:hover{
            color: var(--tp-common-white);
            background-color: var(--tp-common-black);
        }
    }
    &-style-2{
        & .tp-testimonial-quote span {
            color: var(--tp-common-pink-3);
        }
        & .tp-testimonial-text p {
            color: var(--tp-common-black);
        }
        & .tp-testimonial-author-name {
            color: var(--tp-common-black);
        }
        & .tp-testimonial-author-info span {
            color: #525356;
        }
        & .tp-testimonial-author-logo {
            border: 2px solid #EEF0F5;
        }
        & .tp-testimonial-dot .swiper-pagination-bullet {
            border: 1px solid rgba(20, 24, 32, 0.3);
            &.swiper-pagination-bullet-active{
                border-color: var(--tp-common-blue);
                background-color: var(--tp-common-blue);
            }
        }
    }
    &-3{
        &-slider{
            &-wrap{
                margin-left: 100px;
                @media #{$lg}{
                    margin-left: 50px;
                }
                @media #{$md,$xs}{
                    margin-left: 0;
                }
            }
        }
        &-avater{
            margin-bottom: 15px;
            &-title{
                font-weight: 700;
                font-size: 18px;
                margin-bottom: 0;
                letter-spacing: -0.02em;
                color: var(--tp-common-black-3);
            }
            &-info{
                margin-bottom: 45px;
                & span{
                    font-weight: 500;
                    font-size: 14px;
                    line-height: 1;
                    color: #4d5051;
                }
            }
        }
        &-text{
            & p{
                font-weight: 400;
                font-size: 24px;
                line-height: 1.42;
                margin-bottom: 0;
                color: var(--tp-common-black-3);
                @media #{$md}{
                    font-size: 18px;
                }
                @media #{$xs}{
                    font-size: 20px;
                }
            }
        }
        &-dot{
            & .swiper-pagination-bullet {
                width: 60px;
                height: 2px;
                opacity: 1;
                border-radius: 0;
                display: inline-block;
                background: #cbcccf;
                transition: .3s;
                &.swiper-pagination-bullet-active{
                    background-color: var(--tp-common-blue);
                }
            }
        }
        &-title-box{
            @media #{$xs}{
                margin-bottom: 30px;
            & .tp-section-title.fs-40 {
                font-size: 28px;
            }
            }
        }
        &-btn{
            @media #{$xs}{
                margin-bottom: 40px;
            }
        }
    }
    &-4{
        &-area{
            @media #{$xs}{
                padding-top: 70px;
                padding-bottom: 70px;
            }
        }
        &-item{
            border-radius: 14px;
            padding: 40px 40px 45px 30px ;
            background-color: var(--tp-common-white);
            box-shadow: 0 20px 30px 0 rgba(12, 12, 19, 0.2);
        }
        &-top{
            margin-bottom: 15px;
        }
        &-avatar{
            flex: 0 0 auto;
            margin-right: 12px;
            &-name{
                font-weight: 700;
                font-size: 18px;
                margin-bottom: 0;
                letter-spacing: -0.02em;
                color: var(--tp-common-black);
            }
            &-content{
                & span{
                    font-weight: 400;
                    font-size: 14px;
                    color: #919396;
                }
            }
        }
        &-ratting{
            & > span{
                height: 24px;
                line-height: 23px;
                padding: 0 12px;
                border-radius: 20px;
                font-weight: 600;
                font-size: 12px;
                display: inline-block;
                color: var(--tp-common-black);
                border: 1px solid rgba(20, 24, 32, 0.14);
                & span{
                    margin-left: 5px;
                    display: inline-block;
                    transform: translateY(-2px);
                }
            }
        }
        &-text{
            margin-left: 50px;
            & p{
                font-weight: 500;
                font-size: 14px;
                line-height: 1.57;
                color: #525356;
                margin-bottom: 0;
                padding-right: 2px;
            }
        }
        &-quote{
            position: absolute;
            top: -5px;
            left: -40px;
        }
        &-active{
            margin: 0px -50px;
            padding-bottom: 60px;
            @media #{$lg,$md,$xs}{
                margin: 0;
            }
        }
        &-dot-box{
            position: absolute;
            right: 0;
            @media #{$md,$xs}{
                right: 0;
                left: 0;
                text-align: center;
            }
        }
        &-dot{
            &-wrap{
                @media #{$md}{
                    margin-bottom: 80px;
                }
            }
            &::before{
                content: "";
                height: 1px;
                width: 1085px;
                display: inline-block;
                transform: translateY(-5px);
                background: linear-gradient(-90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
                @media #{$xl}{
                    width: 990px;
                }
                @media #{$lg}{
                    width: 810px;
                }
                @media #{$md,$xs}{
                    display: none;
                }
            }
            & .swiper-pagination-bullet {
                opacity: 1;
                width: 12px;
                height: 12px;
                transition: .3s;
                border-radius: 50%;
                margin-left: 10px;
                display: inline-block;
                background: transparent;
                border: 1px  solid rgba(255, 255, 255, 0.4);
                &.swiper-pagination-bullet-active{
                    background-color: var(--tp-common-white);
                }
            }              
        }
        &-fea{
            &-item{
                @media #{$xs}{
                    margin-bottom: 40px;
                }
            }
            &-img{
                flex: 0 0 auto;
                margin-right: 15px;
            }
            &-star{
                & span{
                    margin-right: 3px;
                    color: var(--tp-common-white);
                }
            }
            &-text{
                line-height: 1;
                & span{
                    font-weight: 700;
                    font-size: 14px;
                    line-height: 1.3;
                    letter-spacing: -0.02em;
                    color: var(--tp-common-white);
                }
            }
            &-head{
                margin-right: 20px;
                & h4{
                    font-weight: 800;
                    font-size: 40px;
                    margin-bottom: 0;
                    letter-spacing: -0.02em;
                    color: var(--tp-common-black);
                    @media #{$lg,$md}{
                        font-size: 30px;
                    }
                }
            }
        }
        &-shape{
            position: absolute;
            top: 70px;
            right: 70px;
            & span{
                opacity: 0.1;
                mix-blend-mode: luminosity;
            }
        }
    }
    &-5{
        &-wrap{
            & .tp-testimonial-4-item {
                background: #4a4d8e;
                box-shadow: 0 20px 30px 0 rgba(12, 12, 19, 0.06);
            }
            & .tp-testimonial-4-avatar-name {
                color: var(--tp-common-white);
            }
            & .tp-testimonial-4-avatar-content span {
                color: #c7c9cf;
            }
            & .tp-testimonial-4-text p {
                color: var(--tp-common-white);
            }
            & .tp-testimonial-4-ratting > span {
                color: var(--tp-common-white);
                border: 1px solid rgba(255, 255, 255, 0.14);
            }
        }
    }
}