.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #334155;
  text-align: center;
  margin-bottom: 2rem;
  font-style: normal;
  position: relative;
  font-weight: 400;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: -15px;
  top: -20px;
  font-size: 5rem;
  color: #0ea5e9;
  opacity: 0.15;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
}

.testimonial-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.testimonial-title {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--spacing-lg);
}

.testimonial-dots {
  display: flex;
  gap: 12px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-dot:hover {
  background: #94a3b8;
}

.testimonial-dot.active {
  background: var(--primary-color);
  width: 40px;
  border-radius: 10px;
}

.testimonial-arrow {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-arrow:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.testimonial-arrow:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .testimonials-carousel {
    height: 450px;
  }

  .testimonial-card {
    padding: var(--spacing-md);
  }

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

  .testimonial-text::before {
    left: -10px;
    font-size: 3rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .testimonial-name {
    font-size: 1rem;
  }

  .testimonial-title {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel {
    height: 500px;
  }

  .testimonial-card {
    padding: var(--spacing-sm);
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
}
