.testimonial-section {
    padding: 90px 7%;
   background: white;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 390px;
    overflow: hidden;
  }

  /* ── Base card ── */
  .card {
    position: absolute;
    max-width: 350px;
    min-height: 290px;
    border-radius: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity, filter;
  }

  /* ── Static positions ── */
  .card.pos-prev2  { transform: translateX(-380px) scale(0.78); opacity: 0.4; filter: blur(3px);   z-index: 2; }
  .card.pos-prev   { transform: translateX(-260px) scale(0.88); opacity: 0.7; filter: blur(1.5px); z-index: 5; }
  .card.pos-next   { transform: translateX( 260px) scale(0.88); opacity: 0.7; filter: blur(1.5px); z-index: 5; }
  .card.pos-next2  { transform: translateX( 380px) scale(0.78); opacity: 0.4; filter: blur(3px);   z-index: 2; }
  .card.pos-hidden { opacity: 0; pointer-events: none; z-index: 0; }

  .card.pos-active {
    margin-top: -4rem;
    background: var(--brand-navy);
    border: none;
    z-index: 10;
    transform: translateX(0) scale(1);
    filter: blur(0);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.35);
  }

  /* Slide-in animations for the new active card */
  @keyframes slideFromRight {
    from { transform: translateX(340px) scale(0.88); opacity: 0.5; }
    to   { transform: translateX(0)     scale(1);    opacity: 1;   }
  }
  @keyframes slideFromLeft {
    from { transform: translateX(-340px) scale(0.88); opacity: 0.5; }
    to   { transform: translateX(0)      scale(1);    opacity: 1;   }
  }

  .card.pos-active.from-right {
    animation: slideFromRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .card.pos-active.from-left {
    animation: slideFromLeft 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  /* Side cards animate smoothly */
  .card.animate {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                opacity   0.42s ease,
                filter    0.42s ease;
  }

  /* ── Card internals ── */
  .card-top { display: flex; justify-content: space-between; align-items: flex-start; }

  .avatar { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #ddd; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }

  .quote-icon { display: none; opacity: 0.6; }
  .card.pos-active .quote-icon { display: block; }
  .quote-icon svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 1.5; }

  .quote-text { font-size: 15.5px; line-height: 1.6; color: #1a1a1a; }
  .card.pos-active .quote-text { color: #fff; font-size: 16px; }

  .attribution { font-size: 13px; color: #888; margin-top: auto; padding-top: 8px; }
  .card.pos-active .attribution { color: rgba(255,255,255,0.85); }

  /* ── Navigation ── */
  .nav-buttons { display: flex; gap: 12px; }

  .nav-btn {
    width: 48px; height: 48px; border-radius: 12px;
    border: 1.5px solid #ccc; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-btn:hover  { border-color: var(--brand-navy); background: #fff7f3; }
  .nav-btn:active { transform: scale(0.93); }
  .nav-btn svg { width: 18px; height: 18px; stroke: #333; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  /* ── Mobile ── */
  @media (max-width: 600px) {
    .carousel-wrapper { height: 400px; }
    .card { width: 260px; min-height: 250px; padding: 20px; }
    .card.pos-prev  { transform: translateX(-170px) scale(0.86); }
    .card.pos-next  { transform: translateX( 170px) scale(0.86); }
    .card.pos-prev2 { transform: translateX(-280px) scale(0.75); }
    .card.pos-next2 { transform: translateX( 280px) scale(0.75); }
    .quote-text { font-size: 14px; }
    .card.pos-active .quote-text { font-size: 14.5px; }
  }