.testimonials-section {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.testimonials-section .testimonial-card {
  height: 330px;
  width: 370px;
  border-radius: 16px;
  padding: 10px;
  margin: 10px;
  display: flex !important;
  align-items: end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  transition: all ease 0.3s;
  cursor: pointer;
}

.testimonials-section .testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 16px;
}

.testimonial-inner-card {
  position: relative;
  background: white;
  border-radius: 10px;
  z-index: 2;
  height: 170px;
}

.testimonials-section .icon-area {
  background-color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: -25px;
}

.testimonials-section .icon-area img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.testimonials-section .stars .star {
  font-size: 20px;
  margin: 0 2px;
}

.testimonials-section .star.filled {
  color: #f6973f;
}

.testimonials-section .star.faded {
  color: rgba(246, 151, 63, 0.3);
}

.testimonials-section .review-text {
  color: black;
  font-size: 13px;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  padding: 5px;
  line-height: 1.4em;
  max-height: calc(1.4em * 4);
}

.testimonials-section .pre-bt,
.testimonials-section .next-bt {
  position: absolute;
  z-index: 100;
  width: 40px;
  top: 130px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.testimonials-section .pre-bt:hover,
.testimonials-section .next-bt:hover {
  transform: scale(1.2);
}

.testimonials-section .text-uppercase {
  color: #e58411;
}

.testimonials-section h2 {
  font-weight: 100 !important;
  font-size: 35px;
}

.testimonials-section .next-bt {
  right: -20px;
}

.testimonials-section .pre-bt {
  left: -20px;
}


.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.testimonial-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay i {
  font-size: 18px;
  color: #00cec9;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .overlay i {
  transform: rotate(10deg) scale(1.2);
}

.overlay span {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.overlay:hover {
  background: #00cec9;
}

.overlay:hover span {
  color: #fff;
}

.overlay:hover i {
  color: white;
}

.icon-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.3s;
}

.icon-link i {
  font-size: 18px;
}

.icon-link:hover {
  background-color: #00b894;
  transform: scale(1.05);
  color: white;
}

@media (max-width: 570px) {
  .testimonials-section .next-bt,
  .testimonials-section .pre-bt {
    display: none !important;
  }

  .testimonials-section h2 {
    font-weight: 100 !important;
    font-size: 25px;
  }
}
