.testimonials-section {
  background-color: rgba(29, 41, 57, 1);
  padding: 3rem 0rem;
}

.testimonials-section .section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 40px;
  color: #ffffff;
  font-weight: 600;
  
  align-items: center;
  display: flex;
  justify-content: center;
}

.testimonials-section .carousel-inner {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-bottom: 50px;
  margin-bottom: 40px;
}

.testimonials-section .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
}

.testimonials-section .testimonial-video-contanier {
  flex: 0 0 280px;
  margin: 0;
  width: 280px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  min-width: 280px;
}

.testimonials-section .testimonial-card-contanier {
  flex: 0 0 280px;
  margin: 0;
  width: 280px;
  height: 350px;
  display: flex;
  align-items: stretch;
  max-width: 280px;
  min-width: 280px;
}

.testimonials-section .testimonial-video {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 5px;
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.testimonials-section .testimonial-video iframe {
  border-radius: 10px;
  border: none;
  width: 100%;
  height: 100%;
  filter: grayscale(20%);
}

.testimonials-section .testimonial-card {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px;
  padding: 24px;
  background: rgba(52, 64, 84, 0.9) !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.testimonials-section .testimonial-card:hover {
  background: rgba(52, 64, 84, 1) !important;
  border-color: rgba(213, 123, 200, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.testimonials-section .quote {
  height: 23.38px;
  width: 25.8px;
  opacity: 0.9;
  filter: brightness(1.2);
}

.testimonials-section .testimonial-card p.mt-3 {
  width: 100%;
  height: 96px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #e4e7ec !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex: 1;
  margin-bottom: 0;
}

.testimonials-section .testimonial-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  position: absolute;
  bottom: 20px;
}

.testimonials-section .testimonial-info img.client-img {
  display: block;
  width: 41.78px;
  height: 41.78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonials-section .client-details {
  display: flex;
  flex-direction: column;
}

.testimonials-section .client-name {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 2px;
  font-weight: 600;
  color: #ffffff !important;
}

.testimonials-section .client-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0;
}

.testimonials-section .carousel-indicators,
.testimonials-section ol.carousel-indicators {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 30px auto 0;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  width: auto;
  max-width: 100%;
  z-index: 1;
}

.testimonials-section .carousel-indicators li,
.testimonials-section ol.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  max-width: 10px;
  max-height: 10px;
  border-radius: 50%;
  margin: 0;
  margin-right: 6px;
  margin-left: 6px;
  padding: 0;
  text-indent: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  opacity: 1;
  background-clip: padding-box;
}

.testimonials-section .carousel-indicators li:first-child,
.testimonials-section ol.carousel-indicators li:first-child {
  margin-left: 0;
}

.testimonials-section .carousel-indicators li:last-child,
.testimonials-section ol.carousel-indicators li:last-child {
  margin-right: 0;
}

.testimonials-section .carousel-indicators li.active {
  background-color: rgba(213, 123, 200, 0.8);
  border-color: rgba(213, 123, 200, 0.5);
}

@media (max-width: 768px) {
  .testimonials-section {
    background-color: var(--purple_light);
    padding: 3rem 0rem;
    height: 555px;
  }

  .testimonials-section .section-title {
    color: #101828;
    margin-bottom: 40px;
  }

  .testimonials-section .testimonial-video-contanier {
    flex: 0 0 auto;
    margin: 0 auto;
    width: 280px;
    height: 350px;
  }

  .testimonials-section .testimonial-card-contanier {
    flex: 0 0 auto;
    margin: 0 auto;
    width: 280px;
    height: 350px;
  }

  .testimonials-section .testimonial-video {
    width: 100%;
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    border: 1px solid #D0D5DD;
    border-radius: 11px;
    background: #fff;
    margin: 0 auto;
    max-width: 300px;
  }

  .testimonials-section .testimonial-card {
    height: 250px;
    width: 300px;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 20px;
    background-color: #ffffff !important;
    margin: 55px auto;
    min-height: 250px;
  }

  .testimonials-section .testimonial-card p.mt-3 {
    color: #101828 !important;
  }

  .testimonials-section .client-name {
    color: #101828 !important;
  }

  .testimonials-section .client-title {
    color: #666 !important;
  }

  .testimonials-section .carousel-indicators,
  .testimonials-section ol.carousel-indicators {
    position: absolute;
    bottom: -15%;
  }

  .testimonials-section .carousel-indicators li,
  .testimonials-section ol.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D0D5DD;
    margin: 0 5px;
  }

  .testimonials-section .carousel-indicators li.active {
    background-color: #667085;
  }
}
