/* ===== Healthcare page — page-specific styles ===== */

/* Hero: different gradient for this page */
.healthcare-hero {
  background: linear-gradient(160deg, #e8f5f0 0%, #f0f4ff 30%, #f5f0ff 60%, #eef0ff 100%);
  opacity: 1;
  transform: none;
}
.healthcare-hero .hero-grid { padding: 40px 0 60px; min-height: calc(100vh - 80px); }
.healthcare-hero .hero-scroll-hint { bottom: 28px; }
.healthcare-hero .hero-copy h1 { font-size: clamp(34px, 4vw, 54px); }
.healthcare-hero .hero-copy h1 span { color: var(--health); }

/* Hero video area */
.hero-main-video {
  position: absolute;
  inset: 24px 0 66px 42px;
  width: calc(100% - 42px);
  height: calc(100% - 90px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0d1a2e 0%, #1a3a5a 40%, #1c1efa 80%, #159d91 100%);
  overflow: hidden;
}
.hero-main-video video { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* Hero video controls (same as index, with healthcare theme) */
.healthcare-hero .hero-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  border-radius: 0 0 24px 24px;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.healthcare-hero .hero-main-video:hover .hero-video-controls,
.healthcare-hero .hero-video-controls:hover { opacity: 1; }

.healthcare-hero .video-play-btn,
.healthcare-hero .video-mute-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.healthcare-hero .video-play-btn:hover,
.healthcare-hero .video-mute-btn:hover { background: rgba(255,255,255,.32); transform: scale(1.08); }
.healthcare-hero .video-play-btn svg,
.healthcare-hero .video-mute-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
.healthcare-hero .video-mute-btn svg {
  width: 18px;
  height: 18px;
}

.healthcare-hero .video-play-btn .icon-pause { display: none; }
.healthcare-hero .video-play-btn.playing .icon-play { display: none; }
.healthcare-hero .video-play-btn.playing .icon-pause { display: block; }

.healthcare-hero .video-mute-btn .icon-sound { display: none; }
.healthcare-hero .video-mute-btn.unmuted .icon-muted { display: none; }
.healthcare-hero .video-mute-btn.unmuted .icon-sound { display: block; }

.healthcare-hero .video-progress-wrap {
  flex: 1;
  height: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: height .15s ease;
}
.healthcare-hero .video-progress-wrap:hover { height: 12px; }
.healthcare-hero .video-progress {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.25);
  border-radius: 4px;
  overflow: hidden;
}
.healthcare-hero .video-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 4px;
  transition: width .15s linear;
}

.healthcare-hero .hero-video-zoom-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  box-sizing: border-box;
  line-height: 1;
}
.healthcare-hero .hero-video-zoom-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
.healthcare-hero .hero-video-zoom-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* ---- Module Grid ---- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.module-card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.module-card:hover { transform: translateY(-4px); border-color: #c5caff; box-shadow: 0 18px 36px rgba(31,39,79,.09); cursor: pointer; }
.module-card .card-number { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 50%; color: var(--health); background: var(--health-soft); font-size: 13px; font-weight: 800; }
.module-card h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 760; letter-spacing: -.03em; margin: 0; }
.module-card p { margin-top: 13px; color: var(--muted); line-height: 1.7; flex: 1; }

@media (max-width: 900px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
}

@media (max-width: 640px) {
  .hero-main-video { inset: 12px 0 50px 18px; width: calc(100% - 18px); height: calc(100% - 62px); }
}

/* ===== Module Modal ===== */
.module-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 38, .7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 20px;
}
.module-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.module-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 1100px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  transform: translateY(30px) scale(.97);
  transition: transform .3s ease;
  position: relative;
}
.module-modal-overlay.active .module-modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 10;
}
.modal-close:hover { background: rgba(255,255,255,.3); }

/* Body resets — sections inside have their own padding */
.modal-body { padding: 0; margin: 0; }
.modal-body > .modal-hero-banner { border-radius: 24px 24px 0 0; }
.modal-body > .modal-cta { border-radius: 0 0 24px 24px; }

/* ── Hero Banner ── */
.modal-hero-banner {
  padding: 48px 44px 36px;
  color: #fff;
  border-radius: 24px 24px 0 0;
}
.modal-hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  margin: 0 0 12px;
}
.modal-hero-banner h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.modal-hero-lead {
  font-size: 15px;
  line-height: 1.75;
  opacity: .8;
  max-width: 640px;
  margin: 0 0 24px;
}
.modal-stat-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-stat {
  padding: 12px 18px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.modal-stat span {
  display: block;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
  margin-bottom: 2px;
}

/* ── Modal Sections ── */
.modal-section {
  padding: 40px 44px;
  border-bottom: 1px solid var(--line);
}
.modal-section:last-of-type { border-bottom: none; }
.modal-section.tint { background: var(--surface); }

.modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--health);
  margin: 0 0 6px;
}
.modal-section h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 820;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}

