/* Testimonial Post Slider — Swiper-based frontend styles */

.tps-wrap.swiper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.tps-wrap .swiper-wrapper {
  align-items: stretch;
}

.tps-slide.swiper-slide {
  width: auto !important;
  flex-shrink: 0;
}

.tps-card {
  position: relative;
  width: 280px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background: #1a1c28;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tps-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Bottom gradient so name/title stay readable over any photo */
.tps-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 20, 0.85) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.tps-date {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 16px 16px 0;
  padding: 4px 10px;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tps-quote {
  position: relative;
  z-index: 2;
  margin: 12px 16px 0;
  padding: 12px 14px;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tps-meta {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 16px;
}

.tps-name {
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tps-role {
  font-family: sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

@media (max-width: 700px) {
  .tps-card {
    width: 200px;
    height: 280px;
  }
  .tps-quote {
    font-size: 12px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tps-wrap.swiper .swiper-wrapper {
    transition: none !important;
    transform: none !important;
  }
}
