/* ==========================================
   TESTIMONIALS SECTION
========================================== */

.testimonials {
  padding: 40px 0;

  background: linear-gradient(180deg, #ffffff, #eef6ff);

  overflow: hidden;
}

.testimonials .section-tag,
.testimonials .section-title,
.testimonials .section-subtitle {
  text-align: center;

  display: block;
}

/* ==========================================
   SLIDER
========================================== */

.testimonial-slider {
  margin-top: 60px;

  overflow: hidden;

  position: relative;
}

.testimonial-track {
  display: flex;

  gap: 30px;

  width: max-content;

  animation: testimonialScroll 45s linear infinite;
}

.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

/* ==========================================
   CARD
========================================== */

.testimonial-card {
  width: 360px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid var(--border);

  border-radius: 22px;

  padding: 30px;

  box-shadow: var(--shadow-sm);

  transition: 0.35s;

  flex-shrink: 0;
}

.testimonial-card:hover {
  transform: translateY(-10px);

  box-shadow: var(--shadow-lg);
}

/* ==========================================
   HEADER
========================================== */

.testimonial-header {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-bottom: 18px;
}

.testimonial-header img {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid var(--primary);
}

.testimonial-header h3 {
  font-size: 19px;

  margin-bottom: 5px;
}

.testimonial-header span {
  color: var(--text-light);

  font-size: 14px;
}

/* ==========================================
   RATING
========================================== */

.rating {
  font-size: 20px;

  margin-bottom: 18px;
}

/* ==========================================
   REVIEW
========================================== */

.testimonial-card p {
  color: var(--text-light);

  line-height: 1.8;
}

/* ==========================================
   ANIMATION
========================================== */

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
  .testimonial-card {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }

  .testimonial-card {
    width: 290px;

    padding: 24px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 260px;
  }
}

/* ==========================================
   DARK MODE
========================================== */

body.dark .testimonials {
  background: linear-gradient(180deg, #08101f, #101c31);
}

body.dark .testimonial-card {
  background: var(--bg-light);

  border-color: #223048;
}

body.dark .testimonial-header span {
  color: #94a3b8;
}
