/* =========================================================
   XPL Testimonials Carousel
   - Glass cards
   - No equal heights
   - Continuous layout; animation handled in JS
   ========================================================= */

.xpl-testimonials {
  width: 100%;
  margin: 0 auto;
}

/* Viewport: no scrollbars, JS moves track via transform */
.xpl-testimonials__viewport {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

/* Track: row of cards */
.xpl-testimonials__track {
  display: flex;
  gap: 24px;
  min-width: 100%;
  will-change: transform;
}

/* Card sizing: 1 per page on mobile */
.xpl-testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
}

/* 2-up on tablet */
@media (min-width: 768px) {
  .xpl-testimonials--cols-2 .xpl-testimonial-card,
  .xpl-testimonials--cols-3 .xpl-testimonial-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* 3-up on desktop */
@media (min-width: 1024px) {
  .xpl-testimonials--cols-3 .xpl-testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

/* Glass card appearance (no equal-height forcing) */
.xpl-testimonial-card {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(12, 33, 76, 0.03);
  overflow: hidden;
}

.xpl-testimonial-card__inner {
  padding: 32px 30px 26px;
  display: block;       /* NO flex, no height:100% = no equal heights */
}

/* Top: logo zone – reserve vertical space */
.xpl-testimonial-card__top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.xpl-testimonial-card__logo-wrap {
  height: 110px;
  max-width: 160px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xpl-testimonial-card__logo-wrap--empty {
  /* still reserve space, just no image */
}

.xpl-testimonial__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.1);
}

/* Testimonial text */
.xpl-testimonial-card__content {
  margin-top: 4px;
}

.xpl-testimonial-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #0c214c;
  text-align: center;
}

/* Meta area */
.xpl-testimonial-card__meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.xpl-testimonial-card__avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.xpl-testimonial__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xpl-testimonial-card__meta-text {
  text-align: left;
}

.xpl-testimonial-card__name-line {
  font-weight: 600;
  font-size: 15px;
  color: #0c214c;
  margin-bottom: 2px;
}

.xpl-testimonial-card__company-line {
  font-size: 13px;
  color: #44526b;
}

/* Center meta when there's no avatar */
.xpl-testimonial-card__meta:not(:has(.xpl-testimonial-card__avatar-wrap)) {
  justify-content: center;
  text-align: center;
}

.xpl-testimonial-card__meta:not(:has(.xpl-testimonial-card__avatar-wrap))
  .xpl-testimonial-card__meta-text {
  text-align: center;
}

/* Small-screen tweaks */
@media (max-width: 480px) {
  .xpl-testimonial-card__inner {
    padding: 24px 20px 22px;
  }

  .xpl-testimonial-card__text {
    font-size: 14px;
  }
}
