/* Testimonials slider */

.bsp-testimonials {
  background: var(--bsp-ts-bg, #fdf2f6);
  padding: 56px 20px 64px;
}

.bsp-testimonials__container {
  max-width: 1320px;
  margin: 0 auto;
}

.bsp-testimonials__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.bsp-testimonials__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--bsp-ts-accent, #f06292);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bsp-testimonials__kicker-heart {
  display: inline-flex;
  color: var(--bsp-ts-accent, #f06292);
}

.bsp-testimonials__title {
  margin: 0 0 12px;
  color: var(--bsp-ts-title, #111827);
  font-family: var(--bsp-font-heading);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
}

.bsp-testimonials__subtitle {
  margin: 0;
  color: var(--bsp-ts-text, #6b7280);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.bsp-testimonials__slider {
  position: relative;
}

.bsp-testimonials__slider:not(.is-slider) .bsp-testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bsp-testimonials__slider:not(.is-slider) .bsp-testimonials__card {
  flex: none;
  width: auto;
}

.bsp-testimonials__slider.is-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.bsp-testimonials__viewport {
  overflow: hidden;
}

.bsp-testimonials__track {
  display: flex;
  gap: 18px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.bsp-testimonials__card {
  flex: 0 0 var(--bsp-ts-card-width, 100%);
  margin: 0;
  background: var(--bsp-ts-card-bg, #fff);
  border-radius: 16px;
  box-shadow: 0 10px 28px var(--bsp-ts-card-shadow, rgba(17, 24, 39, 0.08));
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.bsp-testimonials__quote-icon {
  display: block;
  color: var(--bsp-ts-quote, #f06292);
  font-size: 48px;
  line-height: 1;
  font-family: var(--bsp-font-heading);
  margin-bottom: 8px;
}

.bsp-testimonials__quote {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--bsp-ts-title, #111827);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

.bsp-testimonials__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.bsp-testimonials__star {
  color: #e5e7eb;
  line-height: 0;
}

.bsp-testimonials__star.is-filled {
  color: var(--bsp-ts-accent, #f06292);
}

.bsp-testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.bsp-testimonials__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bsp-testimonials__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fce4ec;
  color: var(--bsp-ts-accent, #f06292);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.bsp-testimonials__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--bsp-ts-title, #111827);
  font-size: 15px;
  font-weight: 700;
}

.bsp-testimonials__verified {
  display: inline-flex;
  color: var(--bsp-ts-accent, #f06292);
  line-height: 0;
}

.bsp-testimonials__location {
  margin: 2px 0 0;
  color: var(--bsp-ts-text, #6b7280);
  font-size: 13px;
}

.bsp-testimonials__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--bsp-ts-accent, #f06292);
  background: #fff;
  color: var(--bsp-ts-accent, #f06292);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-testimonials__arrow:hover:not(:disabled) {
  background: var(--bsp-ts-accent, #f06292);
  color: #fff;
}

.bsp-testimonials__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bsp-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.bsp-testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(240, 98, 146, 0.25);
  cursor: pointer;
}

.bsp-testimonials__dot.is-active {
  background: var(--bsp-ts-accent, #f06292);
}

.bsp-testimonials__empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: var(--bsp-ts-text, #6b7280);
  border: 1px dashed var(--bsp-ts-accent, #f06292);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1199px) {
  .bsp-testimonials__slider:not(.is-slider) .bsp-testimonials__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bsp-testimonials__slider.is-slider {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bsp-testimonials__arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .bsp-testimonials {
    padding: 44px 16px 52px;
  }

  .bsp-testimonials__slider:not(.is-slider) .bsp-testimonials__track {
    grid-template-columns: 1fr;
  }

  .bsp-testimonials__card {
    min-height: 260px;
    padding: 22px 18px 18px;
  }
}
