/* ==========================================================
   Testimonial Carousel
   ========================================================== */

.faqs-tiles {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.8vw, 10px);
  margin-bottom: 14px;
  align-items: center;
}

.tile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Scales down on narrow screens so all tiles fit on one line, but stays 52px
     on tablet/desktop (the clamp caps out around a ~426px viewport). */
  width: clamp(40px, 12.2vw, 52px);
  min-width: clamp(40px, 12.2vw, 52px);
  height: clamp(40px, 12.2vw, 52px);
  min-height: clamp(40px, 12.2vw, 52px);
  border-radius: 50%;
  border: 3px solid transparent;
  background: #f3f0ff;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: grayscale(1) opacity(0.5);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
}

.tile-avatar svg {
  display: block;
  width: clamp(34px, 10.8vw, 46px);
  height: clamp(34px, 10.8vw, 46px);
}

.tile-avatar.active {
  width: clamp(50px, 15.2vw, 64px);
  min-width: clamp(50px, 15.2vw, 64px);
  height: clamp(50px, 15.2vw, 64px);
  min-height: clamp(50px, 15.2vw, 64px);
  border-color: #6a4fe8;
  filter: none;
  box-shadow: 0 4px 14px rgba(106, 79, 232, 0.3);
}

.tile-avatar.active svg {
  width: clamp(44px, 13.8vw, 58px);
  height: clamp(44px, 13.8vw, 58px);
}

.tile-avatar:nth-child(odd) {
  transform: rotate(-10deg);
}

.tile-avatar:nth-child(even) {
  transform: rotate(10deg);
}

.tile-avatar:hover:not(.active) {
  filter: grayscale(0.5) opacity(0.7);
}

.testimonial-carousel {
  position: relative;
  min-height: 120px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
