/* Avoid a flash of hardcoded English before app.js swaps in the visitor's
   saved language on every page load (this is a multi-page site, so this
   runs fresh on every navigation, not just once per session). Paired with
   the reveal in app.js — body stays hidden only until translation finishes
   (or a ~1.5s failsafe), so this costs nothing perceptible either way. */
html:not(.i18n-ready) body {
  visibility: hidden;
}

/* ==========================================
   UWELL CLOUD BRAND SYSTEM & DESIGN TOKENS
   ========================================== */
:root {
  /* Premium HSL Color Palette */
  --color-teal-primary: #0A5C5A;       /* HSL: 178, 80%, 20% - Clinical Safety */
  --color-teal-light: #0f8b88;         /* Primary hover */
  --color-teal-dark: #053332;          /* Header, footer, dark backdrops */
  --color-gold: #D4AF37;               /* HSL: 45, 64%, 52% - Warm premium accent */
  --color-gold-hover: #bda02b;
  --color-platinum: #F7F5F0;           /* Luxury resort sand canvas */
  --color-slate-light: #e5e9e9;        /* Borders & structural grid lines */
  --color-white: #ffffff;
  --color-text-dark: #112222;          /* Maximum legibility dark slate */
  --color-text-muted: #556666;
  --color-text-light: #f1f5f5;
  
  /* Typography */
  --font-serif: 'Playfair Display', 'Noto Sans SC', Georgia, serif;
  --font-sans: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadow depth system */
  --shadow-sm: 0 2px 8px rgba(10, 92, 90, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 92, 90, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 92, 90, 0.12);
  --shadow-glass: 0 8px 32px rgba(5, 51, 50, 0.15);
  
  /* Border radii */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  /* Core layout dimensions */
  --header-height: 80px;
}

/* Base Styles & Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-platinum);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-teal-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
}

/* ==========================================
   BUTTONS & COMMON INTERACTIVE ELEMENTS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 48px; /* Tap Target Compliance */
  text-decoration: none;
  white-space: nowrap;
}

.btn-icon {
  margin-right: 0.5rem;
}

.btn-teal {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
}

.btn-teal:hover {
  background-color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 92, 90, 0.2);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-teal-dark);
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.badge-gold {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  background-color: rgba(212, 175, 55, 0.05);
  margin-bottom: 1.5rem;
}

.section-title {
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.accent-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  /* Near-solid bg instead of backdrop-filter: blur — the fixed full-width
     blur forced a re-blur of the whole viewport every scroll frame (jank). */
  background-color: rgba(5, 51, 50, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Minimum breathing room between logo / scrollable nav / actions, so the
     nav's clipped last item never visually collides with the language pill. */
  gap: 1.25rem;
  height: 100%;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
  cursor: pointer;
  /* The nav is the flexible element — the brand must never be crushed into
     a multi-line wrap by verbose locales. */
  flex: 0 0 auto;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--color-gold);
  margin-right: 0.75rem;
  animation: shine 3s infinite ease-in-out;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2rem;
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* Room for the scroll-position track below the links, inside the box —
     overflow-y: hidden clips anything positioned outside these bounds. */
  padding-bottom: 10px;
  /* Decouples scroll math from RTL locales — visual order is already reversed
     via flex-direction: row-reverse below, so scrollLeft stays 0-at-start,
     positive-toward-end in every language, letting one fade-hint script work everywhere. */
  direction: ltr;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
/* Edge fade hints — shown only while there's more nav to scroll to (toggled
   by site-chrome.js). position:absolute takes these out of the flex flow so
   they don't become nav items themselves. */
.nav-links::before,
.nav-links::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}
.nav-links::before {
  left: 0;
  background: linear-gradient(to right, rgba(5, 51, 50, 0.97), transparent);
}
.nav-links::after {
  right: 0;
  background: linear-gradient(to left, rgba(5, 51, 50, 0.97), transparent);
}
.nav-links.nav-fade-start::before {
  opacity: 1;
}
.nav-links.nav-fade-end::after {
  opacity: 1;
}

/* Scroll-position indicator — a pill-shaped track + draggable thumb below
   the nav links, shown only while the nav actually overflows (site-chrome.js
   toggles .nav-scrollable). position:absolute keeps both out of the flex
   item flow. Click the track to jump; drag the thumb to scroll directly. */
.nav-scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.25s ease, height 0.15s ease, bottom 0.15s ease;
  pointer-events: none;
  cursor: pointer;
}
.nav-links.nav-scrollable .nav-scroll-track {
  pointer-events: auto;
}
/* Revealed on hover (or mid-drag, when the cursor may leave the nav) rather
   than always-on — a permanently visible bar under the labels reads as a
   misplaced text underline, not a scrollbar. The edge fades remain the
   always-on overflow hint. */
