
/* style default */

.tf-testimonial-carousel.left .item-testimonial {
    text-align: left;
}

.tf-testimonial-carousel.center .item-testimonial {
    text-align: center;
}

.tf-testimonial-carousel.right .item-testimonial {
    text-align: right;
}

.tf-testimonial-carousel.left .group-author,
.tf-testimonial-carousel.left .rating {
    justify-content: left;
}

.tf-testimonial-carousel.center .group-author,
.tf-testimonial-carousel.center .rating {
    justify-content: center;
}

.tf-testimonial-carousel.right .group-author,
.tf-testimonial-carousel.right .rating {
    justify-content: right;
}

.tf-testimonial-carousel.style1 .item-testimonial {
    text-align: center;
}

.tf-testimonial-carousel.style1 .item-testimonial {
    border: 1px solid #ECECEC;
    padding: 24px 24px 21px 24px;
    border-radius: 20px;
    background: #fff;
}

.tf-testimonial-carousel.style1 .thumb {
    margin-bottom: 15px;
}

.tf-testimonial-carousel.style1 .rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 23px;
}

.tf-testimonial-carousel.style1 .rating i {
    color: #f2b138;
}

.tf-testimonial-carousel.style1 .description {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 23px;
}

.tf-testimonial-carousel.style1 .group-author {
    text-align: center;
    display: inline-block;
}

.tf-testimonial-carousel.style1 .thumb img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}

.tf-testimonial-carousel.style1 .group-author h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 25.2px;
    margin-bottom: 3px;
}

.tf-testimonial-carousel.style1 .group-author p {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #5C6368;
}

.tf-testimonial-carousel.style1 .group-author .thumb {
    margin-bottom: 22px;
}

.owl-carousel.has-overlay .owl-item.active_overlay {
    opacity: 0.3;
}

