/* Testimonials page — custom section */
.sva-testimonials {
  background: #fff;
  color: #1A1A1A;
  font-family: "Manrope", sans-serif;
}

.sva-testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.sva-testimonials__hero {
  padding: 80px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
}

.sva-testimonials__eyebrow {
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #51197C;
  margin: 0 0 12px;
}

.sva-testimonials__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: #1A1A1A;
  margin: 0 0 16px;
}

.sva-testimonials__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #4A4A4A;
  max-width: 720px;
  margin: 0 auto;
}

.sva-testimonials__section {
  padding: 64px 0;
}

.sva-testimonials__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 12px;
  text-align: center;
}

.sva-testimonials__section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: #4A4A4A;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.sva-testimonials__video-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
}

.sva-testimonials__video-card {
  grid-column: span 2;
  background: #EDF3F4;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Center last 3 videos when remainder is 3 */
.sva-testimonials__video-card:nth-child(4n + 1):nth-last-child(3) {
  grid-column: 2 / span 2;
}

/* Center last 2 videos when remainder is 2 */
.sva-testimonials__video-card:nth-child(4n + 1):nth-last-child(2) {
  grid-column: 3 / span 2;
}

/* Center last video when remainder is 1 */
.sva-testimonials__video-card:nth-child(4n + 1):last-child {
  grid-column: 4 / span 2;
}

.sva-testimonials__video-card:hover {
  border-color: #D2B2EA;
  box-shadow: 0 8px 24px rgba(81, 25, 124, 0.12);
}

.sva-testimonials__video-wrap {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  max-height: 340px;
  margin: 0 auto;
}

.sva-testimonials__video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1a1a;
}

/* Fullscreen: keep vertical video in its natural ratio — black bars on sides */
.sva-testimonials__video-wrap video:-webkit-full-screen {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #000;
}

.sva-testimonials__video-wrap video:-moz-full-screen {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #000;
}

.sva-testimonials__video-wrap video:fullscreen {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #000;
}

.sva-testimonials h3.sva-testimonials__video-title {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #51197C;
  margin: 12px 0 0;
  padding-bottom: 10px;
  text-align: center;
  line-height: 1.35;
}

.sva-testimonials h3.sva-testimonials__video-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 28px;
  height: 2px;
  background: #D2B2EA;
  border-radius: 1px;
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sva-testimonials__video-card:hover h3.sva-testimonials__video-title::after,
.sva-testimonials__video-card:focus-within h3.sva-testimonials__video-title::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.sva-testimonials__video-caption {
  font-size: 12px;
  line-height: 1.45;
  color: #4A4A4A;
  margin: 4px 0 0;
  text-align: center;
}

.sva-testimonials__gratitude {
  background: #faf8fc;
  border-top: 1px solid rgba(24, 24, 24, 0.06);
}

.sva-testimonials__gratitude-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.sva-testimonials__gratitude-slide {
  cursor: zoom-in;
}

.sva-testimonials__gratitude-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sva-testimonials__gratitude-slide img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(81, 25, 124, 0.15);
}

@media (max-width: 767px) {
  .sva-testimonials__gratitude-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sva-testimonials__lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.sva-testimonials__lightbox.is-open {
  display: flex;
}

.sva-testimonials__lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}

#sva-testimonials-lightbox .sva-testimonials__lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 41px;
  height: 41px;
  min-width: 41px;
  min-height: 41px;
  max-width: 41px;
  max-height: 41px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #51197C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 41px;
  aspect-ratio: 1 / 1;
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  appearance: none;
}

#sva-testimonials-lightbox .sva-testimonials__lightbox-close svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sva-testimonials__cta {
  padding: 48px 0 80px;
  text-align: center;
}

.sva-testimonials__cta-text {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1A1A1A;
}

.sva-testimonials__cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #D2B2EA;
  color: #571B82;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.sva-testimonials__cta-btn:hover {
  background: #c9a3e3;
  color: #571B82;
}

@media (max-width: 1024px) {
  .sva-testimonials__video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sva-testimonials__video-card,
  .sva-testimonials__video-card:nth-child(4n + 1):nth-last-child(3),
  .sva-testimonials__video-card:nth-child(4n + 1):nth-last-child(2),
  .sva-testimonials__video-card:nth-child(4n + 1):last-child {
    grid-column: auto;
  }

  .sva-testimonials__video-wrap {
    max-height: 420px;
  }

  .sva-testimonials h3.sva-testimonials__video-title {
    font-size: 15px;
    margin: 16px 0 0;
    padding-bottom: 12px;
  }

  .sva-testimonials__video-caption {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 767px) {
  .sva-testimonials__hero { padding: 48px 0 32px; }
  .sva-testimonials__title { font-size: 28px; }
  .sva-testimonials__lead { font-size: 16px; }
  .sva-testimonials__section { padding: 48px 0; }
  .sva-testimonials__section-title { font-size: 26px; }
  .sva-testimonials__video-grid {
    grid-template-columns: 1fr;
  }
  .sva-testimonials__video-wrap {
    max-height: none;
    aspect-ratio: 9 / 16;
  }
}
