.testimonials-section {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.07), transparent 18%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent 20%),
    #ffffff;
  overflow: hidden;
}

.testimonials-header {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.testimonials-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.testimonials-title span {
  color: var(--primary-color);
}

.testimonials-subtext {
  font-size: 1rem;
  line-height: 1.85;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
}

.testimonials-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.testimonials-slider {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.testimonial-card {
  min-width: calc((100% - 48px) / 3);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  padding: 30px 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.testimonial-quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: rgba(34, 197, 94, 0.28);
  margin-bottom: 12px;
  font-weight: 800;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 28px;
  min-height: 150px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-user img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(34, 197, 94, 0.14);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.testimonial-user h4 {
  font-size: 1.18rem;
  color: #0f172a;
  margin-bottom: 4px;
  font-weight: 800;
}

.testimonial-user span {
  font-size: 0.96rem;
  color: var(--primary-color);
  font-weight: 700;
}

.testimonial-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #0f172a;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.testimonial-arrow:hover {
  background: var(--primary-color);
  color: #052e16;
  border-color: rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  width: 34px;
  background: var(--primary-color);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Laptop */
@media (max-width: 1200px) {
  .testimonial-card {
    min-width: calc((100% - 24px) / 2);
  }
}

/* Tablet */
@media (max-width: 992px) {
  .testimonials-slider-wrap {
    gap: 12px;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .testimonial-text {
    min-height: auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .testimonials-header {
    margin-bottom: 40px;
  }

  .testimonials-title {
    font-size: 2rem;
  }

  .testimonials-subtext {
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .testimonial-user h4 {
    font-size: 1.04rem;
  }

  .testimonial-user span {
    font-size: 0.9rem;
  }

  .testimonial-arrow {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .testimonials-slider-wrap {
    gap: 8px;
  }

  .testimonial-arrow {
    display: none;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .testimonial-text {
    font-size: 0.94rem;
    line-height: 1.8;
  }
}