.testimonials-section {
  position: relative;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 70%, rgb(241 248 241 / 60%), transparent 48%),
    #fff;
}

.testimonials-heading {
  margin-bottom: 0.8rem;
}

.testimonials-heading h2 {
  margin: 0;
  color: #173747;
  font-size: clamp(1.8rem, 3.6vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.testimonials-heading-underline {
  width: min(17rem, 58vw);
  height: 0.75rem;
  margin-top: 0.45rem;
  border-top: 2px solid #389c70;
  border-radius: 50%;
  transform: rotate(-1.6deg);
}

.testimonial-invitation {
  position: relative;
  display: flex;
  width: min(100%, 48rem);
  min-height: 25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  text-align: center;
}

.testimonial-emblem {
  display: grid;
  width: clamp(6.5rem, 13vw, 8.5rem);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #f3f8f2;
  box-shadow: 0 0.4rem 1.5rem rgb(26 72 51 / 13%);
}

.testimonial-emblem img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.testimonial-kicker {
  margin: 1.1rem 0 0.25rem;
  color: #389c70;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.testimonial-carousel {
  position: relative;
  width: min(100%, 39rem);
  margin: 0.25rem 0 0.5rem;
}

.testimonial-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  place-items: center;
  border: 1px solid rgb(23 55 71 / 12%);
  border-radius: 50%;
  background: #fff;
  color: #173747;
  box-shadow: 0 0.35rem 1rem rgb(23 55 71 / 10%);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: #389c70;
  background: #f6fbf8;
  color: #27885d;
  box-shadow: 0 0.45rem 1.15rem rgb(23 55 71 / 14%);
  transform: translateY(-50%) scale(1.05);
}

.testimonial-arrow:focus-visible {
  outline: 3px solid rgb(49 150 108 / 45%);
  outline-offset: 3px;
}

.testimonial-arrow--prev {
  left: -4.25rem;
}

.testimonial-arrow--next {
  right: -4.25rem;
}

.testimonial-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonial-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track:focus-visible,
.testimonial-dot:focus-visible {
  outline: 3px solid rgb(49 150 108 / 45%);
  outline-offset: 3px;
}

.testimonial-slide {
  min-width: 0;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.testimonial-stars {
  margin: 0.25rem 0 0;
  color: #c39b3d;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.testimonial-message {
  max-width: 39rem;
  margin: 0.45rem auto 0;
  color: #414945;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.65;
}

.testimonial-attribution {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.7rem;
  color: #173747;
  font-size: 0.86rem;
}

.testimonial-attribution span {
  color: #7d8580;
  font-size: 0.76rem;
}

.testimonial-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.testimonial-controls[hidden] {
  display: none;
}

.testimonial-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.testimonial-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.testimonial-dot {
  width: 0.52rem;
  height: 0.52rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c6d3ca;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.testimonial-dot:hover,
.testimonial-dot[aria-current="true"] {
  background: #359d70;
}

.testimonial-dot[aria-current="true"] {
  transform: scale(1.3);
}

.testimonial-decoration {
  position: absolute;
  display: block;
  width: 0.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #359d70;
}

.testimonial-decoration--top {
  top: 21%;
  left: 15%;
  width: 1.45rem;
}

.testimonial-decoration--left {
  top: 68%;
  left: 7%;
  width: 0.65rem;
}

.testimonial-decoration--right {
  top: 29%;
  right: 12%;
  width: 1.1rem;
}

.testimonial-decoration--bottom {
  right: 9%;
  bottom: 14%;
  width: 0.55rem;
}

@media (max-width: 600px) {
  .testimonials-section {
    padding-block: 1.25rem 1.5rem;
  }

  .testimonial-invitation {
    min-height: 23rem;
    padding-inline: 0.6rem;
  }

  .testimonial-arrow {
    top: calc(100% + 0.3rem);
    width: 2rem;
    height: 2rem;
    padding: 0.36rem;
    transform: none;
  }

  .testimonial-arrow--prev {
    left: 27%;
  }

  .testimonial-arrow--next {
    right: 27%;
  }

  .testimonial-arrow:hover,
  .testimonial-arrow:focus-visible {
    transform: scale(1.05);
  }

  .testimonial-decoration--top {
    top: 16%;
    left: 4%;
  }

  .testimonial-decoration--left {
    left: 1%;
  }

  .testimonial-decoration--right {
    right: 3%;
  }

  .testimonial-decoration--bottom {
    right: 2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    scroll-behavior: auto;
  }

  .testimonial-dot {
    transition: none;
  }
}
