/*--------------------------------------------------------------
  24. Testimonial
----------------------------------------------------------------*/
.cs-testi-wrap{
    position: relative;
    .cs-testi-wrap-in{
        text-align: center;
        .cs-testi-content{
            margin: auto;
        }
        .cs-testi-slide-in{
            max-width: 820px;
            margin: auto;
            z-index: 4;
            .cs-testi-quote{
                margin-bottom: 30px;
            }
        }
        .cs-testi-user-container{
            display: flex;
            justify-content: center;
            margin-top: 80px;
            .cs-user-single{
                cursor: pointer;
                display: flex;
                align-items: center;
                transition: all 0.5s ease;
                .cs-user-img{
                    margin-right: 15px;
                    transition: all 0.5s ease;
                }
                .cs-user-info{
                    margin-right: 15px;
                    display: none;
                    transition: all 0.5s ease;
                    p{
                        margin: 0px;
                    }
                }
                &:last-child{
                    margin-right: 0px;
                }
            }
        }
    }
    .cs-testi-arrow{
        position: absolute;
        left: 0;
        right: 0;
        bottom: 50%;
        z-index: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1400px;
        margin: auto;
        .cs-testi-right,
        .cs-testi-left{
            width: 50px;
            height: 50px;
            background: $gray_sc;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.4s ease;
            &:hover{
                background: $accent;
                transition: all 0.4s ease;
                i{
                    color: $white;
                    transition: all 0.4s ease;
                }
            }
        }
        .cs-testi-right{
            i{
                transform: rotate(-180deg);
            }
        }
        i{
            font-size: 20px;
            line-height: 0px;
        }
    }
    &.cs-testi-with-bg{
        background: $border;
        position: inherit;
        .container-fluid{
            padding-right: calc((100% - 1320px) / 2);
        }
        .cs-testi-slide-in{
            text-align: left;
        }
        .cs-air-testi-arrow-control{
            position: relative;
        }
        .cs-testi-content{
            .cs-testi-user-container{
                justify-content: flex-start;
            }
        }
        .cs-testi-wrap-in .cs-testi-slide-in{
            margin: 0px;
        }
        .cs-testi-arrow{
            justify-content: flex-start;
            gap: 30px;
            position: absolute;
            top: 0;
            align-items: flex-start;
            left: 100px;
            z-index: 1;
        }
        .cs-user-img{
            img{
                clip-path: polygon(20% 0%, 100% 0, 100% 20%, 100% 80%, 80% 100%, 0 100%, 0% 80%, 0% 20%);
                transition: all 0.4s ease;
                &:hover{
                    border-radius: 100%;
                    transition: all 0.4s ease;
                }
            }
        }
    }
    @media screen and (max-width: 991px) {
        &.cs-testi-with-bg{
            .cs-testi-wrap-in{
                max-width: 720px;
                margin: auto;
                padding: 0px 10px;
            }
            .cs-testi-arrow{
                display: none;
            }
            .cs-air-testi-arrow-control{
                margin-top: 50px;
            }
            .cs-testi-slide-in{
                text-align: center;
            }
        }
    }
}

.cs-user-single.active {
    .cs-user-info{
        display: initial !important;
        transition: all 0.5s ease !important;
    }
    .cs-user-img{
        img{
            border-radius: 100%;
            transition: all 0.5s ease !important;
        }
    }
  }


  @media screen and (max-width: 576px) {
    .cs-testi-wrap{
        .cs-testi-arrow{
            display: none;
        }
        .cs-testi-user-container{
            gap: 20px;
            margin-top: 45px;
            flex-direction: column;
            align-items: center;
            .cs-user-info{
                display: initial !important;
            }
        }
    }
  }