/* ====== Testimonial Section Global CSS ======= */

.testimonial-tabs-wrapper .testimonial-tab {
  background-color: transparent !important;
  border: none;
  font-size: 18px;
  line-height: normal;
  text-transform: uppercase !important;
}
.testimonial-tabs-wrapper .testimonial-tab.active {
  background-color: rgb(var(--color-secondary-500)) !important;
  color: white !important;
  font-weight: 900;
  box-shadow:
    0px 4.994px 7.491px 0px rgba(0, 0, 0, 0.1),
    0px 12.485px 18.728px 0px rgba(0, 0, 0, 0.1);
}
.testimonial-tabs-wrapper .testimonial-tab:not(.active):hover {
  background-color: rgba(var(--color-secondary-500), 0.1) !important;
}
.testimonial-tab-contents .testimonial-tab-content {
  transition: opacity 0.3s ease;
}

.testimonial-tabs-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.written-reviews-wrap .slider-item {
  margin: 0 13px !important;
}
.written-reviews-wrap .written-reviews-prev {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.written-reviews-wrap .written-reviews-next {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.written-reviews-wrap .slick-list {
  width: 100% !important;
}

.written-reviews-wrap {
  position: relative;
}

.business-reviews-wrap .slider-item {
  margin: 0 13px !important;
}
.business-reviews-wrap .business-reviews-prev {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.business-reviews-wrap .business-reviews-next {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.business-reviews-wrap .slick-list {
  width: 100% !important;
}

.business-reviews-wrap {
  position: relative;
}

.all-reviews-wrap {
  gap: 0px !important;
  position: relative;
}
.all-reviews-wrap .slider-item {
  margin: 0 13px !important;
}
.all-reviews-wrap .all-reviews-prev {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.all-reviews-wrap .all-reviews-next {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.all-reviews-wrap .slick-list {
  width: 100% !important;
}

.video-reviews-wrap {
  gap: 0px !important;
  position: relative;
}
.video-reviews-wrap .slider-item {
  margin: 0 13px !important;
}
.video-reviews-wrap .video-reviews-prev {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.video-reviews-wrap .video-reviews-next {
  background-color: transparent;
  width: 80px;
  height: 80px;
}
.video-reviews-wrap .slick-list {
  width: 100% !important;
}
.video-reviews-wrap .testimonial-tab {
  background-color: transparent !important;
  border: none;
}
.all-reviews-wrap .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.all-reviews-wrap .all-reviews-prev,
.all-reviews-wrap .all-reviews-next,
.video-reviews-wrap .video-reviews-prev,
.video-reviews-wrap .video-reviews-next,
.written-reviews-wrap .written-reviews-prev,
.written-reviews-wrap .written-reviews-next,
.business-reviews-wrap .business-reviews-prev,
.business-reviews-wrap .business-reviews-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px !important;
  z-index: 20;
}

.all-reviews-wrap .all-reviews-prev,
.video-reviews-wrap .video-reviews-prev,
.written-reviews-wrap .written-reviews-prev,
.business-reviews-wrap .business-reviews-prev {
  left: -14px;
}

.all-reviews-wrap .all-reviews-next,
.video-reviews-wrap .video-reviews-next,
.written-reviews-wrap .written-reviews-next,
.business-reviews-wrap .business-reviews-next {
  right: -14px;
}

.all-reviews-wrap .all-reviews-prev img,
.all-reviews-wrap .all-reviews-next img,
.video-reviews-wrap .video-reviews-prev img,
.video-reviews-wrap .video-reviews-next img,
.written-reviews-wrap .written-reviews-prev img,
.written-reviews-wrap .written-reviews-next img,
.business-reviews-wrap .business-reviews-prev img,
.business-reviews-wrap .business-reviews-next img {
  display: block;
  width: 100%;
  max-width: 80px;
  height: auto;
}

@media (max-width: 1500px) {
  /* Reduce gap to 0 for 1500px+ devices */
  .testimonial-slider-author-info {
    gap: 6px !important;
  }

  /* Reduce author name font size to 24px for 1500px+ devices */
  .testimonial-slider-author-name {
    font-size: 24px !important;
  }
}

@media (max-width: 1366px) {
  .testimonial-slider-author-name {
    font-size: 22px !important;
  }

  .testimonial-slider-designation,
  .testimonial-slider-description {
    font-size: 16px !important;
  }

  .all-reviews-wrap .all-reviews-prev img,
  .all-reviews-wrap .all-reviews-next img,
  .video-reviews-wrap .video-reviews-prev img,
  .video-reviews-wrap .video-reviews-next img,
  .written-reviews-wrap .written-reviews-prev img,
  .written-reviews-wrap .written-reviews-next img,
  .business-reviews-wrap .business-reviews-prev img,
  .business-reviews-wrap .business-reviews-next img {
    max-width: 65px;
  }
  .all-reviews-wrap .all-reviews-prev,
  .video-reviews-wrap .video-reviews-prev,
  .written-reviews-wrap .written-reviews-prev,
  .business-reviews-wrap .business-reviews-prev {
    left: -6px;
  }

  .all-reviews-wrap .all-reviews-next,
  .video-reviews-wrap .video-reviews-next,
  .written-reviews-wrap .written-reviews-next,
  .business-reviews-wrap .business-reviews-next {
    right: -6px;
  }
  .testimonial-slider-author-info {
    margin: 0 8px !important;
  }
}

@media (max-width: 767px) {
  .cst-testimonial-section .tw-max-w-\[860px\] > div {
    min-width: 0;
  }

  .cst-testimonial-section .tw-max-w-\[860px\] .tw-text-3xl {
    font-size: 36px;
  }

  .cst-testimonial-section .tw-max-w-\[860px\] .tw-text-\[16px\] {
    line-height: 1.2;
  }

  .testimonial-tab-contents {
    margin-top: 24px !important;
  }

  .testimonial-tabs-wrapper {
    border-radius: 16px !important;
    max-width: fit-content !important;
  }

  .testimonial-tabs-wrapper .testimonial-tab {
    min-height: 42px;
  }

  .all-reviews-wrap,
  .video-reviews-wrap,
  .written-reviews-wrap,
  .business-reviews-wrap {
    gap: 0 !important;
    position: relative;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .all-reviews-wrap .slider-item,
  .video-reviews-wrap .slider-item,
  .written-reviews-wrap .slider-item,
  .business-reviews-wrap .slider-item {
    margin: 0 6px !important;
    border-radius: 18px !important;
  }

  .all-reviews-wrap .slick-list,
  .video-reviews-wrap .slick-list,
  .written-reviews-wrap .slick-list,
  .business-reviews-wrap .slick-list {
    margin: 0 -6px !important;
  }

  .all-reviews-wrap .all-reviews-prev,
  .all-reviews-wrap .all-reviews-next,
  .video-reviews-wrap .video-reviews-prev,
  .video-reviews-wrap .video-reviews-next,
  .written-reviews-wrap .written-reviews-prev,
  .written-reviews-wrap .written-reviews-next,
  .business-reviews-wrap .business-reviews-prev,
  .business-reviews-wrap .business-reviews-next {
    width: 50px !important;
    height: 50px !important;
    bottom: -88px !important;
    top: unset !important;
    z-index: 20;
  }

  .testimonial-slider-author-info {
    margin: 0 0px !important;
  }

  .all-reviews-wrap .all-reviews-prev,
  .video-reviews-wrap .video-reviews-prev,
  .written-reviews-wrap .written-reviews-prev,
  .business-reviews-wrap .business-reviews-prev {
    left: 35%;
  }

  .all-reviews-wrap .all-reviews-next,
  .video-reviews-wrap .video-reviews-next,
  .written-reviews-wrap .written-reviews-next,
  .business-reviews-wrap .business-reviews-next {
    right: 35%;
  }

  .all-reviews-wrap .all-reviews-prev img,
  .all-reviews-wrap .all-reviews-next img,
  .video-reviews-wrap .video-reviews-prev img,
  .video-reviews-wrap .video-reviews-next img,
  .written-reviews-wrap .written-reviews-prev img,
  .written-reviews-wrap .written-reviews-next img,
  .business-reviews-wrap .business-reviews-prev img,
  .business-reviews-wrap .business-reviews-next img {
    width: 100%;
    height: auto;
  }

  .all-reviews-wrap .tw-h-\[500px\],
  .video-reviews-wrap .tw-h-\[500px\],
  .written-reviews-wrap .tw-h-\[500px\],
  .business-reviews-wrap .tw-h-\[500px\] {
    height: 380px !important;
  }
}

@media (max-width: 500px) {
  .all-reviews-wrap .all-reviews-prev,
  .video-reviews-wrap .video-reviews-prev,
  .written-reviews-wrap .written-reviews-prev,
  .business-reviews-wrap .business-reviews-prev {
    left: 30%;
  }

  .all-reviews-wrap .all-reviews-next,
  .video-reviews-wrap .video-reviews-next,
  .written-reviews-wrap .written-reviews-next,
  .business-reviews-wrap .business-reviews-next {
    right: 30%;
  }
  .all-reviews-wrap .tw-h-\[500px\],
  .video-reviews-wrap .tw-h-\[500px\],
  .written-reviews-wrap .tw-h-\[500px\],
  .business-reviews-wrap .tw-h-\[500px\] {
    height: 365px !important;
  }
  .testimonial-slider-author-name {
    font-size: 20px !important;
  }
}
