/* ==========================================================
   Home — What Parents Say! (scoped under .tsx)
   Warm cream band; each testimonial is a speech bubble with a
   tail pointing to the parent's photo + name below it.
   Uses the existing .financ-swiper carousel (plugins.js); the
   prev/next buttons live in the heading row — Swiper finds
   them by the global .swiper-button-prev/.swiper-button-next
   selectors, which only exist once on the page.
   Logo palette: royal blue + orange.
   ========================================================== */
.tsx {
  --tsx-blue: #0d4f9c;
  --tsx-blue-deep: #083a75;
  --tsx-orange: #f08a1c;
  --tsx-orange-deep: #d9740a;
  --tsx-ink: #142033;
  --tsx-muted: #4d5a6c;
  --tsx-cream: #fff6ec;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: var(--tsx-cream);
}
.tsx-bigquote {
  position: absolute;
  left: -20px;
  top: -70px;
  font-family: Georgia, serif;
  font-size: 380px;
  line-height: 1;
  color: rgba(240, 138, 28, .1);
  pointer-events: none;
}
.tsx-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- heading row ---------- */
.tsx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.tsx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tsx-orange-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tsx-title {
  margin: 10px 0 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tsx-blue-deep);
}
.tsx-title span { color: var(--tsx-orange); }

.tsx-nav { display: flex; gap: 10px; }
.tsx .tsx-nav-btn.swiper-button-prev,
.tsx .tsx-nav-btn.swiper-button-next {
  position: static;
  margin: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--tsx-blue);
  background: transparent;
  color: var(--tsx-blue);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tsx .tsx-nav-btn::after { display: none; }
.tsx .tsx-nav-btn:hover { background: var(--tsx-blue); color: #fff; }
.tsx .tsx-nav-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* ---------- carousel shell ---------- */
.tsx-swiper { padding: 6px 4px 56px !important; }
.tsx-swiper .swiper-slide { height: auto; }
.tsx-swiper .swiper-pagination { bottom: 8px !important; }
.tsx-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: var(--tsx-orange);
  opacity: .3;
  transition: width .3s ease, opacity .3s ease;
}
.tsx-swiper .swiper-pagination-bullet-active { width: 30px; opacity: 1; }

/* ---------- testimonial item ---------- */
.tsx-item {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tsx-bubble {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #f1e3d2;
  box-shadow: 0 24px 44px -30px rgba(8, 58, 117, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tsx-item:hover .tsx-bubble { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(8, 58, 117, .45); }
.tsx-bubble::after {
  /* speech tail */
  content: "";
  position: absolute;
  left: 38px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-right: 1px solid #f1e3d2;
  border-bottom: 1px solid #f1e3d2;
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
}
.tsx-bubble-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tsx-q {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tsx-blue);
  color: #fff;
  font-size: 17px;
}
.tsx-stars { color: var(--tsx-orange); font-size: 14px; letter-spacing: 2px; }
.tsx-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--tsx-muted);
}

/* the selected (middle-ish) bubble gets the blue treatment */
.tsx-swiper .swiper-slide-next .tsx-bubble,
.tsx-swiper .swiper-slide-next .tsx-bubble::after { background: var(--tsx-blue); border-color: var(--tsx-blue); }
.tsx-swiper .swiper-slide-next .tsx-text { color: rgba(255, 255, 255, .9); }
.tsx-swiper .swiper-slide-next .tsx-q { background: var(--tsx-orange); }

.tsx-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 22px;
}
.tsx-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--tsx-orange);
  background: #fff;
}
.tsx-person h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--tsx-blue-deep); line-height: 1.25; }
.tsx-person span { font-size: 13.5px; font-weight: 600; color: var(--tsx-orange-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  /* one slide per view: no "middle" slide, keep all bubbles white */
  .tsx-swiper .swiper-slide-next .tsx-bubble,
  .tsx-swiper .swiper-slide-next .tsx-bubble::after { background: #fff; border-color: #f1e3d2; }
  .tsx-swiper .swiper-slide-next .tsx-text { color: var(--tsx-muted); }
  .tsx-swiper .swiper-slide-next .tsx-q { background: var(--tsx-blue); }
}
@media (max-width: 991px) { .tsx { padding: 48px 0; } }
@media (max-width: 640px) {
  .tsx { padding: 40px 0; }
  .tsx-wrap { padding: 0 16px; }
  .tsx-title { font-size: 32px; }
  .tsx-bigquote { font-size: 260px; }
  .tsx .tsx-nav-btn.swiper-button-prev,
  .tsx .tsx-nav-btn.swiper-button-next { width: 44px; height: 44px; font-size: 18px; }
}
