/**
 * Side by Side Testimonials Block Styles
 * Layout only — typography/colors come from canonical classes/tokens.
 */

.sidebysidetestimonials {
  background: #f9fafb;
  padding-top: var(--section-padding-top, 64px);
  padding-bottom: var(--section-padding-bottom, 64px);
}

/* Content column */
.sbst-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sbst-body p {
  margin: 0 0 var(--space-4);
}

.sbst-body p:last-child {
  margin-bottom: 0;
}

/* Benefits checklist */
.sbst-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sbst-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-foreground);
}

.sbst-list-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.sbst-check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-navy);
}

.sbst-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Testimonial card */
.sbst-testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  margin: 0;
  padding: var(--space-6);
  height: 100%;
  background: #eef2f8;
  border: 1px solid #e2e7ee;
  border-radius: var(--radius-md);
}

.sbst-quote-mark {
  display: block;
  flex-shrink: 0;
}

.sbst-quote {
  margin: 0 0 24px;
  color: var(--color-navy);
}

.sbst-cite {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}

.sbst-name {
  color: var(--color-navy);
}

.sbst-role {
  color: var(--color-navy);
}

/* ---- Side-by-side layout ---- */
.sidebysidetestimonials--sidebyside .sbst-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-20);
  align-items: center;
}

.sbst-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--space-5);
}

.sbst-cell {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 200px;
}

.sbst-cell--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbst-cell--quote {
  display: flex;
}

.sbst-cell--quote .sbst-testimonial {
  width: 100%;
}

/* ---- Vertical layout ---- */
.sidebysidetestimonials--vertical .sbst-grid {
  display: block;
}

.sidebysidetestimonials--vertical .sbst-content {
  text-align: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.sbst-testimonials-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

/* Responsive */
@media (max-width: 900px) {
  .sidebysidetestimonials--sidebyside .sbst-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  /* Flatten the content column so buttons can drop to the bottom of the module */
  .sidebysidetestimonials--sidebyside .sbst-content {
    display: contents;
  }

  .sidebysidetestimonials--sidebyside .sbst-grid {
    gap: var(--space-6);
  }

  /* Buttons go last (after the collage); everything else keeps source order */
  .sidebysidetestimonials--sidebyside .sbst-buttons {
    order: 1;
    margin-top: 0;
  }

  /* sidebyside collage — peek slider (~1.25 cards visible) */
  .sbst-collage {
    display: flex;
    grid-template-columns: none;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--space-4);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sbst-collage::-webkit-scrollbar {
    display: none;
  }

  .sbst-collage .sbst-cell {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-height: 300px;
  }

  /* vertical testimonials-row — full-width auto-scroll slider */
  .sbst-testimonials-row {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: var(--space-8);
  }

  .sbst-testimonials-row::-webkit-scrollbar {
    display: none;
  }

  .sbst-testimonials-row .sbst-cell {
    flex: 0 0 calc(100% / 1.5);
    scroll-snap-align: start;
    min-height: 320px;
    border-radius: 0;
  }
}
