.testimonial-section {
  background-color: #fff;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.testimonial-section h2 {
  font-size: 2.5rem;
  color: #0D0D0D;
  margin-bottom: 10px;
}

.testimonial-section .underline {
  width: 60px;
  height: 4px;
  background-color: #8bc3a9;
  margin: 0 auto 30px;
  border-radius: 2px;
}

.testimonial-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Kaart */
.testimonial-slide {
  position: relative;
  background: #fff;
  border-left: 6px solid transparent;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 30px 40px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  transition: border-left 0.3s ease, opacity 0.3s ease;
  opacity: 0.4;

  /* Zorgt dat tekst netjes breekt en niet buiten de kaart loopt */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.testimonial-slide.active {
  border-left: 6px solid #86A69A;
  opacity: 1;
}

.testimonial-slide .quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3.5rem;
  color: #86A69A;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial-slide .stars {
  color: #fbb040;
  font-size: 1.2rem;
  text-align: left;
}

.testimonial-slide .review {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-top: 15px;
  text-align: left;

  /* Ook hier tekst netjes laten breken */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Avatar en naam */
.testimonial-slide .user {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 20px;
  text-align: left;
}

.testimonial-slide .avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #86A69A;
  background-color: #f1f1f1;
}

.testimonial-slide .user-info {
  display: flex;
  flex-direction: column;
}

.testimonial-slide .name {
  font-weight: 700;
  color: #0D0D0D;
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .testimonial-section {
    padding: 60px 15px;
  }

  .testimonial-section h2 {
    font-size: 2rem;
  }

  .testimonial-carousel {
    max-width: 700px;
  }

  .testimonial-slide {
    padding: 25px 30px;
    max-width: 600px;
  }

  .testimonial-slide .quote-icon {
    font-size: 3rem;
    top: 15px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 50px 15px;
  }

  .testimonial-section h2 {
    font-size: 1.8rem;
  }

  .testimonial-carousel {
    max-width: 100%;
    padding: 0 10px;
  }

  .testimonial-slide {
    padding: 20px;
    max-width: 100%;
  }

  .testimonial-slide .quote-icon {
    font-size: 2.5rem;
    top: 10px;
    right: 15px;
  }

  .testimonial-slide .review {
    text-align: center;
  }

  .testimonial-slide .user {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .testimonial-slide .user-info {
    align-items: center;
  }

  .testimonial-slide .stars {
    text-align: center;
  }

  .testimonial-slide .avatar img {
    width: 50px;
    height: 50px;
  }
}
