/* =========================================================
   HOMEO CARE CLINIC — TESTIMONIAL PAGES
   testimonial.php (grid) + testimonial-single.php (video page).
   Auto-loaded by header.php. Reuses .product-* classes for the grid.
   ========================================================= */

/* ---------- Listing: video thumbnails, 3 per row ---------- */
.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}
.testimonial-card .testimonial-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}
.testimonial-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-card .product-buy {
  margin-top: 8px;
}

/* ---------- Single testimonial: everything centered ---------- */
.testimonial-single {
  text-align: center;
}
.testimonial-single__title {
  font-family: var(--font-heading, "Poppins", sans-serif);
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 auto 28px;
  max-width: 900px;
  text-align: center;
}
.testimonial-video {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 28px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.testimonial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.testimonial-single__content {
  max-width: 900px;
  margin: 0 auto 28px;
}
.testimonial-single__content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-light, #393a3b);
  margin: 0;
}
.testimonial-single__back {
  margin: 0;
  text-align: center;
}

@media (max-width: 991px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-single__title {
    font-size: 1.7rem;
  }
}
