/* =============================================================================
   Testimonials Block
   ============================================================================= */


/* ── Outer wrapper ─────────────────────────────────────────────────────────── */


.testimonials-block {
  background: var(--olive);
border-radius: 100px 0 0 0;
  padding: 3rem 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}


/* ── Heading ───────────────────────────────────────────────────────────────── */

.testimonials-block__heading {
  text-align: center;
  color: #fff;
  font-size: clamp( 1.4rem, 3vw, 1.8rem );
  margin: 0 0 0.5rem;
}

.testimonials-block__divider {
  display: block;
  width: 40px;
  height: 2px;
  background: var( --fresh-lime );
  margin: 0 auto 2rem;
}


/* =============================================================================
   Slide
   ============================================================================= */

.testimonial-slide {
  padding: 0;               
}


/* ── Inner layout ──────────────────────────────────────────────────────────── */

.testimonial-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}


/* ── Quote marks ───────────────────────────────────────────────────────────── */

.testimonial-card__icon {
  flex-shrink: 0;
  color: var( --fresh-lime );
  font-size: 12rem;
  line-height: 0.8;
  font-family: 'Nunito Sans';
  user-select: none;
  letter-spacing: -0.05em;
  padding-top: 0.25rem;
  font-weight: 900;
}


/* ── Vertical divider ──────────────────────────────────────────────────────── */

.testimonial-card__divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: rgba( 255, 255, 255, 0.4 );
  min-height: 80px;
}


/* ── Content ───────────────────────────────────────────────────────────────── */

.testimonial-card__content {
  flex: 1;
  min-width: 0;       /* prevents flex child from overflowing */
}

.testimonial-card__quote,
.testimonial-card__quote p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 1.25rem;
  font-weight: 400;
}

.testimonial-card__quote {
    border-left: none;
}

.testimonial-card__cite {
  display: block;
  text-align: right;
  font-style: normal;
}

.testimonial-card__name {
  display: block;
  color: var( --fresh-lime );
  font-weight: 700;
  font-size: 0.95rem;
  font-style: italic; 
}


/* =============================================================================
   Splide — fade via CSS (type: fade stacks slides absolutely)
   ============================================================================= */

.js-testimonial-slider .splide__track {
  overflow: hidden;
  transition: height 0.4s ease;
}

.js-testimonial-slider .splide__slide {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.js-testimonial-slider .splide__slide.is-active {
  opacity: 1;
}


/* =============================================================================
   Custom nav row — arrow · dots · arrow
   ============================================================================= */

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

/* ── Arrows ────────────────────────────────────────────────────────────────── */

.testimonial-nav__arrow {
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: opacity 0.2s;
  line-height: 1;
}

.testimonial-nav__arrow:hover {
  opacity: 1;
}

.testimonial-nav__arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Dots ──────────────────────────────────────────────────────────────────── */

.testimonial-nav__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-dot {
  background: rgba( 255, 255, 255, 0.35 );
  border: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonial-dot.is-active {
  background: #fff;
  transform: scale( 1.2 );
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media ( max-width: 768px ) {

  .testimonials-block {
    border-radius: 60px 0 0 0;
    padding: 2rem 1.5rem 3.5rem;
  }

  .testimonial-card {
    gap: 1rem;
  }

  .testimonial-card__icon {
    font-size: 4.5rem;
  }

  .testimonial-card__quote,
  .testimonial-card__quote p {
    font-size: 0.9rem;
  }

}