/* Homepage testimonial videos — 3-up preview */

/* Tighten space at the top of the Testimonial section only */
.elementor-139 .elementor-element.elementor-element-11a6d638 {
  --padding-top: 40px;
  padding-top: 40px;
}

.elementor-139 .elementor-element.elementor-element-3ec3e2b5 .elementor-heading-title {
  font-size: 40px;
  line-height: 1.3;
}

.elementor-139 .elementor-element.elementor-element-6af8f364 .elementor-button {
  background-color: #51197C;
  color: #fff;
}

.elementor-139 .elementor-element.elementor-element-6af8f364 .elementor-button:hover,
.elementor-139 .elementor-element.elementor-element-6af8f364 .elementor-button:focus {
  background-color: #6B2A9E;
  color: #fff;
}

.sva-home-testimonials {
  width: 100%;
  font-family: "Manrope", sans-serif;
}

.sva-home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}

.sva-home-testimonials__card {
  background: #EDF3F4;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

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

.sva-home-testimonials h3.sva-home-testimonials__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-home-testimonials__card:hover h3.sva-home-testimonials__title::after,
.sva-home-testimonials__card:focus-within h3.sva-home-testimonials__title::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.sva-home-testimonials__caption {
  font-size: 13px;
  line-height: 1.45;
  color: #4A4A4A;
  margin: 4px 0 0;
  text-align: center;
}

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

  .sva-home-testimonials__card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 12px);
  }
}

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

  .sva-home-testimonials__card:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .sva-home-testimonials__video-wrap {
    max-height: none;
  }
}
