.testimonials {
  position: relative;
  background: #08070D;
  overflow: hidden;
}

.testimonials__inner {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7.8vw, 120px) clamp(24px, 10.4vw, 200px) clamp(48px, 7.8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.2vw, 80px);
}

/* ── Header ── */
.testimonials__header {
  display: flex;
  align-items: flex-start;
}

.testimonials__headline {
  font-weight: 600;
  font-size: var(--type-h2-size);
  line-height: 1.05;
  color: #FFFEFD;
  margin: 0;
  text-transform: uppercase;
  max-width: 800px;
}

.testimonials__headline-hl { color: var(--color-ultrasonic-500); }

/* ── Arrow buttons (shared) ── */
.testimonials__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-stroke);
  background: #08070D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.testimonials__arrow:hover { border-color: #04DDCF; }
.testimonials__arrow--prev img { transform: rotate(180deg); }

/* ── Bottom navigation ── */
.testimonials__bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Dot indicators ── */
.testimonials__indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonials__dot {
  display: block;
  width: 9.59px;
  height: 9.59px;
  background: #04DDCF;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.testimonials__tick {
  display: block;
  width: 1.935px;
  height: 9.59px;
  background: #59516D;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Viewport: overflow visible so next card peeks ── */
.testimonials__viewport {
  overflow: visible;
  width: 100%;
}

/* ── Track ── */
.testimonials__track {
  will-change: transform;
  /* smooth ease-in-out glide on slide change (Swiper sets only the duration) */
  transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Card ── */
.testimonials__card {
  position: relative;
  flex: 0 0 auto;
  background: #08070D;
  border: 1px solid var(--color-stroke);
  display: flex;
  gap: 47px;
  padding: 32px;
  align-items: center;
  min-height: clamp(400px, 40vw, 570px);
}

/* ── Photo panel ── */
.testimonials__photo-panel {
  flex-shrink: 0;
  width: clamp(180px, 30vw, 422px);
  background: #14101F;
  border: 1px solid var(--color-stroke);
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.testimonials__photo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.testimonials__photo-lines svg {
  display: block;
  width: 100%;
  height: 100%;
}

.testimonials__photo-inner {
  position: absolute;
  inset: 12.5%;
}

.testimonials__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 2.4px;
  display: block;
}

.testimonials__photo-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-stroke);
  border-radius: 2.4px;
  opacity: 0.5;
  pointer-events: none;
}

.testimonials__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 1px solid #FDFDFD;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.testimonials__play:hover { background: rgba(255,255,255,0.1); }

.testimonials__photo-dot {
  position: absolute;
  width: 9.59px;
  height: 9.59px;
  background: #7239BF;
  display: block;
  pointer-events: none;
  z-index: 2;
}
.testimonials__photo-dot--tl { top: -4.8px;  left: -4.8px; }
.testimonials__photo-dot--tr { top: -4.8px;  right: -4.8px; }
.testimonials__photo-dot--bl { bottom: -4.8px; left: -4.8px; }
.testimonials__photo-dot--br { bottom: -4.8px; right: -4.8px; }

/* ── Content ── */
.testimonials__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  align-self: stretch;
}

.testimonials__quote {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(15px, 1.46vw, 28px);
  line-height: 1.2;
  color: #EAE9ED;
  margin: 0;
  font-style: normal;
  overflow-wrap: break-word;
}

.testimonials__author-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.testimonials__author {
  display: flex;
  flex-direction: column;
  gap: 9.59px;
  min-width: 0;
}

.testimonials__author-name {
  font-weight: 400;
  font-size: clamp(20px, 1.875vw, 36px);
  line-height: 1;
  color: #FDFDFD;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.testimonials__author-role {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(14px, 1.04vw, 20px);
  line-height: 1.5;
  color: #EAE9ED;
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.testimonials__sponsor-logo {
  height: 80px;
  width: 192px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.testimonials__sponsor-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
}

/* ── Override Swiper defaults ── */
#testimonialsSwiper {
  overflow: visible;
}

#testimonialsSwiper .swiper-slide {
  height: auto;
}

/* ── Desktop: show two cards per view (spaceBetween is 48px → 50% - 24px) ──
   Card is now half-width, so internals are retuned down. The vw units scale
   with viewport and the clamp() minimums keep it compact on small desktops. */
@media (min-width: 992px) {
  #testimonialsSwiper .swiper-slide {
    width: calc(50% - 24px);
  }

  /* Box: tighter gap, padding and height */
  .testimonials__card {
    gap: clamp(20px, 2vw, 36px);
    padding: clamp(20px, 1.6vw, 28px);
    min-height: clamp(320px, 24vw, 460px);
  }

  /* Image: photo panel no longer 30vw of the full viewport */
  .testimonials__photo-panel {
    width: clamp(140px, 15vw, 240px);
  }

  .testimonials__content {
    gap: clamp(20px, 1.6vw, 28px);
  }

  /* Quote font size */
  .testimonials__quote {
    font-size: clamp(14px, 1.05vw, 20px);
  }

  /* Author / title name size */
  .testimonials__author-name {
    font-size: clamp(18px, 1.25vw, 26px);
  }

  .testimonials__author-role {
    font-size: clamp(12px, 0.8vw, 16px);
  }

  /* Sponsor logo box */
  .testimonials__sponsor-logo {
    height: 56px;
    width: 140px;
  }
  .testimonials__sponsor-logo img {
    max-height: 44px;
  }
}

/* Mid desktop: keep two testimonial cards readable with longer 2026 copy. */
@media (min-width: 1200px) and (max-width: 1650px) {
  .testimonials__inner {
    padding-left: clamp(72px, 7vw, 112px);
    padding-right: clamp(72px, 7vw, 112px);
  }

  .testimonials__card {
    gap: clamp(18px, 1.55vw, 24px);
    padding: clamp(18px, 1.45vw, 24px);
    min-height: clamp(300px, 24vw, 380px);
  }

  .testimonials__photo-panel {
    width: clamp(128px, 13vw, 190px);
  }

  .testimonials__content {
    gap: clamp(16px, 1.3vw, 22px);
  }

  .testimonials__quote {
    font-size: clamp(13px, 0.82vw, 14px);
    line-height: 1.18;
  }

  .testimonials__author-name {
    font-size: clamp(16px, 1vw, 18px);
    white-space: normal;
  }

  .testimonials__author-role {
    font-size: clamp(11px, 0.7vw, 12px);
    line-height: 1.35;
    white-space: normal;
  }
}

/* ── Large desktop (1900px+): slightly bigger photo only ── */
@media (min-width: 1900px) {
  .testimonials__photo-panel {
    width: clamp(280px, 16vw, 340px);
  }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  #testimonialsSwiper .swiper-slide {
    width: calc(100% - 24px);
  }

  .testimonials__card {
    flex: 0 0 calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }

  .testimonials__photo-panel {
    width: 100%;
    min-height: 280px;
    align-self: auto;
  }

  .testimonials__content {
    min-height: auto;
  }

  .testimonials__author-name { white-space: normal; }
  .testimonials__author-role { white-space: normal; }
}

@media (max-width: 767px) {
  .testimonials__inner {
    padding-left: var(--nav-px);
    padding-right: var(--nav-px);
  }

  #testimonialsSwiper .swiper-slide {
    width: 90%;
    flex: 0 0 auto;
  }

  .testimonials__card {
    flex: 0 0 calc(100vw - (var(--nav-px) * 2));
  }

  .testimonials__quote { font-size: clamp(14px, 4vw, 18px); }
}
