/* Native horizontal scrolling also works without JavaScript. */
#testimonials .testimonial-carousel { position: relative; max-width: 1200px; margin: 0 auto; min-width: 0; }
#testimonials .section-header { margin-bottom: 28px; }
#testimonials .section-header > p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 12px; }
#testimonials .section-header .testimonials-google-rating { font-size: 13px; }
.testimonials-google-rating span { color: #E6B65C; letter-spacing: .1em; margin-right: 8px; }
.testimonials-google-rating strong { color: var(--text); font-weight: 600; }
#testimonials .testimonials-grid {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2); gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #3c6f7d transparent;
  padding: 4px 0 16px; align-items: stretch;
}
#testimonials .testimonial-card { min-width: 0; margin: 0; scroll-snap-align: start; box-shadow: none; padding: 26px; }
/* All text remains in the document; clamp only after enhancement is ready. */
#testimonials .testimonial-quote { margin: 0; min-height: 0; overflow-wrap: anywhere; }
#testimonials .testimonial-quote p { margin: 0; padding: 0; }
#testimonials .testimonial-quote p + p { margin-top: 16px; }
#testimonials .testimonial-quote p:first-child::before { content: '“'; }
#testimonials .testimonial-quote p:last-child::after { content: '”'; }
#testimonials .testimonial-card.is-collapsible:not(.is-expanded) .testimonial-quote {
  max-height: 8.25em; max-height: 5lh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
}
#testimonials .testimonial-expand { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#testimonials .testimonial-expand[hidden] { display: none; }
#testimonials .testimonial-expand:hover { color: #6fd6f0; }
#testimonials .testimonial-meta { flex-wrap: wrap; gap: 8px 16px; padding-top: 20px; }
#testimonials .testimonial-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#testimonials .testimonial-name { font-size: 14px; }
#testimonials .testimonial-verified { font-size: 12px; }
#testimonials .testimonial-stars { color: #E6B65C; font-size: 12px; letter-spacing: .08em; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.testimonial-controls[hidden] { display: flex; visibility: hidden; min-height: 44px; }
.testimonial-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(111,214,240,.3); border-radius: 50%; color: #e9f2f6; background: #101e29; font: inherit; font-size: 20px; cursor: pointer; }
.testimonial-arrow:hover { border-color: #6fd6f0; background: #17303c; }
.testimonial-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.testimonial-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.testimonial-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.testimonial-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #617986; }
.testimonial-dot[aria-current="true"]::before { width: 18px; border-radius: 5px; background: #6fd6f0; }
#testimonials .testimonials-google-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; min-height: 44px; margin: 18px auto 0; color: var(--accent); font-size: 14px; text-decoration: none; }
#testimonials .testimonials-google-link:hover { text-decoration: underline; text-underline-offset: 4px; }
#testimonials :is(button:not(.testimonial-arrow), a, #testimonial-track):focus-visible { outline: 2px solid #6fd6f0; outline-offset: 3px; }
/* Circular borders form the focus ring without changing button geometry. */
#testimonials .testimonial-arrow { position: relative; appearance: none; border-radius: 50%; outline: none; }
#testimonials .testimonial-arrow:focus-visible { outline: none; }
#testimonials .testimonial-arrow:focus-visible::after { content: ''; position: absolute; inset: -6px; border: 2px solid #6fd6f0; border-radius: 50%; pointer-events: none; }
#testimonials .testimonial-arrow[aria-disabled="true"]:focus-visible { opacity: 1; color: #718a99; }
@media (max-width: 768px) {
  #testimonials .testimonials-grid { grid-auto-columns: 100%; gap: 20px; }
  #testimonials .testimonial-card { width: 100%; padding: 22px; }
  #testimonials .testimonial-controls { gap: 12px; }
  #testimonials .testimonial-arrow { flex-shrink: 0; }
  #testimonials .testimonial-pagination { flex-wrap: nowrap; flex-shrink: 0; }
  #testimonials .testimonial-dot { min-width: 32px; flex-shrink: 0; }
  #testimonials .section-header .testimonials-google-rating { max-width: 28ch; margin: 12px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  #testimonials .testimonials-grid { scroll-behavior: auto; }
  #testimonials *, #testimonials *::before, #testimonials *::after { transition: none !important; animation: none !important; }
}
