/* ================================
   TESTIMONIALS (Scoped to .xyz-tst)
   3 per row desktop, 1 per row mobile
   Auto-slide + arrows + dots
================================ */
.xyz-tst {
  --t-bg: #ffffff;
  --t-card: #f3f3f3;
  --t-text: #111;
  --t-muted: #666;
  --t-border: rgba(0,0,0,0.06);
  --t-shadow: 0 18px 45px rgba(0,0,0,0.06);
  --t-radius: 16px;
  --t-speed: 260ms;
  --t-star: #f4b400;

  background: var(--t-bg);
  padding: clamp(26px, 4vw, 46px) 0;
  overflow: hidden;
  isolation: isolate;
}

.xyz-tst .xyz-tst__container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.xyz-tst .xyz-tst__viewport {
  position: relative;
}

.xyz-tst .xyz-tst__track {
  display: flex;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* 3 cards visible */
.xyz-tst .xyz-tst__card {
  flex: 0 0 calc((100% - 36px) / 3);
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
  padding: 18px;
  min-height: 190px;
  transition: transform var(--t-speed) ease, box-shadow var(--t-speed) ease;
}

.xyz-tst .xyz-tst__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.09);
}

/* Top row */
.xyz-tst .xyz-tst__top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.xyz-tst .xyz-tst__avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  background: #ddd;
  flex: 0 0 auto;
}

.xyz-tst .xyz-tst__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.xyz-tst .xyz-tst__avatar--letter {
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #fff;
  background: #c23b22;
  border-radius: 999px;
}

.xyz-tst .xyz-tst__meta { flex: 1; }

.xyz-tst .xyz-tst__nameRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.xyz-tst .xyz-tst__name {
  font-weight: 1000;
  color: var(--t-text);
  font-size: 16px;
  letter-spacing: 0.2px;
}

.xyz-tst .xyz-tst__g {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 1000;
  color: #4285f4;
  font-family: system-ui, Arial, sans-serif;
}

.xyz-tst .xyz-tst__time {
  color: var(--t-muted);
  font-size: 13px;
  margin-top: 2px;
}

.xyz-tst .xyz-tst__stars {
  margin-top: 8px;
  color: var(--t-star);
  font-size: 16px;
  letter-spacing: 1px;
}

.xyz-tst .xyz-tst__badge {
  margin-left: 8px;
  font-size: 12px;
  color: #1a73e8;
  background: rgba(26,115,232,0.10);
  border: 1px solid rgba(26,115,232,0.20);
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

/* Text */
.xyz-tst .xyz-tst__text {
  color: #222;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* clamp to feel like screenshot */
.xyz-tst .xyz-tst__text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more */
.xyz-tst .xyz-tst__more {
  margin-top: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #888;
  font-weight: 700;
  cursor: pointer;
}

/* Nav arrows */
.xyz-tst .xyz-tst__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 14px 35px rgba(0,0,0,0.10);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #333;
  z-index: 2;
  transition: transform var(--t-speed) ease, filter var(--t-speed) ease;
}

.xyz-tst .xyz-tst__nav:hover {
  transform: translateY(-50%) scale(1.04);
  filter: brightness(1.02);
}

.xyz-tst .xyz-tst__nav--prev { left: -10px; }
.xyz-tst .xyz-tst__nav--next { right: -10px; }

/* Dots */
.xyz-tst .xyz-tst__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.xyz-tst .xyz-tst__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: 0;
  cursor: pointer;
}

.xyz-tst .xyz-tst__dot.is-active {
  width: 20px;
  background: rgba(0,0,0,0.55);
}

/* Responsive */
@media (max-width: 980px) {
  .xyz-tst .xyz-tst__card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .xyz-tst .xyz-tst__card {
    flex: 0 0 100%;
  }

  .xyz-tst .xyz-tst__nav--prev { left: 6px; }
  .xyz-tst .xyz-tst__nav--next { right: 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .xyz-tst .xyz-tst__track { scroll-behavior: auto; }
  .xyz-tst .xyz-tst__card { transition: none; }
  .xyz-tst .xyz-tst__nav { transition: none; }
}

/* ================================
   Hide arrows on mobile only
   (Does NOT affect desktop)
================================ */
@media (max-width: 640px) {
  .xyz-tst .xyz-tst__nav {
    display: none !important;
  }
}