/* Testimonials section styles */
.testimonials {
  background: linear-gradient(135deg, rgba(244, 194, 194, 0.1) 0%, rgba(0, 181, 226, 0.1) 100%);
  position: relative;
}

.testimonials::before,
.testimonials::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 50px;
}

.testimonials::before {
  top: 0;
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

.testimonials::after {
  bottom: 0;
  background: var(--color-white);
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 200px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-pink);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-cyan);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
  gap: var(--spacing-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-light-grey);
  cursor: pointer;
  transition: all var(--transition-medium);
}

.dot.active {
  background-color: var(--color-cyan);
  transform: scale(1.2);
}

/* Auto-rotation for testimonials */
@keyframes testimonial-rotation {
  0%, 33.33% {
    opacity: 1;
    transform: translateX(0);
  }
  34.33%, 100% {
    opacity: 0;
    transform: translateX(-100px);
  }
}

.testimonial-slide:nth-child(1) {
  animation: testimonial-rotation 15s infinite;
}

.testimonial-slide:nth-child(2) {
  animation: testimonial-rotation 15s 5s infinite;
}

.testimonial-slide:nth-child(3) {
  animation: testimonial-rotation 15s 10s infinite;
}