/* ══════════════════════════════════════════
   TESTIMONIALS (newtestimonials) — self-contained theme
   Shares the paper/navy language of the pricing + engine
   sections, and rotates the blue/violet/amber accent trio
   used on the feature cards so all three sections read as
   one system.
══════════════════════════════════════════ */
.newtestimonials-section {
  --nt-bg: #eef1f8;
  --nt-card: #ffffff;
  --nt-border: #e5e8f0;
  --nt-heading: #0f1b33;
  --nt-body: #5b6472;
  --nt-muted: #8891a0;
  --nt-navy: #14213f;
  --nt-navy-dark: #0b1830;
  --nt-highlight: #cfe8fa;
  --nt-shadow: rgba(15, 27, 51, 0.08);
  --nt-shadow-md: rgba(15, 27, 51, 0.16);
  --nt-silk: cubic-bezier(0.65, 0, 0.35, 1);

  /* accent trio, matching the bento feature cards */
  --nt-blue-a: #2e5cff;
  --nt-blue-b: #22d3ee;
  --nt-violet-a: #9333ea;
  --nt-violet-b: #ec4899;
  --nt-amber-a: #f59e0b;
  --nt-amber-b: #fb7185;

  position: relative;
  padding: 100px 0 112px;
  background: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.newtestimonials-section * { box-sizing: border-box; }

.newtestimonials-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.newtestimonials-header { text-align: center; margin-bottom: 56px; }

.newtestimonials-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nt-navy);
  margin: 0 0 1rem;
}

.newtestimonials-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nt-navy);
  box-shadow: 0 0 0 4px rgba(20, 33, 63, 0.12);
}

.newtestimonials-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--nt-heading);
}

.newtestimonials-title mark {
  background: var(--nt-highlight);
  color: var(--nt-heading);
  padding: 0 6px;
  border-radius: 6px;
}

.newtestimonials-sub {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--nt-body);
}

/* ---------- Carousel shell ---------- */
.newtestimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.newtestimonials-track {
  display: grid;
  grid-template-columns: 1fr min(560px, 100%) 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* ---------- Arrows ---------- */
.newtestimonials-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--nt-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s var(--nt-silk), transform 0.3s var(--nt-silk), box-shadow 0.3s var(--nt-silk);
  box-shadow: 0 8px 20px rgba(20, 33, 63, 0.25);
}
.newtestimonials-arrow svg { width: 18px; height: 18px; stroke: currentColor; }
.newtestimonials-arrow:hover { background: #1c2d54; transform: scale(1.06); }
.newtestimonials-arrow:active { transform: scale(0.96); }
.newtestimonials-arrow:focus-visible {
  outline: 2px solid var(--nt-navy);
  outline-offset: 3px;
}

/* ---------- Cards ---------- */
.newtestimonials-card {
  position: relative;
  background: var(--nt-card);
  border-radius: 24px;
  border: 1px solid var(--nt-border);
  padding: 40px 36px 32px;
  box-shadow: 0 4px 16px var(--nt-shadow);
  transition: transform 0.45s var(--nt-silk), box-shadow 0.45s var(--nt-silk), opacity 0.45s var(--nt-silk);
}

.newtestimonials-card--side {
  transform: scale(0.88);
  opacity: 0.55;
  pointer-events: none;
  display: block;
}

.newtestimonials-card--active {
  background: var(--nt-navy-dark);
  border-color: var(--nt-navy-dark);
  box-shadow: 0 20px 60px rgba(11, 24, 48, 0.35);
  transform: scale(1);
  z-index: 2;
}

.newtestimonials-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}
.newtestimonials-card[data-accent="blue"] .newtestimonials-card-glow   { background: linear-gradient(135deg, var(--nt-blue-a), var(--nt-blue-b)); }
.newtestimonials-card[data-accent="violet"] .newtestimonials-card-glow { background: linear-gradient(135deg, var(--nt-violet-a), var(--nt-violet-b)); }
.newtestimonials-card[data-accent="amber"] .newtestimonials-card-glow  { background: linear-gradient(135deg, var(--nt-amber-a), var(--nt-amber-b)); }

