.custom-testimonials-carousel {
  position: relative;
  width: 100%;
  padding: 50px 0;
}

.custom-testimonial-item {
  position: relative;
  background: linear-gradient(to bottom, #eef4ff, #fbfcff);
  border-radius: 14px;
  padding: 25px;
  height: 265px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-testimonial-item:hover {
  height: auto; /* expand height on hover */
}

.quote-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 24px;
  height: auto;
}

.testimonial-text {
  margin-top: 45px;
  line-height: 1.4;
  color: #333;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-testimonial-item:hover .testimonial-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.testimonial-name {
  color: #107cc7;
  font-weight: 600;
}

.testimonial-stars {
  color: #f7ac05;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Arrows */
.custom-arrow {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  top: 50%;
  transform: translateY(-50%);
}

.custom-arrow::after {
  font-size: 16px;
  color: #107cc7;
}

/* Mobile: move arrows below carousel */
@media (max-width: 767px) {
  .custom-arrow {
    position: relative;
    top: auto;
    transform: none;
    margin: 15px 5px 0;
  }

  .custom-testimonials-carousel .swiper-button-prev,
  .custom-testimonials-carousel .swiper-button-next {
    position: static;
    display: inline-block;
  }

  .custom-testimonials-carousel {
    text-align: center;
  }
}

/* Each slide auto-resizes to fit 3 per row on larger screens */

/* Let slides size themselves but cap width for 3 visible at most */
.custom-testimonials-carousel .swiper-slide {
  flex-shrink: 0;
  width: 33.333%; /* base width */
  max-width: 300px; /* prevent too wide on huge screens */
}

@media (max-width: 1024px) {
  .custom-testimonials-carousel .swiper-slide {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .custom-testimonials-carousel .swiper-slide {
    width: 100%;
  }
}
.custom-testimonials-carousel .swiper-slide {
	margin-right: 10px !important;
}
