/* ============================================
   Testimonial List Layout
   ============================================
   Sliding testimonial cards with ratings,
   author info, and source icons.
   ============================================ */
.testimonial-list {
  padding: 80px 0;
}
@media (max-width: 768px) {
  .testimonial-list {
    padding: 60px 0;
  }
}

/* ============================================
   Slider
   ============================================ */
.testimonial-list__slider {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.testimonial-list__track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease-in-out;
}
.testimonial-list__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

/* ============================================
   Card
   ============================================ */
.testimonial-list__card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 1024px) {
  .testimonial-list__card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}
@media (max-width: 640px) {
  .testimonial-list__card {
    flex: 0 0 100%;
    padding: 24px;
  }
}

/* ============================================
   Card Header (Author + Source)
   ============================================ */
.testimonial-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-list__author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.testimonial-list__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #33B5DD;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-list__author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimonial-list__author-name {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #222222;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-list__time {
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #888888;
  line-height: 1.3;
}

.testimonial-list__source-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================
   Star Rating
   ============================================ */
.testimonial-list__rating {
  display: flex;
  gap: 2px;
  align-items: center;
}

.testimonial-list__star {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.testimonial-list__star path {
  fill: #E0E0E0;
}
.testimonial-list__star.active path {
  fill: #FFB800;
}

/* ============================================
   Quote
   ============================================ */
.testimonial-list__quote {
  color: #444444;
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Carousel (Arrows + Slider)
   ============================================ */
.testimonial-list__carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .testimonial-list__carousel {
    gap: 0;
  }
}

/* ============================================
   Arrows (left/right of carousel)
   ============================================ */
.testimonial-list__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #E8E8E8;
  background: #ffffff;
  color: #222222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.testimonial-list__arrow:hover {
  border-color: #33B5DD;
  color: #33B5DD;
}
.testimonial-list__arrow svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .testimonial-list__arrow {
    display: none;
  }
}

/* ============================================
   Dots (below carousel)
   ============================================ */
.testimonial-list__dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.testimonial-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #D9D9D9;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
.testimonial-list__dot.active {
  background-color: #33B5DD;
}