/* ── Problem Block ── */
.modal-problem-block {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(28,30,250,.06), rgba(21,157,145,.06));
  border-radius: 16px;
  border-left: 4px solid var(--brand);
}
.modal-problem-block h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
}
.modal-problem-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* ── Detail Cards ── */
.modal-detail-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.modal-detail-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.modal-detail-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,39,79,.08); }
.modal-detail-card svg { color: var(--brand); margin-bottom: 14px; }
.modal-detail-card h4 {
  font-size: 17px;
  font-weight: 780;
  margin: 0 0 10px;
}
.modal-detail-card > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ── Modal List ── */
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ── Steps ── */
.modal-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.modal-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--health));
  opacity: .2;
}
.modal-step {
  text-align: center;
  position: relative;
}
.modal-step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--health));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  position: relative;
  z-index: 1;
}
.modal-step h4 {
  font-size: 15px;
  font-weight: 780;
  margin: 0 0 6px;
}
.modal-step p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ── Scenario List ── */
.modal-scenario-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.modal-scenario-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .2s ease;
}
.modal-scenario-item:hover { transform: translateY(-2px); }
.modal-scenario-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.modal-scenario-item h4 {
  font-size: 15px;
  font-weight: 760;
  margin: 0 0 6px;
}
.modal-scenario-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA Band ── */
.modal-cta {
  padding: 32px 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(28,30,250,.04), rgba(21,157,145,.04));
  border-top: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
}
.modal-cta h3 {
  font-size: 20px;
  font-weight: 820;
  margin: 0 0 4px;
}
.modal-cta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.modal-cta .btn { flex-shrink: 0; }

/* ── Modal Demo Videos (Floating Carousel) ── */
.modal-video-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}
.carousel-track {
  position: relative;
  min-height: 340px;
  display: block;
  padding: 0 200px;
}
.carousel-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(100% - 400px);
  transform: translateX(-50%) scale(.85);
  opacity: 0;
  filter: blur(2px) brightness(.7);
  pointer-events: none;
  transition: opacity .25s ease, filter .25s ease, transform .25s cubic-bezier(.4, 0, .2, 1);
}
.carousel-card.active {
  position: relative;
  left: auto !important;
  top: auto !important;
  width: auto;
  transform: none !important;
  opacity: 1;
  filter: none;
  pointer-events: auto;
}
.carousel-card.prev {
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(.78) !important;
  width: 170px;
  opacity: .5;
  filter: blur(1px) brightness(.75);
  pointer-events: auto;
  cursor: pointer;
}
.carousel-card.next {
  left: auto !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) scale(.78) !important;
  width: 170px;
  opacity: .5;
  filter: blur(1px) brightness(.75);
  pointer-events: auto;
  cursor: pointer;
}
.carousel-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 10px 0 0;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(28,30,250,.12);
  color: var(--brand);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  z-index: 5;
}
.carousel-arrow:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.1); }
.carousel-arrow:active { transform: translateY(-50%) scale(.95); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Modal media hover for controls */
.modal-media { min-height: 280px; position: relative; }
.modal-media:hover .media-video-controls { opacity: 1; }
.modal-media video { min-height: 280px; display: block; }

/* Single video in modal (no carousel) */
.modal-single-video {
  max-width: 85%;
  margin: 0 auto;
}
.single-video-frame {
  border-radius: 16px;
}
.single-video-frame:hover .media-video-controls { opacity: 1; }

@media (max-width: 900px) {
  .module-modal-overlay { padding: 12px; }
  .modal-hero-banner,
  .modal-section,
  .modal-cta { padding-left: 24px; padding-right: 24px; }
  .modal-detail-cards { grid-template-columns: 1fr; }
  .modal-steps { grid-template-columns: repeat(2, 1fr); }
  .modal-steps::before { display: none; }
  .modal-scenario-list { grid-template-columns: 1fr; }
  .modal-cta { flex-direction: column; text-align: center; }
  .modal-stat-row { justify-content: center; }
}

@media (max-width: 640px) {
  .modal-hero-banner { padding: 32px 20px 28px; }
  .modal-stat-row { flex-direction: column; }
  .modal-steps { grid-template-columns: 1fr; }
  .carousel-track { padding: 0 50px; min-height: 240px; }
  .carousel-card.prev { width: 100px; left: 4px !important; }
  .carousel-card.next { width: 100px; right: 4px !important; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-prev { left: 2px; }
  .carousel-next { right: 2px; }
}
