.tn-testimonial-slider {
  --tn-testimonial-gap: 22px;
  background: #fff;
  color: #0f172a;
  overflow: hidden;
  padding: clamp(44px, 7vw, 86px) 0;
  position: relative;
}

.tn-testimonial-slider *,
.tn-testimonial-slider *::before,
.tn-testimonial-slider *::after {
  box-sizing: border-box;
}

.tn-testimonial-slider__header {
  margin: 0 auto clamp(26px, 4vw, 42px);
  max-width: 820px;
  padding: 0 18px;
  text-align: center;
}

.tn-testimonial-slider__eyebrow {
  color: #00a0cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.tn-testimonial-slider__heading {
  color: #07142f;
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
}

.tn-testimonial-slider__viewport {
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 0 18px;
}

.tn-testimonial-slider__track {
  display: flex;
  gap: var(--tn-testimonial-gap);
  transform: translate3d(0, 0, 0);
  transition: transform 520ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.tn-testimonial-card {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
  display: flex;
  flex: 0 0 calc((100% - (2 * var(--tn-testimonial-gap))) / 3);
  flex-direction: column;
  min-height: 286px;
  padding: 26px;
}

.tn-testimonial-card blockquote {
  color: #243148;
  flex: 1;
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
}

.tn-testimonial-card blockquote em {
  font-style: italic;
}

.tn-testimonial-card footer {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.tn-testimonial-card img,
.tn-testimonial-card__avatar {
  border-radius: 999px;
  height: 54px;
  width: 54px;
}

.tn-testimonial-card img {
  object-fit: cover;
}

.tn-testimonial-card__avatar {
  align-items: center;
  background: #e8f8fc;
  color: #008cb3;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.tn-testimonial-card strong,
.tn-testimonial-card em {
  display: block;
}

.tn-testimonial-card strong {
  color: #07142f;
  font-size: 15px;
  line-height: 1.25;
}

.tn-testimonial-card em {
  color: #65758b;
  font-size: 13px;
  font-style: normal;
  margin-top: 2px;
}

.tn-testimonial-slider__controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.tn-testimonial-slider__controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 999px;
  color: #07142f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.tn-testimonial-slider__controls button:hover,
.tn-testimonial-slider__controls button:focus-visible {
  background: #00a0cc;
  border-color: #00a0cc;
  color: #fff;
}

.tn-testimonial-slider-empty {
  background: #f6f9fc;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  color: #65758b;
  padding: 18px;
  text-align: center;
}

@media (max-width: 920px) {
  .tn-testimonial-card {
    flex-basis: calc((100% - var(--tn-testimonial-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .tn-testimonial-slider {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tn-testimonial-slider__viewport,
  .tn-testimonial-slider__header {
    padding-left: 0;
    padding-right: 0;
  }

  .tn-testimonial-card {
    flex-basis: 100%;
    min-height: 260px;
    padding: 22px;
  }
}
