*{
    box-sizing: border-box;
}

#testimonial-slider-container{
    display: flex;
    gap: 20px;
    overflow-X: hidden;
    touch-action: none;
    width: 100%;
}
#testimonial-slider-container::-webkit-scrollbar{
    display: none;
}
#testimonial-slider-container .testimonial-wrapper{
    flex-shrink: 0;
    height: 420px;
    width: auto ;
    display: flex;
    gap: 20px;
    flex-direction: row;
}
#testimonial-slider-container .testimonial{
    user-select: none; 
    border-radius: 20px;
    background-color: white;
    height: 100%;
    width: 340px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 1.5rem 40px 0.8rem 40px;
}
#testimonial-slider-container .testimonial > div{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
#testimonial-slider-container .testimonial-child1{
    height: 50%;
    display: flex;
    flex-wrap: wrap;
}
#testimonial-slider-container .testimonial-child1 > div{
    width: 100%;
    height: 50%;
}
#testimonial-slider-container .testimonial-child1 div:first-of-type{
    display: flex;
    justify-content: center;
    position: relative;
}
#testimonial-slider-container .testimonial-child1 div:first-of-type div{
    height: 100%;
}
#testimonial-slider-container .testimonial-child1 div:first-of-type div:first-of-type{
    position: absolute;
    top: 0;
    left: 0;
}
#testimonial-slider-container .testimonial-child1 div:first-of-type div:first-of-type i{
    font-size: 32px;
    color: #4A7CD2;
}
#testimonial-slider-container .testimonial-child1 div:first-of-type .thumbnail{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}
#testimonial-slider-container .testimonial-child1 div:nth-of-type(2){
    text-align: center;
    height: 50%;
}
#testimonial-slider-container .testimonial-child1 .thumbnail img{
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}
#testimonial-slider-container .testimonial-child1 div:nth-of-type(2) .testimonial-title{
    margin: 20px 0 0 0 ;
    font-size: 15px;
    font-weight: 700;
}
#testimonial-slider-container .testimonial-child1 div:nth-of-type(2) .testimonial-category{
    font-size: 15px;
    color: #7A7A7A;
}
#testimonial-slider-container .testimonial-child2{
    height: 50%;
}
.testimonial-content{
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    color: #7A7A7A;
}
.testimonial-content p{
    margin: 0px;
    color: #7A7A7A;
    text-align: center;
    height: 90%;
    overflow: hidden;
    position: relative;
}
.testimonial-readmore{
    color: rgb(57, 57, 255);
    font-weight: 400;
    cursor: pointer;
    display: none;
    height: 10%;
    font-size: 16px;
    text-align: center;
}
.testimonial-content.has-overflow .testimonial-readmore{
    display: block;
}
#testimonial-nav{
    text-align: center;
}
#testimonial-nav span{
    display: inline-flex;
    width: 10px;
    height: 10px;
    background-color: rgba(0,0,0,.15);
    border-radius: 50%;
    cursor: pointer;
}
#testimonial-nav span.active-dot{
    background-color: rgb(65, 65, 253);
}
.testimonial-readmore-popup{
    background-color: rgba(0,0,0,.6);
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.testimonial-readmore-popup > div{
    max-height: 60%;
    width: 30%;
    background-color: white;
    border-radius: 10px;
    padding: 35px 35px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.readmore-popup-remove-btn{
    height: 30px;
    width: 25px;
    position: absolute;
    top: 0;
    right: 10px;
    cursor: pointer;
}
.readmore-popup-remove-btn::before, .readmore-popup-remove-btn::after{
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    height: 2px;
    width: 100%;
    background-color: black;
    transition: transform 0.2s linear;
}
.readmore-popup-remove-btn::before{
    transform: rotate(40deg);
}
.readmore-popup-remove-btn::after{
    transform: rotate(-40deg);
}
.testimonial-readmore-popup > div div:nth-of-type(2){
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
.testimonial-readmore-popup > div div:nth-of-type(2)::-webkit-scrollbar{
    width: 3px;
}
.testimonial-readmore-popup > div div:nth-of-type(2)::-webkit-scrollbar-thumb{
    background-color: gray;
}

#testimonial-grid-container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}
#testimonial-grid-container .testimonial-title{
    margin-bottom: 0;
    font-size: 16px;
}
#testimonial-grid-container .testimonial-category{
    font-size: 14px;
}
#testimonial-grid-container .testimonial{
    width: 32%;
    height: 270px;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 35px 40px;
    background-color: #f8f9fa;
}
#testimonial-grid-container .testimonial .testimonial-child1{
    height: 75%;
    overflow: hidden;
}
#testimonial-grid-container .testimonial-content{
    display: flex;
    align-items: end;
    padding-bottom: 18px;
    position: relative;
}
#testimonial-grid-container .testimonial-content p{
    text-align: left;
}
#testimonial-grid-container .testimonial-readmore{
    position: absolute;
    bottom: 5px;
    right: 0;
}
#testimonial-grid-container .testimonial .testimonial-child2{
    height: 25%;
    display: flex;
}
#testimonial-grid-container .testimonial .testimonial-child2 .thumbnail{
    height: 45px;
    width: 45px;
}
#testimonial-grid-container .testimonial .testimonial-child2 .thumbnail img{
    display: block;
    object-fit: cover;   
    height: 100%;
    width: 100%;
    border-radius: 50%;
}
#testimonial-grid-container .testimonial .testimonial-child2 > div:nth-of-type(2){
    width: 80%;
    padding-left: 18px;
}

@media (width <= 1200px){
    #testimonial-slider-container .testimonial{
        width: 500px;
    }
}
@media (width <= 1024px){
    #testimonial-slider-container .testimonial{
        width: 400px;
    }
    .testimonial-readmore-popup > div{
        width: 70%;
    }
}
@media (width <= 1000px){
    #testimonial-grid-container .testimonial{
        width: 49%;
    }
}
@media (width <= 767px){
    #testimonial-slider-container .testimonial{
        width: 500px;
    }
    #testimonial-grid-container .testimonial{
        width: 100%;
    }
}
@media (width <= 570px){
    #testimonial-slider-container .testimonial{
        width: 331px;
    }
    .testimonial-readmore-popup > div{
        width: 90%;
    }
}
@media (width <= 370px){
    #testimonial-slider-container .testimonial{
        width: 290px;
    }
}