/* =============================================================
   SECTION 7 — PATIENT TRUST / TESTIMONIALS (v2 — Split Panel)
   Theme: Fancy Light Mint & Sage Gradient
   Strict 100VH Desktop Fit (Content Height Preserved / No Cut-off)
   All rules scoped under .patient-trust-testimonials
   ============================================================= */

.patient-trust-testimonials {
  /* ── colour tokens ── */
  --ptt-navy-900:  #0C2D22;
  --ptt-navy-800:  #134E3B;
  --ptt-navy-700:  #19604A;
  --ptt-teal-600:  #059669;
  --ptt-teal-500:  #10B981;
  --ptt-teal-300:  #34D399;
  --ptt-teal-050:  rgba(16, 185, 129, 0.12);
  --ptt-cyan-300:  #6EE7B7;
  --ptt-ink:       #0C2D22;
  --ptt-ink-soft:  #264E40;
  --ptt-border:    rgba(16, 185, 129, 0.2);
  --ptt-white:     #FFFFFF;

  /* ── layout ── */
  position: relative;
  background: linear-gradient(140deg, #EDFAF4 0%, #DCF4E8 40%, #D1EFE2 70%, #E8F8F0 100%);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;

  /* Exactly 100vh on desktop screens */
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding-top: 3.8rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Decorative background grid ── */
.ptt-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}

/* ── Soft radial glow ── */
.ptt-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(52, 211, 153, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.patient-trust-testimonials > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: translateY(-1.9rem);
}

/* ============================================================
   HEADER
   ============================================================ */
.ptt-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 0.85rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}

.ptt-header.will-animate {
  opacity: 0;
  transform: translateY(20px);
}

.ptt-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ptt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ptt-teal-500);
  margin-bottom: .25rem;
}

.ptt-eyebrow-dot {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--ptt-teal-300);
  animation: ptt-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes ptt-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .55; }
}

.ptt-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
  font-weight: 800;
  color: var(--ptt-ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}

@media (min-width: 992px) {
  .ptt-title br {
    display: none;
  }
}

.ptt-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ptt-teal-500), var(--ptt-teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ptt-subtitle {
  font-size: .92rem;
  color: var(--ptt-ink-soft);
  line-height: 1.35;
}

/* ============================================================
   SPLIT LAYOUT — FULL PRESERVED CONTENT HEIGHT (410px)
   ============================================================ */
.ptt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  height: 410px;
}

/* ============================================================
   LEFT — SPOTLIGHT PANEL
   ============================================================ */
.ptt-spotlight {
  position: relative;
  background: var(--ptt-navy-900);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.22),
    0 28px 56px -16px rgba(12, 45, 34, 0.42);
}

/* Inner grid lines inside the dark panel */
.ptt-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Subtle emerald corner accent */
.ptt-spotlight::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.ptt-spotlight-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.85rem 2.25rem 1.55rem;
  height: 100%;
  gap: 0.85rem;
}

/* Giant decorative opening quote */
.ptt-giant-quote {
  position: absolute;
  top: 0.85rem;
  left: 1.85rem;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 7.2rem;
  line-height: 1;
  color: var(--ptt-teal-300);
  opacity: .14;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
}

/* Stars */
.ptt-spotlight-stars {
  display: flex;
  gap: .3rem;
  color: var(--ptt-teal-300);
  font-size: 1.05rem;
  margin-top: .15rem;
}

/* Blockquote */
.ptt-spotlight-quote {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ptt-white);
  margin: 0;
  flex: 1;
  min-height: 4.5rem;
  transition: opacity .4s ease, transform .4s cubic-bezier(.16,1,.3,1);
}

.ptt-spotlight-quote.is-exiting {
  opacity: 0;
  transform: translateY(-12px);
}

.ptt-spotlight-quote.is-entering {
  opacity: 0;
  transform: translateY(14px);
}

/* Author */
.ptt-spotlight-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: opacity .35s ease;
}

.ptt-spotlight-author.is-transitioning { opacity: 0; }

.ptt-spotlight-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ptt-teal-500), var(--ptt-teal-300));
  color: #FFFFFF;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
}

.ptt-spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.ptt-spotlight-name {
  color: var(--ptt-white);
  font-size: .92rem;
  font-weight: 700;
}

.ptt-spotlight-loc {
  color: var(--ptt-teal-300);
  font-size: .78rem;
  opacity: .9;
}

/* Progress bar */
.ptt-progress-bar {
  height: 2px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .25rem;
}

.ptt-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ptt-teal-500), var(--ptt-teal-300));
  border-radius: 999px;
  transition: width .12s linear;
}

/* Dot nav */
.ptt-dot-nav {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-top: .15rem;
}

.ptt-dot-nav-btn {
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: width .3s cubic-bezier(.16,1,.3,1), background .3s ease;
}

.ptt-dot-nav-btn:hover {
  background: rgba(255,255,255,.5);
}

