.testimonials {
  width: 100%;
  padding: 10rem 0;
  overflow: hidden;
  background-color: var(--base-500);
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.testimonials-header h3 {
  width: 30%;
}

.testimonials-nav {
  display: flex;
  gap: 1rem;
}

.testimonials-nav-button-wrapper {
  position: relative;
  will-change: transform;
}

.testimonials-nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: var(--base-100);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--base-500);
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.2s ease;
}

.testimonials-nav-button:active {
  transform: scale(0.85);
}

.testimonials-carousel {
  width: 100%;
  padding: 0 2rem 4rem 2rem;
  overflow: visible;
  will-change: transform;
}

.testimonials-track {
  position: relative;
  width: 100%;
  cursor: grab;
  touch-action: none;
  will-change: transform, opacity;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 520px;
  min-height: 380px;
  padding: 2.5rem;
  border-radius: 0.35rem;
  background-color: var(--base-100);
  will-change: transform;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-quote-mark {
  font-family: "Roslindale Variable", sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--base-200);
}

.testimonial-content p {
  font-weight: 450;
  line-height: 1.5;
  color: var(--base-500);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-author-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
}

.testimonial-author-img img {
  filter: grayscale(100%);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-author-name {
  font-size: 1rem;
  color: var(--base-500);
}

.testimonial-stars {
  display: flex;
  gap: 0.1rem;
}

.testimonial-stars .star {
  font-size: 0.85rem;
  color: var(--base-200);
}

.testimonial-stars .star.filled {
  color: var(--base-500);
}

@media (max-width: 1000px) {
  .testimonials {
    padding: 8rem 0 4rem 0;
  }

  .testimonials-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .testimonials-header h3 {
    width: 100%;
  }

  .testimonials-nav-button {
    transform: none;
  }

  .testimonial-card {
    width: 100%;
  }

  .testimonial-content {
    gap: 0;
  }
}
