/* SECTION */
.testimonial {
  position: relative;
  padding: 20px 20px;
  background: #f8fafc;
  color: #0f172a;
  overflow: hidden;
}

.testimonial__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, #ffffff, #e2e8f0);
  opacity: 1;
}

/* HEADER */
.testimonial__header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.testimonial__eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #0ea5e9;
}

.testimonial__title {
  font-size: 28px;
  margin-top: 10px;
  color: #020617;
}

/* CONTAINER */
.testimonial__container {
  overflow: hidden;
  position: relative;
}

/* TRACK */
.testimonial__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
}

/* ITEM */
.testimonial__item {
  min-width: 300px;
  flex: 0 0 auto;
}

/* CARD */
.testimonial__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.testimonial__card:hover {
  transform: translateY(-5px);
  border-color: #0ea5e9;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* HEADER CARD */
.testimonial__card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 2px solid #0ea5e9;
}

/* TEXT */
.testimonial__name {
  margin: 0;
  color: #020617;
}

.testimonial__role {
  font-size: 12px;
  color: #64748b;
}

.testimonial__message {
  font-size: 14px;
  margin: 15px auto;
  max-width: 260px;
  color: #334155;
}

/* RATING */
.testimonial__rating {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.star {
  color: #cbd5f5;
}

.star.active {
  color: #facc15;
}

/* ANIMASI */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* PAUSE */
.testimonial__track:hover {
  animation-play-state: paused;
}

/* FADE */
.testimonial__container::before,
.testimonial__container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.testimonial__container::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, transparent);
}

.testimonial__container::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, transparent);
}