.testimonial-block {
  position: relative;
  display: flex;
  width: 100%;
  padding: clamp(48px, 10vw, 112px) clamp(20px, 6vw, 120px);
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  background: var(--Light-Grey, #f3f4f6);
  box-sizing: border-box;
  color: var(--Main-Green, #395935);
  opacity: 0;
  transform: translateY(24px);
  animation: testimonial-fade 0.7s ease forwards;
}

.testimonial__inner {
  display: flex;
  max-width: var(--Container-container-large, 1280px);
  flex-direction: column;
  align-items: center;
  gap: 24px;
  align-self: stretch;
  margin: 0 auto;
  text-align: center;
}

.testimonial__stars {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  align-self: flex-start;
}

.testimonial__star {
  width: 20px;
  height: 18.889px;
  color: var(--Yellow-Yellow-500, #EAB308);
  fill: var(--Yellow-Yellow-500, #EAB308);
}

.testimonial__quote {
  margin: 0;
  color: var(--Main-Green, #395935);
  font-family: "Teachers", var(--wp--preset--font-family--inter, Inter, sans-serif);
  font-size: clamp(26px, 6vw, var(--Text-Sizes-Heading-5, 32px));
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.testimonial__quote > * {
  margin: 0;
}

.testimonial__attribution {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
  width: 100%;
}

.testimonial__person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.testimonial__avatar-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__person-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--Main-Green, #395935);
  font-family: Inter, system-ui, sans-serif;
  font-size: var(--Text-Sizes-Text-Regular, 18px);
  font-weight: 600;
  line-height: 150%;
}

.testimonial__name {
  margin: 0;
}

.testimonial__title {
  margin: 0;
  font-weight: 400;
  opacity: 0.8;
}

@media (max-width: 599px) {
  .testimonial-block {
    padding: 72px 32px;
  }

  .testimonial__inner {
    gap: 16px;
  }

  .testimonial__attribution {
    justify-content: flex-end;
  }

  .testimonial__person {
    width: 100%;
    justify-content: flex-end;
  }

  .testimonial__person-text {
    align-items: flex-end;
    text-align: right;
  }

  .testimonial__quote {
    font-size: 24px;
    line-height: 140%;
  }
}

@keyframes testimonial-fade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-block {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

html.has-scroll-animations .testimonial-block {
  animation-play-state: paused;
}

html.has-scroll-animations .testimonial-block.is-visible {
  animation-play-state: running;
}