.nav-links.nav-scrollable:hover .nav-scroll-track,
.nav-links.nav-scrollable .nav-scroll-track:has(.nav-scroll-thumb.is-dragging) {
  opacity: 1;
}
.nav-links.nav-scrollable .nav-scroll-track:hover {
  height: 5px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.nav-scroll-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  min-width: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: grab;
  transition: left 0.15s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.15s ease, transform 0.15s ease;
}
.nav-scroll-track:hover .nav-scroll-thumb {
  background: var(--color-gold);
}
.nav-scroll-thumb:hover {
  transform: scaleY(1.6);
}
.nav-scroll-thumb.is-dragging {
  background: var(--color-gold);
  cursor: grabbing;
  transform: scaleY(1.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
@media (max-width: 768px) {
  .nav-scroll-track {
    display: none;
  }
}

.nav-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-links a[aria-current="page"],
.nav-links a.active {
  color: var(--color-gold);
  font-weight: 500;
}

/* Long-label locales (en, fr, es…) overflow the nav at common laptop widths;
   tighten spacing here so the scroll affordance only has to kick in on
   genuinely narrow windows. min-width guard keeps this out of the mobile
   hamburger panel, which sets its own type. */
@media (max-width: 1600px) and (min-width: 769px) {
  .header-container {
    padding: 0 1.5rem;
  }
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.01rem;
  }
}

.nav-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 0 -0.25rem;
  align-self: center;
  display: inline-block;
}

.staff-portal-link {
  opacity: 0.7;
  font-size: 0.85rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.staff-portal-link:hover {
  opacity: 1;
  color: var(--color-gold);
}

@media (max-width: 992px) {
  .nav-divider {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

/* Language Dropdown Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--color-white);
}

.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: var(--color-teal-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  min-width: 260px;
  overflow: hidden;
  z-index: 1002;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.4rem;
  gap: 0.2rem;
}

.lang-dropdown.show {
  display: grid;
}

.lang-dropdown button {
  background: transparent;
  color: var(--color-text-light);
  border: none;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 4px;
  width: 100%;
}

.lang-dropdown button:hover {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  position: relative;
  /* min-height, NOT height: verbose locales (bn/pt run ~50% longer than en)
     must grow the section instead of overflowing under the fixed header at
     the top and into the overlapping catalog band at the bottom. */
  min-height: 95vh;
  background: radial-gradient(circle at center, #0B4B49 0%, #052221 100%);
  display: flex;
  align-items: center;
  /* Hard clearances: header above, and the catalog band that overlaps this
     section by -3.5rem below — content may never enter either zone. */
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 6.5rem;
  overflow: hidden;
}

/* Static hero backdrop — ocean sands / clinic views. Deliberately NOT
   animated: the former Ken Burns drift kept a full-viewport raster layer
   composited every frame and users felt it as scroll lag. */
.hero-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(10, 92, 90, 0.65) 0%, rgba(5, 33, 32, 0.85) 100%), url('images/clinical_resort_hero.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* ==========================================
   HERO AMBIENT ACCENTS — a handful of ~1rem four-point gold star glints
   (echoing the brand's star mark) twinkling on opacity/scale. Each is a tiny
   composited layer, so the whole set costs ~nothing per frame — this
   replaced the former full-viewport orb/Ken Burns animation.
   ========================================== */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-glint {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--color-gold);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  animation: glintTwinkle 6s ease-in-out infinite;
}

/* Scattered over the image side (opposite the hero copy). inline-end, not
   `right`, so they flip away from the text in RTL locales too. */
.hero-glint-1 { top: 18%; inset-inline-end: 12%; }
.hero-glint-2 { top: 34%; inset-inline-end: 26%; width: 9px;  height: 9px;  animation-duration: 7.5s; animation-delay: 1.6s; }
.hero-glint-3 { top: 12%; inset-inline-end: 38%; width: 11px; height: 11px; animation-duration: 5.2s; animation-delay: 3.1s; }
.hero-glint-4 { top: 58%; inset-inline-end: 8%;  width: 10px; height: 10px; animation-duration: 8s;   animation-delay: 0.8s; }
.hero-glint-5 { top: 74%; inset-inline-end: 30%; width: 8px;  height: 8px;  animation-duration: 6.8s; animation-delay: 4.2s; }

@keyframes glintTwinkle {
  0%, 100% { opacity: 0;    transform: scale(0.5) rotate(0deg); }
  50%      { opacity: 0.85; transform: scale(1)   rotate(25deg); }
}

/* Set only via IntersectionObserver (index.html) once the hero scrolls out
   of view — even cheap loops shouldn't run for the rest of the page's
   scroll depth. */
.hero-anim-paused .hero-glint {
  animation-play-state: paused;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(212, 175, 55, 0.07) 0%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
}

/* Staggered entry: each hero child rises in once on mount. transform/opacity
   only; the global prefers-reduced-motion block collapses it to an instant
   appear. Delays are additive theatre — badge sets the stage, headline lands,
   supporting copy and actions follow. */
.hero-content > * {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.75s; }
.hero-content > *:nth-child(6) { animation-delay: 0.9s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Quiet scroll cue: a slim capsule with a falling dot. Decorative only. */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  /* Clear of the catalog band that overlaps the hero bottom by 3.5rem. */
  bottom: 4.75rem;
  /* margin centering, not translateX — the heroRise keyframes own `transform`
     and would clobber it on fill. */
  margin-left: -12px;
  z-index: 3;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
  pointer-events: none;
}
.hero-scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--color-gold);
  animation: cueDrop 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  65%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(13px); opacity: 0; }
}

