.tst-card {
  background: #fff;
  border: 1px solid #ededea;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(20, 20, 20, .05);
  padding: 56px 60px;
  display: grid;
  grid-template-columns: .82fr 1.5fr;
  gap: 56px;
  align-items: stretch;
  min-height: 420px;
  /* fixed-feel height — quote length can't change it */
}

/* ---------- left ---------- */
.tst-left {
  display: flex;
  flex-direction: column;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f2f0e8;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: #4b4942;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.tst-left h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-top: 28px;
}

.rating {
  margin-top: auto;
  padding-top: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rating .score {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 3px;
}

.reviews {
  font-size: 15px;
  font-weight: 600;
  color: #4a4540;
  margin-top: 5px;
}

/* ---------- right (sliding carousel) ---------- */
.tst-right {
  border-left: 1px solid #ececec;
  padding-left: 56px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: .5;
  color: var(--tan);
  height: 46px;
}

.tst-viewport {
  flex: 1;
  overflow: hidden;
  margin-top: 8px;
}

/* fixed area — clips, never grows */
.tst-track {
  display: flex;
  height: 100%;
  transition: transform .7s ease;
  will-change: transform;
}

.tst-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.52;
  color: #2c2c33;
  overflow: hidden;
  /* safety: never spill past the fixed area */
}

.author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 30px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: none;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #e0a82e, #c2861a);
}

.name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.role {
  font-size: 15px;
  color: #4a4540;
  margin-top: 2px;
}

.nav {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: flex;
  gap: 12px;
}

.nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, background-color .2s ease;
}

.nav button:hover {
  transform: scale(1.06);
  background: #000;
}

.nav svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- responsive ---------- */
@media (max-width:860px) {
  .tst-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 30px;
    min-height: 0;
  }

  .tst-right {
    border-left: none;
    border-top: 1px solid #ececec;
    padding-left: 0;
    padding-top: 32px;
  }

  .tst-viewport {
    height: auto;
    min-height: 320px;
    flex: none;
    overflow: hidden;
  }

  .tst-track {
    height: 100%;
  }
}

@media (max-width:560px) {
  .tst-card {
    padding: 28px 20px;
    gap: 24px;
  }

  .tst-right {
    padding-top: 20px;
  }

  .tst-left h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .quote-mark {
    font-size: 80px;
    height: 32px;
  }

  .quote-text {
    font-size: clamp(14px, 3.8vw, 17px);
    overflow: visible;
  }

  .tst-viewport {
    min-height: 300px;
  }

  .rating .score {
    font-size: 48px;
  }

  .nav {
 
  gap: 6px;
}

  .nav button {
    width: 26px;
    height: 26px;
    
  }

  .nav svg {
    width: 14px;
    height: 14px;
  }

  .name {
    font-size: 17px;
  }
}

@media (max-width:400px) {
  .tst-card {
    padding: 22px 16px;
  }

  .rating {
    gap: 12px;
    padding-top: 28px;
  }
}