/* ============================================================
   TESTIMONIALS — Video slider (doctor cards)
   Photo + real quote sell the click; name below; CTA below.
   ============================================================ */

.testimonials {
  padding: 80px 0;
  background: #fff;
}

/* ---------- Header ---------- */
.testimonials__header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.testimonials__subtitle {
  margin: 0;
  font-size: 16px;
  color: #64748b;
}

/* ---------- Slider shell ---------- */
.testimonials__slider {
  position: relative;
  display: flex;
  align-items: center;
}

.testimonials__track {
  --slide-w: 86%;
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px calc((100% - var(--slide-w)) / 2) 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .testimonials__track {
    --slide-w: 360px;
  }
}

@media (min-width: 1024px) {
  .testimonials__track {
    --slide-w: 380px;
  }
}

.testimonials__slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: center;
}

/* ---------- Card ---------- */
.testimonials__card {
  display: flex;
  flex-direction: column;
}

.testimonials__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #0f172a;
}

.testimonials__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.testimonials__media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #1e2a5e 0%, #2f57ef 55%, #7c4fe0 100%);
}

.testimonials__media-placeholder span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}

.testimonials__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.94) 88%);
}

.testimonials__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.testimonials__close svg {
  width: 15px;
  height: 15px;
}

/* ---------- Quote block (inside photo) ---------- */
.testimonials__quote-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 20px;
}

.testimonials__quote-mark {
  display: block;
  color: #2f57ef;
  margin-bottom: 4px;
}
.testimonials__quote-mark svg {
  width: 30px;
  height: 30px;
}

.testimonials__quote-text {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.testimonials__quote-highlight {
  box-shadow: inset 0 -0.28em 0 rgba(47, 87, 239, 0.65);
}

.testimonials__divider {
  display: block;
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 12px 0 8px;
}

.testimonials__name {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Watch CTA (below the photo) ---------- */
.testimonials__watch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.testimonials__watch-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #2f57ef;
  color: #2f57ef;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.testimonials__watch-icon svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.testimonials__watch:hover .testimonials__watch-icon {
  background: #2f57ef;
  color: #fff;
}

/* ---------- Arrows ---------- */
.testimonials__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transition: all 0.2s ease;
  z-index: 2;
  margin: 0 -8px;
}

.testimonials__arrow svg {
  width: 18px;
  height: 18px;
}

.testimonials__arrow:hover {
  color: #2f57ef;
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .testimonials__arrow {
    display: none;
  }
}

/* ---------- Dots ---------- */
.testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials__dot:hover {
  background: #94a3b8;
}

.testimonials__dot--active {
  width: 20px;
  border-radius: 100px;
  background: #2f57ef;
}

.testimonials__dot:focus-visible,
.testimonials__watch:focus-visible,
.testimonials__arrow:focus-visible {
  outline: 2px solid #2f57ef;
  outline-offset: 2px;
}

/* ---------- Bottom banner ---------- */
.testimonials__banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #f2f0ff;
}

.testimonials__banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2f57ef, #b966e7);
}
.testimonials__banner-icon svg {
  width: 20px;
  height: 20px;
}

.testimonials__banner-body strong {
  display: block;
  color: #1e1b4b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.testimonials__banner-body p {
  margin: 2px 0 0;
  color: #6b6a8f;
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .testimonials__banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Section rhythm ---------- */
@media (min-width: 768px) {
  .testimonials {
    padding: 100px 0;
  }
  .testimonials__header {
    margin-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .testimonials {
    padding: 120px 0;
  }
}