.hero-content h1 {
  /* Fluid: long-script locales get a headline that scales down instead of
     clipping. ~64px on desktop, floors at 40px. */
  font-size: clamp(2.5rem, 3.2vw + 1.2rem, 4rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-content p {
  font-size: clamp(1.05rem, 0.4vw + 0.85rem, 1.25rem);
  max-width: 650px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  max-width: 800px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05rem;
}

/* ==========================================
   REGULATORY PILLARS
   ========================================== */
.regulatory-pillars {
  padding: 7rem 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-primary);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ==========================================
   SIGNATURE CLINICAL PROGRAMS
   ========================================== */
.programs-section {
  padding-block: 2rem 4rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal-primary);
}

.program-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.program-name {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--color-teal-dark);
}

.program-name-zh {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-inline-start: 0.35rem;
}

.program-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.program-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-primary);
  background-color: rgba(15, 139, 136, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  margin-bottom: 0.9rem;
  align-self: flex-start;
}

.program-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.program-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  /* Pushes the whole button row to the bottom together, so "Learn more" and
     the CTA line up across cards regardless of how much each card's
     description/price text wraps above them. */
  margin-block-start: auto;
}

/* Both buttons share the row when there's room, and each wraps to its own
   full-width line when the card is too narrow for them to sit side by side
   (e.g. long-locale CTAs like RU "Запросить предварительный скрининг" or
   DE "Vorab-Prüfung anfragen"). min-width:0 + normal wrapping lets the label
   break across lines instead of clipping/overflowing the card. */
.program-actions .btn {
  flex: 1 1 130px;
  min-width: 0;
  white-space: normal;
}

.program-actions .btn-outline {
  border-color: var(--color-teal-primary);
  color: var(--color-teal-primary);
}

.program-actions .btn-outline:hover {
  background-color: rgba(15, 139, 136, 0.08);
  border-color: var(--color-teal-primary);
}

.program-cta {
  /* Full-width by default: `.program-cta` is reused as a standalone CTA button
     on the drug/device pages (direct child of <article>, not a flex row), where
     it must fill the column. Inside `.program-actions` the flex-basis in the
     `.program-actions .btn` rule above governs the main size instead, so this
     100% is inert there and does not cause the narrow-card overflow. */
  width: 100%;
}

/* In the programs button row the CTA takes the larger share of the free space
   when it sits side by side with "Learn more". */
.program-actions .program-cta {
  flex-grow: 2;
}

/* ==========================================
   CLINICAL PATHWAYS (TABS)
   ========================================== */
.pathways-section {
  padding: 7rem 0;
  background-color: var(--color-white);
}

.pathways-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.path-tab {
  background: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  min-height: 48px;
  white-space: nowrap;
}

.path-tab:hover {
  background: var(--color-white);
  border-color: var(--color-teal-primary);
}

.path-tab.active {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
  border-color: var(--color-teal-primary);
  box-shadow: 0 4px 12px rgba(10, 92, 90, 0.15);
}

.pathway-content {
  display: none;
}

.pathway-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.pathway-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.pathway-info p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.pathway-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pathway-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: var(--color-text-dark);
}

