/**
 * Testimonials Block Styles
 *
 * @package UltraLite_BS_ACF
 * @since 1.0.0
 */

.testimonials-slider {
  position: relative;
}

.testimonials-slider .slick-track {
  padding: 10px 0;
}

.testimonial-slide {
  padding: 0 16px;
  display: flex;
  height: auto !important;
}

/* .testimonials-slider .slick-track > .slick-slide:first-child {
  padding-left: 0;
} */



.testimonial-slide > div {
  width: 100%;
  display: flex;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--custom-shadow);
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* height: 100%; */
  /* max-height: 560px; */
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--custom-shadow);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.testimonial-designation {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.testimonial-rating {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.testimonial-rating .star {
  color: #d3d3d3; /* empty */
  line-height: 1;
}

.testimonial-rating .star.filled {
  color: var(--star-color); /* filled */
}

.testimonial-rating svg {
  display: block;
}

.testimonial-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-text p {
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  margin: 0;
  line-height: 1.6;
  position: relative;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.testimonial-more {
  display: inline;
}

.testimonial-text.expanded .testimonial-more {
  display: none;
}

.testimonial-read-more {
  display: inline;
  margin-left: 4px;
  color: var(--yellow-color);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.testimonial-read-more:hover {
  color: var(--yellow-color);
  text-decoration: none;
}

.testimonial-text.expanded .testimonial-read-more::after {
  content: " Less";
}

.testimonial-read-more::after {
  content: " More";
}

.no-testimonials {
  text-align: center;
  color: #666666;
  font-size: 18px;
  padding: 40px 0;
}

/* Slick Carousel Customization */
.testimonials-slider .slick-dots {
  bottom: -50px;
  text-align: center;
}

.testimonials-slider .slick-dots li button:before {
  font-size: 12px;
  color: #666666;
  opacity: 0.5;
}

.testimonials-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--yellow-color);
}

.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
  z-index: 1;
  width: 40px;
  height: 40px;
}

.testimonials-slider .slick-prev {
  left: -50px;
}

.testimonials-slider .slick-next {
  right: -50px;
}

.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
  font-size: 40px;
  color: #666666;
  opacity: 0.7;
}

.testimonials-slider .slick-prev:hover:before,
.testimonials-slider .slick-next:hover:before {
  opacity: 1;
  color: var(--yellow-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .testimonials-slider .slick-prev {
    left: -30px;
  }

  .testimonials-slider .slick-next {
    right: -30px;
  }
}

@media (max-width: 992px) {
  .testimonials-section-title {
    font-size: 28px;
  }

  .testimonials-section-description {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-name {
    font-size: 20px;
  }

  .testimonial-text p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .testimonials-section-title {
    font-size: 24px;
  }

  .testimonials-section-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .testimonial-slide {
    padding: 0 8px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .testimonial-name {
    font-size: 18px;
  }

  .testimonial-designation {
    font-size: 14px;
  }

  .testimonial-rating .star {
    font-size: 16px;
  }

  .testimonials-slider .slick-prev,
  .testimonials-slider .slick-next {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .testimonials-section-title {
    font-size: 20px;
  }

  .testimonials-section-description {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-name {
    font-size: 16px;
  }

  .testimonial-text p {
    font-size: 13px;
    padding: 0 15px;
  }

  .testimonial-text p::before,
  .testimonial-text p::after {
    font-size: 36px;
  }
}
