/* Patient Testimonials video carousel – matches the Google review carousel. */
.iv {
  --iv-navy: #07142f;
  --iv-gold: #b88d32;
  --iv-gold-soft: #efcc7f;
  --iv-line: #e4dccb;
  --iv-paper: #fffdf8;
  --iv-gap: 24px;
  --iv-per: 3;
  max-width: 80rem;
  margin-inline: auto;
}
.iv .iv-static[hidden] { display: none; }
.iv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.iv-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 24px; }
.iv-controls[hidden] { display: none; }
.iv-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--iv-navy); background: #fff; color: var(--iv-navy); cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.iv-btn[hidden] { display: none; }
.iv-btn:hover { background: var(--iv-navy); color: #fff; }
.iv-btn:active { transform: scale(.94); }
.iv :is(.iv-btn, .iv-play, .iv-link, .iv-close):focus-visible { outline: 3px solid var(--iv-gold); outline-offset: 3px; }

.iv-viewport { overflow: hidden; margin: -16px -12px; padding: 16px 12px 22px; touch-action: pan-y; }
.iv-track {
  display: flex; list-style: none; margin: 0 calc(var(--iv-gap) / -2); padding: 0;
  transition: transform 900ms cubic-bezier(.65, .02, .25, 1); will-change: transform;
}
.iv-slide { flex: 0 0 calc(100% / var(--iv-per)); padding: 0 calc(var(--iv-gap) / 2); display: flex; min-width: 0; }
.iv-slide:not(.is-visible) .iv-card { opacity: .55; }

.iv-card {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: var(--iv-paper); border: 1px solid var(--iv-line); border-top: 3px solid var(--iv-gold);
  border-radius: 18px; box-shadow: 0 1px 0 rgba(7,20,47,.04), 0 18px 40px -26px rgba(7,20,47,.38);
  transition: opacity .7s ease, transform .4s ease;
}
.iv-slide.is-visible:not(.is-playing) .iv-card:hover { transform: translateY(-3px); }
.iv-media { position: relative; aspect-ratio: 16 / 9; background: var(--iv-navy); overflow: hidden; }
.iv-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.iv-card:hover .iv-media img { transform: scale(1.03); }
.iv-playlist-notice { margin: 1rem 0 0; text-align: center; color: #526174; font-size: .9rem; }
.iv .iv-play,
.iv .iv-play:not(:disabled):hover {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, transparent, rgba(7,20,47,.22)) !important;
  border-color: transparent !important;
  color: var(--iv-navy) !important;
}
.iv-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(7,20,47,0) 40%, rgba(7,20,47,.45) 100%);
}
.iv-play-dot {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 999px;
  background: rgba(255,253,248,.95); color: var(--iv-navy); border: 2px solid var(--iv-gold-soft);
  box-shadow: 0 10px 28px -10px rgba(7,20,47,.7); transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.iv-play-dot svg { margin-left: 3px; }
.iv-play:hover .iv-play-dot, .iv-play:focus-visible .iv-play-dot { transform: scale(1.08); background: var(--iv-navy); color: #fff; }
.iv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.iv-slide.is-playing .iv-play { display: none; }

.iv-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.iv-eyebrow { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--iv-gold); font-weight: 700; }
.iv .iv-title { margin: 0; text-align: left; font-size: 1.08rem; line-height: 1.45; color: var(--iv-navy); font-weight: 600; }
.iv-link {
  margin-top: auto; padding-top: 10px; align-self: flex-start; color: var(--iv-navy); font-weight: 700; font-size: .9rem;
  text-decoration: underline; text-decoration-color: var(--iv-gold); text-underline-offset: 4px;
}
.iv-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(7,20,47,.88); color: #fff; font-size: .82rem; font-weight: 700;
}
.iv-close:hover { background: var(--iv-navy); }

@media (max-width: 1199px) { .iv { --iv-gap: 18px; } }
@media (max-width: 767px) { .iv-controls { justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
  .iv-track, .iv-card, .iv-btn, .iv-media img, .iv-play-dot { transition: none !important; }
}