.pathway-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.pathway-itinerary {
  border-top: 1px solid var(--color-slate-light);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.itinerary-badge {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-teal-dark);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.pathway-visual {
  display: flex;
  justify-content: center;
}

.glass-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-width: 450px;
  background-color: var(--color-teal-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 4px solid var(--color-white);
  outline: 1px solid var(--color-slate-light);
}

.visual-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  /* solid bg — was backdrop-filter: blur(8px) over a scrolling image */
  background: rgba(5, 51, 50, 0.92);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom CSS Art Visuals */
.stem-cell-visual {
  background: radial-gradient(circle at center, #0B4B49 0%, #031F1E 100%);
}

.dna-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.dna-animation .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: bounce 2s infinite ease-in-out;
}

.dot-1 { animation-delay: 0s !important; }
.dot-2 { animation-delay: 0.3s !important; }
.dot-3 { animation-delay: 0.6s !important; }
.dot-4 { animation-delay: 0.9s !important; }

.oncology-visual {
  background: linear-gradient(135deg, #052625 0%, #154c49 100%);
}

.scanner-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: var(--color-gold);
  box-shadow: 0 0 15px var(--color-gold);
  animation: scan 4s infinite linear;
}

.antiaging-visual {
  background: radial-gradient(circle at bottom right, #e2cc85 0%, #0A5C5A 100%);
}

.sun-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
}

.metabolic-visual {
  background: linear-gradient(45deg, #0A5C5A 0%, #d5dbcb 100%);
}

/* ==========================================
   CLINICAL SEARCH & DIRECTORY
   ========================================== */
.directory-section {
  padding: 7rem 2rem;
}

.search-panel {
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.search-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.search-inputs input, .search-inputs select {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  min-height: 48px; /* accessibility target */
  background-color: var(--color-platinum);
  outline: none;
  transition: all 0.2s;
}

.search-inputs input:focus, .search-inputs select:focus {
  border-color: var(--color-teal-primary);
  background-color: var(--color-white);
}

.directory-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.doc-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.doc-card-header {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 2px solid var(--color-gold);
}

.doc-avatar {
  width: 70px;
  height: 85px;
  border-radius: var(--radius-sm);
  background-color: var(--color-gold);
  color: var(--color-teal-dark);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
  border: 2px solid var(--color-gold);
}

.doc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-meta h4 {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.doc-title-line {
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.doc-card-body {
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

.doc-hospital {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal-primary);
  margin-bottom: 1rem;
}

.doc-credential-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.doc-credential-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.doc-credential-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-teal-primary);
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doc-tag {
  background-color: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.doc-tag-lang {
  background-color: rgba(10, 92, 90, 0.05);
  color: var(--color-teal-primary);
  border-color: rgba(10, 92, 90, 0.15);
}

.doc-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-slate-light);
  background-color: var(--color-platinum);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-trust {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--color-teal-primary);
}

/* ==========================================
   SOP TIMELINE
   ========================================== */
.sop-section {
  padding: 7rem 0;
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  overflow: hidden;
}

.sop-section h2 {
  color: var(--color-white);
}

.sop-section p {
  color: rgba(255, 255, 255, 0.7);
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 2.5rem;
  z-index: 2;
  cursor: pointer;
}

.step-num {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #0d4644;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  flex-grow: 1;
  transition: all 0.3s;
}

.step-duration {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.05rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.step-content h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.step-tag {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* Active Timeline States */
.timeline-step.active .step-num {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-teal-dark);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.timeline-step.active .step-content {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-glass);
}

/* ==========================================
   AI SEO & GEO ENGINE SECTION
   ========================================== */
.seo-engine-section {
  padding: 7rem 2rem;
}

.seo-container {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 3rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 550px;
}

.seo-tabs {
  background-color: var(--color-teal-dark);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seo-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.seo-tab-num {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.seo-tab-title {
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
}

.seo-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.seo-tab.active {
  background-color: var(--color-teal-primary);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.seo-tab.active .seo-tab-title {
  color: var(--color-white);
}

.seo-content-viewer {
  padding: 3rem;
}

.seo-panel {
  display: none;
}

.seo-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.seo-panel h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.panel-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* Agent flow diagram styling */
.agent-flow-visual {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.agent-node {
  background: var(--color-white);
  border: 1px solid var(--color-teal-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.node-icon {
  font-size: 1rem;
}

.agent-arrow {
  color: var(--color-gold);
  font-weight: bold;
}

.compliance-box {
  background-color: #f7f9f9;
  border-left: 4px solid var(--color-gold);
  padding: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2.5rem;
}

.compliance-list {
  list-style: none;
  margin-top: 1rem;
}

.compliance-list li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.compliance-list strong {
  color: var(--color-teal-dark);
}

/* Interactive Article Generator Demo */
.interactive-demo-card {
  background: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: inset var(--shadow-sm);
}

.interactive-demo-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.interactive-demo-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.demo-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.demo-inputs select {
  flex-grow: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  background-color: var(--color-white);
  outline: none;
}

.article-generation-output {
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: 0.9rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-sans);
}

.output-placeholder {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  font-style: italic;
}

/* SEO Grid Structures for other tabs */
.features-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-item h5 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.onpage-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.onpage-stage {
  background-color: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stage-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.onpage-stage h6 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.onpage-stage p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.geo-card {
  background-color: var(--color-platinum);
  border-left: 3px solid var(--color-teal-primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.geo-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.geo-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Table Style */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.premium-table th {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  text-align: left;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.premium-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-slate-light);
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

.premium-table tr:hover {
  background-color: var(--color-platinum);
}

/* ==========================================
   TRUST SECTION
   ========================================== */
.trust-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--color-slate-light);
  background-color: var(--color-platinum);
}

.trust-section h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.trust-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.trust-logos-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-slate-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.logo-item:hover .logo-circle {
  border-color: var(--color-gold);
  transform: scale(1.08);
}

.logo-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
  background-color: var(--color-teal-dark);
  color: var(--color-white);
  padding: 5rem 2rem 2.5rem 2rem;
  border-top: 2px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.brand-info-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links, .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h5, .footer-contacts h5 {
  color: var(--color-white);
  font-size: 1.15rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-contacts p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-contacts strong {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* ==========================================
   MODALS (TRIAGE MODAL)
   ========================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Near-solid bg instead of backdrop-filter: blur — with the modal open
     for the whole triage flow, every repaint behind it (cursor blink in a
     focused textarea, any still-running page animation) forced a re-blur
     of the full viewport every frame, felt as lag while typing. */
  background-color: rgba(5, 33, 32, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-slate-light);
  animation: modalSlideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 0.5;
  transition: color 0.2s;
  z-index: 2005;
}

.modal-close-btn:hover {
  color: var(--color-teal-primary);
}

.modal-header {
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
  background-color: var(--color-platinum);
  border-bottom: 1px solid var(--color-slate-light);
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Triage Stepper */
.triage-stepper {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 2.5rem;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-light);
}

.triage-step-indicator {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

.triage-step-indicator.active {
  color: var(--color-teal-primary);
  font-weight: 600;
}

.triage-step-indicator.done {
  color: var(--color-gold);
}

.modal-body-container {
  padding: 2.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.triage-form-step {
  display: none;
}

.triage-form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.triage-form-step h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.triage-form-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.specialty-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.spec-card-label {
  cursor: pointer;
}

.spec-card-label input[type="radio"],
.spec-card-label input[type="checkbox"] {
  display: none;
}

.spec-card-inner {
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: var(--color-platinum);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.25s ease, background-color 0.25s ease;
  height: 100%;
  position: relative;
}

.spec-card-label:hover .spec-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 79, 78, 0.12);
  border-color: var(--color-teal-primary);
}

.spec-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.75rem;
}

.spec-icon .uw-icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-teal-primary);
  display: inline-block;
  vertical-align: middle;
}

.spec-card-inner h6 {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-teal-dark);
  margin-bottom: 0.4rem;
}

.spec-card-inner p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Checked styling for multi-select checkboxes & radios */
.spec-card-label input[type="radio"]:checked + .spec-card-inner,
.spec-card-label input[type="checkbox"]:checked + .spec-card-inner {
  border-color: var(--color-teal-primary);
  border-width: 2px;
  background-color: #f4f8f7;
  box-shadow: 0 6px 16px rgba(11, 79, 78, 0.15);
  transform: translateY(-2px);
}

.spec-card-label input[type="checkbox"]:checked + .spec-card-inner::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--color-teal-primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: checkmarkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes checkmarkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
  background-color: rgba(10, 92, 90, 0.05);
  box-shadow: 0 0 0 2px var(--color-teal-primary);
}

/* Drag drop area */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-slate-light);
  font-family: var(--font-sans);
  min-height: 48px;
}

.form-group textarea {
  min-height: 100px;
}

.drag-drop-zone {
  border: 2px dashed var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--color-platinum);
  transition: all 0.3s;
}

.drag-drop-zone.dragover {
  border-color: var(--color-teal-primary);
  background-color: rgba(10, 92, 90, 0.03);
}

/* Quick-pick symptom chips — a lower-effort alternative to the free-text
   box above it. Clicking inserts the phrase into the textarea rather than
   toggling a separate selection state, so it stays simple: no diffing
   against whatever the visitor has already typed by hand. */
.symptom-chips-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: -0.15rem 0 0.6rem;
}

.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.symptom-chip {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--color-teal-primary);
  background-color: transparent;
  color: var(--color-teal-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.symptom-chip:hover {
  background-color: rgba(10, 92, 90, 0.08);
}

.symptom-chip.added {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
  cursor: default;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.drag-drop-zone p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.selected-file-indicator {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-teal-primary);
}

.disclosure-scroll-box {
  background-color: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.disclosure-scroll-box p {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.85rem !important;
  color: var(--color-text-dark);
  font-weight: 400 !important;
}

/* Step 4 Review summary card */
.review-summary-card {
  background-color: var(--color-platinum);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.review-row strong {
  color: var(--color-teal-dark);
}

.review-row span {
  color: var(--color-text-muted);
}

/* API Results Container */
.triage-api-result-container {
  display: none;
}

.triage-api-result-container.active {
  display: block;
}

.result-card {
  border: 1px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1rem;
}

.result-card h5 {
  font-size: 1.25rem;
  color: var(--color-teal-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-score {
  background-color: var(--color-gold);
  color: var(--color-teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.result-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.result-steps {
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.result-steps li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.result-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

.result-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-slate-light);
  padding-top: 1rem;
  font-style: italic;
}

/* Modal Loading state */
.api-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-slate-light);
  border-top: 4px solid var(--color-teal-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1.5rem;
}

.loader-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-teal-primary);
}

.modal-footer {
  padding: 1.5rem 2.5rem;
  background-color: var(--color-platinum);
  border-top: 1px solid var(--color-slate-light);
  display: flex;
  justify-content: space-between;
}

/* ==========================================
   PRESENTATION DECK OVERLAY
   ========================================== */
.presentation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-teal-dark);
  z-index: 3000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.presentation-overlay.active {
  display: flex;
}

.presentation-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 3005;
  line-height: 0.5;
  transition: color 0.2s;
}

.presentation-close:hover {
  color: var(--color-gold);
}

.presentation-deck {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 6rem;
  position: relative;
}

.presentation-slide {
  position: absolute;
  width: calc(100% - 12rem);
  height: calc(100% - 10rem);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease-in-out;
  transform: translateX(50px);
}

.presentation-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  height: 100%;
}

.slide-text {
  color: var(--color-white);
}

.slide-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.slide-text h2 {
  font-size: 3.5rem;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.slide-lead {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.slide-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.slide-visual {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide 1 - Before After */
.comparison-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 450px;
}

.comp-pane {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.comp-pane.before {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.comp-pane.after {
  background-color: rgba(10, 92, 90, 0.3);
  border: 1px solid var(--color-gold);
}

.pane-header {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.comp-pane .gap-item, .comp-pane .win-item {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Slide 2 - Funnel */
.funnel-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.funnel-layer {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.funnel-layer.l1 { width: 100%; }
.funnel-layer.l2 { width: 85%; background: rgba(10, 92, 90, 0.2); }
.funnel-layer.l3 { width: 70%; background: rgba(10, 92, 90, 0.4); }
.funnel-layer.l4 { width: 55%; background: rgba(10, 92, 90, 0.6); }
.funnel-layer.l5 { width: 40%; background: var(--color-gold); color: var(--color-teal-dark); font-weight: bold;}

/* Slide 3 - Palette */
.color-palette-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.color-block {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-block span {
  font-weight: bold;
  width: 120px;
}

.color-block code {
  background-color: rgba(0,0,0,0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 1.5rem;
}

.color-block small {
  color: rgba(255, 255, 255, 0.6);
}

.teal-deep { background-color: var(--color-teal-primary); color: var(--color-white); }
.gold-brushed { background-color: var(--color-gold); color: var(--color-teal-dark); }
.platinum-warm { background-color: var(--color-platinum); color: var(--color-teal-dark); }

.aesthetics-moodboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.mood-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.mood-box span {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.mood-box p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem !important;
}

/* Slide 4 - SOP mini */
.sop-visualizer-demo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.sop-card-mini {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.sop-card-mini.active {
  border-color: var(--color-gold);
  background-color: rgba(10, 92, 90, 0.3);
}

.sop-card-mini h6 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sop-card-mini p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.85rem !important;
}

/* Slide 5 - SEO slide */
.seo-slide-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.seo-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-white);
}

.seo-block:hover {
  border-color: var(--color-gold);
  background-color: rgba(10, 92, 90, 0.2);
}

/* Slide 6 - Tech Stack phases */
.timeline-phases {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.phase {
  border-left: 2px solid var(--color-gold);
  padding-left: 1.25rem;
}

.phase strong {
  color: var(--color-gold);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.phase p {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.roi-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.roi-card h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.roi-stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
}

.roi-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.roi-value {
  color: var(--color-gold);
  font-weight: bold;
}

/* Presentation HUD */
.presentation-hud {
  height: 80px;
  background-color: var(--color-teal-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 3002;
}

.hud-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
  transition: background-color 0.2s;
}

.hud-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.hud-dots {
  display: flex;
  gap: 0.75rem;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hud-dot.active {
  background-color: var(--color-gold);
}

/* ==========================================
   FLOATING CHAT WIDGET
   ========================================== */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-teal-primary);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s;
}

.chat-launcher:hover {
  transform: scale(1.05);
}

.chat-icon {
  font-size: 1.8rem;
  color: var(--color-white);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--color-gold);
  color: var(--color-teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  height: 400px;
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

.chat-panel.show {
  display: flex;
}

.chat-header {
  background-color: var(--color-teal-dark);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-gold);
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.agent-info h6 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.agent-status {
  font-size: 0.7rem;
  color: var(--color-gold);
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-platinum);
}

.chat-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  max-width: 85%;
  line-height: 1.4;
}

.chat-msg.system {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  align-self: flex-start;
  border-left: 3px solid var(--color-teal-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}

.chat-msg.user {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
  align-self: flex-end;
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.chat-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--color-slate-light);
  display: flex;
  gap: 0.5rem;
}

.chat-footer input {
  flex-grow: 1;
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
}

.chat-footer button {
  background-color: var(--color-teal-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 98%; }
  100% { top: 0%; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes shine {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 2px var(--color-gold)); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px var(--color-gold)); }
}

/* Honor the OS "reduce motion" setting — disables the always-on infinite
   animations (shine/bounce/scan) that repaint every frame and compete with
   the scroll for main-thread budget. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  /* .hero-content h1 is fluid (clamp) — no fixed override needed here. */
  .pathway-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pathway-visual {
    order: -1;
  }
  .seo-container {
    grid-template-columns: 1fr;
  }
  .seo-tabs {
    flex-direction: row;
    overflow-x: auto;
  }
  .slide-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow-y: auto;
  }
  .slide-visual {
    order: -1;
    height: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    /* Collapsed into the hamburger slide-down panel — see MOBILE NAV section */
    display: none;
  }
  .search-inputs {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .presentation-deck {
    padding: 3rem 2rem;
  }
  .presentation-slide {
    width: calc(100% - 4rem);
    height: calc(100% - 8rem);
  }
  .presentation-hud {
    padding: 0 2rem;
  }
}

/* Doctor Bio Modal Styles */
.bio-modal-card {
  max-width: 700px;
}
.bio-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
}
.bio-image-wrapper {
  width: 160px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: var(--shadow-md);
}
.bio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-details h4 {
  font-size: 1.8rem;
  color: var(--color-teal-dark);
  margin-bottom: 0.25rem;
}
.bio-details .bio-role {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.5rem;
}
.bio-details .bio-hospital {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-teal-primary);
  margin-bottom: 1rem;
}
.bio-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--color-slate-light);
  padding-bottom: 0.35rem;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--color-teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}
.bio-history-list {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-dark);
}
.bio-history-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}
.bio-history-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* Special-Import Hero Block Styles */
.special-import-hero-block .glassmorphic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.special-import-hero-block .glassmorphic-card:hover .hero-block-arrow-circle {
  background: var(--color-gold) !important;
  color: var(--color-teal-dark) !important;
  border-color: var(--color-gold) !important;
  transform: scale(1.1) translateX(4px);
}

.special-import-hero-block .glassmorphic-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.special-import-hero-block .hero-block-arrow-circle {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   BLOG / INSIGHTS SECTIONS
   ========================================================================== */

/* Blog Index Styles */
.bi-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 1.25rem 3rem;
}
.bi-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}
.bi-head p {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.bi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.bi-filter {
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-slate-light);
  background: #fff;
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bi-filter:hover {
  border-color: var(--color-teal-primary);
  color: var(--color-teal-primary);
}
.bi-filter.is-active {
  background: var(--color-teal-primary);
  color: #fff;
  border-color: var(--color-teal-primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}
.blog-card-locale {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-teal-primary);
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0.35rem 0 0.5rem;
  color: var(--color-teal-dark);
}
.blog-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0.5rem;
}
.bi-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-teal-primary);
  background: rgba(15, 139, 136, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.bi-empty {
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 2rem 0;
}
.blog-card.is-hidden {
  display: none;
}

/* Article Detail Page Styles */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 3rem;
}
.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.article-breadcrumb a {
  color: var(--color-teal-primary);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1rem 0 1.5rem;
}
.article-wrap h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1.5rem;
}
.article-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-teal-primary);
  background: rgba(15, 139, 136, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  font-weight: 500;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-teal-primary);
  background: rgba(15, 139, 136, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
}
.article-section {
  margin: 1.75rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.article-section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.article-section p {
  line-height: 1.7;
  margin-bottom: 0.9rem;
}
.article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.article-table th,
.article-table td {
  border: 1px solid var(--color-slate-light);
  padding: 0.55rem 0.7rem;
  text-align: left;
}
.article-table thead th {
  background: rgba(15, 139, 136, 0.06);
  color: var(--color-teal-dark);
}
.article-faq {
  margin: 2rem 0;
}
.article-faq-item {
  border: 1px solid var(--color-slate-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.article-faq-item summary {
  font-weight: 600;
  cursor: pointer;
}
.article-faq-item > div {
  margin-top: 0.5rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.article-disclaimer {
  border: 1px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin: 2.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-dark);
}
.article-disclaimer strong {
  color: var(--color-teal-primary);
}
.article-ai-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0.75rem 0;
}
.article-cta {
  text-align: center;
  margin: 2rem 0;
}
.article-back {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--color-teal-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.article-back:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RTL LANGUAGE OVERRIDES (ARABIC)
   ========================================================================== */
html[dir="rtl"] body {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .text-left {
  text-align: right;
}

html[dir="rtl"] .text-right {
  text-align: left;
}

/* Nav links & Layout */
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

/* Hero Section alignments */
html[dir="rtl"] .hero-section {
  text-align: right;
}

html[dir="rtl"] .hero-ctas {
  justify-content: flex-start;
  gap: 1.5rem;
}

html[dir="rtl"] .hero-stats {
  flex-direction: row-reverse;
}

html[dir="rtl"] .stat-item {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 0;
  padding-right: 2rem;
}

html[dir="rtl"] .stat-item:first-child {
  border-right: none;
  padding-right: 0;
}

/* Sections & Cards */
html[dir="rtl"] .program-card {
  text-align: right;
}

html[dir="rtl"] .advantage-card {
  text-align: right !important;
}

html[dir="rtl"] .commitment-card {
  text-align: right;
}

html[dir="rtl"] .commitment-card::after {
  left: auto;
  right: 0;
  width: 4px;
  height: 100%;
}

/* Timeline & Steps */
html[dir="rtl"] .sop-step {
  text-align: right;
}

html[dir="rtl"] .step-number {
  margin-right: 0;
  margin-left: 1.5rem;
}

/* Footer layout */
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-brand {
  text-align: right;
}

/* Language selector dropdown adjustments */
html[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
  text-align: right;
}

/* Special drugs & catalog */
html[dir="rtl"] .drug-card {
  text-align: right;
}

html[dir="rtl"] .drug-badge-status {
  margin-left: 0;
  margin-right: auto;
}

/* Treatment Page layout */
html[dir="rtl"] .treatment-grid {
  direction: rtl;
}

html[dir="rtl"] .treatment-sidebar {
  text-align: right;
}

html[dir="rtl"] .detail-badge {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .clinical-advantages-list li {
  padding-left: 0;
  padding-right: 1.5rem;
}

html[dir="rtl"] .clinical-advantages-list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
}



/* ===== UWELL ICONS v2 — colorful animated SVG icon system (icons.js) ===== */
.uw-icon {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  color: var(--uw-accent, var(--color-gold, #D4AF37));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.uw-icon svg { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
/* tinted halo behind the glyph */
.uw-icon::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, currentColor 16%, transparent) 0%, transparent 72%);
  transform: scale(0.9);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
/* context sizing — icons never depend on inherited font-size alone */
.pillar-icon .uw-icon { width: 2.4rem; height: 2.4rem; }
.program-icon .uw-icon { width: 2rem; height: 2rem; }
.tab-icon .uw-icon { width: 1.25em; height: 1.25em; }
.spec-icon .uw-icon { width: 1.5em; height: 1.5em; }
.drug-group-title .uw-icon { width: 1.25em; height: 1.25em; }
.uw-icon { max-width: 3.5rem; max-height: 3.5rem; }
/* draw-in on first scroll into view */
.uw-icon svg path, .uw-icon svg circle { stroke-dasharray: 70; stroke-dashoffset: 70; }
.uw-icon.uw-inview svg path, .uw-icon.uw-inview svg circle { animation: uwDraw 1.1s cubic-bezier(0.5, 0, 0.3, 1) forwards; }
@keyframes uwDraw { to { stroke-dashoffset: 0; } }
/* looping hover animation: gentle bob + tilt, halo pulse */
*:hover > .uw-icon svg, .uw-icon:hover svg { animation: uwBob 1.4s ease-in-out infinite; }
*:hover > .uw-icon::before, .uw-icon:hover::before { animation: uwPulse 1.4s ease-in-out infinite; }
@keyframes uwBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-3px) rotate(-4deg); }
  65% { transform: translateY(1px) rotate(3deg); }
}
@keyframes uwPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}
/* inside buttons and the language selector, follow the button color */
.btn .uw-icon, .lang-btn .uw-icon { color: currentColor; }
.btn .uw-icon::before, .lang-btn .uw-icon::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .uw-icon svg path, .uw-icon svg circle { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .uw-icon svg, .uw-icon::before { animation: none !important; }
  .uw-icon { transition: none; }
}

/* ==========================================================================
   MOBILE NAV / HAMBURGER (rendered by public/site-chrome.js + blog SSR)
   ========================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.7rem;
  min-height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    /* logical margin: keeps it at the trailing edge in LTR and RTL alike */
    margin-inline-start: 0.75rem;
  }
  body.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #053332;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0 0.75rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 999;
  }
  body.nav-open .nav-links a {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.nav-open .nav-links a:last-child { border-bottom: none; }
  body.nav-open .nav-links .nav-divider {
    display: block;
    width: auto;
    height: 1px;
    margin: 0.35rem 1.5rem;
    align-self: auto;
  }
}
/* Hide the header consult CTA on very small screens to leave room */
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}
/* RTL: the collapsed panel is a column — undo the desktop row-reverse and right-align text */
html[dir="rtl"] body.nav-open .nav-links {
  flex-direction: column;
  text-align: right;
}

