@use '../../utils' as *;

/*----------------------------------------*/
/*  4.23 Testimonial css
/*----------------------------------------*/


.rs-testimonial {
    &-one {
        .rs-section-title-wrapper {
            position: relative;
            z-index: 2;
        }
        .rs-testimonial-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            inset-inline-start: 0;
            background-repeat: no-repeat;
            background-size: cover;
            z-index: -1;
        }
        .rs-testimonial-item {
            background: var(--rs-white);
            padding: 30px 30px;
            border-radius: 2px;
            @media #{$laptop}{
                padding: 20px 20px;
            }
            &.has-clip-path{
                clip-path: polygon(0% 0%, 90% 0, 100% 12%, 100% 100%, 0% 100%);
            }
        }
        .rs-testimonial-top {
            display: flex;
            justify-content: space-between;
            align-items: end;
            margin-bottom: 25px;
            @media #{$lg}{
                flex-wrap: wrap;
                gap: 20px;
            }
        }
        .rs-testimonial-avater-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .rs-testimonial-avater-thumb {
            img {
                width: 60px;
                height: 60px;
                border-radius: 50%;
            }
        }
        .rs-testimonial-avater-title {
            font-size: 18px;
        }
        .rs-testimonial-avater-designation {
            font-size: 16px;
        }
        .rs-testimonial-icon {
            img {
                width: 100px;
            }
        }
        .rs-rating {
            i {
                color: var(--rs-theme-orange);
                font-size: 16px;
            }
        }
        .rs-testimonial-rating-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(221, 221, 221, 0.6);
            margin-top: 30px;
            padding-top: 20px;
        }
        .rs-testimonial-quote {
            svg {
                path {
                    fill: #DDDDDD;
                }
            }
        }
        .rs-testimonial-btn {
            display: flex;
            justify-content: end;
            @media #{$md}{
                justify-content: start;
            }
        }
        &.has-theme-blue{
            .rs-section-subtitle{
                color: var(--rs-white);
            }
            .rs-section-title{
                color: var(--rs-white);
            }
            .rs-testimonial-item {
                background: #065AAC;
                clip-path: unset;
            }
            .rs-testimonial-description{
                p{
                    color: rgba(252, 248, 248, 0.69);
                }
            }
            .rs-testimonial-avater-title {
                color: var(--rs-white);
            }
            .rs-testimonial-avater-designation {
                color: rgba(255, 255, 255, 0.83);
            }
            .rs-testimonial-quote {
                svg {
                    path {
                        fill: rgba(255, 255, 255, 0.27);
                    }
                }
            }
            .rs-testimonial-rating-wrapper {
                border-color: rgba(255, 255, 255, 0.27);
            }
            .rs-rating {
                i {
                    color: #C0B021FC;
                }
            }
        }
    }
    &-two {
        margin-inline-start: 90px;
        position: relative;
        @media #{$laptop}{
            margin-inline-start: 30px;
        }
        @media #{$md}{
            margin-inline-start: 0px;
        }
        .rs-testimonial-item {
            display: flex;
            gap: 20px 30px;
            @media #{$mobile}{
                flex-wrap: wrap;
            }
        }
        .rs-section-subtitle {
            color: var(--rs-white);
            svg {
                path {
                    fill: var(--rs-white);
                }
            }
        }
        .rs-testimonial-avater-thumb {
            text-align: center;
        }
        .rs-testimonial-title{
            color: var(--rs-white);
            margin-bottom: 15px;
        }
        .rs-testimonial-description {
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 25px;
            padding-bottom: 25px;
            p {
                font-size: 20px;
                font-weight: 500;
                color: #E6E6E6;
                @media #{$laptop}{
                    font-size: 18px;
                }
            }
        }
        .rs-testimonial-thumb {
            margin-bottom: 20px;

            img {
                min-width: 80px;
                width: 80px;
                border-radius: 100%;
            }
        }
        .rs-testimonial-avater-title{
            color: var(--rs-white);
            margin-bottom: 3px;
        }
        .rs-testimonial-avater-designation{
            color: #E6E6E6;
        }
        .rs-testimonial-navigation{
            position: absolute;
            bottom: 0;
            inset-inline-end: 0;
            bottom: 0;
            display: flex;
            gap: 10px;
        }
        &.has-theme-deep-blue{
            margin-inline-start: 75px;
            @media #{$laptop}{
                margin-inline-start: 0px;
            }
            .rs-testimonial-description {
                border-color: rgba(31, 31, 31, 0.07);
                p {
                    color: var(--rs-text-primary);
                    @media #{$laptop}{
                        font-size: 18px;
                    }
                }
            }
            .rs-testimonial-title{
                color: var(--rs-title-primary);
            }
            .rs-testimonial-avater-title{
                color: var(--rs-title-primary);
            }
            .rs-testimonial-avater-designation{
                color: var(--rs-text-primary);
            }
            .rs-testimonial-navigation{
                position: unset;
                display: flex;
                gap: 15px;
                margin-top: 50px;
                @media #{$xs}{
                    margin-top: 40px;
                }
                button{
                    width: 40px;
                    height: 40px;
                    background: #EBEBFF;
                    color: var(--rs-theme-medium-yellow);
                    font-size: 16px;
                    &:hover{
                        background: var(--rs-theme-medium-yellow);
                        color: var(--rs-white);
                    }
                }
            }
            .rs-testimonial-icon{
                svg{
                    path{
                        fill: rgba(4, 4, 35, 0.12);
                    }
                }
            }
            .rs-section-subtitle{
                color: var(--rs-theme-medium-yellow);
            }
        }
        &.has-theme-medium-yellow{
            margin-inline-start: 0px;
            @media #{$laptop}{
                margin-inline-start: 0px;
            }
            .rs-testimonial-description {
                border-color: rgba(31, 31, 31, 0.07);
                p {
                    color: var(--rs-text-primary);
                    font-weight: 400;
                    @media #{$laptop}{
                        font-size: 18px;
                    }
                }
            }
            .rs-testimonial-title{
                color: var(--rs-title-primary);
            }
            .rs-testimonial-avater-title{
                color: var(--rs-title-primary);
            }
            .rs-testimonial-avater-designation{
                color: var(--rs-text-primary);
            }
            .rs-testimonial-navigation{
                position: unset;
                display: flex;
                gap: 15px;
                margin-top: 40px;
                @media #{$xs}{
                    margin-top: 40px;
                }
                button{
                    width: 40px;
                    height: 40px;
                    background: var(--rs-theme-medium-yellow);
                    color: var(--rs-black);
                    font-size: 16px;
                    &:hover{
                        background: var(--rs-black);
                        color: var(--rs-white);
                    }
                }
            }
            .rs-testimonial-icon{
                svg{
                    path{
                        fill: rgba(4, 4, 35, 0.12);
                    }
                }
            }
            .rs-section-subtitle{
                color: var(--rs-theme-medium-yellow);
            }
        }
    }
    &-three{
        position: relative;
        overflow-x: clip;
        z-index: 1;
        &.has-bg-black{
            background: var(--rs-black);
        }
        &.has-bg-blue{
            background: #16254A;
        }
        .rs-testimonial-wrapper{
            position: relative;
            z-index: 2;
            padding-top: 120px;
            padding-bottom: 120px;
            padding-inline-start: 90px;
            @media #{$laptop}{
                padding-top: 110px;
                padding-bottom: 110px;
                padding-inline-start: 100px;
            }
            @media #{$only_lg}{
                padding-top: 100px;
                padding-bottom: 100px;
                padding-inline-start: 0px;
            }
            @media #{$md}{
                padding-top: 70px;
                padding-bottom: 70px;
                padding-inline-start: 0px;
            }
        }
        .rs-section-subtitle{
            background: rgba(255, 255, 255, 0.07);
            &.has-transparent{
                background: transparent;
            }
        }
        .rs-section-title{
            color: var(--rs-white);
        }
        .rs-testimonial-item {
            display: flex;
            gap: 30px;
            @media #{$mobile}{
                flex-wrap: wrap;
                gap: 20px;
            }
        }
        .rs-testimonial-avater-thumb {
            text-align: center;
        }
        .rs-testimonial-title{
            color: var(--rs-white);
            margin-bottom: 15px;
        }
        .rs-testimonial-description {
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 25px;
            padding-bottom: 25px;
            p {
                font-size: 20px;
                font-weight: 500;
                color: #E6E6E6;
                @media #{$laptop}{
                    font-size: 18px;
                }
            }
        }
        .rs-testimonial-thumb {
            margin-bottom: 20px;

            img {
                min-width: 80px;
                width: 80px;
                border-radius: 100%;
            }
        }
        .rs-testimonial-avater-title{
            color: var(--rs-white);
            margin-bottom: 3px;
        }
        .rs-testimonial-avater-designation{
            color: #E6E6E6;
        }

        .rs-testimonial-bg-thumb{
            position: absolute;
            width: 50%;
            height: 100%;
            background-position: center center;
            background-repeat: no-repeat;
            background-size: cover;
            inset-inline-start: 0;
            z-index: -1;
            @media #{$only_lg}{
                width: 40%;
            }
            @media #{$md}{
                width: 100%;
                position: relative;
                height: 300px;
            }
            @media #{$sm}{
                height: 250px;
            }
        }
        .rs-testimonial-bg-thumb-two{
            position: absolute;
            width: 50%;
            height: 100%;
            z-index: -1;
            inset-inline-end: 0;
            inset-inline-start: auto;
            background-position: top right;
            @media #{$only_lg}{
                width: 60%;
            }
            @media #{$md}{
                display: none;
            }
        }
        .rs-testimonial-navigation{
            position: absolute;
            bottom: 0;
            inset-inline-end: 0;
            bottom: 0;
            display: flex;
            gap: 10px;
        }
    }
    &-four {
        .rs-testimonial-slider-wrapper{
            .swiper-slide{
                &.swiper-slide-active{
                    background-color: #F9FAFA;
                    box-shadow: 0px 10px 20px -20px rgba(0, 0, 0, 0.24);
                }
            }
        }
        .rs-testimonial-item{
            position: relative;
            padding: 35px 40px 35px 40px;
            @media #{$lg}{
                padding: 30px 30px 30px 30px;;
            }
        }
        .rs-testimonial-avater-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            @media #{$sm}{
                flex-wrap: wrap;
            }
        }
        .rs-testimonial-avater-thumb {
            img {
                width: 75px;
                height: 75px;
                border-radius: 50%;
            }
        }
        .rs-testimonial-quote{
            position: absolute;
            bottom: 0;
            inset-inline-end: 0;
        }
        .rs-testimonial-title {
            margin-bottom: 5px;
            color: var(--rs-text-tertiary);
        }
        .rs-testimonial-description{
            margin-bottom: 25px;
           p{
            font-size: 18px;
           }
        }
        .rs-testimonial-icon {
            img {
                width: 100px;
            }
        }
        .rs-rating {
            i {
                color: var(--rs-theme-light-blue);
                font-size: 16px;
            }
        }
        .rs-testimonial-rating-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(221, 221, 221, 0.6);
            margin-top: 30px;
            padding-top: 20px;
        }
        .rs-testimonial-btn {
            display: flex;
            justify-content: end;
            @media #{$md}{
                justify-content: start;
            }
        }
        .rs-testimonial-desig-info{
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .rs-testimonial-separator{
            font-size: 14px;
            color: #D6D6D6;
        }
        .rs-testimonial-avater-designation{
            font-size: 16px;
            font-weight: 500;
            color: rgba(97, 97, 97, 0.54);
        }
        .rs-pagination{
            margin-top: 40px;
        }
        &.has-theme-cyan{
            .rs-rating {
                i {
                    color: var(--rs-theme-cyan);
                }
            }
        }
    }
    &-five{
        position: relative;
        z-index: 1;
        .rs-testimonial-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            inset-inline-start: 0;
            background-position: center center;
            background-repeat: no-repeat;
            background-size: cover;
            z-index: -1;
        }
        .rs-testimonial-item {
            padding: 35px 33px 35px 33px;
            border-radius: 2px 2px 2px 2px;
            background: var(--rs-white);
            box-shadow: 0px 5px 10px 1px rgba(74.06, 29.67, 2.058, 0);
            position: relative;
            @media #{$mobile}{
                padding: 25px 25px 25px 25px;
            }
        }
        .rs-testimonial-avater-thumb {
            img {
                width: 60px;
                height: 60px;
                border-radius: 50%;
            }
        }
        .rs-testimonial-avater-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .rs-testimonial-avater-title {
            margin-bottom: 2px;
            font-size: 18px;
        }
        .rs-testimonial-avater-designation {
            font-size: 16px;
        }
        .rs-testimonial-description {
            margin: 30px 0px 35px 0px;
        }
        .rs-testimonial-quote {
            position: absolute;
            inset-inline-end: 50px;
            bottom: 0;
        }
        .rs-testimonial-navigation {
            display: flex;
            gap: 15px;
        }
        &.has-theme-green{
            padding-top: 110px;
            @media #{$md} {
                padding-top: 80px;
            }
            @media #{$sm,$xs} {
                padding-top: 70px;
            }
            .rs-testimonial-pagination{
                margin-top: 50px;
                .swiper-pagination{
                    position: relative;
                }
            }
            .rs-testimonial-text-btn{
                a{
                    position: relative;
                    font-weight: 500;
                    &::before{
                        content: "";
                        position: absolute;
                        background: var(--rs-text-primary);
                        width: 100%;
                        height: 1px;
                        bottom: 1px;
                        inset-inline-start: 0;
                        transition: all 0.5s ease;
                        @include rtl {
                            width: 160px;
                        }
                    }
                    &:hover{
                        color: var(--rs-theme-light-green);
                        &::before{
                            background: var(--rs-theme-light-green);
                            width: 0;
                        }
                    }
                }
            }
            .rs-testimonial-avater-title{
                color: var(--rs-theme-green);
            }
            .rs-testimonial-quote{
                inset-inline-end: 0;
            }
        }
        &.has-theme-orange{
            .rs-testimonial-slider-wrapper {
                margin-inline-start: 40px;
                @media #{$lg}{
                    margin-inline-start: 0px;
                }
            }
            .rs-testimonial-bg-thumb{
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                inset-inline-start: 0;
                background-position: center center;
                background-repeat: no-repeat;
                background-size: cover;
                z-index: -1;
            }
            .rs-testimonial-item{
                max-width: 590px;
                @media #{$sm}{
                    max-width: 100%;
                }
            }
            .descrip {
                max-width: 400px;
                margin-top: 10px;
                 margin-bottom: 30px;
                 @media #{$sm}{
                    max-width: 100%;
                }
            }
            .rs-testimonial-navigation{
                display: flex;
                align-items: center;
                gap: 15px;
            }
            .rs-section-title{
                    br{
                        @media #{$md}{
                            display: none;
                        }
                    }
            }
        }
    }
    &-six{
        position: relative;
        z-index: 1;
        padding-bottom: 200px;
        @media #{$laptop}{
            padding-bottom: 150px;
        }
        @media #{$lg}{
            padding-bottom: 100px;
        }
        @media #{$md}{
            padding-bottom: 0px;
        }
        .rs-testimonial-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            inset-inline-start: 0;
            background-position: center center;
            background-repeat: no-repeat;
            background-size: cover;
            z-index: -1;
        }
    }
}

// bg thumb style
.rs-testimonial-bg-thumb-wrapper{
    position: relative;
    z-index: 1;
    .rs-testimonial-bg-thumb{
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        inset-inline-start: 0;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: -1;
    }
}