.tf-testimonial-carousel .item img {
    max-width: 100%;
    width: auto;
}

.tf-testimonial-carousel .item .icon-quote {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.tf-testimonial-carousel.style-1 .item .wrap-author {
    display: flex;
    align-items: center;
    width: 100%;
}

.tf-testimonial-carousel.style-1 .item .avatar {
    margin-right: 24px;
    max-width: 80px;
    box-shadow: 0 3px 36px rgb(0 0 0 / 6%);
    border-radius: 50%;
}

.tf-testimonial-carousel .item .avatar img {
    border-radius: 50%;
}

.tf-testimonial-carousel .item .description p {
    margin: 0;
}

.tf-testimonial-carousel.style-1 .item .icon-quote {
    margin-left: 50px;
    margin-bottom: -32px;
    box-shadow: 0 3px 36px rgb(0 0 0 / 6%);
}

/*style 2*/
.tf-testimonial-carousel.style-2 .item .avatar {
    max-width: 80px;
}

.tf-testimonial-carousel.style-2 {
    text-align: center;
}

.tf-testimonial-carousel.style-2 .wrap-avatar {
    display: inline-block;
    position: relative;
}

.tf-testimonial-carousel.style-2 .icon-quote {    
    position: absolute;
    bottom: 2px;
    right: -5px;
}

/*style 3*/
.tf-testimonial-carousel.style-3 .owl-carousel {    
    padding: 0 85px;
}
.tf-testimonial-carousel.style-3 .item .avatar {
    margin-right: 15px;
    max-width: 63px;    
    border-radius: 50%;
}
.tf-testimonial-carousel.style-3 .item .wrap-avatar {
    margin-left: 52px;
    display: flex;
}
.tf-testimonial-carousel.style-3 .item .description {    
    background: #f4f4f4;
    padding: 28px 39px;
    border-radius: 10px;
    position: relative;
}
.tf-testimonial-carousel.style-3 .item .description:before {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #f4f4f4;
    position: absolute;
    left: 70px;
    top: 100%;    
}
.tf-testimonial-carousel.style-3 .item .description,
.tf-testimonial-carousel.style-3 .item .description:before {
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}
.tf-testimonial-carousel.style-3 .owl-item.active.indexActiveItem .item .item-testimonial .description,
.tf-testimonial-carousel.style-3 .item .item-testimonial:hover .description {
    background: #ffffff;
    box-shadow: 0 5px 36px rgb(0 0 0 / 6%);
}
.tf-testimonial-carousel.style-3 .owl-item.active.indexActiveItem .item .item-testimonial .description:before,
.tf-testimonial-carousel.style-3 .item .item-testimonial:hover .description:before {
    border-top: 20px solid #ffffff;
}

/*carousel optiont*/
.tf-testimonial-carousel .owl-nav .owl-prev,
.tf-testimonial-carousel .owl-nav .owl-next {
    padding: 0;
    width: 50px;
    height: 50px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    line-height: 50px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-testimonial-carousel .owl-nav .owl-next {
    left: unset;
    right: 0;
}

.tf-testimonial-carousel .owl-nav .owl-prev:before, 
.tf-testimonial-carousel .owl-nav .owl-next:before,
.tf-testimonial-carousel .owl-dots .owl-dot:before {
    display: none;
}

.tf-testimonial-carousel.no-arrow .owl-nav .owl-prev,
.tf-testimonial-carousel.no-arrow .owl-nav .owl-next {
    display: none;
}

.tf-testimonial-carousel.has-arrow .owl-nav .owl-prev,
.tf-testimonial-carousel.has-arrow .owl-nav .owl-next {
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tf-testimonial-carousel .owl-dots {
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.tf-testimonial-carousel .owl-dots .owl-dot {
    padding: 0;
    width: 10px;
    height: 10px;
    background: #0080f0;
    display: inline-block;
    margin: 0 5px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-testimonial-carousel.has-carousel.no-bullets .owl-dots,
.tf-testimonial-carousel.no-bullets .owl-dots {
    display: none;
}

.tf-testimonial-carousel.has-carousel.has-bullets .owl-dots {
    display: block;
}

@media (max-width: 1024px) {
    .tf-testimonial-carousel.style-2 .item .bg-quote,
    .tf-testimonial-carousel.style-2 .item .bg-quote:before {
        display: none;
    }

    .tf-testimonial-carousel.style-2 .item .wrap-content {
        padding: 37px 50px 48px 200px;
    }
}

@media (max-width: 767px) {
    .tf-testimonial-carousel .item .wrap-author {
        display: block;
    }

    .tf-testimonial-carousel .item .avatar {
        width: 100%;
        max-width: 100%;
        display: inline-block;
    }

    .tf-testimonial-carousel .item .name {
        margin-left: 0px;
    }

    .tf-testimonial-carousel.style-2 .item .wrap-content {
        padding: 60px 30px 60px 30px;
    }

    .tf-testimonial-carousel.style-2 .item .image-quote {
        position: relative;
        top: auto;
        left: auto;
        transform: translateY(0);
        margin-bottom: 20px;
    }

    .owl-carousel .owl-dots {
        width: 100%;
        text-align: center;
    }
    .tf-testimonial-carousel.style-3 .owl-carousel {    
        padding: 0 0px;
    }
}


/* Testimonial Type Group 
=========================================================*/
.tf-testimonial-carousel-type-group {
    position: relative;
}
.tf-testimonial-carousel-type-group .icon-quote {
    position: absolute;
    left: 53px;
    top: 43px;
}
.tf-testimonial-carousel-type-group .wrap-heading {
    position: relative;
}
/* Style 1 */
.tf-testimonial-carousel-type-group.style-1 .wrap-testimonial {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.tf-testimonial-carousel-type-group.style-1 .inner-testimonial {
    width: 55%;
    padding: 130px 0px 130px 100px;
    position: relative;
}
.tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs {
    width: 45%;
    margin-top: 100px;
}
.tf-testimonial-carousel-type-group.style-1 .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 970px;
    height: 100%;
}
.tf-testimonial-carousel-type-group.style-1 .item-testimonial {
    max-width: 485px;
}
.tf-testimonial-carousel-type-group.style-1 .wrap-heading {
    margin-bottom: 59px;
}
.tf-testimonial-carousel-type-group.style-1 .wrap-avatar {
    display: flex;
    align-items: center;
    margin-top: 29px;
}
.tf-testimonial-carousel-type-group .avatar img {
    width: unset;
}
.tf-testimonial-carousel-type-group.style-1 .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 15px;
}
.tf-testimonial-carousel-type-group.style-1 .avatar,
.tf-testimonial-carousel-type-group.style-1 .avatar img {
    border-radius: 50%;
}
.tf-testimonial-carousel-type-group .before-title {
    display: inline-block;
    padding: 9px 15px 8px 15px;
    border-radius: 5px;
}
.tf-testimonial-carousel-type-group .heading {
    margin-top: 30px;
    max-width: 430px;
}
.tf-testimonial-carousel-type-group .heading p {
    margin: 0;
}
.tf-testimonial-carousel-type-group .sub-heading {
    margin-top: 20px;
}
.tf-testimonial-carousel-type-group .testimonial .owl-nav {
    display: flex;
    position: absolute;
    bottom: -160px;
    right: 0;
}
.tf-testimonial-carousel-type-group .owl-nav .owl-prev:before,
.tf-testimonial-carousel-type-group .owl-nav .owl-next:before {
    display: none;
}
/* Style 2 */
.tf-testimonial-carousel-type-group.style-2 {
    padding-top: 130px;
    padding-bottom: 130px;
}
.tf-testimonial-carousel-type-group.style-2 .wrap-testimonial {
    display: flex;
    position: relative;
}
.tf-testimonial-carousel-type-group.style-2 .wrap-heading {
    width: 34.2%;
    padding: 34px 40px 34px 0px;
}
.tf-testimonial-carousel-type-group.style-2 .owl-carousel {
    width: 65.8%;
    position: static;
}
.tf-testimonial-carousel-type-group.style-2 .owl-nav {
    position: absolute;
    left: 0;
    bottom: 33px;
}
.tf-testimonial-carousel-type-group.style-2 .icon-quote {
    top: -63px;
    left: -86px;
}
.tf-testimonial-carousel-type-group.style-2 .wrap-avatar {
    display: flex;
}
.tf-testimonial-carousel-type-group.style-2 .avatar {
    width: 100px;
    height: 100px;
    display: flex;
}
.tf-testimonial-carousel-type-group.style-2 .wrap-avatar .info {
    padding-left: 25px;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 100px);
}
.tf-testimonial-carousel-type-group.style-2 .item-testimonial {
    background: #ffffff;
}
.tf-testimonial-carousel-type-group.style-2 .content {
    padding: 34px 30px 33px 45px;
}
.tf-testimonial-carousel-type-group.style-2 .rating {
    margin-top: 13px;
}
.tf-testimonial-carousel-type-group.style-2 .rating .text {
    font-family: "Teko";
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.7px;
    margin-right: 4px;
}
.tf-testimonial-carousel-type-group.style-2 .testimonial-star-rating {
    overflow: hidden;
    position: relative;
    height: 15px;
    line-height: 1;
    font-size: 16px;
    font-family: star;
    margin-bottom: 10px;
    color: #FAC100;
    letter-spacing: 8.2px;
}
.tf-testimonial-carousel-type-group.style-2 .testimonial-star-rating::before {
    content: "\73\73\73\73\73";
}
.tf-testimonial-carousel-type-group.style-2 .testimonial-star-rating span {
    overflow: hidden;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
}
.tf-testimonial-carousel-type-group.style-2 .testimonial-star-rating span::before {
    content: "\53\53\53\53\53";
}


@media (max-width: 1024px) {
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial {
        padding: 130px 0px 130px 50px;
    }
    .tf-testimonial-carousel-type-group.style-1 .bg-overlay {
        width: 100%;
    }
}
@media (max-width: 767px) {
    /* Style 1 */
    .tf-testimonial-carousel-type-group.style-1 .wrap-testimonial {
        flex-direction: column;
    }
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial,
    .tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs {
        width: 100%;
    }
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial {
        padding: 90px 15px 90px 15px;
    }
    .tf-testimonial-carousel-type-group.style-1 .item-testimonial {
        max-width: 100%;
    }
    .tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs {
        margin: 0;
    }
    .tf-testimonial-carousel-type-group .testimonial .owl-nav {
        bottom: -75px;
    }
    .tf-testimonial-carousel-type-group .name {
        white-space: nowrap;
    }
    /* Style 2 */
    .tf-testimonial-carousel-type-group.style-2 .wrap-testimonial {
        flex-direction: column;
    }
    .tf-testimonial-carousel-type-group.style-2 .wrap-heading,
    .tf-testimonial-carousel-type-group.style-2 .owl-carousel {
        width: 100%;
    }
    .tf-testimonial-carousel-type-group.style-2 .owl-carousel {
        position: relative;
    }
    .tf-testimonial-carousel-type-group.style-2 .owl-nav {
        bottom: -75px;
    }
    .tf-testimonial-carousel-type-group.style-2 .wrap-heading {
        padding: 0px 0px 50px 0px;
    }
    .tf-testimonial-carousel-type-group.style-2 {
        padding-top: 90px;
        padding-bottom: 170px;
    }
}