/* ==========================================================================
   HUB HOMEPAGE (compact hero + tile grid + advantages strip)
   ========================================================================== */
.hero-compact {
  min-height: auto;
  padding: calc(var(--header-height) + 3rem) 0 3rem;
}
.hero-compact h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}
.hero-compact .hero-desc-condensed {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  margin-bottom: 0.6rem;
}
.hero-compact .hero-ctas { margin-top: 1.5rem; }
.hero-compact .hero-stats { margin-top: 2rem; }
@media (max-width: 768px) {
  .hero-compact .hero-desc-condensed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-compact .hero-stats { display: none; }
}

.hub-tiles-section {
  padding: 3.5rem 0 4rem;
}
.hub-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 992px) { .hub-tiles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hub-tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; } }
.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.hub-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.hub-tile .uw-icon { font-size: 2rem; }
.hub-tile-label {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
}
.hub-tile-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}
html[dir="rtl"] .hub-tile { align-items: flex-end; text-align: right; }

.adv-strip {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.adv-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 768px) { .adv-strip-grid { grid-template-columns: repeat(2, 1fr); } }
.adv-strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}
.adv-strip-item .uw-icon { font-size: 1.5rem; flex-shrink: 0; }
.adv-strip-item h3 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}
html[dir="rtl"] .adv-strip-item { text-align: right; }

