/* =====================================================================
   Testimonial slider — standalone (uses :root tokens from style.css).
   No external libraries. No CSS gradients (tiled SVG dot pattern only).
   ===================================================================== */

.testimonials {
  background-color:var(--color-surface-alt)
  /* subtle dot pattern (SVG image, not a gradient) */
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23e3d8ee'/%3E%3C/svg%3E"); */
  /* background-position: center; */
}
.testimonials__title {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

/* ---- Slider shell ---- */
.tslider { position: relative; padding-left: 30px; padding-right: 30px;}
.tslider.tslider--static{padding: 0px;}

/* When every slide already fits the view, hide the controls entirely */
.tslider--static .tslider__arrow,
.tslider--static .tslider__dots { display: none; }
.tslider--static .tslider__track { transform: none; }
.tslider__stage { position: relative; }

.tslider__viewport { overflow: hidden; }

.tslider__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;            /* equal height across all slides */
  margin: 0 -12px;
  padding: 6px 0;
  list-style: none;
  transform: translateX(calc(-1 * var(--i, 0) * (100% / var(--per, 3))));
  transition: transform .45s var(--ease, ease);
}

.tslider__slide {
  flex: 0 0 calc(100% / var(--per, 3));
  max-width: calc(100% / var(--per, 3));
  padding: 0 12px;
  display: flex;                   /* lets the card fill the slide height */
}

/* ---- Card ---- */
.tcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius, 3px);
  padding: 15px 15px;
}
.tcard__quote { color: var(--color-heading);display: inline-block; vertical-align: middle; margin-right: 8px;margin-bottom: 5px;}
.tcard__quote svg { display: block;width: 20px; }
.tcard__title {
  margin: 0 0 0px;
  font-size: 1.1rem;
  color: var(--color-heading);
}
.tcard__desc {
  margin: 0;
  color: var(--color-text);
  font-size: .95rem;
  line-height: 1.2;
}
.tcard__stars {
  display: flex;
  gap: 4px;
  margin-top: 18px;                /* pinned to bottom -> equal-height cards */
  padding-top: 16px;
}
.tcard__stars { margin-top: auto; }
.tcard__stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-hover);   /* yellow stars */
}

/* ---- Arrows (vertically centered to the cards) ---- */
.tslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width:35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--color-white, #fff);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tslider__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.tslider__arrow--prev { left: -40px; }
.tslider__arrow--next { right: -40px; }

/* ---- Dots ---- */
.tslider__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.tslider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-heading);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.tslider__dot:hover { background: var(--color-primary-hover); }
.tslider__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.25);
}

/* ---- Responsive (slider keeps working; arrows tuck in) ---- */
@media (max-width: 991px) {
  .tslider__arrow--prev { left: -35px; }
  .tslider__arrow--next { right: -35px; }
}
@media (max-width: 767px) {
  .tslider__arrow { width: 30px; height: 30px; }
}
