/* =========================
   Testimonials (slow wheel)
   ========================= */
.testimonials{
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
}

/* Wheel viewport */
.t-wheel{
  position: relative;
  margin-top: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  padding: 18px 0;
  overflow: hidden;
}

/* soft edge fade so peeks feel premium */
.t-wheel::before,
.t-wheel::after{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events:none;
}
.t-wheel::before{
  left: 0;
  background: linear-gradient(90deg, rgba(2,6,8,0.95), rgba(2,6,8,0));
}
.t-wheel::after{
  right: 0;
  background: linear-gradient(270deg, rgba(2,6,8,0.95), rgba(2,6,8,0));
}

/* Track */
.t-wheel-track{
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: max-content;
  padding: 6px 22px;
  will-change: transform;
  transform: translate3d(0,0,0);
}

/* Card sizing: 3 full + peeks on wide screens */
.t-wheel-track .t-card{
  flex: 0 0 360px;              /* readable card size */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  padding: 18px 18px 16px;
  min-height: 220px;
}

/* Slight scale on center-ish cards feels nice (optional) */
.t-wheel-track .t-card:hover{
  transform: translateY(-3px);
  transition: transform .18s ease;
}

/* Pause on hover so user can read */
.t-wheel:hover .t-wheel-track{
  animation-play-state: paused;
}



/* =========================
   Testimonials — stars-top quote cards
   ========================= */

/* Card layout safety */
.t-wheel-track .t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.t-wheel-track .t-card:hover {
  transform: translateY(-3px);
}

/* Centered stars at top */
.t-starsTop {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: .18em;
  color: #f5c56b;
  /* warm gold */
  margin-top: 4px;
}

/* Review text spacing */
.t-wheel-track .t-card .t-text {
  margin: 14px 0 0;
  line-height: 1.6;
  font-size: 1rem;
  color: rgba(255, 255, 255, .92);

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row */
.t-wheel-track .t-card .t-personRow {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Initial avatar */
.t-wheel-track .t-card .t-initial {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .02em;

  background: rgba(18, 192, 138, .14);
  border: 1px solid rgba(18, 192, 138, .24);
  color: rgba(255, 255, 255, .92);
}

/* Name + subline */
.t-wheel-track .t-card .t-personMeta {
  min-width: 0;
}

.t-wheel-track .t-card .t-name {
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-wheel-track .t-card .t-sub {
  margin-top: 4px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   Responsive card resizing (keep desktop size, shrink on smaller)
   ========================= */

/* Desktop stays 360px (your default) */

/* Large laptop / small desktop */
@media (max-width: 1200px) {
  .t-wheel-track .t-card {
    flex: 0 0 320px;
  }

  .t-wheel::before,
  .t-wheel::after {
    width: 90px;
  }
}

/* Tablet landscape */
@media (max-width: 980px) {
  .t-wheel-track {
    gap: 14px;
    padding: 6px 16px;
  }

  .t-wheel-track .t-card {
    flex: 0 0 280px;
    min-height: 210px;
  }

  .t-wheel::before,
  .t-wheel::after {
    width: 70px;
  }
}

/* Tablet / big phones */
@media (max-width: 780px) {
  .t-wheel-track {
    gap: 12px;
    padding: 6px 14px;
  }

  .t-wheel-track .t-card {
    flex: 0 0 240px;
    min-height: 200px;
  }

  .t-wheel::before,
  .t-wheel::after {
    width: 55px;
  }
}

/* =========================
   EXTRA-SMALL MOBILE — force smaller cards
   ========================= */
@media (max-width: 520px) {

  /* loosen container so cards can breathe */
  .testimonials .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .t-wheel {
    padding: 8px 0;
  }

  .t-wheel-track {
    padding: 4px 8px;
    gap: 8px;
  }

  /* 🔥 FORCE card shrink */
  .t-wheel-track .t-card {
    flex: 0 0 150px;
    /* << noticeably smaller */
    min-height: 165px;
    padding: 14px;
  }

  /* make text fit better at this size */
  .t-starsTop {
    font-size: .95rem;
    letter-spacing: .14em;
  }

  .t-wheel-track .t-card .t-text {
    font-size: .92rem;
    -webkit-line-clamp: 3;
  }

  .t-wheel-track .t-card .t-initial {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }

  /* fades must be tiny or they hide content */
  .t-wheel::before,
  .t-wheel::after {
    width: 18px;
  }
}