/* ==========================================================================
   SUBPAGE HERO (journey / programs / concierge / hospitals / specialists)
   ========================================================================== */
.page-hero {
  padding: calc(var(--header-height) + 3.5rem) 0 2.5rem;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(13, 138, 135, 0.14), transparent 60%),
              radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.07), transparent 50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.page-hero h1 {
  font-family: var(--font-serif);
  color: var(--color-teal-dark);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  color: rgba(5, 51, 50, 0.68);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Reception standards strip (journey.html, source: 接待流程.docx) */
.reception-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 768px) { .reception-list { grid-template-columns: 1fr; } }
.reception-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.55;
}
.reception-item .reception-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.05rem;
}
html[dir="rtl"] .reception-item { text-align: right; }

/* ===== HUB TILE GRID (mini-program style homepage entries) ===== */
.hub-tiles-section { padding: 3rem 0 1rem; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hub-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.6rem 1rem; text-align: center; text-decoration: none;
  color: var(--color-teal-dark, #053332); font-weight: 600; font-size: 0.95rem;
  background: #ffffff; border: 1px solid rgba(5, 51, 50, 0.08);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 14px rgba(5, 51, 50, 0.06);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}
.hub-tile:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 10px 26px rgba(5, 51, 50, 0.12); }
.hub-tile .uw-icon { width: 2rem; height: 2rem; }
.hub-advantages { padding: 2rem 0; }
.hub-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hub-adv { padding: 1.25rem; border-radius: var(--radius-lg, 16px); background: #ffffff; border: 1px solid rgba(5, 51, 50, 0.08); box-shadow: 0 4px 14px rgba(5, 51, 50, 0.06); text-align: center; }
.hub-adv .uw-icon { width: 1.6rem; height: 1.6rem; }
.hub-adv h3 { font-size: 1rem; margin: 0.6rem 0 0.4rem; color: var(--color-teal-dark, #053332); }
.hub-adv p { font-size: 0.82rem; line-height: 1.55; color: rgba(5, 51, 50, 0.68); margin: 0; }
@media (max-width: 768px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .hub-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
