/* ========================================
   KUNDENBEWERTUNGEN / TESTIMONIALS
   ======================================== */

.testimonials-section {
  background-color: #FFFFFF;
  padding: var(--spacing-xl) 0;
  max-width: 100vw;
  overflow-x: hidden;
  border-top: 1px solid #EDE8E2;
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.testimonials-section .section-header h2 {
  font-size: var(--font-size-h2);
  color: var(--color-charcoal);
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
}

.testimonials-section .section-header>p {
  color: var(--color-gray);
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-md);
}

/* Overall Rating */
.overall-rating {
  display: flex;
  flex-direction: column;
  /* Stack rating row and badge */
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.overall-rating .stars {
  font-size: 1.5rem;
  color: #D4A035;
  /* Rich gold for stars */
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(212, 160, 53, 0.3);
}

.overall-rating .rating-number {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1;
}

.overall-rating .rating-count {
  color: var(--color-gray);
  font-size: var(--font-size-small);
  margin-left: 4px;
}

/* Treatwell Badge */
.treatwell-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-charcoal);
  font-weight: 500;
  margin-top: 4px;
}

.treatwell-badge .check-icon {
  color: #27ae60;
  /* Green for trust */
  font-weight: bold;
  font-size: 1rem;
}

/* Testimonials Carousel Wrapper */
.testimonials-carousel-wrapper {
  position: relative;
  margin: var(--spacing-xl) 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  padding: var(--spacing-md) 0;
}

/* Testimonials Carousel */
.testimonials-carousel {
  display: flex;
  gap: var(--spacing-lg);
  animation: scroll 30s linear infinite;
  width: max-content;
}

.testimonials-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Hide controls */
.carousel-btn,
.carousel-dots {
  display: none;
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  min-height: 240px;
  position: relative;
  /* Needed for tape positioning */
  overflow: hidden;
  /* Ensures tape stays within rounded corners */
}

/* Decorative Tape Effect */
.testimonial-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -40px;
  width: 120px;
  height: 25px;
  background: linear-gradient(135deg, #F0C14B 0%, #D4A035 100%);
  /* Vibrant gold tape */
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(212, 160, 53, 0.3);
  /* Gold shadow for depth */
  opacity: 0.85;
  pointer-events: none;
  /* Let clicks pass through */
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #D4A035;
  /* Gold border on hover */
}

/* Testimonial Header */
.testimonial-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.testimonial-author {
  display: block;
}

.author-avatar {
  display: none;
}

.author-info {
  text-align: center;
}

.author-info h4 {
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin: 0 0 4px 0;
  font-weight: 600;
  line-height: 1.2;
}

.treatment-name {
  font-size: 0.85rem;
  color: var(--color-gray);
  display: block;
}

.testimonial-rating {
  font-size: 1rem;
  color: #D4A035;
  /* Rich gold for rating stars */
  letter-spacing: 1px;
  text-align: center;
}

/* Testimonial Text */
.testimonial-text {
  color: var(--color-gray);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
  flex-grow: 1;
  font-style: italic;
  text-align: center;
}

.testimonial-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: var(--spacing-sm);
}

.testimonial-date {
  font-size: 0.75rem;
  color: var(--color-gray);
  opacity: 0.7;
  text-align: center;
}

.testimonial-source-small {
  font-size: 0.75rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.source-logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.source-logo svg {
  height: 18px;
  width: auto;
}

/* Testimonials CTA */
.testimonials-cta {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-gray-light);
}

.testimonials-cta p {
  font-size: var(--font-size-large);
  color: var(--color-charcoal);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    width: 300px;
    max-width: 300px;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 220px;
  }

  .overall-rating {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .overall-rating .stars {
    font-size: 1.25rem;
  }

  .overall-rating .rating-number {
    font-size: 1.5rem;
  }

  .overall-rating .rating-count {
    font-size: 0.8rem;
  }

  .treatwell-badge {
    font-size: 0.8rem;
    text-align: center;
  }

  .testimonials-section .section-header h2 {
    font-size: 1.75rem;
  }

  .testimonials-section .section-header > p {
    font-size: 1rem;
  }

  .author-info h4 {
    font-size: 1rem;
  }

  .treatment-name {
    font-size: 0.8rem;
  }

  .testimonial-text {
    font-size: 0.8rem;
  }

  .testimonials-carousel {
    animation: scroll 25s linear infinite;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 280px;
    max-width: 280px;
    min-height: 200px;
  }

  .testimonials-section {
    padding: var(--spacing-lg) 0;
  }

  .testimonials-section .section-header h2 {
    font-size: 1.5rem;
  }

  .overall-rating .stars {
    font-size: 1rem;
  }

  .overall-rating .rating-number {
    font-size: 1.25rem;
  }

  .treatwell-badge {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}