.newtestimonials-quote-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}
.newtestimonials-quote-icon svg { width: 20px; height: 20px; }
.newtestimonials-card[data-accent="blue"] .newtestimonials-quote-icon   { background: linear-gradient(135deg, var(--nt-blue-a), var(--nt-blue-b)); }
.newtestimonials-card[data-accent="violet"] .newtestimonials-quote-icon { background: linear-gradient(135deg, var(--nt-violet-a), var(--nt-violet-b)); }
.newtestimonials-card[data-accent="amber"] .newtestimonials-quote-icon  { background: linear-gradient(135deg, var(--nt-amber-a), var(--nt-amber-b)); }

.newtestimonials-stars {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}
.newtestimonials-stars svg { width: 15px; height: 15px; }
.newtestimonials-card--side .newtestimonials-stars svg { fill: var(--nt-navy); }
.newtestimonials-card--active .newtestimonials-stars svg { fill: #ffd166; }

.newtestimonials-quote {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--nt-heading);
  margin: 0 0 28px;
}
.newtestimonials-card--active .newtestimonials-quote { color: #ffffff; }
.newtestimonials-card--side .newtestimonials-quote {
  font-size: 0.92rem;
  color: var(--nt-body);
}

.newtestimonials-divider {
  height: 1px;
  background: var(--nt-border);
  margin-bottom: 20px;
}
.newtestimonials-card--active .newtestimonials-divider { background: rgba(255, 255, 255, 0.1); }

.newtestimonials-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.newtestimonials-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.newtestimonials-card[data-accent="blue"] .newtestimonials-avatar   { background: linear-gradient(135deg, var(--nt-blue-a), var(--nt-blue-b)); }
.newtestimonials-card[data-accent="violet"] .newtestimonials-avatar { background: linear-gradient(135deg, var(--nt-violet-a), var(--nt-violet-b)); }
.newtestimonials-card[data-accent="amber"] .newtestimonials-avatar  { background: linear-gradient(135deg, var(--nt-amber-a), var(--nt-amber-b)); }

.newtestimonials-person-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--nt-heading);
  margin: 0;
}
.newtestimonials-card--active .newtestimonials-person-name { color: #fff; }

.newtestimonials-person-role {
  font-size: 0.8rem;
  color: var(--nt-muted);
  margin: 2px 0 0;
}
.newtestimonials-card--active .newtestimonials-person-role { color: rgba(255, 255, 255, 0.55); }

/* ---------- Dots ---------- */
.newtestimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.newtestimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: rgba(20, 33, 63, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.35s var(--nt-silk), background 0.35s var(--nt-silk);
}
.newtestimonials-dot:hover { background: rgba(20, 33, 63, 0.35); }
.newtestimonials-dot.is-active {
  width: 26px;
  background: var(--nt-navy);
}
.newtestimonials-dot:focus-visible {
  outline: 2px solid var(--nt-navy);
  outline-offset: 3px;
}

/* ---------- Fade-in on change ---------- */
@keyframes newtestimonialsFade {
  from { opacity: 0; transform: translateY(6px) scale(var(--nt-scale, 1)); }
  to   { opacity: var(--nt-target-opacity, 1); transform: translateY(0) scale(var(--nt-scale, 1)); }
}
.newtestimonials-card--active.is-animating { animation: newtestimonialsFade 0.45s var(--nt-silk); }
.newtestimonials-card--side.is-animating { --nt-scale: 0.88; --nt-target-opacity: 0.55; animation: newtestimonialsFade 0.45s var(--nt-silk); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .newtestimonials-track { grid-template-columns: 1fr; }
  .newtestimonials-card--side { display: none; }
  .newtestimonials-carousel { gap: 12px; }
  .newtestimonials-arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .newtestimonials-section { padding: 72px 0 88px; }
  .newtestimonials-card { padding: 32px 24px 26px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .newtestimonials-card,
  .newtestimonials-dot,
  .newtestimonials-arrow {
    transition: none !important;
    animation: none !important;
  }
}