/* Foundation Personnel: testimonials slider (palette v2) */
.fp-tslider {
  --fpt-red: var(--fp-red, #BD2434);
  --fpt-deep: var(--fp-deep-red, #6E0712);
  --fpt-gap: 24px;
  --fpt-per: 3;
  position: relative;
}
.fp-tslider__track {
  display: flex; gap: var(--fpt-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 30px; margin: 0 -4px;          /* room for the card shadow */
  scrollbar-width: none; outline: none;
}
.fp-tslider__track::-webkit-scrollbar { display: none; }
.fp-tcard {
  flex: 0 0 calc((100% - (var(--fpt-per) - 1) * var(--fpt-gap)) / var(--fpt-per));
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 22px;
  margin: 0; padding: 30px 28px 26px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  position: relative;
}
.fp-tcard::before {                                /* quote mark */
  content: "\201C"; display: block; height: 34px;
  font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1; color: var(--fpt-red);
}
/* a plain div, not <blockquote>, so the theme's quote styling (dark box, red rule, italics) never applies */
.fp-tcard__quote { margin: 0; padding: 0; flex: 1; font-size: 16px; line-height: 1.7; font-style: normal; color: #111; }
.fp-tcard__quote p { margin: 0 0 12px; }
.fp-tcard__quote p:last-child { margin-bottom: 0; }
.fp-tcard__who { display: flex; align-items: center; gap: 12px; }
.fp-tcard__initials {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--fp-sector, var(--fpt-deep)); color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
}
.fp-tcard__meta { display: flex; flex-direction: column; line-height: 1.35; }
.fp-tcard__meta strong { font-size: 15px; color: #111; }
.fp-tcard__meta span { font-size: 13px; color: #6B6B6B; }
.fp-tcard__about {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,.08);
  font-size: 13px; font-weight: 600; color: var(--fpt-red) !important; text-decoration: none !important;
}
.fp-tcard__about:hover span:last-child { text-decoration: underline; }
.fp-tcard__sector {
  display: inline-block; padding: 4px 10px; border-radius: 25px;
  background: var(--fp-sector, var(--fpt-deep)); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.fp-tcard.sector-foundations    { --fp-sector: var(--fp-foundations, #55050E); }
.fp-tcard.sector-civils         { --fp-sector: var(--fp-civils, #3E040A); }
.fp-tcard.sector-infrastructure { --fp-sector: var(--fp-infrastructure, #280306); }

/* navigation */
.fp-tslider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.fp-tslider__nav[hidden] { display: none; }
.fp-tslider__btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: #111;
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
}
.fp-tslider__btn::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; }
.fp-tslider__prev::before { transform: translateX(2px) rotate(135deg); }
.fp-tslider__next::before { transform: translateX(-2px) rotate(-45deg); }
.fp-tslider__btn:hover, .fp-tslider__btn:focus-visible { background: var(--fpt-red); border-color: var(--fpt-red); color: #fff; }
.fp-tslider__btn:disabled { opacity: .35; cursor: default; background: #fff; color: #111; border-color: rgba(0,0,0,.12); }
.fp-tslider__dots { display: flex; gap: 8px; }
.fp-tslider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(0,0,0,.18); cursor: pointer; transition: width .25s, background .25s; }
.fp-tslider__dot[aria-current="true"] { width: 22px; background: var(--fpt-red); }

/* on dark sections */
.fp-testimonials-dark .fp-tslider__btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.fp-testimonials-dark .fp-tslider__dot { background: rgba(255,255,255,.35); }

@media (max-width: 1024px) { .fp-tslider { --fpt-per: 2; } }
@media (max-width: 680px)  {
  .fp-tslider { --fpt-per: 1; --fpt-gap: 16px; }
  .fp-tcard { padding: 26px 22px 22px; }
  /* one card at a time: each card is its own height and the slider follows the visible one */
  .fp-tslider__track { align-items: flex-start; overflow-y: hidden; transition: height .35s ease; }
  .fp-tcard__quote { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .fp-tslider__track { scroll-behavior: auto; } }
