/* Guest stories: a pile of dark cards over a huge scrolling "What guests say" line.
   Layout idea from the Abodia template; colours, fonts and corners are Peacock's own.
   Behaviour (pin, cards swinging onto the pile) is in scripts/components/testimonials.js. */

.tst { position: relative; overflow: hidden; padding: 8rem 0; background: var(--gray, #f5efe6); }
.tst-wrap { width: 100%; max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }

/* header: small square dot + uppercase label, then the section title (centred) */
.tst-head { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.tst-eyebrow { display: flex; align-items: center; gap: .5rem; font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-color, #2c3a2e); }
.tst-dot { width: 7px; height: 7px; background: var(--primary-color, #2c3a2e); }
.tst-title { margin: 0; max-width: 18ch; font-family: var(--_font-family---secondary-font, "Inter Tight", sans-serif); font-size: clamp(36px, 5vw, var(--_font-size---h2, 64px)); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; color: var(--dark-two, #1c1c1a); }

/* the pile */
.tst-list { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 4rem; width: 100%; max-width: 50.5rem; margin: 4rem auto 0; }

.tst-card { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border-radius: var(--_border-radius---radius-l, 14px); background: var(--primary-color, #2c3a2e); color: #fff; box-shadow: 0 24px 50px rgba(28, 38, 30, .22); }
.tst-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tst-quote-icon { width: 2.4rem; height: 2rem; color: #fff; }
.tst-quote-icon svg { display: block; width: 100%; height: 100%; }
.tst-tag { font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 14px; font-weight: 500; text-transform: capitalize; color: #dfe5d6; }
.tst-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tst-content { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.tst-quote { margin: 0; font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -.01em; color: #fff; }
.tst-author { display: flex; flex-direction: column; gap: .25rem; }
.tst-name { font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 18px; font-weight: 500; color: #fff; }
.tst-role { font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 14px; color: #b9c2ae; }
.tst-photo { position: relative; height: 18.25rem; overflow: hidden; border-radius: 10px; }
.tst-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* huge faint line behind the cards, scrolling sideways forever */
.tst-say { position: absolute; left: 0; right: 0; top: 50%; z-index: -1; overflow: hidden; pointer-events: none; transform: translateY(-50%); }
.tst-track { display: flex; flex-wrap: nowrap; align-items: center; width: max-content; }
.tst-say-item { display: flex; flex-shrink: 0; align-items: center; gap: 3rem; padding-right: 3rem; white-space: nowrap; font-family: var(--_font-family---secondary-font, "Inter Tight", sans-serif); font-size: clamp(6rem, 14vw, 14rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #e6dfd0; }
.tst-say-mark { width: clamp(1.6rem, 3vw, 3rem); height: clamp(1.6rem, 3vw, 3rem); flex-shrink: 0; background: #e6dfd0; transform: rotate(45deg); }

@media (max-width: 991px) {
  .tst { padding: 5rem 0; }
  .tst-list { margin-top: 3rem; gap: 2rem; }
}
@media (max-width: 767px) {
  .tst-card { padding: 1.25rem; }
  .tst-body { grid-template-columns: 1fr; }
  .tst-say-item { font-size: 5.5rem; }
}
@media (max-width: 479px) { .tst-photo { height: 14rem; } }
