/* Dark testimonial strip: heading, intro, swiper quote block, avatar, name, role. */
.ebp-testimonials-1 {
  position: relative;
  /* padding: var(--spacing-6, 6rem) 0; */
  background-color: #1a1d20;
  color: #ffffff;
}

.ebp-testimonials-1 .wrapper {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ebp-testimonials-1__heading {
  margin: 0 0 var(--spacing-2, 2rem);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.ebp-testimonials-1__intro {
  margin: 0 auto var(--spacing-4, 4rem);
  max-width: 40rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.ebp-testimonials-1__intro p {
  margin: 0;
}

/* Swiper needs a positioned root so arrows sit beside the quote. */
.ebp-testimonials-1__swiper {
  position: relative;
  overflow: hidden;
  padding: 0 2.5rem;
}

.ebp-testimonials-1__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

/* Quote block: large decorative quotation marks + rich text (usually italic in the editor). */
.ebp-testimonials-1__quote-box {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto var(--spacing-3, 3rem);
  padding: 0rem 1rem 0;
}

.ebp-testimonials-1__mark {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  color: #9aa8c3;
  opacity: 0.85;
  pointer-events: none;
}

.ebp-testimonials-1__nav--prev {
  transform: rotate(180deg);
}

.ebp-testimonials-1__nav img {
  height: 0.688rem;
  width: 0.688rem;
}

.ebp-testimonials-1__mark--open {
  top: 0;
  left: 0;
}

.ebp-testimonials-1__mark--close {
  top: 0;
  right: 0;
}

.ebp-testimonials-1__quote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ebp-testimonials-1__quote p {
  margin: 0;
}

.ebp-testimonials-1__quote p + p {
  margin-top: 0.75rem;
}

/* Author block under the quote */
.ebp-testimonials-1__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ebp-testimonials-1__avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.ebp-testimonials-1__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebp-testimonials-1__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.ebp-testimonials-1__role {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Nav matches the slider widget: chevrons on the sides. */
.ebp-testimonials-1__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.ebp-testimonials-1__nav {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  justify-content: center;
  display: flex;
}

.ebp-testimonials-1__nav:hover,
.ebp-testimonials-1__nav:focus-visible {
  opacity: 1;
}

.ebp-testimonials-1__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .ebp-testimonials-1__swiper {
    padding: 0 0.5rem;
  }

  .ebp-testimonials-1__mark--open {
    left: -0.25rem;
  }

  .ebp-testimonials-1__mark--close {
    right: -0.25rem;
  }
}
