.testimonial__title-wrap {
  text-align: center;
}

.testimonial-v1__title {
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, calc(0.5vw + 1.8rem), 2.4rem);
  font-weight: 500;
  line-height: calc(1 + 0.2 / var(--font-heading-scale));
  font-family: var(--font-custom-family);
  padding-bottom: 2rem;
  margin-bottom: 4rem;
}
@media (max-width: 767px) {
  .testimonial-v1__title {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
}

.testimonial-v1__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 0.2rem;
  background-color: rgba(var(--color-accent));
}

.testimonial-v1__pagination {
  justify-content: center;
  padding-top: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .testimonial-v1__pagination {
    padding-top: 2rem;
  }
}

.testimonial-v1__item {
  background-color: rgba(var(--color-background));
  padding: 2.5rem;
  min-height: 100%;
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.08), 0 5px 7px rgba(0, 0, 0, 0.05);
  border: 2px dashed rgba(var(--color-background));
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.testimonial-v1__item:hover {
  transform: translateY(-2rem);
  border: 0.2rem dashed rgba(var(--color-accent));
}

.testimonial-v1__list-star {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.testimonial-v1__box {
  padding: 2rem;
}

.testimonial-v1__testimonial {
  font-size: calc(var(--font-body-scale) * 1.8rem);
  line-height: calc(1 + 0.5 / var(--font-body-scale));
  margin: 1.5rem 0;
  overflow: hidden;
}

.testimonial-v1__img {
  border-radius: 50%;
  overflow: hidden;
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  display: block;
}

.testimonial-v1__name {
  text-transform: uppercase;
  font-weight: 500;
  font-size: calc(var(--font-body-scale) * 1.4rem);
  color: rgba(var(--color-foreground));
  letter-spacing: 0.2rem;
  padding-top: 2rem;
}

.testimonial-v1__position {
  font-size: calc(var(--font-body-scale) * 1.4rem);
  color: rgba(var(--color-foreground), 0.5);
  font-weight: 500;
}