#testimonials {
  position: relative;
  min-height: 70vh;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1.5rem;
}

.testimonials-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fg);
}

.testimonials-title-line {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.testimonials-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.testimonials-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 100px);
  background: linear-gradient(to right, var(--bg), transparent);
  z-index: 5;
  pointer-events: none;
}

.testimonials-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 100px);
  background: linear-gradient(to left, var(--bg), transparent);
  z-index: 5;
  pointer-events: none;
}

#testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  padding-left: max(1.5rem, calc(50% - 170px));
  padding-right: max(1.5rem, calc(50% - 170px));
}

#testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-item {
  flex: 0 0 340px;
  cursor: pointer;
}

.testimonial-card {
  width: 320px;
  min-height: 220px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
}

.testimonial-review {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
  opacity: 0.9;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--item-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
}

@media (max-width: 768px) {
  #testimonials {
    min-height: auto !important;
    padding: 2rem 1rem !important;
  }
}