.owl-carousel.has-overlay .owl-item {
    -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.rotate-box .owl-item.left {
    transform: rotate(-8deg) translateY(23px) translateX(-39px);
}

.tf-testimonial-carousel.rotate-box .owl-item.right {
    transform: rotate(8deg) translateY(23px) translateX(39px);
}

.tf-testimonial-carousel.rotate-box .owl-carousel .owl-stage-outer {
    overflow: unset;
}

.tf-testimonial-carousel.rotate-box .owl-item {
    opacity: 0;
    visibility: hidden;
    -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.rotate-box .owl-item.active {
    opacity: 1;
    visibility: visible;
}

/* style mansory */

/* .tf-testimonial-carousel.grid .grid-testimonial {
    column-count: 3;
    display: block;
    column-gap: 40px;
} */


.tf-testimonial-carousel.grid .group-grid-testimonial {
    display: flex;
    gap: 40px;
    height: 672px;
    overflow: hidden;
    position: relative;
}

.tf-testimonial-carousel.grid .group-grid-testimonial::after {
    content: '';
    height: 30%;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    opacity: 1;
    visibility: visible;
    -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.grid .group-grid-testimonial::before {
    content: '';
    height: 30%;
    width: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    opacity: 1;
    visibility: visible;
    -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.grid:hover .group-grid-testimonial::after,
.tf-testimonial-carousel.grid:hover .group-grid-testimonial::before {
    opacity: 0;
    visibility: hidden;
}

.tf-testimonial-carousel.grid .group-grid-testimonial .swiper-slide {
    height: auto;
}

.tf-testimonial-carousel.grid .group-grid-testimonial .swiper-wrapper {
    transition-timing-function: linear !important;
}

.tf-testimonial-carousel.grid .grid-testimonial .item {
    break-inside: avoid;
    margin-bottom: 40px;
}

.tf-testimonial-carousel.grid .item-testimonial {
    border: 1px solid #ECECEC;
    padding: 22px 24px 24px 24px;
    border-radius: 20px;
    margin-bottom: 0px;
    background: #fff;
}

.tf-testimonial-carousel.grid .item-testimonial .rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #FFA800;
    margin-bottom: 15px;
}

.tf-testimonial-carousel.grid .item-testimonial .description {
font-size: 16px;
font-weight: 400;
line-height: 22px;
color: #5C5E61;
margin-bottom: 23px;
}

.tf-testimonial-carousel.grid .item-testimonial .group-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-testimonial-carousel.grid .item-testimonial .thumb img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.tf-testimonial-carousel.grid .item-testimonial .thumb {
    flex-shrink: 0;
}

.tf-testimonial-carousel.grid .item-testimonial h6 {
font-size: 18px;
font-weight: 600;
line-height: 25.2px;
margin-bottom: 3px;
}

.tf-testimonial-carousel.grid .item-testimonial .content p {
font-size: 12px;
font-weight: 400;
line-height: 16px;
color: #5C6368;
}

/*carousel optiont*/

.owl-nav .owl-prev.disabled, 
.owl-nav .owl-next.disabled {
    cursor: not-allowed;
}

.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;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    -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-arrow .owl-nav .disabled {
    opacity: .35;
    cursor: auto;
    pointer-events: none;
}

.tf-testimonial-carousel .owl-dots {
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    bottom: -40px;
}

.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;
}

.tf-testimonial-carousel .owl-carousel .owl-dots .owl-dot {
    margin: 0 7.5px;
    width: 8px;
    height: 8px;
    line-height: 8px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    overflow: unset;
    background: #E4E4E4;
    flex-shrink: 0;
}

.tf-testimonial-carousel .owl-carousel .owl-dots .owl-dot::after {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: "";
    width: 14px;
    height: 14px;
    overflow: visible;
    border: 1px solid var(--theme-primary-color);
    opacity: 0;
}

.tf-testimonial-carousel .owl-carousel .owl-dots .owl-dot.active {
    opacity: 1;
    background: var(--theme-primary-color);
}

.tf-testimonial-carousel .owl-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.tf-testimonial-carousel.style1 .owl-dots {
    bottom: -82px;
}

/* Custom Cursor
-------------------------------------------------------------- */

.tfmouseCursor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 50%;
    transform: translateZ(0);
    visibility: hidden;
    text-align: center;
  }
  
  .cursor-inner {
    margin-left: -40px;
    margin-top: -40px;
    width: 80px;
    height: 80px;
    color: #fff;
    cursor: grab;
    font-weight: 500;
    background: var(--theme-primary-color);
    box-sizing: border-box;
    z-index: 10000000;
    opacity: 0;
    transition: all 0.1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 7px;
  }
  
  .tf-testimonial-carousel:hover .cursor-inner {
    opacity: 1;
  }
  
  .tfmouseCursor.cursor-hover {
    opacity: 0 !important;
  }

  .tf-testimonial-carousel.has-custom-cusor .owl-stage-outer {
    cursor: grab;
    -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 button {
    width: 58px;
    height: 58px;
    border: 1px solid #ECECEC !important;
    border-radius: 50%;
    color: #5C5E61 !important;
    display: flex;
    align-items: center;
    justify-content: center;  
    position: absolute;
    bottom: -106px;
    font-size: 25px !important;
  }

  .tf-testimonial-carousel .owl-nav button.owl-next {
    right: 40.5%;
  }

  .tf-testimonial-carousel .owl-nav button.owl-prev {
    left: 40%;
  }

  .tf-testimonial-carousel .owl-nav button:hover {
    background: var(--theme-primary-color) !important;
    border-color: var(--theme-primary-color) !important;
    color: #fff !important;
  }

  .tf-testimonial-carousel .item-testimonial {
    -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;
  }

/* flip */
.tf-testimonial-carousel.flip .item-testimonial {
    border: 1px solid #ECECEC;
    padding: 33px 24px 31px 31px;
    border-radius: 20px;
    background: #fff;
}

.tf-testimonial-carousel.flip .description {
font-size: 24px;
font-weight: 300;
line-height: 33.6px;
color: #5C5E61;
margin-bottom: 56px;
}

.tf-testimonial-carousel.flip .item-testimonial .group-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tf-testimonial-carousel.flip .item-testimonial .thumb img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.tf-testimonial-carousel.flip .item-testimonial .thumb {
    flex-shrink: 0;
}

.tf-testimonial-carousel.flip .item-testimonial h6 {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
margin-bottom: 3px;
}

.tf-testimonial-carousel.flip .item-testimonial .content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
color: #5C6368;
}


.tf-testimonial-carousel.flip .rating {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 2px;
    margin-bottom: 23px;
}

.tf-testimonial-carousel.flip .rating i {
    color: #f2b138;
}

.dark-light .tf-testimonial-carousel.flip .item-testimonial {
    border: 1px solid #FFFFFF1A;
    background: #2C2E33;
}

.dark-light .tf-testimonial-carousel.flip .item-testimonial .content p {
    color: #fff;
    opacity: 0.5;
}

.dark-light .tf-testimonial-carousel.flip .item-testimonial h6,
.dark-light .tf-testimonial-carousel.flip .description {
    color: #fff;
}

/* swiper navigation */

.tf-testimonial-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    line-height: 8px;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    overflow: unset;
    background: #5C5E61;
    margin: 0 5px;
}