.ptt-dot-nav-btn.is-active {
  width: 1.3rem;
  background: linear-gradient(90deg, var(--ptt-teal-500), var(--ptt-teal-300));
}

/* ============================================================
   RIGHT — FEED PANEL
   ============================================================ */
.ptt-feed-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  overflow: hidden;
}

/* ── Stats row ── */
.ptt-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ptt-navy-900);
  border-radius: 1.25rem;
  padding: 1rem 1.6rem;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.2),
    0 18px 36px -12px rgba(12, 45, 34, 0.28);
  flex-shrink: 0;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .6s ease .2s, transform .6s cubic-bezier(.16,1,.3,1) .2s;
}

.ptt-stats-row.will-animate {
  opacity: 0;
  transform: translateX(20px);
}

.ptt-stats-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ptt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  flex: 1;
}

.ptt-stat-num {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ptt-white);
  line-height: 1;
}

.ptt-stat-plus,
.ptt-stat-pct,
.ptt-stat-decimal {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ptt-teal-300);
  line-height: 1;
}

.ptt-stat-label {
  font-size: .68rem;
  font-weight: 600;
  color: rgba(234, 227, 235, 0.65);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .12rem;
}

.ptt-stat-divider {
  width: 1px;
  height: 2.2rem;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* ── Scrolling feed ── */
.ptt-feed-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--ptt-border);
  background: linear-gradient(160deg, #FFFFFF 0%, #EDFAF4 100%);
  opacity: 1;
  transform: translateX(0);
  transition: opacity .6s ease .35s, transform .6s cubic-bezier(.16,1,.3,1) .35s;
}

.ptt-feed-viewport.will-animate {
  opacity: 0;
  transform: translateX(20px);
}

.ptt-feed-viewport.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade masks top and bottom */
.ptt-feed-viewport::before,
.ptt-feed-viewport::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3rem;
  z-index: 2;
  pointer-events: none;
}

.ptt-feed-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, #FFFFFF, transparent);
}

.ptt-feed-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, #EDFAF4, transparent);
}

.ptt-feed-track {
  list-style: none;
  margin: 0;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  will-change: transform;
}

/* Individual feed bubble */
.ptt-feed-bubble {
  background: var(--ptt-white);
  border: 1px solid var(--ptt-border);
  border-radius: .9rem;
  padding: .8rem 1rem;
  box-shadow: 0 4px 16px -6px rgba(12, 45, 34, 0.08);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.ptt-feed-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ptt-feed-bubble-author {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.ptt-feed-bubble-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ptt-navy-900), var(--ptt-navy-800));
  color: var(--ptt-teal-300);
  font-size: .65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ptt-feed-bubble-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ptt-ink);
}

.ptt-feed-bubble-loc {
  font-size: .7rem;
  color: var(--ptt-ink-soft);
  display: block;
  line-height: 1.2;
}

.ptt-feed-bubble-stars {
  display: flex;
  gap: .15rem;
  color: var(--ptt-teal-300);
  font-size: .65rem;
}

.ptt-feed-bubble-text {
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ptt-ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-height: 850px) and (min-width: 992px) {
  .patient-trust-testimonials {
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
  }
  .patient-trust-testimonials > .container {
    transform: translateY(-0.85rem);
  }
  .ptt-header {
    margin-bottom: 1.2rem;
  }
  .ptt-split {
    height: 440px;
  }
  .ptt-spotlight-inner {
    padding: 2.2rem 2.4rem 1.8rem;
    gap: 1rem;
  }
}

@media (max-width: 991.98px) {
  .patient-trust-testimonials {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 5rem 0;
  }

  .patient-trust-testimonials > .container {
    transform: none;
  }

  .ptt-split {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.25rem;
  }

  .ptt-spotlight {
    height: auto;
    min-height: 360px;
  }

  .ptt-feed-panel {
    height: auto;
  }

  .ptt-feed-viewport {
    display: none !important;
  }

  .ptt-spotlight-inner {
    padding: 2.25rem 1.75rem 1.85rem;
  }
}

@media (max-width: 575.98px) {
  .patient-trust-testimonials {
    padding: 4rem 0;
  }

  .ptt-title {
    font-size: 1.75rem;
  }

  .ptt-stats-row {
    padding: 1.1rem 1.25rem;
  }

  .ptt-stat-num {
    font-size: 1.55rem;
  }

  .ptt-giant-quote {
    font-size: 6rem;
  }

  .ptt-spotlight-inner {
    padding: 2rem 1.5rem 1.75rem;
  }

  .ptt-spotlight-quote {
    font-size: 1.1rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ptt-header,
  .ptt-stats-row,
  .ptt-feed-viewport,
  .ptt-spotlight-quote,
  .ptt-spotlight-author,
  .ptt-progress-fill,
  .ptt-dot-nav-btn,
  .ptt-eyebrow-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ptt-feed-track {
    animation: none !important;
  }
}