/* ============================================================
   Testimonials Section
   Figma node: 29:95 | Canvas: 1440px
   Full-width scroll-snap slider at ALL screen sizes
   ============================================================ */

.bs-testimonials {
  background: #ffffff;
  padding: clamp(60px, 6.94vw, 100px) 0;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 3.89vw, 56px);
}

/* ── Header: headline + subheading ── */
.bs-testimonials__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.56vw, 8px);
  text-align: center;
  width: 100%;
  padding: 0 clamp(24px, 6.67vw, 96px);
  box-sizing: border-box;
}

.bs-testimonials__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.75vw, 54px);
  line-height: 1.3;
  color: #21254a;
  margin: 0;
}

.bs-testimonials__subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.22vw, 32px);
  line-height: 1.3;
  color: #21254a;
  margin: 0;
}

/* ── Slider track — full viewport width, centered scroll snap ── */
.bs-testimonials__cards {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: clamp(16px, 2.22vw, 32px);
  width: 100%;
  position: relative;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Padding = (viewport - cardWidth) / 2 so first/last card can center */
  padding-left: calc((100vw - clamp(300px, 42vw, 560px)) / 2);
  padding-right: calc((100vw - clamp(300px, 42vw, 560px)) / 2);
  box-sizing: content-box;
}

.bs-testimonials__cards::-webkit-scrollbar {
  display: none;
}

/* ── Individual card — snaps to center of viewport ── */
.bs-testimonials__card {
  flex: 0 0 clamp(300px, 42vw, 560px);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(16px, 2.22vw, 32px);
  padding: clamp(20px, 2.22vw, 32px);
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: clamp(8px, 1.11vw, 16px);
  box-sizing: border-box;
  scroll-snap-align: center;
}

/* Featured card — thick green border */
.bs-testimonials__card--featured {
  border: 8px solid #b0f288;
}

/* ── Avatar ── */
.bs-testimonials__avatar-wrap {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
}

.bs-testimonials__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bs-testimonials__avatar[src=""],
.bs-testimonials__avatar:not([src]) {
  display: none;
}

/* ── Content column ── */
.bs-testimonials__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Name row ── */
.bs-testimonials__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bs-testimonials__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.67vw, 24px);
  line-height: 1.3;
  color: #21254a;
}

.bs-testimonials__handle,
.bs-testimonials__sep,
.bs-testimonials__date {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.53vw, 22px);
  line-height: 1.3;
  color: #666666;
}

/* ── Tweet body ── */
.bs-testimonials__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: #21254a;
}

.bs-testimonials__body p {
  margin: 0 0 6px 0;
}

.bs-testimonials__body p:last-child {
  margin-bottom: 0;
}

/* ── Pagination dots — always visible ── */
.bs-testimonials__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bs-testimonials__dot-item {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(33, 37, 74, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.bs-testimonials__dot-item--active {
  background: #21254a;
}

/* ── Mobile: ≤ 599px ── */
@media (max-width: 599px) {
  .bs-testimonials {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 28px;
  }

  .bs-testimonials__cards {
    padding-left: calc((100vw - 85vw) / 2);
    padding-right: calc((100vw - 85vw) / 2);
    gap: 16px;
  }

  .bs-testimonials__card {
    flex: 0 0 85vw;
  }

  .bs-testimonials__avatar-wrap {
    width: 52px;
    height: 52px;
  }
}
