/* =========================================================================
   .rp-quote-carousel — generic navy single-quote testimonial carousel.
   One large centred quote shown at a time: quote-mark + quote (.hl highlight) +
   logo / name / role + case-study CTA, with prev/next arrows + dots + swipe.
   Behaviour in assets/js/quote-carousel.js (generic; wires every instance).
   GENERIC, self-contained, block-scoped, reusable. First built from the Local
   Payroll Figma 17044:12479; values here ARE the component defaults.
   ========================================================================= */
.rp-quote-carousel {
  background: #021143; padding: 80px 24px; position: relative;
  min-height: auto; display: flex; flex-direction: column;
  font-family: Mulish, -apple-system, sans-serif;
}
.rp-quote-carousel__inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
}
.rp-quote-carousel__slide { display: none; }
.rp-quote-carousel__slide.is-active { display: block; }

.rp-quote-carousel__mark { display: block; width: 46px; height: auto; margin: 0 auto 24px; }
.rp-quote-carousel__text { color: #fff; font-size: 28px; line-height: 1.45; font-weight: 500; margin: 0 auto; max-width: 820px; }
.rp-quote-carousel__text .hl { color: #FFDE6F; font-weight: 700; }

.rp-quote-carousel__attr { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }
/* height+width !important: the logo SVGs have no intrinsic size (preserveAspectRatio="none",
   width/height="100%"), so a later-loaded global img reset (the RTL sheet on AR) blows them up
   to the 300×150 default / container width. Pin height; width:auto then follows the img's
   width/height ATTRIBUTES (aspect-ratio), keeping each logo at its own natural width. */
.rp-quote-carousel__logo { height: 26px !important; width: auto !important; }
.rp-quote-carousel__logo--invert { height: 28px !important; }
.rp-quote-carousel__divider { display: inline-block; width: 1px; height: 34px; background: rgba(255,255,255,.25); }
.rp-quote-carousel__person { text-align: left; }
.rp-quote-carousel__name { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; }
.rp-quote-carousel__role { color: #8088A1; font-size: 14px; line-height: 1.3; }

.rp-quote-carousel__cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 28px; padding: 13px 25px; border-radius: 6px;
  background: #114EF7; color: #fff !important; font-size: 16px; font-weight: 500; text-decoration: none;
}
.rp-quote-carousel__cta:hover { background: #0D3FD0; }

/* nav: prev (white circle) + dots + next (white circle), pinned to the band bottom. */
.rp-quote-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 18px; flex-shrink: 0; margin-top: 24px; }
.rp-quote-carousel__prev,
.rp-quote-carousel__next {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
}
.rp-quote-carousel__next::before { content: ""; width: 8px; height: 8px; margin-left: -2px; border-top: 2px solid #021143; border-right: 2px solid #021143; transform: rotate(45deg); }
.rp-quote-carousel__prev::before { content: ""; width: 8px; height: 8px; margin-left: 2px; border-top: 2px solid #021143; border-left: 2px solid #021143; transform: rotate(-45deg); }
.rp-quote-carousel__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; }
.rp-quote-carousel__dot.is-active { background: #fff; }
.rp-quote-carousel.is-first .rp-quote-carousel__prev { visibility: hidden; }
.rp-quote-carousel.is-last  .rp-quote-carousel__next { visibility: hidden; }

/* RTL: name/role to the right; chevrons mirror (next points left, prev points right). */
[dir="rtl"] .rp-quote-carousel__person { text-align: right; }
[dir="rtl"] .rp-quote-carousel__next::before { transform: rotate(-135deg); margin-left: 0; margin-right: -2px; }
[dir="rtl"] .rp-quote-carousel__prev::before { transform: rotate(135deg); margin-left: 0; margin-right: 2px; }

/* Subtle fade + rise when switching quotes. */
@keyframes rpQcFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.rp-quote-carousel__slide.is-active .rp-quote-carousel__mark { animation: rpQcFade .45s ease both; }
.rp-quote-carousel__slide.is-active .rp-quote-carousel__text { animation: rpQcFade .45s ease both .12s; }
.rp-quote-carousel__slide.is-active .rp-quote-carousel__attr { animation: rpQcFade .45s ease both .24s; }
.rp-quote-carousel__slide.is-active .rp-quote-carousel__cta  { animation: rpQcFade .45s ease both .36s; }
@media (prefers-reduced-motion: reduce) { .rp-quote-carousel__slide.is-active * { animation: none; } }

@media (max-width: 991px) {
  .rp-quote-carousel { padding: 56px 20px; height: auto; display: block; }
  .rp-quote-carousel__inner { display: block; }
  .rp-quote-carousel__text { font-size: 21px; }
  .rp-quote-carousel__attr { flex-wrap: wrap; gap: 12px; }
  .rp-quote-carousel__nav { margin-top: 36px; }
}
