/* Testimonial carousel */
.testimonials {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbf7 0%, var(--mint) 100%);
  padding: 78px 0 72px;
}

.testimonials::before,
.testimonials::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(13, 46, 99, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.testimonials::before {
  width: 380px;
  height: 380px;
  top: -245px;
  left: -125px;
}

.testimonials::after {
  width: 300px;
  height: 300px;
  right: -150px;
  bottom: -190px;
}

.testimonial-shell {
  position: relative;
  z-index: 1;
  padding: 52px 44px 38px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(13, 46, 99, 0.07);
}

.testimonial-heading {
  display: block;
  margin-bottom: 34px;
  text-align: left;
}

.testimonial-viewport {
  overflow: hidden;
  margin: 0 -14px;
  padding: 14px;
}

.testimonial-track {
  display: flex;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  min-height: 292px;
  margin-right: 24px;
  padding: 34px 27px 28px;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(13, 46, 99, 0.06);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 13px 25px rgba(13, 46, 99, 0.1);
  text-align: center;
}

.testimonial-card:last-child {
  margin-right: 0;
}

.testimonial-quote {
  display: block;
  margin-bottom: 13px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 0.7;
}

.testimonial-copy {
  max-width: 285px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--navy);
  text-align: left;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.testimonial-person strong,
.testimonial-person small {
  display: block;
  line-height: 1.25;
}

.testimonial-person strong {
  font-size: 13px;
}

.testimonial-person small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.testimonial-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13, 46, 99, 0.16);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: 180ms ease;
}

.testimonial-arrow:hover,
.testimonial-arrow:focus-visible {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  outline: none;
}

.testimonial-dots {
  display: flex;
  gap: 7px;
}

.testimonial-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 46, 99, 0.22);
  cursor: pointer;
  transition: 180ms ease;
}

.testimonial-dot.is-active {
  width: 23px;
  border-radius: 10px;
  background: var(--green);
}

@media (max-width: 900px) {
  .testimonial-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 600px) {
  .testimonials {
    padding: 60px 0;
  }

  .testimonial-shell {
    padding: 38px 18px 29px;
    border-radius: 22px;
  }

  .testimonial-heading {
    margin-bottom: 23px;
  }

  .testimonial-card {
    flex-basis: 100%;
    min-height: 270px;
    margin-right: 18px;
    padding: 31px 22px 25px;
  }

  .testimonial-viewport {
    margin: 0 -7px;
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    transition: none;
  }
}