.tf-testimonial-carousel .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--theme-primary-color);
}

.tf-testimonial-carousel .swiper-pagination-bullet::after {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: "";
    width: 14px;
    height: 14px;
    border: 1px solid var(--theme-primary-color);
    padding: 5px;
    opacity: 0;
    visibility: hidden;
}

.tf-testimonial-carousel .swiper-pagination-bullet::before {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: "";
    width: 14px;
    height: 14px;
    padding: 10px;
}

.tf-testimonial-carousel .swiper-pagination-bullet.swiper-pagination-bullet-active::after {
    opacity: 1;
    visibility: visible;
}

.dark-light .tf-testimonial-carousel .swiper-pagination-bullet {
    background: #2C2E33;
}

.dark-light .tf-testimonial-carousel .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #fff;
}

.dark-light .tf-testimonial-carousel .swiper-pagination-bullet::after {
    border: 1px solid #fff;
}

.tf-testimonial-carousel .swiper-button-next button,
.tf-testimonial-carousel .swiper-button-prev button {
    display: inline-block;
    width: 58px;
    height: 58px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #5C5E61;
    font-size: 24px;
    border: 1px solid #ECECEC;
}

.dark-light .tf-testimonial-carousel .swiper-button-next button,
.dark-light .tf-testimonial-carousel .swiper-button-prev button {
    border: 1px solid #FFFFFF1A;
    background: #2C2E33;
    color: #5C5E61;
}

.tf-testimonial-carousel .swiper-button-next,
.tf-testimonial-carousel .swiper-button-prev {
  width: unset !important;
  height: unset !important;
}

.tf-testimonial-carousel .swiper-button-next::after,
.tf-testimonial-carousel .swiper-button-prev::after,
.tf-testimonial-carousel.no-arrow .swiper-button-next,
.tf-testimonial-carousel.no-arrow .swiper-button-prev,
.tf-testimonial-carousel.no-bullet .swiper-pagination {
    display: none;
}

.tf-testimonial-carousel .swiper-button-next button:hover,
.tf-testimonial-carousel .swiper-button-prev button:hover {
    background: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color);
}

.tf-testimonial-carousel.flip .swiper-button-next {
    right: -33%;
}

.tf-testimonial-carousel.flip .swiper-button-prev {
    left: -33%;
}

.tf-testimonial-carousel.flip .swiper-pagination {
    left: 50%;
    bottom: -31%;
    transform: translateX(-50%);
} 

.tf-testimonial-carousel.flip .swiper-slide-shadow {
    background: unset !important;
}

  @media (max-width: 1200px) {
    .tfmouseCursor {
        display: none;
    }
    .tf-testimonial-carousel.flip .swiper-button-next {
        right: -10%;
    }
    
    .tf-testimonial-carousel.flip .swiper-button-prev {
        left: -10%;
    }
  }

@media (max-width: 991px) {
    .tf-testimonial-carousel .owl-nav button.owl-next {
        right: 34.5%;
    }
    .tf-testimonial-carousel .owl-nav button.owl-prev {
        left: 35%;
    }
    .tf-testimonial-carousel.grid .group-grid-testimonial .slide-3,
    .tf-testimonial-carousel.grid .group-grid-testimonial::after {
        display: none;
    }
    .tf-testimonial-carousel.flip .swiper-pagination {
        bottom: -15%;
    }
    .tf-testimonial-carousel.rotate-box .owl-item.right,
    .tf-testimonial-carousel.rotate-box .owl-item.left {
        transform: unset;
    }
}

@media (max-width: 767px) { 
    .tf-testimonial-carousel .owl-nav,
    .tf-testimonial-carousel.flip .swiper-button-next,
    .tf-testimonial-carousel.flip .swiper-button-prev,
    .tf-testimonial-carousel.grid .group-grid-testimonial .slide-2  {
        display: none;
    }
    .tf-testimonial-carousel.flip .swiper-pagination {
        bottom: -5%;
    }
    .tf-testimonial-carousel.grid .group-grid-testimonial .infiniteslide_wrap:not(:first-child) {
        display: none;
    }
}


