.tf-testimonial-carousel .item {
    position: relative;
}

.tf-testimonial-carousel .item img {
    max-width: 100%;
    width: auto;
}

.tf-testimonial-carousel .item .icon-quote {
    position: absolute;
    bottom: 55px;
    right: 50px;
}

.tf-testimonial-carousel .item .wrap-author {
    display: flex;
    align-items: center;
    width: 100%;
}

.tf-testimonial-carousel .item .avatar {
    margin-right: 29px;
    max-width: 80px;
    border-radius: 50%;
}

.tf-testimonial-carousel .item .avatar img {
    border-radius: 50%;
}

.tf-testimonial-carousel .item .description p {
    margin: 0;
}
.tf-testimonial-carousel .owl-dots .owl-dot {
    position: relative;
}
.tf-testimonial-carousel .owl-dots .owl-dot:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    transform: translate(-50%,-50%);
    border: 2px solid #fff;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
}
.tf-testimonial-carousel .owl-dots .owl-dot.active:after {
    opacity: 1;
    visibility: visible;
}

/*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) {

}

@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;
    }
    .owl-carousel .owl-dots {
        width: 100%;
        text-align: center;
    }
}


/* Testimonial Type Group 
=========================================================*/
.tf-testimonial-carousel-type-group {
    position: relative;
}
.tf-testimonial-carousel-type-group .icon-quote {
    position: absolute;
    right: 40px;
    top: 46px;
}
.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 {    
    position: relative;
    min-width: 661px;
    display: flex;
}
.tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs {
    min-width: 370px;
    width: 370px;
}
.tf-testimonial-carousel-type-group.style-1 .inner-testimonial-content {
    position: relative;
    min-width: 420px;
    width: 420px;
    z-index: 99;
    margin-right: -129px;
    margin-top: 99px;
}
.tf-testimonial-carousel-type-group.style-1 .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.tf-testimonial-carousel-type-group.style-1 .item-testimonial {
    padding: 50px;
}
.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;
}
.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 .heading {
    margin-top: 15px;
}
.tf-testimonial-carousel-type-group .heading p {
    margin: 0;
}
.tf-testimonial-carousel-type-group .sub-heading {
    margin-top: 30px;
}
.tf-testimonial-carousel-type-group .name {
    margin-bottom: 2px;
}
.tf-testimonial-carousel-type-group .description {
    margin-top: 20px;
}
.tf-testimonial-carousel-type-group .testimonial .owl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0px;
    right: 190%;
    width: 130px;
}
.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";
}
.tf-testimonial-carousel-type-group .owl-dots {
    position: absolute;
    top: -90px;
    left: 0;
}
.tf-testimonial-carousel-type-group .owl-dots .owl-dot {
    position: relative;
    padding: 0;
    margin: 0 10px;
    width: 6px;
    height: 6px;
    line-height: 7px;
    background-color: #E1E1E1;
    border-radius: 50% 50% 50% 50%;
    display: inline-block;
    -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-type-group .owl-dots .owl-dot:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    transform: translate(-50%,-50%);
    border: 2px solid #fff;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
}
.tf-testimonial-carousel-type-group .owl-dots .owl-dot.active:after {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 1199px) {
    .tf-testimonial-carousel-type-group .testimonial .owl-nav {
        right: 40px;
        bottom: 30px;
    }
    .tf-testimonial-carousel-type-group.style-1 .item-testimonial {
        padding: 50px 50px 110px 50px;
    }
}

@media (max-width: 1024px) {
    .tf-testimonial-carousel-type-group.style-1 .wrap-testimonial {
        display: block;
    }
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial {
        min-width: unset;
        width: 100%;
    }
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial-content {
        min-width: unset;
        width: calc(100% - 40% + 129px);
    }
    .tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs {
        min-width: unset;
        width: 40%;
    }
}
@media (max-width: 767px) {
    /* Style 1 */
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial {
        flex-direction: column-reverse;
    }
    .tf-testimonial-carousel-type-group.style-1 .owl-carousel.thumbs,
    .tf-testimonial-carousel-type-group.style-1 .inner-testimonial-content {
        width: calc(100%);
        margin: 0;
    }
    .tf-testimonial-carousel .active .item-testimonial {
        background-color: #F7F7F7 !important;
    }

    /* 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;
    }
}