/* Full-bleed container — extends from viewport edge to viewport edge
   regardless of parent container width. See gallery-slider.css for the
   margin-inline + overflow-x:clip rationale. */
.testimonials-slider {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
}

.testimonials-slider__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  margin: 0;
  padding: 40px 32px;
  background: #f6f4ef;
  border-radius: 14px;
  box-sizing: border-box;
}

.testimonials-slider__quote {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  font-size: 1.7rem;
  quotes: "“" "”" "‘" "’";
}

.testimonials-slider__quote::before {
  content: open-quote;
}
.testimonials-slider__quote::after {
  content: close-quote;
}

.testimonials-slider__avatar {
  margin: 0 0 12px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.testimonials-slider__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonials-slider__author {
  font-style: italic;
}

/* Pagination — match gallery-slider visual treatment for consistency. */
.testimonials-slider .splide__pagination {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.testimonials-slider .splide__pagination li {
  display: inline-flex;
  margin: 0;
}

/* Pagination buttons use Bricks' secondary button classes
   (bricks-button bricks-background-secondary) — no custom colors,
   sizes or transforms. Inactive ones dim via opacity, active stays solid. */
.testimonials-slider .splide__pagination__page {
  opacity: 0.4;
  transform: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.testimonials-slider .splide__pagination__page:hover,
.testimonials-slider .splide__pagination__page.is-active {
  opacity: 1;
  transform: none;
}

.testimonials-slider blockquote {
  font-family: inherit;
}

@media (max-width: 1100px) {
  .testimonials-slider__card {
    padding: 36px 28px;
  }
}

@media (max-width: 768px) {
  .testimonials-slider__card {
    padding: 32px 24px;
  }
  .testimonials-slider .splide__pagination {
    margin-top: 20px;
  }
}
