.home-testimonials {
  min-width: 0;
  overflow: hidden;
  padding: 24px 0 28px;
  border: 1px solid #d7e8fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #e9f4ff 100%);
}

.home-testimonials-heading {
  padding: 0 26px 20px;
}

.home-testimonials-heading h2 {
  display: block;
  width: fit-content;
  margin: 0;
  color: var(--poa-module-title-color);
  font-family: var(--poa-font-sans);
  font-size: var(--poa-module-title-size);
  font-weight: var(--poa-module-title-weight);
  line-height: var(--poa-module-title-leading);
  letter-spacing: var(--poa-module-title-tracking);
}

.home-testimonials-heading p {
  margin: 9px 0 0;
  color: var(--poa-module-copy-color);
  font-size: var(--poa-module-copy-size);
  line-height: var(--poa-module-copy-leading);
}

.home-testimonials-viewport {
  margin-inline: clamp(16px, 4vw, 64px);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  overscroll-behavior-x: none;
}

.home-testimonials-track {
  display: flex;
  width: max-content;
  pointer-events: none;
}

.home-testimonials-track.is-ready {
  animation: home-testimonials-scroll 43s linear infinite;
}

.home-testimonials-set {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-right: 16px;
}

.home-testimonial-card {
  position: relative;
  display: flex;
  flex: 0 0 clamp(280px, 27vw, 360px);
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: clamp(280px, 27vw, 360px);
  height: 250px;
  padding: 22px;
  border: 1px solid #dce9fa;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(56, 100, 151, .06);
}

.home-testimonial-card blockquote {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 14px 0 0 30px;
  color: #27394c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.home-testimonial-card blockquote::before {
  position: absolute;
  top: -18px;
  left: -4px;
  content: '“';
  color: #c8e2ff;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
}

.home-testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid #e5edf6;
}

.home-testimonial-avatar {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.home-testimonial-avatar.tone-orange { background: #b36c24; }
.home-testimonial-avatar.tone-blue { background: #4679ad; }
.home-testimonial-avatar.tone-green { background: #4b8067; }
.home-testimonial-avatar.tone-purple { background: #7567a7; }
.home-testimonial-avatar.tone-teal { background: #397f92; }
.home-testimonial-avatar.tone-rose { background: #a55e72; }

.home-testimonial-card footer > div {
  min-width: 0;
  flex: 1 1 auto;
}

.home-testimonial-card footer strong,
.home-testimonial-card footer div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-testimonial-card footer strong {
  color: #192c41;
  font-size: var(--poa-card-title-size);
  font-weight: var(--poa-card-title-weight);
}

.home-testimonial-card footer div > span {
  margin-top: 3px;
  color: var(--poa-card-copy-color);
  font-size: var(--poa-card-copy-size);
}

.home-testimonial-stars {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 3px;
}

.home-testimonial-stars::before {
  content: '★★★★★';
  color: #f5ae1a;
  font-size: 15px;
  letter-spacing: 1px;
}

@keyframes home-testimonials-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .home-testimonials { padding: 20px 0 22px; }
  .home-testimonials-heading { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-testimonials-track,
  .home-testimonials-track.is-ready { display: block; width: auto; animation: none; }
  .home-testimonials-set:first-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0 16px; }
  .home-testimonials-set[aria-hidden] { display: none; }
  .home-testimonial-card { width: auto; height: auto; min-height: 250px; }
}
