/*!
 * Shared testimonial block styles (About + Clients)
 */

.vu-about-testimonials {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  margin-top: 1.25rem;
  position: relative;
}

.testimonial-chunk {
  display: none;
  gap: clamp(18px, 2vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-chunk.is-visible {
  display: grid;
}

.vu-about-testimonials .testimonial {
  position: relative;
  border-radius: 12px;
  background: var(--vu-fog, #f4f6ff);
  border: 1px solid rgba(4, 25, 78, 0.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vu-about-testimonials .testimonial::before {
  content: "";
  position: absolute;
  inset: calc(var(--vu-about-layer-offset, 16px) * -0.6);
  border-radius: 18px;
  background: var(--vu-about-glass, rgba(255, 255, 255, 0.72));
  box-shadow: var(--vu-about-glass-shadow, 0 20px 45px rgba(5, 7, 19, 0.12));
  border: var(--vu-about-glass-border, 1px solid rgba(255, 255, 255, 0.45));
  z-index: 0;
}

.vu-about-testimonials .testimonial > * {
  position: relative;
  z-index: 1;
}

.testimonial-card {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: block;
  text-align: left;
  cursor: pointer;
  position: relative;
  max-height: 7.5rem;
  overflow: hidden;
  transition: background 180ms ease, box-shadow 180ms ease, max-height 220ms ease;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: var(--grad-fog-fade, linear-gradient(180deg, rgba(250, 251, 255, 0) 0%, var(--vu-fog, #f4f6ff) 100%));
  pointer-events: none;
  transition: opacity 200ms ease;
}

.testimonial-card:hover,
.testimonial-card:focus-visible {
  background: var(--vu-paper, #ffffff);
  box-shadow: inset 0 0 0 2px rgba(4, 25, 78, 0.2);
}

.testimonial-card.is-expanded {
  max-height: 999px;
}

.testimonial-card.is-expanded::after {
  opacity: 0;
}

.vu-about-testimonials blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--vu-slate, #1f2c57);
}

.vu-about-testimonials .testimonial-meta {
  margin: 0;
  color: var(--vu-muted, #8d93b8);
  line-height: 1.4;
  padding: 0 1.5rem 1.25rem;
}

.vu-about .testimonial strong,
.clients-intro .testimonial strong {
  color: var(--vu-slate, #1f2c57);
}

.vu-about-more {
  justify-self: center;
  margin-top: clamp(10px, 2vw, 18px);
  background: var(--vu-sun-gold, #ffd900);
  color: var(--vu-night, #050713);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.vu-about-more:hover,
.vu-about-more:focus-visible {
  background: var(--vu-pill-hover, #ffe347);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .testimonial-chunk {
    grid-template-columns: 1fr;
  }
}
