/* V46 landing-page consistency refinements */
/* Ensure the new primary buttons share the same readable treatment. */
.stack-actions .btn-primary,
.edu-hero .hero-actions .btn-primary,
.deal-finder-spotlight .btn-primary {
  background: linear-gradient(135deg,#08769a 0%,#16acd0 100%) !important;
  color:#fff !important;
  border:1px solid rgba(5,76,111,.18) !important;
  box-shadow:0 10px 24px rgba(7,87,123,.18) !important;
}
.stack-actions .btn-primary:hover,
.edu-hero .hero-actions .btn-primary:hover,
.deal-finder-spotlight .btn-primary:hover {
  filter:brightness(1.04);
  transform:translateY(-1px);
}
/* Deal Finder callout contrast on all educational scenario pages. */
.deal-finder-spotlight.vertical > div:nth-child(2) h3,
.deal-finder-spotlight.vertical h3 {
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  text-shadow:none !important;
}
.deal-finder-spotlight.vertical > div:nth-child(2) p,
.deal-finder-spotlight.vertical p {
  color:#eaf8ff !important;
  -webkit-text-fill-color:#eaf8ff !important;
  opacity:1 !important;
}
.deal-finder-spotlight.vertical > div:nth-child(2) > span,
.deal-finder-spotlight.vertical span {
  color:#79e8ff !important;
  -webkit-text-fill-color:#79e8ff !important;
}
/* Keep hero connect CTA visually equal to the primary Deal Finder CTA. */
.edu-hero .hero-actions .landing-connect {
  min-width:170px;
  justify-content:center;
}


/* V55 — What Clients Say testimonial slider */
.why-system-section{padding-bottom:3.8rem!important;overflow:hidden!important}
.why-system-section::after{display:none!important}
.testimonials-section{
  background:linear-gradient(180deg,#dff2f7 0%,#d8eef5 16%,#114866 78%,#0a344f 100%)!important;
  padding-top:1.15rem!important;
  padding-bottom:4.9rem!important;
  overflow:hidden!important;
}
.testimonials-section::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 12% 18%,rgba(255,255,255,.34),transparent 22%),radial-gradient(circle at 88% 76%,rgba(32,198,232,.16),transparent 24%);
}
.testimonials-shell{position:relative;z-index:1}
.testimonials-head{text-align:center;max-width:760px;margin:0 auto 1.7rem}
.testimonials-head .compact-eyebrow{color:#0b7898!important}
.testimonials-head h2{margin:.18rem 0 .35rem;color:#071f38!important;font-size:clamp(2rem,3vw,2.65rem)}
.testimonials-head p{margin:0;color:#49657c!important}
.testimonial-slider{max-width:940px;margin:0 auto}
.testimonial-stack{position:relative;min-height:460px}
.testimonial-card{
  position:absolute;inset:0;display:flex;flex-direction:column;gap:1.2rem;
  background:rgba(255,255,255,.96);border:1px solid rgba(18,134,165,.18);border-radius:24px;
  padding:1.6rem 1.65rem;box-shadow:0 26px 58px rgba(4,42,67,.16);backdrop-filter:blur(10px);
  transition:transform .45s ease,opacity .45s ease,box-shadow .45s ease;opacity:0;pointer-events:none;
}
.testimonial-card.is-active{opacity:1;transform:translate3d(0,0,0) scale(1);z-index:2;pointer-events:auto}
.testimonial-card.is-next{opacity:.5;transform:translate3d(22px,22px,0) scale(.97);z-index:1}
.testimonial-card.is-prev{opacity:0;transform:translate3d(-18px,18px,0) scale(.97);z-index:0}
.testimonial-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.testimonial-identity{display:flex;align-items:center;gap:1rem}
.testimonial-avatar{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(145deg,#073b63 0%,#0b7898 55%,#20c6e8 100%);color:#fff;font-weight:800;letter-spacing:.04em;
  box-shadow:0 12px 24px rgba(5,92,126,.24)
}
.testimonial-role{display:inline-block;margin-bottom:.22rem;font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0a8aad}
.testimonial-identity h3{margin:0;color:#082744!important;font-size:1.25rem}
.testimonial-identity p{margin:.15rem 0 0;color:#5a7388!important}
.testimonial-stars{font-size:1.2rem;line-height:1;color:#0a8aad;letter-spacing:.15em;white-space:nowrap}
.testimonial-card blockquote{margin:0;color:#223c54;font-size:1.02rem;line-height:1.82;font-weight:500}
.testimonial-nav{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.55rem;flex-wrap:wrap}
.testimonial-arrow{
  display:inline-flex;align-items:center;gap:.55rem;border:1px solid rgba(116,232,247,.32);border-radius:999px;
  background:rgba(8,44,71,.92);color:#fff;padding:.82rem 1.08rem;font-weight:700;cursor:pointer;
  box-shadow:0 16px 34px rgba(2,24,42,.18);transition:transform .2s ease,background .2s ease,border-color .2s ease
}
.testimonial-arrow:hover{transform:translateY(-2px);background:#0b5d78;border-color:rgba(116,232,247,.58)}
.testimonial-arrow svg{width:18px;height:18px;flex:0 0 18px}
.testimonial-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:110px;color:#fff}
.testimonial-progress-label{font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#9deef9}
.testimonial-progress strong{font-size:1rem}
@media (max-width:900px){
  .testimonial-stack{min-height:520px}
}
@media (max-width:700px){
  .testimonials-section{padding-top:.8rem!important;padding-bottom:3.8rem!important}
  .testimonial-stack{min-height:640px}
  .testimonial-card{padding:1.2rem 1.05rem}
  .testimonial-card.is-next{transform:translate3d(10px,14px,0) scale(.98)}
  .testimonial-card-top{flex-direction:column;align-items:flex-start}
  .testimonial-stars{font-size:1.08rem}
  .testimonial-card blockquote{font-size:.97rem;line-height:1.72}
}

/* V56 — compact testimonial treatment (keeps both full reviews and arrows) */
.testimonials-section{
  padding-top:.35rem!important;
  padding-bottom:1.95rem!important;
  background:linear-gradient(180deg,#dff2f7 0%,#bbdfe9 18%,#114866 83%,#0a344f 100%)!important;
}
.testimonials-head{max-width:720px;margin:0 auto .7rem}
.testimonials-head h2{margin:0!important;font-size:clamp(1.7rem,2.6vw,2.3rem)!important}
.testimonial-slider{max-width:980px}
.testimonial-stack{min-height:292px}
.testimonial-card{
  display:grid;grid-template-columns:200px minmax(0,1fr);align-content:start;
  align-items:start;gap:1.35rem;padding:1.2rem 1.35rem;
  border-radius:20px;box-shadow:0 16px 40px rgba(4,42,67,.13);
}
.testimonial-card-top{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem}
.testimonial-identity{align-items:flex-start;gap:.65rem}
.testimonial-avatar{width:42px;height:42px;font-size:.84rem}
.testimonial-role{font-size:.65rem;line-height:1.3;margin-bottom:.15rem}
.testimonial-identity h3{font-size:1.1rem}
.testimonial-identity p{font-size:.84rem}
.testimonial-stars{font-size:1rem;letter-spacing:.12em;padding-left:0}
.testimonial-card blockquote{font-size:.9rem;line-height:1.48;overflow-wrap:break-word}
.testimonial-nav{gap:.85rem;margin-top:.75rem}
.testimonial-arrow{padding:.56rem .95rem;font-size:.88rem}
.testimonial-arrow svg{height:17px;width:17px;flex-basis:17px}
@media(max-width:900px){
  .testimonial-stack{min-height:368px}
  .testimonial-card{grid-template-columns:155px minmax(0,1fr);gap:1rem}
  .testimonial-card blockquote{font-size:.86rem;line-height:1.46}
}
@media(max-width:700px){
  .testimonials-section{padding-top:.55rem!important;padding-bottom:1.8rem!important}
  .testimonials-head{margin-bottom:.65rem}
  .testimonial-stack{min-height:390px}
  .testimonial-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;gap:.55rem;padding:1.05rem 1rem}
  .testimonial-card-top{flex-direction:row;align-items:center;justify-content:space-between;gap:.5rem}
  .testimonial-stars{font-size:.87rem;letter-spacing:.08em;flex:0 0 auto}
  .testimonial-card blockquote{font-size:.84rem;line-height:1.44;overflow-y:auto;min-height:0;max-height:275px;padding-right:.3rem}
  .testimonial-card.is-next{transform:translate3d(9px,10px,0) scale(.98)}
  .testimonial-nav{margin-top:.65rem}
}
@media(max-width:370px){
  .testimonial-stack{min-height:405px}
  .testimonial-stars{font-size:.72rem}
  .testimonial-card blockquote{max-height:290px}
}

/* V57 — content-sized cards and collision-free testimonial navigation */
.testimonials-section{padding-bottom:2rem!important}
.testimonial-stack{
  position:relative;
  min-height:0!important;
  height:auto!important;
  isolation:isolate;
}
.testimonial-card{
  inset:auto!important;
  top:0;
  bottom:auto;
  left:50%;
  right:auto;
  width:100%;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  max-width:980px;
  box-sizing:border-box;
  overflow:visible;
}
.testimonial-card[data-index="1"]{max-width:720px}
/* Only the visible review contributes to the stack height; arrows follow naturally. */
.testimonial-card.is-active{
  position:relative;
  left:auto;
  top:auto;
  margin:0 auto;
  transform:none;
}
.testimonial-card.is-next,.testimonial-card.is-prev{
  position:absolute;
  height:100%!important;
  overflow:hidden;
  pointer-events:none;
}
.testimonial-card.is-next{
  opacity:.24;
  transform:translateX(-50%) translateY(10px) scale(.98);
}
.testimonial-card.is-prev{
  opacity:0;
  transform:translateX(-50%) translateY(10px) scale(.98);
}
/* When the shorter testimonial is active, keep the background layer the same width. */
.testimonial-stack:has(.testimonial-card[data-index="1"].is-active) .testimonial-card.is-next{max-width:720px}
.testimonial-nav{
  position:relative;
  z-index:5;
  margin-top:1.5rem;
  gap:1.1rem;
}
.testimonial-card blockquote{
  overflow:visible!important;
  max-height:none!important;
  height:auto!important;
}
@media(max-width:900px){
  .testimonial-stack{min-height:0!important}
}
@media(max-width:700px){
  .testimonial-stack{min-height:0!important}
  .testimonial-card{grid-template-rows:auto auto;gap:.7rem}
  .testimonial-card blockquote{overflow:visible!important;max-height:none!important}
  .testimonial-nav{margin-top:1.45rem}
}
@media(max-width:370px){
  .testimonial-stack{min-height:0!important}
}
/* Decorative second layer remains tucked behind the content-sized active card. */
.testimonial-stack::before{
  content:"";
  position:absolute;
  z-index:0;
  top:10px;
  left:50%;
  width:calc(100% - 12px);
  max-width:968px;
  height:100%;
  transform:translateX(-50%);
  border:1px solid rgba(23,151,183,.2);
  border-radius:20px;
  background:rgba(230,246,250,.85);
  box-shadow:0 12px 28px rgba(5,53,80,.10);
  pointer-events:none;
}
.testimonial-stack:has(.testimonial-card[data-index="1"].is-active)::before{max-width:708px}
.testimonial-card.is-next,.testimonial-card.is-prev{opacity:0!important;visibility:hidden}
.testimonial-card.is-active{z-index:2}
