.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding: 12px 0 24px;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  height: 328px;
  padding: 24px;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 24px 40px;
  row-gap: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}

.testimonial-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.testimonial-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #f1f5f9; color: #64748b; }
.testimonial-avatar svg { width: 26px; height: 26px; }
.testimonial-author { min-width: 0; }
.testimonial-name { margin: 0; font: 700 14px/1.45 'Plus Jakarta Sans', sans-serif; color: #0f172a; overflow-wrap: anywhere; }
.testimonial-author .testimonial-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial-stars { color: #a96308; font-size: 17px; letter-spacing: 2px; line-height: 1.5; }
.testimonial-quote { margin: 0; color: #475569; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.testimonial-quote p { margin: 0; }
.testimonial-quote p + p { margin-top: 12px; }
.testimonial-read-more { justify-self: start; align-self: center; padding: 0; border: 0; background: transparent; color: #b91c1c; font-size: 13px; font-weight: 600; cursor: pointer; }
.testimonial-read-more[hidden] { display: block; visibility: hidden; }
.testimonial-read-more:hover { text-decoration: underline; }
.testimonial-footer { display: flex; align-items: end; border-top: 1px solid #e2e8f0; }
.testimonial-footer a, .testimonial-dialog-source { color: #475569; font-size: 12px; text-underline-offset: 3px; }
.testimonial-footer a:hover, .testimonial-dialog-source:hover { color: #b91c1c; text-decoration: underline; }
.testimonial-dialog { width: min(560px, calc(100% - 32px)); max-height: 85dvh; margin: auto; padding: 28px; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; color: #0f172a; overflow-y: auto; box-shadow: 0 24px 80px -20px #0f172a66; }
.testimonial-dialog::backdrop { background: #0f172a99; }
.testimonial-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.testimonial-dialog-close { flex-shrink: 0; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; font-size: 13px; }
.testimonial-dialog-text { margin: 24px 0; font-size: 15px; line-height: 1.7; color: #475569; overflow-wrap: anywhere; }
.testimonial-dialog-text p + p { margin-top: 16px; }
.testimonial-dialog button:focus-visible, .testimonial-dialog a:focus-visible, .testimonial-footer a:focus-visible { outline: 2px solid #b91c1c; outline-offset: 4px; }

#testimonials button:focus-visible,
.testimonials-track:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .testimonial-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (min-width: 1024px) {
  .testimonial-card { flex-basis: calc((100% - 48px) / 3); }
}
