/* ==========================================================================
   Main Stylesheet — Singapore Cardiology Clinic Homepage
   Generated: 2026-02-05

   This file uses CSS custom properties exclusively from:
   - design-system/tokens.css (colour, typography, spacing, shadow tokens)
   - design-system/components.css (base component patterns)

   All colours and spacing reference design tokens — no hardcoded values.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOP BAR
   -------------------------------------------------------------------------- */

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.topbar__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.topbar__contact a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Phone — plain text with hairline icon, no background */
.topbar__contact a[href^="tel:"] {
  opacity: 0.9;
}

.topbar__contact a[href^="tel:"]:hover {
  opacity: 1;
  color: var(--color-white);
}

/* WhatsApp — subtle glass pill, only the icon stays brand-green */
.topbar__contact a[href*="wa.me"] {
  padding: 6px 14px 6px 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  color: var(--color-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.topbar__contact a[href*="wa.me"]:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(37, 211, 102, 0.4);
  color: var(--color-white);
}

.topbar__contact a[href*="wa.me"] svg {
  width: 15px;
  height: 15px;
  color: var(--color-whatsapp); /* the only colour in the whole pill */
}

.topbar__divider {
  display: none;
}

.topbar__address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  opacity: 1;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .topbar__address {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
  .topbar__contact {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   LOGO IMAGE
   -------------------------------------------------------------------------- */

.navbar__logo-img {
  height: 83px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .navbar__logo-img {
    height: 62px;
  }
}

.footer__logo-img {
  height: 78px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   NAVIGATION OVERRIDES
   -------------------------------------------------------------------------- */

/* Animated underline on nav links */
.navbar__link {
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary-700);
  transition: width var(--transition-base);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
}

@media (max-width: 1024px) {
  .navbar__cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   MEGA MENU
   -------------------------------------------------------------------------- */

.navbar {
  position: relative;
}

.navbar__links {
  position: static;
}

.navbar__dropdown {
  position: static;
  padding-bottom: 15px;
  margin-bottom: -15px;
}

.navbar__link--dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  padding: 0;
}

.navbar__link--dropdown:hover {
  color: var(--color-secondary-700);
}

.navbar__chevron {
  transition: transform var(--transition-base);
}

.navbar__dropdown.is-open .navbar__chevron {
  transform: rotate(180deg);
}

.mega-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent-500);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

/* Invisible hover bridge to prevent menu from closing when moving mouse down */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.navbar__dropdown:hover .mega-menu,
.navbar__dropdown.is-open .mega-menu {
  display: block !important;
}

.mega-menu__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
}

.mega-menu__column {
  display: flex;
  flex-direction: column;
}

.mega-menu__heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent-500);
}

.mega-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mega-menu__list a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.mega-menu__list a:hover {
  color: var(--color-secondary-700);
  padding-left: var(--space-2);
}

/* "View all conditions" footer link spanning the full mega-menu width */
.mega-menu__footer {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

.mega-menu__footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-700);
  text-decoration: none;
  transition: gap var(--transition-base);
}

.mega-menu__footer a:hover {
  gap: var(--space-3);
}

/* Simple single-column dropdown */
.navbar__dropdown--simple {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent-500);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: var(--space-3) 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.navbar__dropdown--simple:hover .dropdown-menu,
.navbar__dropdown--simple.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu__list a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: background var(--transition-base), color var(--transition-base);
}

.dropdown-menu__list a:hover {
  background: var(--color-gray-50);
  color: var(--color-secondary-700);
}

@media (max-width: 1024px) {
  .navbar__dropdown,
  .mega-menu,
  .dropdown-menu {
    display: none;
  }
}

/* =========================================================================
   NAV ACTIVE STATE — applied via class="is-active" + aria-current="page"
   from header.php. Top-level links/triggers get a bold + accent underline;
   dropdown items get a bold + secondary-colour highlight with a tinted bg
   so the user can quickly orient where they are.
   ========================================================================= */

/* Top-level desktop link / dropdown trigger */
.navbar__link.is-active,
.navbar__link--dropdown.is-active {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  position: relative;
}

.navbar__link.is-active::after,
.navbar__link--dropdown.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent-500);
  border-radius: 1px;
}

/* Mega-menu items */
.mega-menu__list a.is-active {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  padding-left: var(--space-2);
}

.mega-menu__footer a.is-active {
  color: var(--color-accent-700, var(--color-secondary-700));
}

/* Simple dropdown items */
.dropdown-menu__list a.is-active {
  background: var(--color-primary-50, rgba(59, 82, 184, 0.06));
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
}

/* Mobile menu — top-level link & accordion trigger */
.mobile-menu__links > li > a.is-active,
.mobile-menu__accordion-trigger.is-active {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
}

/* Mobile menu — submenu items */
.mobile-menu__submenu a.is-active {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-4);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.mobile-menu__links a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__links a:hover {
  color: var(--color-secondary-700);
}

.mobile-menu__cta {
  width: 100%;
  text-align: center;
}

/* Mobile menu accordion */
.mobile-menu__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu__accordion-trigger:hover {
  color: var(--color-secondary-700);
}

.mobile-menu__chevron {
  transition: transform var(--transition-base);
}

.mobile-menu__accordion.is-open .mobile-menu__chevron {
  transform: rotate(180deg);
}

.mobile-menu__submenu {
  display: none;
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu__accordion.is-open .mobile-menu__submenu {
  display: block;
}

.mobile-menu__group {
  margin-bottom: var(--space-4);
}

.mobile-menu__group:last-child {
  margin-bottom: 0;
}

.mobile-menu__group-title {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.mobile-menu__submenu a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  border-bottom: none;
}

.mobile-menu__submenu a:hover {
  color: var(--color-secondary-700);
}

/* --------------------------------------------------------------------------
   SKY BLUE & INDIGO ACCENT TOUCHES
   -------------------------------------------------------------------------- */

/* Card icon containers — consistent sizing with tinted background */
.card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-secondary-50), var(--color-primary-50));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  transition: background var(--transition-base);
}

.card__icon-wrap .card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.card:hover .card__icon-wrap {
  background: linear-gradient(135deg, var(--color-secondary-100), var(--color-primary-100));
}

/* Card top border accent */
.card {
  border-top: 3px solid var(--color-secondary-200);
}

.card:hover {
  border-top-color: var(--color-secondary-500);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
}

/* Why-card icons — cyan tint instead of plain primary */
.why-card__icon {
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-secondary-50));
  color: var(--color-secondary-700);
}

/* Stats section — navy-to-cyan gradient */
.section--dark {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, #0B2E5C 60%, var(--color-secondary-900) 100%);
}

/* Stat numbers — cyan instead of gold */
.stat-item__number {
  color: var(--color-secondary-400);
}

/* Overline text — cyan accent with decorative dash */
.overline {
  color: var(--color-secondary-600);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.overline::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  flex-shrink: 0;
}

/* Section--dark overline stays gold for contrast */
.section--dark .overline {
  color: var(--color-accent-400);
}

.cta-banner .overline {
  color: var(--color-accent-400);
}

/* --------------------------------------------------------------------------
   HERO OVERRIDES
   -------------------------------------------------------------------------- */

/* Decorative accent corner on hero image */
.hero__image {
  position: relative;
  overflow: visible;
}

.hero__image img {
  border-radius: var(--radius-xl);
}

.hero__image::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 50%;
  height: 50%;
  border-bottom: 4px solid var(--color-accent-500);
  border-right: 4px solid var(--color-accent-500);
  border-radius: 0 0 var(--radius-xl) 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__image::before {
    display: none;
  }
}

/* Mobile h1 — let "Cardiologist in Singapore" wrap naturally
   instead of forcing a hard break that produces 3 awkward lines */
@media (max-width: 640px) {
  .hero h1 br {
    display: none;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

@media (max-width: 768px) {
  .hero {
    overflow-x: hidden;
  }

  .hero__inner {
    overflow: hidden;
  }

  .hero__content {
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .hero__content > * {
    max-width: 100%;
  }
}

/* --- Hero spacing overrides (keep CTAs above fold) --- */
.hero {
  padding: var(--space-8) 0 var(--space-12);
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-white) 60%);
}

.hero h1 {
  font-size: clamp(1.625rem, 3.6vw, 2.75rem); /* 26px → ~44px fluid */
  line-height: 1.15;
  margin-bottom: var(--space-3);
  text-wrap: balance; /* distributes lines evenly when wrapping */
}

.hero__subtitle {
  margin-bottom: var(--space-4);
}

/* --- Hero Doctor Card --- */
.hero__doctor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  border-left: 3px solid var(--color-secondary-500);
  margin-bottom: var(--space-4);
}

.hero__doctor-name {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-primary-900);
  white-space: nowrap;
}

.hero__doctor-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  white-space: nowrap;
}

.hero__doctor-tick {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Hero Trust Badges (above CTAs as credibility stack) --- */
.hero__badges {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-1) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.hero-badge {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-400);
}

.hero-badge strong {
  color: var(--color-primary-900);
  font-weight: var(--font-bold);
}

.hero-badge__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-secondary-700);
}

@media (max-width: 768px) {
  .hero__doctor-card {
    flex-direction: column;
    align-items: center;
    border-left: none;
    border-top: 3px solid var(--color-secondary-500);
    padding: var(--space-2) var(--space-4);
    gap: 2px;
  }

  .hero__doctor-name,
  .hero__doctor-title {
    white-space: normal;
    text-align: center;
  }

  .hero__badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .hero-badge {
    justify-content: center;
    white-space: normal;
    text-align: center;
    font-size: 0.8125rem; /* 13px — bumped from 11px for legibility */
    padding: var(--space-1) var(--space-3);
  }

  .hero-badge__icon {
    width: 16px;
    height: 16px;
  }
}

/* --------------------------------------------------------------------------
   TRUST SECTION — Editorial credentials bar
   Safe-path elevation: drops icon circles, thin dividers, overline, tinted bg.
   -------------------------------------------------------------------------- */

.trust-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  background: linear-gradient(180deg, hsl(220, 40%, 98%) 0%, var(--color-white) 100%);
}

.trust-bar__overline {
  /* Keep inline-flex from base .overline (for the decorative dash),
     but make the overline itself a full-width flex container so
     dash + text centre together as a unit. */
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

/* Override the default .trust-bar flex layout with a 4-col grid
   that supports vertical dividers between items. */
.trust-section .trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  border-top: none;
  border-bottom: none;
}

.trust-section .trust-item {
  max-width: none;
  padding: var(--space-2) var(--space-6);
  border-left: 1px solid var(--color-border-light);
  gap: var(--space-4);
}

.trust-section .trust-item:first-child {
  border-left: none;
}

.trust-section .trust-item__icon {
  width: 52px;
  height: 52px;
  color: var(--color-accent-500);
}

/* Hero-stat variant for the "22+" item — no icon circle, just the number */
.trust-item__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent-500);
}

.trust-section .trust-item__label {
  font-size: var(--text-sm);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .trust-section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .trust-section .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-8);
  }

  .trust-section .trust-item {
    padding: 0 var(--space-4);
    border-left: none;
  }

  .trust-section .trust-item:nth-child(2n) {
    border-left: 1px solid var(--color-border-light);
  }
}

/* --------------------------------------------------------------------------
   WHY CHOOSE US CARDS
   -------------------------------------------------------------------------- */

.why-card {
  text-align: center;
  padding: var(--space-4) var(--space-4);
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-full);
  background-color: var(--color-primary-50);
  color: var(--color-primary-900);
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.why-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Tighter card-grid gap inside Why Choose Us only */
#about .card-grid {
  gap: var(--space-5);
}

/* Trim the warm Why-Choose-Us section's vertical padding */
.section--warm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--warm .section-header {
  margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
  /* On mobile the cards stack into a 4-row column — extra-tight rhythm */
  #about .card-grid {
    gap: var(--space-3);
  }

  .why-card {
    padding: var(--space-3) var(--space-3);
  }

  .why-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-2);
  }

  .section--warm {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* --------------------------------------------------------------------------
   DOCTOR QUOTE SECTION — Photo + caring quote
   -------------------------------------------------------------------------- */

.doctor-quote-section {
  background: linear-gradient(135deg, hsl(45, 50%, 97%) 0%, var(--color-white) 100%);
}

.doctor-quote {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 960px;
  margin: 0 auto;
}

.doctor-quote__image {
  flex-shrink: 0;
  perspective: 1000px;
}

.doctor-quote__image img {
  width: 240px;
  height: 300px;           /* 4:5 editorial portrait ratio */
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-xl);
  border: none;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.18),         /* thin accent hairline */
    0 1px 0 rgba(255, 255, 255, 0.6) inset,     /* subtle top highlight */
    0 30px 60px -24px rgba(30, 58, 138, 0.45),  /* tinted navy drop */
    0 12px 24px -16px rgba(30, 58, 138, 0.25);  /* closer contact shadow */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.doctor-quote__image img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 80px -24px rgba(30, 58, 138, 0.5),
    0 16px 32px -16px rgba(30, 58, 138, 0.3);
}

.doctor-quote__text {
  position: relative;
  margin: 0;
  padding: var(--space-6) 0 0 var(--space-6);
  border: none;
}

/* Thin accent rule — editorial framing device */
.doctor-quote__text::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  width: 56px;
  height: 2px;
  background: var(--color-accent-500);
  z-index: 2;
}

.doctor-quote__text p,
.doctor-quote__text cite {
  position: relative;
  z-index: 1;
}

.doctor-quote__text p {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  font-style: italic;
  color: var(--color-primary-900);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.doctor-quote__text p strong {
  font-weight: var(--font-semibold);
  /* keeps the italic + navy, only the weight shifts */
}

.doctor-quote__text cite {
  display: block;
  font-style: normal;
  line-height: 1.2;
}

.doctor-quote__signature {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.doctor-quote__role {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary-700);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .doctor-quote {
    flex-direction: column;
    text-align: center;
    gap: var(--space-8);
  }

  .doctor-quote__image img {
    width: 180px;
    height: 225px;
  }

  .doctor-quote__text {
    padding: var(--space-6) 0 0 0;
  }

  .doctor-quote__text::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .doctor-quote__text p {
    font-size: var(--text-xl);
  }
}

/* --------------------------------------------------------------------------
   DOCTOR SECTION — Full-width quote & bio
   -------------------------------------------------------------------------- */

.doctor-fullwidth {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   DOCTOR PROFILE IMAGE — Decorative background shape
   -------------------------------------------------------------------------- */

.doctor-profile__image {
  position: relative;
  overflow: visible;
}

.doctor-profile__image::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-secondary-100), var(--color-primary-100));
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.doctor-profile__image img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 24px 60px rgba(30, 58, 138, 0.14);
}

@media (max-width: 768px) {
  .doctor-profile__image::before {
    top: 12px;
    left: -10px;
  }
}

/* --------------------------------------------------------------------------
   DOCTOR QUOTE
   -------------------------------------------------------------------------- */

.doctor-profile__quote {
  margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--color-accent-500);
  background-color: var(--color-warm-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.doctor-profile__quote p {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   AWARDS & ACCREDITATIONS
   -------------------------------------------------------------------------- */

.doctor-awards {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.awards-column h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.awards-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.awards-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-500);
}

@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   STATISTICS SOURCE
   -------------------------------------------------------------------------- */

.stats-source {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  margin-top: var(--space-8);
  font-style: italic;
}

.section--dark .stats-source {
  color: var(--color-gray-400);
}

/* --------------------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-secondary-300);
}

.faq-item[open] {
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--color-secondary-500);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  background-color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.faq-item__question:hover {
  background-color: var(--color-gray-50);
}

/* Remove default marker */
.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::marker {
  content: '';
}

.faq-item__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-gray-400);
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-6);
}

.faq-item__answer p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.contact-form {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.clinic-grid {
  display: grid;
  /* minmax(0, 1fr) instead of 1fr lets columns shrink below the
     iframe's intrinsic min-width on mobile (otherwise the 400px iframe
     forces each column to 400px and overflows the viewport). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info__block h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

/* ---- Clinic location cards ---- */
.clinic-card {
  background: var(--color-white);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: var(--space-5);
  box-shadow: 0 4px 16px -4px rgba(30, 58, 138, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.clinic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(30, 58, 138, 0.18);
  border-color: var(--color-secondary-200);
}

.clinic-card__logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-shrink: 0;
  width: 148px;
}

.clinic-card__badge {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary-50);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px -6px rgba(3, 105, 161, 0.25);
}

.clinic-logo {
  height: 68px;
  width: auto;
  max-width: 68px;
  display: block;
  object-fit: contain;
}

.clinic-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}

.clinic-card__details > .clinic-card__contact {
  align-self: stretch;
  margin-top: auto;
}

.clinic-card__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-900);
  line-height: var(--leading-tight);
  text-align: center;
  letter-spacing: -0.01em;
  margin: 0;
}

.clinic-card__name::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  margin: var(--space-2) auto 0;
  border-radius: 2px;
  background: var(--color-primary-200);
}

.clinic-card--camden .clinic-card__name::after {
  background: var(--color-accent-500);
}

.clinic-card--jurong .clinic-card__name::after {
  background: var(--color-secondary-700);
}

.clinic-card__tagline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #B8860B;
}

.clinic-card__tagline::before,
.clinic-card__tagline::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #C9A96E, transparent);
}

.clinic-card--jurong .clinic-card__tagline {
  color: #B8860B;
}

.clinic-card__venue {
  display: inline-block;
  align-self: flex-start;
  padding: 4px var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-secondary-800);
  background: var(--color-secondary-50);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clinic-card__address {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
  margin: 0;
}

.clinic-card__contact {
  list-style: none;
  padding: var(--space-3) 0 0;
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-top: 1px solid var(--color-primary-100);
}

.clinic-card__contact li {
  margin: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clinic-card__contact li + li {
  border-left: 1px solid var(--color-primary-100);
}

.clinic-card__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-primary-900);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: var(--space-1) var(--space-2);
}

.clinic-card__contact-link:hover {
  color: var(--color-secondary-700);
}

.clinic-card__contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-secondary-700);
}

/* ---- Clinic block (card + map pair) ---- */
.clinic-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.clinic-map {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-primary-100);
  box-shadow: 0 4px 16px -4px rgba(30, 58, 138, 0.08);
  background: var(--color-primary-50);
  height: 360px;
  /* min-width:0 lets this flex child shrink below its iframe's
     intrinsic width — without it the iframe's min-width would push
     the whole column wider than the mobile viewport. */
  min-width: 0;
}

.clinic-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  /* Google collapses the place-info pill to "Open on Maps" when the
     iframe is narrower than ~400px. Force a floor so the rich pill
     (name + rating + reviews link) always renders; the wrapper's
     overflow:hidden clips the bleed on narrow phones. */
  min-width: 400px;
  border: 0;
}

.contact-info__block p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.contact-info__block a {
  color: var(--color-secondary-700);
}

.contact-info__block a:hover {
  color: var(--color-secondary-600);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.hours-table td {
  padding: var(--space-1) 0;
}

.hours-table td:first-child {
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  padding-right: var(--space-6);
}

.hours-note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary-700);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ===== Consultation Fees Table (location pages) ===== */
.fees-table-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* Wider variant for the full price-list page where row labels include
   sub-descriptions (e.g. blood-panel composition, fasting notes). */
.fees-table-wrap--wide {
  max-width: 880px;
}

.fees-table__sub {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-regular, 400);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.fees-table__sub--note {
  font-style: italic;
  margin-top: var(--space-2);
}

/* Section grouping rows inside the fees table (Consultation / Blood Tests /
   Diagnostic Tests). Visually quiet header bar, no hover, no number column. */
.fees-table tbody tr.fees-table__group {
  background: var(--color-gray-50);
}

.fees-table tbody tr.fees-table__group + tr {
  border-top: none;
}

.fees-table__group th {
  text-align: left;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold, 600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary-700);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-elevated, #fff);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 4px 16px rgba(2, 30, 60, 0.06));
  font-size: var(--text-base);
}

.fees-table thead {
  background: var(--color-primary-900, #021e3c);
  color: #fff;
}

.fees-table thead th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fees-table thead th:last-child {
  text-align: right;
}

.fees-table tbody tr {
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.fees-table tbody tr:first-child {
  border-top: none;
}

.fees-table tbody th,
.fees-table tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
}

.fees-table tbody th {
  text-align: left;
  font-weight: var(--font-semibold, 600);
  color: var(--color-text-primary);
}

.fees-table tbody td {
  text-align: right;
  font-weight: var(--font-semibold, 600);
  color: var(--color-primary-900, #021e3c);
  font-variant-numeric: tabular-nums;
}

.fees-table__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .clinic-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .clinic-card {
    padding: var(--space-5);
    gap: var(--space-4);
  }
  .clinic-card__contact {
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-3);
  }
  .clinic-card__contact li {
    flex: none;
    justify-content: flex-start;
  }
  .clinic-card__contact li + li {
    border-left: none;
  }
  .clinic-card__contact-link {
    justify-content: flex-start;
    padding: 0;
  }
  .clinic-logo {
    height: 130px;
  }
  .clinic-map {
    height: 280px;
  }
}

/* --------------------------------------------------------------------------
   FOOTER READABILITY FIXES
   -------------------------------------------------------------------------- */

.footer__about p {
  color: var(--color-gray-300, #d1d5db);
  line-height: var(--leading-relaxed);
}

.footer__registration {
  color: var(--color-gray-400, #9ca3af);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  opacity: 0.85;
}

.footer__logo {
  margin-bottom: var(--space-4);
}

/* Make all footer text more visible */
.footer {
  color: var(--color-white);
}

.footer a {
  color: var(--color-white);
}

.footer__about p {
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   FOOTER DISCLAIMER — notice card style
   -------------------------------------------------------------------------- */

.footer__disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.footer__disclaimer-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.footer__disclaimer p {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* --------------------------------------------------------------------------
   FOOTER BOTTOM BAR — split layout
   -------------------------------------------------------------------------- */

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

.footer__bottom-left {
  display: flex;
  align-items: center;
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: right;
}

.footer__bottom-right p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   FOOTER PARTNERSHIP (INLINE WITH COPYRIGHT)
   -------------------------------------------------------------------------- */

.footer__partnership-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer__partnership-logo-inline {
  height: 42px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer__partnership-logo-inline:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   FOOTER CREDIT — right-aligned
   -------------------------------------------------------------------------- */

.footer__credit {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.15);
}

.footer__credit a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* Mobile: stack bottom bar, centre branding strip */
@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__partnership-inline {
    padding-left: 0;
    border-left: none;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__bottom-right {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}

/* --------------------------------------------------------------------------
   SCROLL-TRIGGERED ANIMATIONS
   -------------------------------------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child card animations */
.card-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.card-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.card-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.card-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.card-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

/* Trust bar stagger */
.trust-bar [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.trust-bar [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.trust-bar [data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* Section subtitle bump */
.section-header p {
  font-size: var(--text-xl);
}

/* Dark section text readability */
.section--dark .section-header p {
  color: var(--color-gray-300);
}

/* Stats stagger */
.stats-grid [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.stats-grid [data-animate]:nth-child(3) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   SERVICES SPLIT LAYOUT — Portrait left, linked services list right
   -------------------------------------------------------------------------- */

.services-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-12);
  align-items: center;
}

.services-split__image {
  position: relative;
}

.services-split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 24px 60px rgba(30, 58, 138, 0.18);
}

/* Decorative offset background shape */
.services-split__image::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: linear-gradient(135deg, var(--color-primary-100), var(--color-warm-100));
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

/* Dual-image variant (e.g. location pages — show two photos stacked) */
.services-split__image--dual {
  display: grid;
  gap: var(--space-5);
}

@media (max-width: 768px) {
  /* Hide the secondary image on mobile so the column doesn't get too tall */
  .services-split__image--secondary {
    display: none;
  }
}

.services-split__content .overline {
  margin-bottom: var(--space-3);
}

.services-split__content h2 {
  margin-bottom: var(--space-4);
}

.services-split__intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

/* Services list — single vertical column */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-gray-200);
}

.services-list li {
  border-bottom: 1px solid var(--color-gray-200);
}

.services-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.services-list__name {
  flex: 1;
}

.services-list__arrow {
  flex-shrink: 0;
  color: var(--color-secondary-500);
  transition: transform 0.25s ease, color 0.2s ease;
}

.services-list__link:hover {
  color: var(--color-secondary-700);
  padding-left: var(--space-4);
}

.services-list__link:hover .services-list__arrow {
  transform: translateX(4px);
  color: var(--color-secondary-700);
}

/* Tablet — stack to single column */
@media (max-width: 900px) {
  .services-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .services-split__image {
    max-width: 480px;
    margin: 0 auto;
  }

  .services-split__image::before {
    inset: 12px -12px -12px 12px;
  }
}

/* Mobile — tighter intro */
@media (max-width: 640px) {
  .services-split__intro {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   INSURANCE PANEL
   -------------------------------------------------------------------------- */

.insurance-section {
  background: linear-gradient(180deg, var(--color-warm-50) 0%, rgba(245, 243, 255, 0.3) 100%);
  padding: var(--space-12) 0;
}

.insurance-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
}

.insurance-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  width: 200px;
  height: 96px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.insurance-logo:hover {
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  border-color: var(--color-secondary-200);
  transform: translateY(-2px);
}

.insurance-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.insurance-logo img[alt="Income Insurance"] {
  height: 32px;
}

.insurance-logo--extended {
  position: relative;
}

.insurance-logo--extended::after {
  content: "*";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-700);
  line-height: 1;
}

.insurance-note--extended {
  margin-bottom: var(--space-2);
  font-style: italic;
}

.insurance-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.insurance-note a {
  color: var(--color-secondary-700);
  font-weight: var(--font-medium);
}

.insurance-note a:hover {
  color: var(--color-secondary-600);
}

@media (max-width: 768px) {
  .insurance-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .insurance-logo {
    width: 100%;
    height: 80px;
    padding: var(--space-3) var(--space-4);
  }

  .insurance-logo img {
    height: 36px;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   HOSPITAL AFFILIATIONS
   -------------------------------------------------------------------------- */

.hospital-section {
  background: var(--color-gray-50);
  padding: var(--space-12) 0;
}

.hospital-logos {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.hospital-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  flex: 0 1 240px;
  text-align: center;
}

.hospital-logo:hover {
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
  border-color: var(--color-secondary-200);
}

.hospital-logo img {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.hospital-logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-secondary-50);
  color: var(--color-secondary-700);
  border: 1px solid var(--color-secondary-100);
}

.hospital-logo__icon svg {
  width: 32px;
  height: 32px;
}

.hospital-logo__name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

@media (max-width: 768px) {
  .hospital-logos {
    gap: var(--space-4);
  }

  .hospital-logo {
    flex: 0 1 calc(50% - var(--space-2));
    padding: var(--space-4);
  }

  .hospital-logo img {
    height: 44px;
    max-width: 140px;
  }

  .hospital-logo__icon {
    width: 52px;
    height: 52px;
  }

  .hospital-logo__icon svg {
    width: 26px;
    height: 26px;
  }

  .hospital-logo__name {
    font-size: var(--text-xs);
  }
}

@media (max-width: 480px) {
  .hospital-logo {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------------------------------
   PATIENT JOURNEY — "What to Expect on Your First Visit"
   5-step horizontal timeline with dashed connectors. Sits between the
   Hospital Affiliations (grey) and FAQ (white) sections, using a subtle
   warm cream to break up the cool→white run.
   -------------------------------------------------------------------------- */

.journey-section {
  background: linear-gradient(180deg, hsl(45, 50%, 98%) 0%, var(--color-white) 100%);
  padding: var(--space-12) 0;
}

.journey-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.journey-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-3);
  position: relative;
}

.journey-step__icon {
  width: 72px;
  height: 72px;
  color: var(--color-accent-500);
  margin-bottom: var(--space-3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.journey-step:hover .journey-step__icon {
  transform: scale(1.08);
  color: var(--color-primary-900);
}

.journey-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-accent-500);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
}

.journey-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.journey-step__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 180px;
  margin: 0 auto;
}

.journey-connector {
  flex-shrink: 0;
  width: 40px;
  color: var(--color-border-default);
  margin-top: 36px; /* align with center of icon */
  opacity: 0.5;
}

.journey-connector svg {
  width: 100%;
  height: 12px;
}

@media (max-width: 768px) {
  .journey-timeline {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .journey-timeline .journey-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    text-align: left;
    padding: var(--space-3) 0;
    column-gap: var(--space-4);
    row-gap: var(--space-1);
    width: 100%;
    max-width: 360px;
  }

  .journey-timeline .journey-step__icon {
    grid-row: 1 / -1;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .journey-timeline .journey-step__number {
    display: none;
  }

  .journey-timeline .journey-step__title {
    grid-column: 2;
    align-self: end;
    margin-bottom: 0;
  }

  .journey-timeline .journey-step__desc {
    grid-column: 2;
    align-self: start;
    max-width: none;
  }

  .journey-connector {
    width: 2px;
    height: 24px;
    margin-top: 0;
    margin-left: 26px; /* align with icon center */
  }

  .journey-connector svg {
    width: 2px;
    height: 100%;
  }
}

/* --------------------------------------------------------------------------
   CORE VALUES
   -------------------------------------------------------------------------- */

.core-values-section {
  /* Subtle gray band — visually separates the cream Doctor Quote above
     from the white About-Doctor section below, so the three light
     sections no longer blend into one long scroll. */
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
  padding: var(--space-10) 0;
}

.core-values-section .section-header {
  margin-bottom: var(--space-6);
}

.core-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.core-value {
  text-align: center;
  padding: var(--space-3) var(--space-4);
}

.core-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.04), rgba(30, 58, 138, 0.08));
  color: var(--color-secondary-700);
  margin-bottom: var(--space-3);
}

.core-value__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.core-value__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 28ch;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .core-values {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 320px;
  }

  .core-value {
    padding: var(--space-4) var(--space-2);
  }
}

/* --------------------------------------------------------------------------
   SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary-700) 0%,
    var(--color-secondary-500) 30%,
    var(--color-accent-500) 60%,
    #00E5A0 100%
  );
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   GRADIENT TEXT — Hero "Heart Specialist" shimmer
   -------------------------------------------------------------------------- */

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary-900) 0%,
    var(--color-secondary-600) 50%,
    var(--color-primary-800) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --------------------------------------------------------------------------
   HEARTBEAT SVG DIVIDER
   -------------------------------------------------------------------------- */

.heartbeat-divider {
  --heartbeat-color: #00E5A0; /* cyan-leaning pulse-monitor green */
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-warm-50) 0%, var(--color-primary-900) 100%);
}

.heartbeat-svg {
  width: 100%;
  height: 80px;
  color: var(--heartbeat-color);
}

/* Base line — dim, always visible after initial draw.
   Uses pathLength="1000" on the <path> so 1000 = full path regardless of geometry. */
.heartbeat-line {
  opacity: 0.3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: heartbeat-draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

/* Travelling bright pulse — short segment sweeps left to right */
.heartbeat-pulse {
  opacity: 0;
  stroke-dasharray: 80 1020;
  stroke-dashoffset: 1100;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
  animation: heartbeat-travel 7s linear 2.5s infinite;
}

@keyframes heartbeat-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heartbeat-travel {
  0% {
    stroke-dashoffset: 80;
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -1000;
    opacity: 0;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .heartbeat-line {
    stroke-dashoffset: 0;
    animation: none;
    filter: none;
    opacity: 0.4;
  }

  .heartbeat-pulse {
    display: none;
  }

  .scroll-progress {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   ECG SHOWCASE (Irregular Heartbeat page — "What does it look like?" section)
   Reuses the pathLength=1000 + travelling-pulse technique from heartbeat-divider.
   -------------------------------------------------------------------------- */

.ecg-showcase {
  background: linear-gradient(180deg, #0a1628 0%, var(--color-primary-900) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.ecg-showcase::before {
  /* subtle grid pattern like an ECG paper — covers the whole section faintly */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 70, 85, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 70, 85, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.ecg-showcase > .container {
  position: relative;
  z-index: 1;
}

.ecg-showcase__header h2,
.ecg-showcase__header .overline {
  color: var(--color-white);
}

.ecg-showcase__header p {
  color: rgba(255, 255, 255, 0.75);
}

.ecg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.ecg-card {
  --ecg-color: #00E5A0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ecg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px -20px var(--ecg-color);
}

.ecg-card__display {
  background: #04101f;
  padding: var(--space-5) var(--space-4);
  min-height: 140px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ecg-card__display::before {
  /* Fine ECG-paper grid specific to the monitor area */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

.ecg-svg {
  width: 100%;
  height: 100px;
  color: var(--ecg-color);
  display: block;
  position: relative;
  z-index: 1;
}

.ecg-line {
  opacity: 0.35;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: ecg-draw 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

.ecg-pulse {
  opacity: 0;
  stroke-dasharray: 90 1010;
  stroke-dashoffset: 1100;
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
  animation: ecg-travel 5s linear 2.8s infinite;
}

@keyframes ecg-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ecg-travel {
  0%   { stroke-dashoffset: 90;   opacity: 1; }
  95%  { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}

.ecg-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ecg-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-accent, var(--font-body));
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ecg-color);
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-bottom: var(--space-3);
  opacity: 0.9;
}

.ecg-card__body h3 {
  color: var(--color-white);
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
  line-height: 1.3;
}

.ecg-card__body p {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* Treatment footer — compact one-line stat pinned to the bottom of each card */
.ecg-card__treatment {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.ecg-card__treatment-label {
  flex-shrink: 0;
  font-family: var(--font-accent, var(--font-body));
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}
.ecg-card__treatment-value {
  color: rgba(255, 255, 255, 0.78);
}
.ecg-card__treatment-value strong {
  color: var(--ecg-color);
  font-weight: 600;
}
.ecg-card__treatment-value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.ecg-card__treatment-value a:hover {
  text-decoration-color: var(--ecg-color);
}

/* Per-rhythm accent colours — each uses a distinct hue for visual shorthand */
.ecg-card--normal   { --ecg-color: #7CE3FF; }  /* cyan — healthy */
.ecg-card--afib     { --ecg-color: #FFB84D; }  /* amber — serious */
.ecg-card--flutter  { --ecg-color: #FFA552; }  /* orange */
.ecg-card--svt      { --ecg-color: #C59BFF; }  /* purple — fast narrow-complex */
.ecg-card--vt       { --ecg-color: #FF5470; }  /* red — emergency */
.ecg-card--brady    { --ecg-color: #9FB0FF; }  /* lavender — slow */
.ecg-card--block    { --ecg-color: #E6B17A; }  /* tan — conduction delay */
.ecg-card--pvc      { --ecg-color: #FFE066; }  /* yellow — usually benign */
.ecg-card--sinusarr { --ecg-color: #5DD9D9; }  /* teal — benign variant */

.ecg-showcase__disclaimer {
  max-width: 760px;
  margin: var(--space-10) auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.ecg-showcase__disclaimer a {
  color: var(--color-accent-400, #FFD166);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Full-width dark ECG band — standalone section between content blocks */
.ecg-band {
  background: linear-gradient(135deg, #0a1628 0%, var(--color-primary-900) 100%);
}

/* Reduced motion — freeze the drawn line, hide the travelling pulse */
@media (prefers-reduced-motion: reduce) {
  .ecg-line {
    stroke-dashoffset: 0;
    animation: none;
    opacity: 0.6;
  }
  .ecg-pulse {
    display: none;
  }
  .ecg-card:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .ecg-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .ecg-card__display {
    min-height: 110px;
    padding: var(--space-4) var(--space-3);
  }
  .ecg-svg {
    height: 80px;
  }
}

/* =============================================================
   INTERACTIVE BPM VISUALISER
   ============================================================= */

.bpm-visualiser {
  --bpm: 70;
  --zone-color: #10B981;
  --zone-color-soft: rgba(16, 185, 129, 0.12);
  margin-top: var(--space-12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 30px 80px -40px rgba(10, 22, 40, 0.25);
  position: relative;
  overflow: hidden;
}

.bpm-visualiser::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 35%, var(--zone-color-soft), transparent 55%);
  transition: background 0.5s ease;
  pointer-events: none;
}

.bpm-visualiser > * { position: relative; z-index: 1; }

.bpm-visualiser__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.bpm-visualiser__header .overline {
  color: var(--zone-color);
  transition: color 0.4s ease;
}

.bpm-visualiser__header h3 {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-primary-900);
  font-size: var(--text-2xl);
  line-height: 1.25;
}

.bpm-visualiser__header p {
  color: var(--color-text-muted, #64748b);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.bpm-visualiser__body {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

/* Heart + readout */
.bpm-visualiser__display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.bpm-heart {
  width: 150px;
  height: 150px;
  color: var(--zone-color);
  transition: color 0.4s ease;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.08));
}

.bpm-heart svg {
  width: 100%;
  height: 100%;
  animation: bpm-beat calc(60s / var(--bpm, 70)) ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

@keyframes bpm-beat {
  0%     { transform: scale(0.92); }
  12%    { transform: scale(1.1); }
  24%    { transform: scale(0.95); }
  36%    { transform: scale(1.04); }
  55%    { transform: scale(0.92); }
  100%   { transform: scale(0.92); }
}

.bpm-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  line-height: 1;
}

.bpm-readout__value {
  font-family: var(--font-accent, var(--font-body));
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-primary-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2.8ch;
  text-align: right;
}

.bpm-readout__unit {
  font-family: var(--font-accent, var(--font-body));
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted, #64748b);
}

.bpm-readout__zone {
  font-family: var(--font-accent, var(--font-body));
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zone-color);
  padding: 5px 14px;
  border: 1.5px solid var(--zone-color);
  border-radius: 999px;
  background: var(--zone-color-soft);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

/* Controls column */
.bpm-visualiser__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.bpm-slider-wrap {
  position: relative;
}

.bpm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #9FB0FF 0%, #9FB0FF 17.1%,
    #34D399 17.6%, #34D399 41.2%,
    #FFB84D 41.8%, #FFB84D 70.6%,
    #FF5470 71.2%, #FF5470 100%);
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(10, 22, 40, 0.2), 0 0 0 1px rgba(10, 22, 40, 0.08);
  margin: 0;
}

.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--zone-color);
  cursor: grab;
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.3), 0 0 0 1px rgba(10, 22, 40, 0.05);
  transition: border-color 0.4s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.bpm-slider::-webkit-slider-thumb:hover,
.bpm-slider::-webkit-slider-thumb:active {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.35);
}

.bpm-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--zone-color);
  cursor: grab;
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.3);
  transition: border-color 0.4s ease, transform 0.15s ease;
}

.bpm-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding: 0 2px;
  font-family: var(--font-accent, var(--font-body));
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

/* Zone grid */
.bpm-zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  font-family: var(--font-accent, var(--font-body));
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bpm-zone {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md, 10px);
  background: rgba(10, 22, 40, 0.03);
  border: 1px solid rgba(10, 22, 40, 0.06);
  color: var(--color-text-muted, #64748b);
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.bpm-zone:hover:not(.active) {
  background: rgba(10, 22, 40, 0.06);
  transform: translateY(-1px);
}

.bpm-zone span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary-900);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.bpm-zone--brady.active  { background: rgba(159, 176, 255, 0.18); border-color: #9FB0FF; color: #3B52B8; transform: translateY(-2px); }
.bpm-zone--brady.active  span { color: #3B52B8; }
.bpm-zone--normal.active { background: rgba(52, 211, 153, 0.18); border-color: #34D399; color: #047857; transform: translateY(-2px); }
.bpm-zone--normal.active span { color: #047857; }
.bpm-zone--tachy.active  { background: rgba(255, 184, 77, 0.18); border-color: #FFB84D; color: #B45309; transform: translateY(-2px); }
.bpm-zone--tachy.active  span { color: #B45309; }
.bpm-zone--vt.active     { background: rgba(255, 84, 112, 0.18); border-color: #FF5470; color: #B91C1C; transform: translateY(-2px); }
.bpm-zone--vt.active     span { color: #B91C1C; }

.bpm-explainer {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: rgba(10, 22, 40, 0.035);
  border-left: 3px solid var(--zone-color);
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
  color: var(--color-text-base, #0f172a);
  font-size: var(--text-sm);
  line-height: 1.65;
  transition: border-color 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .bpm-heart svg { animation: none; }
}

@media (max-width: 760px) {
  .bpm-visualiser {
    padding: var(--space-8) var(--space-5);
    margin-top: var(--space-10);
  }
  .bpm-visualiser__body {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .bpm-heart { width: 120px; height: 120px; }
  .bpm-zones {
    grid-template-columns: repeat(2, 1fr);
  }
  .bpm-slider::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
  }
}


/* =============================================================
   ABOUT DR PAUL LIM PAGE
   ============================================================= */

/* Helper for index.php About-section CTA group (Read full bio + Book consultation) */
.doctor-fullwidth__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  padding: var(--space-6) 0;
  background: var(--color-bg-base, #fff);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.breadcrumb__list a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color .18s ease;
}
.breadcrumb__list a:hover {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}
.breadcrumb__list li:nth-child(odd):not(:last-child)::after {
  content: '';
}
.breadcrumb__list [aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Tighter section rhythm for about page */
.about-main .section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Fees page — extra breathing room above the H1 on desktop so it
   doesn't sit cramped under the breadcrumb */
@media (min-width: 768px) {
  .fees-page #price-list {
    padding-top: var(--space-24);
  }
}

/* ----- About Hero ----- */
.about-hero {
  padding: var(--space-8) 0 var(--space-20);
  background:
    radial-gradient(ellipse 800px 500px at 10% 0%, var(--color-primary-50) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--color-gray-50, #f9fafb) 100%);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-100) 0%, transparent 70%);
  opacity: .35;
  pointer-events: none;
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}
.about-hero__inner .about-hero__image { order: 1; }
.about-hero__inner .about-hero__content { order: 2; }
.about-hero__content .overline {
  margin-bottom: var(--space-4);
}
.about-hero__name {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.about-hero__title {
  font-size: var(--text-xl);
  color: var(--color-secondary-700);
  font-weight: 600;
  margin: 0 0 var(--space-6);
}
.about-hero__tick {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--space-1);
  position: relative;
  top: -1px;
}
.about-hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.about-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-8);
  max-width: 60ch;
}
.about-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
  margin: 0 0 var(--space-8);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.about-hero__meta-item dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-1);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.about-hero__meta-item dd {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: 600;
  margin: 0;
}
.about-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.about-hero__image {
  position: relative;
}
.about-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: block;
}
.about-hero__image::before {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: linear-gradient(135deg, var(--color-primary-200), var(--color-accent-200));
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: .55;
}
/* Compact avatar — hidden on desktop, shown on mobile */
.about-hero__intro { display: contents; }
.about-hero__avatar { display: none; }

/* ----- Personal Quote (full-bleed band) ----- */
.about-quote-section {
  background: var(--color-primary-900);
  padding: var(--space-12) 0;
  position: relative;
}
/* thin accent line at top edge */
.about-quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary-700), var(--color-accent-500, var(--color-secondary-700)), var(--color-secondary-700));
}
.about-quote {
  position: relative;
  text-align: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}
.about-quote__mark {
  width: 36px;
  height: 36px;
  color: var(--color-secondary-400, #5eead4);
  opacity: 0.3;
  margin: 0 auto var(--space-4);
  display: block;
}
.about-quote p {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  font-weight: 400;
  margin: 0 auto var(--space-6);
  max-width: 42em;
}
.about-quote p strong {
  color: #fff;
  font-weight: 600;
}
.about-quote__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.about-quote cite {
  font-size: var(--text-base);
  color: #fff;
  font-weight: 700;
  font-style: normal;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.about-quote__separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}
.about-quote__subtitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.about-quote__tick {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ----- Biography Section ----- */
.about-bio {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-areas:
    "heading aside"
    "body    aside";
  column-gap: var(--space-10);
  row-gap: 0;
  align-items: start;
}
.about-bio__heading {
  grid-area: heading;
  margin-bottom: var(--space-6);
}
.about-bio__content {
  grid-area: body;
}
.about-bio__aside {
  grid-area: aside;
  position: sticky;
  top: 110px;
}
.about-bio__heading .overline {
  margin-bottom: var(--space-3);
}
.about-bio__heading h2 {
  margin-bottom: 0;
}
.about-bio__lead {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.about-bio__content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}
.about-bio__portrait {
  margin: 0 0 var(--space-6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-bio__portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.about-bio__quick-facts {
  padding: var(--space-6);
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-primary-100);
  box-shadow: var(--shadow-card);
}
.about-bio__quick-facts h3 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.about-bio__quick-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-bio__quick-facts li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--color-primary-100);
  line-height: 1.5;
}
.about-bio__quick-facts li:last-child { border-bottom: none; }
.about-bio__quick-facts strong {
  color: var(--color-primary-900);
  font-weight: 700;
}

/* ----- Expertise Grid ----- */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.expertise-card {
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary-300);
}
.expertise-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--color-primary-50);
  color: var(--color-primary-900);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.expertise-card__icon svg {
  width: 32px;
  height: 32px;
}
.expertise-card h3 {
  font-size: var(--text-xl);
  color: var(--color-text-accent);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
.expertise-card p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ----- Qualifications Timeline ----- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-10);
  position: relative;
  max-width: 820px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-secondary-300), var(--color-primary-200));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-5);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-secondary-700);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
  text-align: right;
  position: relative;
  padding-right: var(--space-4);
}
.timeline__year::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--color-secondary-700);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-secondary-300);
  z-index: 1;
}
.timeline__item--highlight .timeline__year::after {
  background: var(--color-accent-500);
  box-shadow: 0 0 0 2px var(--color-accent-300), 0 0 16px rgba(99, 102, 241, .35);
}
.timeline__content h3 {
  font-size: var(--text-lg);
  color: var(--color-text-accent);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.timeline__content p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}
.timeline__item--highlight .timeline__content {
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--color-accent-50), var(--color-primary-50));
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent-500);
  margin-top: -8px;
}

/* Fellowships pills */
.fellowships-grid {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-primary-100);
}
.fellowships-grid__heading {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-6);
  font-weight: 700;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.fellowships-grid__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.fellowship-pill {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fellowship-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.fellowship-pill strong {
  display: block;
  font-size: var(--text-3xl);
  color: var(--color-primary-900);
  font-weight: 800;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.fellowship-pill span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  display: block;
}

/* ----- Academic Appointments ----- */
.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.academic-column h3 {
  font-size: var(--text-xl);
  color: var(--color-text-accent);
  font-weight: 700;
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-secondary-300);
}
.academic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.academic-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px dashed var(--color-primary-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.academic-list li:last-child { border-bottom: none; }
.academic-list__role {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
}
.academic-list__org {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.academic-list__caption {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.academic-list--with-marks li {
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
}
.academic-list__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.academic-list__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary-50);
  color: var(--color-secondary-700);
  border: 1px solid var(--color-secondary-100);
}
.academic-list__icon svg {
  width: 24px;
  height: 24px;
}
.academic-footnote {
  margin: var(--space-8) 0 0;
  padding: var(--space-5) var(--space-6);
  background: var(--color-primary-50);
  border-left: 3px solid var(--color-secondary-700);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ----- Awards Timeline ----- */
.awards-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 820px;
}
.awards-timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-primary-100);
}
.awards-timeline__item:last-child { border-bottom: none; }
.awards-timeline__year {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary-700);
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.awards-timeline__content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-2);
  line-height: 1.5;
}
.awards-timeline__content h3:last-child { margin-bottom: 0; }

/* ----- Languages ----- */
.language-pills {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.language-pill {
  padding: var(--space-4) var(--space-8);
  background: #fff;
  border: 2px solid var(--color-secondary-300);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-900);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
}
.language-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-700);
}

/* =============================================================
   ABOUT PAGE — TABLET (≤960px)
   ============================================================= */
@media (max-width: 960px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .about-hero__inner .about-hero__content { order: 1; }
  .about-hero__inner .about-hero__image { order: 2; }
  .about-hero__image {
    max-width: 480px;
    margin: 0 auto;
  }
  .about-bio {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "aside"
      "body";
    column-gap: 0;
    row-gap: var(--space-8);
  }
  .about-bio__heading {
    margin-bottom: 0;
  }
  .about-bio__aside {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fellowships-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .academic-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* =============================================================
   ABOUT PAGE — MOBILE (≤640px)
   ============================================================= */
@media (max-width: 640px) {
  .about-hero {
    padding: var(--space-8) 0 var(--space-12);
  }
  .about-hero__inner .about-hero__image { display: none; }
  .about-hero__intro {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }
  .about-hero__intro-text { flex: 1; min-width: 0; }
  .about-hero__intro-text .overline { margin-bottom: var(--space-2); }
  .about-hero__avatar {
    display: block;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #fff;
    box-shadow: var(--shadow-lg, 0 8px 20px rgba(15, 32, 76, 0.18));
  }
  .about-hero__name {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
  }
  .about-hero__title {
    font-size: var(--text-base);
    margin-bottom: 0;
  }
  .about-hero__meta {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-5);
  }
  .about-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .about-hero__ctas .btn { justify-content: center; }
  .about-quote p {
    font-size: var(--text-lg);
    line-height: 1.6;
  }
  .about-quote__footer {
    flex-direction: column;
    gap: var(--space-1);
  }
  .about-quote__separator {
    display: none;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 60px;
  }
  .timeline__item {
    grid-template-columns: 60px 1fr;
    gap: var(--space-5);
  }
  .timeline__year {
    font-size: var(--text-base);
  }
  .timeline__year::after {
    width: 12px;
    height: 12px;
    right: -6px;
  }
  .fellowships-grid__list {
    grid-template-columns: 1fr 1fr;
  }
  .awards-timeline__item {
    grid-template-columns: 70px 1fr;
    gap: var(--space-5);
  }
  .awards-timeline__year {
    font-size: var(--text-xl);
  }
  .doctor-fullwidth__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .doctor-fullwidth__ctas .btn { justify-content: center; }
}

/* --- Inline CTA strips (between sections) --- */
.inline-cta {
  padding: var(--space-6) 0;
  background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%);
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.08), transparent 50%);
  pointer-events: none;
}
.inline-cta > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.inline-cta__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.inline-cta__body {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  min-width: 240px;
}
.inline-cta__text {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
}
.inline-cta__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.inline-cta__actions .btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -2px;
  margin-right: 2px;
}
/* Override button styles on dark background */
.inline-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}
.inline-cta .btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}
.inline-cta--strong {
  background: linear-gradient(135deg, #172554 0%, #1E3A8A 50%, #1E3A6A 100%);
}
@media (max-width: 640px) {
  .inline-cta > .container {
    flex-direction: column;
    text-align: center;
  }
  .inline-cta__body {
    flex-direction: column;
    min-width: 0;
  }
  .inline-cta__text { min-width: 0; }
  .inline-cta__actions { justify-content: center; }
}

/* --- Sticky mobile CTA bar --- */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
  .mobile-cta-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-family: var(--font-accent, var(--font-body));
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .mobile-cta-bar__btn:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
  .mobile-cta-bar__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .mobile-cta-bar__btn--wa {
    background: var(--color-whatsapp, #25D366);
    color: var(--color-white);
  }
  .mobile-cta-bar__btn--wa svg { fill: currentColor; }
  .mobile-cta-bar__btn--call {
    background: var(--color-primary-900);
    color: var(--color-white);
  }

  /* Hide the floating WhatsApp only on pages that render the sticky bar */
  body:has(.mobile-cta-bar) .whatsapp-float { display: none !important; }

  /* Add bottom padding only when the sticky bar is actually present */
  body:has(.mobile-cta-bar) main { padding-bottom: 72px; }
}

/* ==========================================================================
   CATHETER ABLATION SERVICE PAGE
   ========================================================================== */

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-6) 0 var(--space-2);
  background: var(--color-bg-primary);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb__list a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb__list a:hover {
  color: var(--color-text-link);
}
.breadcrumb__sep {
  color: var(--color-gray-400);
}
.breadcrumb__list li[aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: var(--font-semibold);
}

/* --------------------------------------------------------------------------
   MEDICAL BYLINE STRIP
   -------------------------------------------------------------------------- */

.medical-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  text-align: center;
  flex-wrap: wrap;
}

.medical-byline__reviewer {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.medical-byline__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: var(--space-1);
}

.medical-byline__reviewer a {
  color: inherit;
  text-decoration: none;
}

.medical-byline__reviewer a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.medical-byline__reviewer strong {
  color: var(--color-gray-700);
  font-weight: var(--font-semibold);
}

.medical-byline__date {
  white-space: nowrap;
}

.medical-byline__date::before {
  content: "\00B7";
  margin-right: var(--space-2);
}

/* Date-only variant (e.g. location pages with $pageHideReviewer = true) */
.medical-byline--date-only {
  padding: 0;
  background: transparent;
  border-bottom: none;
  font-style: italic;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.medical-byline--date-only .medical-byline__date::before {
  display: none;
}

/* Breadcrumb + inline last-updated byline (e.g. location pages) */
.breadcrumb--with-byline .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
}

@media (max-width: 640px) {
  .medical-byline {
    flex-direction: column;
    gap: var(--space-1);
  }
  .medical-byline__date::before {
    display: none;
  }
  .breadcrumb--with-byline .container {
    justify-content: flex-start;
  }
  .breadcrumb--with-byline .medical-byline--date-only {
    width: 100%;
  }
}

/* --- Ablation hero --- */
.ablation-hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-20);
  background:
    radial-gradient(circle at 85% -10%, rgba(99, 102, 241, 0.10), transparent 55%),
    radial-gradient(circle at 15% 110%, rgba(14, 165, 233, 0.08), transparent 60%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-50) 100%);
  overflow: hidden;
}
.ablation-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 58, 138, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 138, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 80%);
  pointer-events: none;
}
/* Decorative ECG waveform running behind the hero */
.ablation-hero::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: -5%;
  width: 110%;
  height: 120px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' fill='none'%3E%3Cpath d='M0 60 H180 Q195 48 210 60 H240 L250 68 L260 20 L270 92 L280 60 H310 Q340 35 370 60 H460 Q475 48 490 60 H520 L530 68 L540 20 L550 92 L560 60 H590 Q620 35 650 60 H740 Q755 48 770 60 H800 L810 68 L820 20 L830 92 L840 60 H870 Q900 35 930 60 H1020 Q1035 48 1050 60 H1080 L1090 68 L1100 20 L1110 92 L1120 60 H1150 Q1180 35 1200 60' stroke='%231E3A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.09'/%3E%3C/svg%3E") repeat-x center / 1200px 120px;
  pointer-events: none;
  z-index: 0;
  animation: hero-ecg-drift 20s linear infinite;
}
@keyframes hero-ecg-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1200px); }
}
.ablation-hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}
.ablation-hero__content h1 {
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary-900);
  margin: var(--space-4) 0 var(--space-6);
}
.ablation-hero__subtitle {
  display: block;
  font-size: 0.6em;
  font-weight: var(--font-medium);
  color: var(--color-secondary-700);
  margin-top: var(--space-2);
}
.ablation-hero__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 62ch;
  margin-bottom: var(--space-8);
}
.ablation-hero__lead strong {
  color: var(--color-primary-900);
  font-weight: var(--font-semibold);
}
.ablation-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.ablation-hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- At-a-glance card --- */
.ablation-quick-answer {
  position: sticky;
  top: calc(var(--space-20) + var(--space-4));
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}
.ablation-quick-answer__heading {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent-100);
}
.ablation-quick-answer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
}
.ablation-quick-answer__list > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.ablation-quick-answer__list dt {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.ablation-quick-answer__list dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}
.ablation-quick-answer__list dd a {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(3, 105, 161, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  white-space: nowrap;
}
.ablation-quick-answer__list dd a:hover {
  color: var(--color-primary-900);
  text-decoration-color: currentColor;
}

/* Prevent sticky navbar from obscuring anchored section headings on scroll */
#cost { scroll-margin-top: calc(var(--space-20) + var(--space-4)); }

/* --- Prose blocks --- */
.prose {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.prose p + p { margin-top: var(--space-5); }
.prose strong { color: var(--color-primary-900); font-weight: var(--font-semibold); }
.prose em { font-style: italic; color: var(--color-secondary-700); }

/* Prose links — underline so they are distinguishable from italic <em> that
   shares the same secondary colour, plus a small ↗ glyph for external links. */
.prose a {
  color: var(--color-secondary-700);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(3, 105, 161, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.prose a:hover {
  color: var(--color-primary-900);
  text-decoration-color: currentColor;
}
.prose a[target="_blank"]::after {
  content: "\2197"; /* ↗ north-east arrow */
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.85em;
  font-style: normal;
  text-decoration: none;
  vertical-align: baseline;
  opacity: 0.7;
}

/* Inline bullet list inside prose — keeps rhythm with surrounding paragraphs */
.prose-list {
  list-style: disc;
  padding-left: var(--space-6);
  margin: var(--space-4) 0;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}
.prose-list li + li { margin-top: var(--space-2); }
.prose-list li::marker { color: var(--color-secondary-500); }
.prose-list strong { color: var(--color-primary-900); font-weight: var(--font-semibold); }

/* --- Condition grid --- */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.condition-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.condition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-200);
}
.condition-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  margin-bottom: var(--space-4);
}
.condition-card__icon svg { width: 32px; height: 32px; }
.condition-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-3);
}
.condition-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Eligibility two-column --- */
.eligibility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.eligibility__column {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.eligibility__column--yes {
  border-top: 4px solid var(--color-success);
}
.eligibility__column--yes h3 { color: var(--color-success); }
.eligibility__column--no {
  border-top: 4px solid var(--color-gray-400);
}
.eligibility__column--no h3 { color: var(--color-gray-600); }
.eligibility h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  margin: 0 0 var(--space-5);
}
.eligibility ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.eligibility li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.eligibility__column--yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}
.eligibility__column--no li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--color-gray-400);
}
.eligibility__profile {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.eligibility__profile strong {
  color: var(--color-text-primary);
}

/* --- Comparison table --- */
.comparison-table-wrap,
.success-table-wrap {
  margin-top: var(--space-10);
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}
.comparison-table,
.success-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
.comparison-table th,
.comparison-table td,
.success-table th,
.success-table td {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}
.comparison-table thead th,
.success-table thead th {
  background: var(--color-primary-900);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.comparison-table thead th:first-child {
  background: var(--color-primary-950);
}
.comparison-table tbody th[scope="row"] {
  background: var(--color-gray-50);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  width: 180px;
}
.comparison-table tbody tr:last-child td,
.comparison-table tbody tr:last-child th,
.success-table tbody tr:last-child td {
  border-bottom: 0;
}
.success-table tbody tr:nth-child(even) td {
  background: var(--color-gray-50);
}
/* Service / Price fee tables: let the service-name column take the space,
   and shrink the price column to its content (overrides the 180px row-header
   width used by the default comparison layout). */
.comparison-table--fees tbody th[scope="row"] {
  width: auto;
}
.comparison-table--fees thead th:last-child,
.comparison-table--fees tbody td {
  width: 1%;
  white-space: nowrap;
}
/* Section-divider rows inside a fee table (e.g. "Test", "Consultation") */
.comparison-table--fees tbody th[colspan] {
  width: auto;
  background: var(--color-primary-50);
  color: var(--color-primary-900);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}
.comparison-footnote,
.success-footnote {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* --- Procedure steps --- */
.procedure-steps {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  counter-reset: none;
}
.procedure-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-primary-700);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.procedure-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.procedure-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-900);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cta);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}
.procedure-step__body h3 {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: var(--space-2) 0 var(--space-2);
}
.procedure-step__body p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Recovery timeline --- */
.recovery-timeline {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
.recovery-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-primary-300) 0 6px,
    transparent 6px 12px
  );
  z-index: 0;
}
.recovery-step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.recovery-step__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary-700);
  color: var(--color-primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cta);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-md);
}
.recovery-step__time {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-secondary-700);
  margin-bottom: var(--space-2);
}
.recovery-step__content h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-2);
}
.recovery-step__content p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Risk list --- */
.risk-list {
  list-style: none;
  margin: var(--space-10) 0 var(--space-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.risk-list li {
  background: var(--color-white);
  border-left: 3px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}
.risk-list li strong { color: var(--color-primary-900); }
.risk-note,
.note-inline {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-primary-50);
  border-left: 3px solid var(--color-primary-700);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* --- Cost card --- */
.cost-card {
  margin-top: var(--space-10);
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
  color: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.cost-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  pointer-events: none;
}
.cost-card__range {
  position: relative;
  z-index: 1;
}
.cost-card__label {
  display: block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-200);
  margin-bottom: var(--space-3);
}
.cost-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}
.cost-card__note {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-primary-100);
  line-height: var(--leading-relaxed);
}
.cost-card__note a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.cost-card__note a:hover {
  text-decoration-color: var(--color-white);
  color: var(--color-accent-100);
}
.cost-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}
.cost-card__list li {
  padding-left: var(--space-6);
  position: relative;
}
.cost-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-400);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}
.cost-card__list strong {
  display: block;
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.cost-card__list span {
  font-size: var(--text-sm);
  color: var(--color-primary-100);
  line-height: var(--leading-relaxed);
}

/* --- Condition comparison table (e.g. Atrial Flutter vs AFib) --- */
.compare-table-wrap {
  margin: var(--space-8) 0;
  overflow-x: auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-light);
}
.compare-table thead th {
  background: var(--color-primary-900);
  color: var(--color-white);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}
.compare-table thead th:first-child {
  background: var(--color-secondary-900);
}
.compare-table tbody th {
  color: var(--color-primary-900);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}
.compare-table tbody tr:nth-child(even) th,
.compare-table tbody tr:nth-child(even) td {
  background: var(--color-bg-secondary);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* --- Related services list --- */
.related-list {
  list-style: none;
  margin: var(--space-10) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.related-list a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}
.related-list a:hover {
  border-color: var(--color-primary-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-list strong {
  color: var(--color-primary-900);
  font-size: var(--text-base);
}
.related-list span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ablation-hero__inner {
    grid-template-columns: 1fr;
  }
  .ablation-quick-answer {
    position: static;
  }
  .condition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recovery-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .recovery-timeline::before { display: none; }
  .cost-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8);
  }
}
@media (max-width: 768px) {
  .ablation-hero {
    padding: var(--space-8) 0 var(--space-12);
  }
  .ablation-hero__content {
    text-align: center;
  }
  .ablation-hero__content .hero__doctor-card {
    align-items: center;
    border-left: 0;
    padding-left: 0;
  }
  .ablation-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .ablation-hero__ctas {
    justify-content: center;
  }
  .ablation-hero__content h1 {
    font-size: var(--text-4xl);
  }
  .condition-grid,
  .eligibility,
  .recovery-timeline,
  .risk-list,
  .related-list {
    grid-template-columns: 1fr;
  }
  .recovery-step__marker {
    margin-left: auto;
    margin-right: auto;
  }
  .recovery-step__time,
  .recovery-step__content h3 {
    text-align: center;
  }
  .procedure-step {
    grid-template-columns: 56px 1fr;
    gap: var(--space-4);
    padding: var(--space-5);
  }
  .procedure-step__num {
    width: 48px;
    height: 48px;
    font-size: var(--text-xl);
  }
  .comparison-table th,
  .comparison-table td,
  .success-table th,
  .success-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }
  .comparison-table tbody th[scope="row"] { width: auto; }
  .cost-card__value { font-size: var(--text-3xl); }
}

/* --- Specialist profile card --- */
.specialist-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}
.specialist-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--color-primary-700), var(--color-accent-500));
}
.specialist-card__image {
  position: relative;
}
.specialist-card__image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-md);
}
.specialist-card__image-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-700));
  color: var(--color-white);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 130px;
  border: 4px solid var(--color-white);
}
.specialist-card__image-badge-num {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1;
  color: var(--color-accent-300);
}
.specialist-card__image-badge-num sup {
  font-size: 0.6em;
  color: var(--color-white);
}
.specialist-card__image-badge-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary-100);
  line-height: var(--leading-snug);
}
.specialist-card__content h2 {
  margin: var(--space-2) 0 var(--space-2);
  color: var(--color-primary-900);
  font-size: var(--text-3xl);
}
.specialist-card__title {
  font-size: var(--text-lg);
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-4);
}
.specialist-card__bio {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-3);
}
.specialist-card__bio strong {
  color: var(--color-primary-900);
  font-weight: var(--font-semibold);
}
.specialist-card__bio a,
.specialist-card__credentials a,
.comparison-footnote a,
.success-table a,
.faq-item__answer a {
  color: var(--color-secondary-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.specialist-card__bio a:hover,
.specialist-card__credentials a:hover,
.comparison-footnote a:hover,
.success-table a:hover,
.faq-item__answer a:hover {
  color: var(--color-primary-700);
}
/* Trust-stat badges — scannable numbers row */
.specialist-card__stats {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-4) 0;
}
.specialist-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.06) 0%, rgba(30, 58, 138, 0.04) 100%);
  border: 1px solid rgba(3, 105, 161, 0.12);
  border-radius: var(--radius-lg);
  flex: 1;
  min-width: 0;
}
.specialist-stat__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary-700);
  line-height: 1.1;
}
.specialist-stat__num sup {
  font-size: 0.5em;
  font-weight: 700;
}
.specialist-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
  line-height: 1.3;
}

.specialist-card__credentials {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.specialist-card__credentials li {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-50);
  color: var(--color-primary-900);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-full);
  font-weight: var(--font-medium);
}
.specialist-card__credentials li a {
  color: inherit;
  text-decoration: none;
}
.specialist-card__credentials li:has(a):hover {
  background: var(--color-primary-100);
  border-color: var(--color-primary-200);
}
.specialist-card__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Scoped contrast fix: indigo accent + navy text fails WCAG contrast
   when paired with a light section background, so force white text
   here only (do not touch the global .btn-secondary token). */
.specialist-card__ctas .btn-secondary,
.specialist-card__ctas .btn-secondary:hover {
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .specialist-card {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-6);
  }
  .specialist-card__image {
    max-width: 340px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .specialist-card {
    padding: var(--space-5);
  }
  .specialist-card__image-badge {
    bottom: -8px;
    right: -8px;
    min-width: 110px;
    padding: var(--space-3) var(--space-4);
  }
  .specialist-card__image-badge-num { font-size: var(--text-3xl); }
}

/* ==========================================================================
   IRREGULAR HEARTBEAT CONDITION PAGE
   ========================================================================== */

/* --- Quick answer box (hero aside) --- */
.quick-answer__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-relaxed);
}
.quick-answer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.quick-answer__list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
  line-height: var(--leading-snug);
}
.quick-answer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.quick-answer__footnote {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
  margin: 0;
  line-height: var(--leading-relaxed);
}

/* --- Traffic-light red/amber/green --- */
.traffic-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.traffic-light__item {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base);
}
.traffic-light__item:hover { transform: translateY(-4px); }
.traffic-light__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}
.traffic-light__item--red::before    { background: var(--color-error); }
.traffic-light__item--amber::before  { background: var(--color-warning); }
.traffic-light__item--green::before  { background: var(--color-success); }

.traffic-light__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.traffic-light__item--red .traffic-light__icon {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-error);
}
.traffic-light__item--amber .traffic-light__icon {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-warning);
}
.traffic-light__item--green .traffic-light__icon {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}
.traffic-light__icon svg { width: 32px; height: 32px; }

.traffic-light h3 {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-3);
  color: var(--color-primary-900);
  line-height: var(--leading-snug);
}
.traffic-light p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-3);
}
.traffic-light ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.traffic-light li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.traffic-light li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.traffic-light__item--red li::before   { background: var(--color-error); }
.traffic-light__item--amber li::before { background: var(--color-warning); }
.traffic-light__item--green li::before { background: var(--color-success); }

.traffic-light__footnote {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  margin: var(--space-8) 0 0;
}
.traffic-light__footnote-link {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(3, 105, 161, 0.3);
  transition: text-decoration-color var(--transition-base);
}
.traffic-light__footnote-link:hover {
  text-decoration-color: var(--color-secondary-700);
}

/* --- Symptom grid --- */
.symptom-grid {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.symptom-grid li {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-secondary-700);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.symptom-grid li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.symptom__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(30, 58, 138, 0.07);
  color: var(--color-secondary-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.symptom__icon svg {
  width: 26px;
  height: 26px;
}
/* Red-flag variant — syncope gets an alert-coloured icon to reinforce it is a warning sign */
.symptom__icon--alert {
  background: rgba(255, 84, 112, 0.1);
  color: #E11D48;
}
.symptom__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}
.symptom-grid strong {
  color: var(--color-primary-900);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}
.symptom-grid span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- Causes groups --- */
.causes-group {
  margin-top: var(--space-10);
}
.causes-group__heading {
  font-size: var(--text-2xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary-100);
}
.causes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-8);
}
.causes-list li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.causes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-500);
}
.causes-list strong {
  color: var(--color-primary-900);
  font-weight: var(--font-semibold);
}

/* --- Home-check step cards --- */
.home-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.home-check-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.home-check-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.home-check-card__num {
  position: absolute;
  top: calc(var(--space-4) * -1);
  left: var(--space-5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-secondary-700);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
}
.home-check-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-secondary-700);
}
.home-check-card__icon svg {
  width: 100%;
  height: 100%;
}
.home-check-card h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0;
  line-height: 1.3;
}
.home-check-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}
@media (max-width: 640px) {
  .home-check-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Treatment grid --- */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.treatment-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-200);
}
.treatment-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-secondary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.treatment-card__icon svg { width: 24px; height: 24px; }
.treatment-card--highlight .treatment-card__icon {
  background: rgba(30, 58, 138, 0.12);
  color: var(--color-primary-900);
}
.treatment-card h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0;
}
.treatment-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
}
.treatment-card--highlight {
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-accent-50));
  border-color: var(--color-primary-300);
  border-width: 2px;
}
.treatment-card--highlight h3 {
  color: var(--color-primary-900);
}
.treatment-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--color-primary-700);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap var(--transition-base);
}
.treatment-card__link:hover {
  gap: var(--space-3);
  color: var(--color-primary-900);
}

/* --- Prevention list --- */
.prevention-list {
  list-style: none;
  padding: 0;
  margin: var(--space-10) 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.prevention-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  padding-left: var(--space-12);
}
.prevention-list li::before {
  content: "";
  position: absolute;
  left: var(--space-5);
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}
.prevention-list li::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 30px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
}
.prevention-list strong {
  color: var(--color-primary-900);
  font-size: var(--text-base);
}
.prevention-list span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .traffic-light {
    grid-template-columns: 1fr;
  }
  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .causes-list,
  .symptom-grid,
  .prevention-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .treatment-grid {
    grid-template-columns: 1fr;
  }
  .traffic-light__item,
  .treatment-card {
    padding: var(--space-5);
  }
}

/* --- Quick answers list --- */
.quick-answers-list {
  margin: var(--space-10) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-6);
}
.quick-answers-list > div {
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-accent-500);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.quick-answers-list > div:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
}
.quick-answers-list dt {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}
.quick-answers-list dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}
.quick-answers-list dd a {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
}
@media (max-width: 768px) {
  .quick-answers-list {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   HEART SCREENING PAGES
   ===================================================== */

/* --- Screening Hero --- */
.screening-hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-20);
  background:
    radial-gradient(circle at 85% -10%, rgba(14, 165, 233, 0.10), transparent 55%),
    radial-gradient(circle at 15% 110%, rgba(99, 102, 241, 0.08), transparent 60%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-50) 100%);
  overflow: hidden;
}
.screening-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 58, 138, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 138, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 40%, transparent 80%);
  pointer-events: none;
}
.screening-hero__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-12);
  align-items: start;
  position: relative;
  z-index: 1;
}
.screening-hero__content h1 {
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary-900);
  margin: var(--space-4) 0 var(--space-6);
}
.screening-hero__subtitle {
  display: block;
  font-size: 0.6em;
  font-weight: var(--font-medium);
  color: var(--color-secondary-700);
  margin-top: var(--space-2);
}
.screening-hero__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 62ch;
  margin-bottom: var(--space-8);
}
.screening-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.screening-hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Screening Quick Answer sidebar --- */
.screening-quick-answer {
  position: sticky;
  top: calc(var(--space-20) + var(--space-4));
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}
.screening-quick-answer__heading {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent-100);
}
.screening-quick-answer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
}
.screening-quick-answer__list > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.screening-quick-answer__list dt {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.screening-quick-answer__list dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}
.screening-quick-answer__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.screening-quick-answer__checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}
.screening-quick-answer__checklist .check {
  color: var(--color-secondary-600);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
}
.screening-quick-answer__note {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}

/* --- Screening intro (text + clinic image) --- */
.screening-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-8);
}
.screening-intro__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.screening-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .screening-intro {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .screening-intro__image img {
    height: 240px;
  }
}

/* --- Biomarker cards --- */
.biomarker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.biomarker-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.biomarker-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.biomarker-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  margin-bottom: var(--space-4);
}
.biomarker-card__icon svg { width: 32px; height: 32px; }
.biomarker-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-1);
}
.biomarker-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}
.biomarker-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.biomarker-card li {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.biomarker-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary-500);
}

.biomarker-note {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* --- Screening comparison table --- */
.screening-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
}
.screening-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: var(--text-sm);
}
.screening-table thead {
  background: var(--color-primary-900);
  color: var(--color-white);
}
.screening-table th {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.screening-table th:first-child {
  text-align: left;
  padding-left: var(--space-6);
}
.screening-table__price {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-top: var(--space-1);
}
.screening-table td {
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.screening-table td:first-child {
  text-align: left;
  padding-left: var(--space-6);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}
.screening-table .check {
  color: var(--color-secondary-600);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}
.screening-table .dash {
  color: var(--color-text-muted);
}
.screening-table__highlight {
  background: var(--color-primary-50);
}
.screening-table thead .screening-table__highlight {
  background: var(--color-secondary-700);
}

.screening-table__meta {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-normal);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}
.screening-table__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary-100, #e6f5f3);
  color: var(--color-secondary-700);
  font-size: 11px;
  font-weight: var(--font-bold);
  text-decoration: none;
  vertical-align: middle;
  margin-left: var(--space-2);
  transition: background 0.2s, color 0.2s;
}
.screening-table__info:hover {
  background: var(--color-secondary-700);
  color: var(--color-white);
}

/* --- Package cards grid --- */
.screening-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.screening-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}
.screening-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-200);
}
.screening-card--featured {
  border-color: var(--color-secondary-500);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--color-secondary-200);
}
.screening-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: var(--space-6);
  background: var(--color-secondary-600);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.screening-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-2);
}
.screening-card__price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-secondary-700);
  margin: 0 0 var(--space-3);
}
.screening-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
  flex: 1;
}
.screening-card__link {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-700);
}

/* --- Screening specialist card (compact "curated by") --- */
.screening-specialist {
  margin: var(--space-10) 0;
}
.screening-specialist__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-10);
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-left: 5px solid var(--color-secondary-600);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  box-shadow: var(--shadow-card);
}
.screening-specialist__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.screening-specialist__photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.screening-specialist__content {
  flex: 1;
  min-width: 0;
}
.screening-specialist__quote {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--color-primary-900);
  margin: var(--space-2) 0 var(--space-5);
  padding: 0;
  border: none;
}
.screening-specialist__attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.screening-specialist__attribution strong {
  font-size: var(--text-base);
  color: var(--color-primary-900);
}
.screening-specialist__attribution span {
  font-size: var(--text-sm);
  color: var(--color-secondary-700);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.screening-specialist__tick {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.screening-specialist__creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.screening-specialist__creds li {
  font-size: var(--text-xs);
  color: var(--color-secondary-700);
  background: var(--color-secondary-50, rgba(3, 105, 161, 0.06));
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
}
.screening-specialist__link {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.screening-specialist__link:hover {
  color: var(--color-primary-700);
}
@media (max-width: 768px) {
  .screening-specialist__inner {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-6);
  }
  .screening-specialist__photo img {
    height: 200px;
    object-position: center 25%;
  }
}
@media (max-width: 480px) {
  .screening-specialist__creds {
    justify-content: center;
  }
  .screening-specialist__content {
    text-align: center;
  }
}

/* --- Facilities photo grid --- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.facilities-grid__item {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.facilities-grid__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.facilities-grid__item:hover img {
  transform: scale(1.05);
}
.facilities-grid__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
}
@media (max-width: 768px) {
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .facilities-grid__item img {
    height: 160px;
  }
}
@media (max-width: 480px) {
  .facilities-grid__item img {
    height: 130px;
  }
}

/* --- One-stop photo grid --- */
.one-stop-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-8) 0;
}
.one-stop-photos figure {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.one-stop-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.4s ease;
}
.one-stop-photos figure:hover img {
  transform: scale(1.05);
}
.one-stop-photos--two {
  grid-template-columns: repeat(2, 1fr);
}
.one-stop-photos--two img {
  height: 260px;
}
@media (max-width: 768px) {
  .one-stop-photos,
  .one-stop-photos--two {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .one-stop-photos img,
  .one-stop-photos--two img {
    height: 200px;
  }
}

/* --- Test cards (diagnostic tests) --- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.test-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.test-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  margin-bottom: var(--space-4);
}
.test-card__icon svg { width: 32px; height: 32px; }
.test-card h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-3);
}
.test-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}
.test-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
}
.test-card__meta > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.test-card__meta dt {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}
.test-card__meta dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: var(--font-medium);
}

/* --- Journey hero image --- */
.journey-hero {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.journey-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
@media (max-width: 768px) {
  .journey-hero img {
    height: 220px;
  }
}

/* --- Journey steps --- */
.screening-page .journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.screening-page .journey-step {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
}
.screening-page .journey-step__num {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-900);
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-5);
}
.screening-page .journey-step h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-3);
}
.screening-page .journey-step p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Ecosystem grid --- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.ecosystem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
}
.ecosystem-item svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary-700);
}
.ecosystem-item span {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
}

/* --- Preparation layout (list + image) --- */
.prep-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
  margin-top: var(--space-10);
}
.prep-layout__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: var(--space-20, 100px);
}
.prep-layout__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .prep-layout {
    grid-template-columns: 1fr;
  }
  .prep-layout__image {
    position: static;
  }
}

/* --- Preparation list --- */
.prep-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.prep-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.prep-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}
.prep-item__icon svg { width: 22px; height: 22px; }
.prep-item h3 {
  font-size: var(--text-base);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-2);
}
.prep-item p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* --- Location grid --- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.location-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.location-card h3 {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-3);
}
.location-card__address {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-2);
}
.location-card__nearest {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.location-contact {
  margin-top: var(--space-8);
  text-align: center;
}
.location-contact p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: var(--space-2) 0;
}
.location-contact a {
  color: var(--color-secondary-700);
  font-weight: var(--font-medium);
}

/* --- Section footnote --- */
.section__footnote {
  text-align: center;
  margin-top: var(--space-8);
}
.section__footnote a {
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
}

/* --- Screening page responsive --- */
@media (max-width: 1024px) {
  .screening-hero__inner {
    grid-template-columns: 1fr;
  }
  .screening-quick-answer {
    position: static;
  }
  .biomarker-grid {
    grid-template-columns: 1fr;
  }
  .screening-page .journey-steps {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .screening-hero {
    padding: var(--space-8) 0 var(--space-12);
  }
  .screening-hero__content h1 {
    font-size: var(--text-3xl);
  }
  .screening-table {
    font-size: var(--text-xs);
  }
  .screening-table th,
  .screening-table td {
    padding: var(--space-3) var(--space-2);
  }
  .screening-cards {
    grid-template-columns: 1fr;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .eligibility {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   PREMIUM ELEVATION — heart-screening-singapore page
   Scoped via .screening-page so other pages are untouched.
   Grouped by design dimension. Safe to remove block-by-block.
   ========================================================================= */

/* --- DIM 1: Typography Precision ------------------------------------------ */
.screening-page h1,
.screening-page h2,
.screening-page .section-header h2,
.screening-page .screening-quick-answer__heading,
.screening-page .screening-specialist__quote,
.screening-page .faq-item__question {
  text-wrap: balance;
}
.screening-page .screening-hero__lead,
.screening-page .section-header p,
.screening-page .prose p {
  text-wrap: pretty;
}
.screening-page .screening-hero__content h1 {
  letter-spacing: -0.025em;
  font-size: clamp(2.25rem, 3.6vw + 0.75rem, 3.5rem);
  line-height: 1.08;
}
.screening-page .section-header p {
  max-width: 62ch;
  margin-inline: auto;
}
.screening-page .section-header .section-header__note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: 72ch;
  line-height: 1.55;
}

/* --- DIM 2: Whitespace Mastery ------------------------------------------- */
.screening-page .section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.screening-page .section-header {
  margin-bottom: var(--space-12);
}
.screening-page #packages.section,
.screening-page #faq.section {
  padding-block: clamp(var(--space-20), 9vw, 10rem);
}
.screening-page .screening-cards {
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
}
.screening-page .screening-table-wrap + .screening-cards {
  margin-top: var(--space-16);
}

/* --- DIM 6: Colour Refinement — ambient section tints -------------------- */
.screening-page .section--alt#packages {
  background: linear-gradient(180deg,
    var(--color-gray-50) 0%,
    rgba(224, 242, 254, 0.35) 60%,
    var(--color-gray-50) 100%);
}
.screening-page .section--alt#biomarkers {
  background: linear-gradient(180deg,
    rgba(241, 245, 249, 0.6) 0%,
    rgba(224, 242, 254, 0.25) 100%);
}
.screening-page .section--alt#preparation {
  background: linear-gradient(180deg,
    var(--color-gray-50) 0%,
    rgba(254, 243, 199, 0.18) 100%);
}
.screening-page #one-stop {
  background: radial-gradient(ellipse 80% 50% at 50% 0%,
    rgba(14, 165, 233, 0.05) 0%,
    transparent 70%);
}

/* --- DIM 7: Detail Polish — accent line under section headers ----------- */
.screening-page .section-header {
  position: relative;
}
.screening-page .section-header > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-secondary-500) 0%,
    var(--color-accent-500) 100%);
  margin: var(--space-4) auto 0;
  border-radius: var(--radius-full);
  opacity: 0.85;
}
.screening-page .screening-card__link,
.screening-page .screening-specialist__link {
  transition: transform var(--transition-base), color var(--transition-base);
  will-change: transform;
}
.screening-page .screening-card:hover .screening-card__link,
.screening-page .screening-specialist__link:hover {
  transform: translateX(4px);
  color: var(--color-secondary-800);
}
.screening-page .screening-quick-answer__checklist li {
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.screening-page .screening-quick-answer__checklist li:hover {
  transform: translateX(2px);
  color: var(--color-primary-900);
}

/* --- DIM 4: Visual Depth — tinted shadows + decorative orbs ------------- */
.screening-page .biomarker-card,
.screening-page .test-card,
.screening-page .screening-card,
.screening-page .facilities-grid__item {
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.04),
    0 6px 22px rgba(30, 58, 138, 0.06);
}
.screening-page .biomarker-card:hover,
.screening-page .test-card:hover {
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.05),
    0 18px 40px rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.35);
}
.screening-page .screening-card:hover {
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 22px 48px rgba(14, 165, 233, 0.18);
}
.screening-page .screening-card--featured {
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 14px 36px rgba(14, 165, 233, 0.16),
    0 0 0 1px var(--color-secondary-200);
}
.screening-page .screening-quick-answer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 20px 50px rgba(30, 58, 138, 0.10);
}
.screening-page #biomarkers,
.screening-page #tests-explained,
.screening-page #preparation {
  position: relative;
  overflow: hidden;
}
.screening-page #biomarkers::before,
.screening-page #tests-explained::before,
.screening-page #preparation::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle,
    rgba(14, 165, 233, 0.08) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.screening-page #preparation::before {
  background: radial-gradient(circle,
    rgba(221, 187, 111, 0.09) 0%,
    transparent 65%);
  right: auto;
  left: -180px;
  top: auto;
  bottom: -180px;
}
.screening-page #biomarkers > .container,
.screening-page #tests-explained > .container,
.screening-page #preparation > .container {
  position: relative;
  z-index: 1;
}

/* --- DIM 3: Micro-interactions ------------------------------------------ */
.screening-page .screening-hero__ctas .btn-primary {
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease;
  will-change: transform;
}
.screening-page .screening-hero__ctas .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.28);
}
.screening-page .screening-hero__ctas .btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
}
.screening-page .faq-item {
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.screening-page .faq-item[open] {
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.05),
    0 12px 32px rgba(14, 165, 233, 0.10);
  border-color: rgba(14, 165, 233, 0.25);
}
.screening-page :focus-visible {
  outline: 2px solid var(--color-secondary-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- DIM 8: Image Treatment --------------------------------------------- */
.screening-page .screening-intro__image {
  position: relative;
  isolation: isolate;
}
.screening-page .screening-intro__image::before {
  content: '';
  position: absolute;
  inset: -14px -14px -14px 14px;
  background: linear-gradient(135deg,
    rgba(14, 165, 233, 0.14) 0%,
    rgba(221, 187, 111, 0.14) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
}
.screening-page .screening-intro__image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.screening-page .screening-intro__image:hover img {
  transform: scale(1.04);
}
.screening-page .one-stop-photos img,
.screening-page .facilities-grid__item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.screening-page .screening-specialist__photo {
  position: relative;
  isolation: isolate;
}
.screening-page .screening-specialist__photo::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(14, 165, 233, 0.16) 0%,
    rgba(221, 187, 111, 0.12) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
}

@media (min-width: 1024px) {
  .screening-page .screening-cards {
    align-items: stretch;
  }
}
.screening-page .cta-banner {
  position: relative;
  z-index: 1;
}

/* --- DIM 9: Motion Choreography — varied entrance types + stagger ------- */
.screening-page [data-animate] {
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.screening-page .screening-hero__content[data-animate] {
  opacity: 0;
  transform: translateX(-24px);
}
.screening-page .screening-quick-answer[data-animate] {
  opacity: 0;
  transform: translateX(24px);
}
.screening-page .screening-hero__content.is-visible,
.screening-page .screening-quick-answer.is-visible {
  opacity: 1;
  transform: none;
}
.screening-page .biomarker-grid > [data-animate],
.screening-page .test-grid > [data-animate],
.screening-page .ecosystem-grid > [data-animate],
.screening-page .facilities-grid > [data-animate],
.screening-page .screening-cards > [data-animate],
.screening-page .journey-steps > [data-animate] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}
.screening-page .biomarker-grid > .is-visible,
.screening-page .test-grid > .is-visible,
.screening-page .ecosystem-grid > .is-visible,
.screening-page .facilities-grid > .is-visible,
.screening-page .screening-cards > .is-visible,
.screening-page .journey-steps > .is-visible {
  opacity: 1;
  transform: none;
}
.screening-page .biomarker-grid > [data-animate]:nth-child(1),
.screening-page .test-grid > [data-animate]:nth-child(1),
.screening-page .ecosystem-grid > [data-animate]:nth-child(1),
.screening-page .screening-cards > [data-animate]:nth-child(1),
.screening-page .journey-steps > [data-animate]:nth-child(1) { transition-delay: 0s; }
.screening-page .biomarker-grid > [data-animate]:nth-child(2),
.screening-page .test-grid > [data-animate]:nth-child(2),
.screening-page .ecosystem-grid > [data-animate]:nth-child(2),
.screening-page .screening-cards > [data-animate]:nth-child(2),
.screening-page .journey-steps > [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.screening-page .biomarker-grid > [data-animate]:nth-child(3),
.screening-page .test-grid > [data-animate]:nth-child(3),
.screening-page .ecosystem-grid > [data-animate]:nth-child(3),
.screening-page .screening-cards > [data-animate]:nth-child(3),
.screening-page .journey-steps > [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.screening-page .biomarker-grid > [data-animate]:nth-child(4),
.screening-page .test-grid > [data-animate]:nth-child(4),
.screening-page .ecosystem-grid > [data-animate]:nth-child(4),
.screening-page .screening-cards > [data-animate]:nth-child(4),
.screening-page .journey-steps > [data-animate]:nth-child(4) { transition-delay: 0.22s; }
.screening-page .biomarker-grid > [data-animate]:nth-child(5),
.screening-page .test-grid > [data-animate]:nth-child(5),
.screening-page .ecosystem-grid > [data-animate]:nth-child(5),
.screening-page .screening-cards > [data-animate]:nth-child(5) { transition-delay: 0.28s; }
.screening-page .biomarker-grid > [data-animate]:nth-child(6),
.screening-page .test-grid > [data-animate]:nth-child(6),
.screening-page .ecosystem-grid > [data-animate]:nth-child(6) { transition-delay: 0.32s; }

/* --- DIM 10: Performance & Accessibility -------------------------------- */
.screening-page #tests-explained,
.screening-page #how-it-works,
.screening-page #preparation,
.screening-page #faq,
.screening-page #locations {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
@media (prefers-contrast: more) {
  .screening-page .biomarker-card,
  .screening-page .test-card,
  .screening-page .screening-card,
  .screening-page .faq-item {
    border-width: 2px;
    border-color: var(--color-gray-500);
  }
}
@media (prefers-reduced-motion: reduce) {
  .screening-page .screening-hero__content[data-animate],
  .screening-page .screening-quick-answer[data-animate],
  .screening-page .biomarker-grid > [data-animate],
  .screening-page .test-grid > [data-animate],
  .screening-page .ecosystem-grid > [data-animate],
  .screening-page .facilities-grid > [data-animate],
  .screening-page .screening-cards > [data-animate],
  .screening-page .journey-steps > [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .screening-page .screening-intro__image:hover img,
  .screening-page .screening-hero__ctas .btn-primary:hover,
  .screening-page .screening-hero__ctas .btn-whatsapp:hover {
    transform: none !important;
  }
}

/* Mobile tweaks for elevation block */
@media (max-width: 768px) {
  .screening-page #biomarkers::before,
  .screening-page #tests-explained::before,
  .screening-page #preparation::before {
    width: 320px;
    height: 320px;
  }
  .screening-page .section-header > h2::after {
    margin-top: var(--space-3);
  }
  .screening-page .screening-intro__image::before {
    inset: -8px -8px -8px 8px;
  }
}

/* =========================================================================
   Screening intro — photo caption + WHO stat callout
   ========================================================================= */
/* figure is now the image container itself — override the legacy wrapper rules */
.screening-page figure.screening-intro__image {
  margin: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.screening-page figure.screening-intro__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}
.screening-page figure.screening-intro__image figcaption {
  margin-top: var(--space-4);
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: center;
  max-width: 42ch;
  margin-inline: auto;
  letter-spacing: 0.005em;
  background: transparent;
}
.screening-page figure.screening-intro__image figcaption::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent-500);
  margin: 0 auto var(--space-2);
  border-radius: var(--radius-full);
  opacity: 0.7;
}

.screening-page .screening-stat-callout {
  margin: var(--space-8) auto var(--space-12);
  max-width: 860px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg,
      rgba(14, 165, 233, 0.06) 0%,
      rgba(10, 45, 89, 0.04) 100%),
    var(--color-white);
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow:
    0 1px 3px rgba(10, 45, 89, 0.05),
    0 18px 40px rgba(14, 165, 233, 0.08);
  position: relative;
  overflow: hidden;
}
.screening-page .screening-stat-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg,
    var(--color-secondary-500) 0%,
    var(--color-primary-700) 100%);
}
.screening-page .screening-stat-callout__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-secondary-700);
}
.screening-page .screening-stat-callout__mark svg {
  width: 30px;
  height: 30px;
}
.screening-page .screening-stat-callout__body {
  min-width: 0;
}
.screening-page .screening-stat-callout__body {
  text-align: center;
}
.screening-page .screening-stat-callout__lead {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary-700);
  margin: 0 0 var(--space-2);
  text-align: center;
}
.screening-page .screening-stat-callout__figure {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
  line-height: 1.45;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
  text-align: center;
}
.screening-page .screening-stat-callout__figure strong {
  font-weight: var(--font-bold);
}
.screening-page .screening-stat-callout__figure a {
  color: var(--color-secondary-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(14, 165, 233, 0.35);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.screening-page .screening-stat-callout__figure a:hover {
  color: var(--color-primary-900);
  text-decoration-color: var(--color-secondary-500);
}
.screening-page .screening-stat-callout__source {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .screening-page .screening-stat-callout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-6);
    margin-top: var(--space-10);
  }
  .screening-page .screening-stat-callout__mark {
    width: 48px;
    height: 48px;
  }
}

/* =========================================================================
   FIX PASS — packages spacing, panoramic one-stop photos, specialist redesign
   ========================================================================= */

/* --- Packages: bottom buffer so cards don't hug the next section -------- */
.screening-page #packages {
  padding-bottom: clamp(var(--space-20), 10vw, 10rem);
}
.screening-page #packages > .container {
  padding-bottom: var(--space-6);
}

/* --- One-stop photos: respect the native 2.39:1 panoramic ratio -------- */
.screening-page .one-stop-photos--two {
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-block: var(--space-10) var(--space-12);
}
.screening-page .one-stop-photos--two figure {
  aspect-ratio: 1005 / 421;
  max-height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(30, 58, 138, 0.06),
    0 18px 40px rgba(30, 58, 138, 0.10);
  position: relative;
}
.screening-page .one-stop-photos--two figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 60%,
    rgba(10, 45, 89, 0.55) 100%);
  pointer-events: none;
}
.screening-page .one-stop-photos--two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.screening-page .one-stop-photos--two figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-4) var(--space-6);
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.screening-page .one-stop-photos--two figcaption strong {
  color: var(--color-accent-400, #f4c778);
  font-weight: var(--font-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin-right: var(--space-1);
}
.screening-page .one-stop-photos--two figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color 0.2s ease;
}
.screening-page .one-stop-photos--two figcaption a:hover {
  text-decoration-color: var(--color-accent-400, #f4c778);
}
.screening-page .one-stop-partner-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(241, 245, 249, 0.7);
  border-left: 3px solid var(--color-secondary-500);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.screening-page .one-stop-partner-note svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-secondary-600);
}
@media (max-width: 768px) {
  .screening-page .one-stop-photos--two figcaption {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
  .screening-page .one-stop-partner-note {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-xs);
  }
}
@media (max-width: 768px) {
  .screening-page .one-stop-photos--two figure {
    max-height: 220px;
    border-radius: var(--radius-lg);
  }
}

/* --- Specialist card redesign — warm navy + gold accent, premium feel --- */
.screening-page .screening-specialist__inner {
  grid-template-columns: 260px 1fr;
  gap: var(--space-12);
  padding: var(--space-10) var(--space-12);
  background:
    linear-gradient(135deg,
      rgba(10, 45, 89, 0.02) 0%,
      rgba(221, 187, 111, 0.05) 100%),
    var(--color-white);
  border: 1px solid rgba(10, 45, 89, 0.08);
  border-left: none;
  border-radius: var(--radius-2xl, 20px);
  box-shadow:
    0 1px 3px rgba(10, 45, 89, 0.05),
    0 20px 50px rgba(10, 45, 89, 0.08);
  position: relative;
  overflow: hidden;
}
.screening-page .screening-specialist__inner::before {
  content: '"';
  position: absolute;
  top: -40px;
  right: 32px;
  font-family: 'Georgia', serif;
  font-size: 220px;
  line-height: 1;
  color: rgba(221, 187, 111, 0.14);
  pointer-events: none;
  z-index: 0;
}
.screening-page .screening-specialist__inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg,
    var(--color-accent-500) 0%,
    var(--color-primary-700) 100%);
  opacity: 0.9;
}
.screening-page .screening-specialist__photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  isolation: isolate;
}
.screening-page .screening-specialist__photo::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -14px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(221, 187, 111, 0.35) 0%,
    rgba(10, 45, 89, 0.18) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
}
.screening-page .screening-specialist__photo img {
  height: 260px;
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 36px rgba(10, 45, 89, 0.18);
}
.screening-page .screening-specialist__content {
  position: relative;
  z-index: 1;
}
.screening-page .screening-specialist .overline {
  color: var(--color-accent-600, #b8860b);
  font-weight: var(--font-semibold);
}
.screening-page .screening-specialist__quote {
  font-family: 'Georgia', 'Plus Jakarta Sans', serif;
  font-size: var(--text-xl);
  font-style: normal;
  line-height: 1.5;
  color: var(--color-primary-900);
  margin: var(--space-3) 0 var(--space-6);
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-accent-500);
}
.screening-page .screening-specialist__attribution strong {
  font-size: var(--text-lg);
  color: var(--color-primary-900);
  letter-spacing: -0.01em;
}
.screening-page .screening-specialist__attribution span {
  color: var(--color-primary-700);
}
.screening-page .screening-specialist__creds li {
  color: var(--color-primary-800, var(--color-primary-900));
  background: rgba(221, 187, 111, 0.12);
  border: 1px solid rgba(221, 187, 111, 0.32);
}
.screening-page .screening-specialist__link {
  color: var(--color-primary-800, var(--color-primary-900));
  border-bottom: 1px solid rgba(10, 45, 89, 0.2);
  padding-bottom: 2px;
}
.screening-page .screening-specialist__link:hover {
  color: var(--color-accent-600, #b8860b);
  border-bottom-color: var(--color-accent-500);
}
@media (max-width: 768px) {
  .screening-page .screening-specialist__inner {
    grid-template-columns: 1fr;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-8);
  }
  .screening-page .screening-specialist__inner::before {
    font-size: 160px;
    top: -28px;
    right: 16px;
  }
  .screening-page .screening-specialist__photo::before {
    display: none;
  }
  .screening-page .screening-specialist__photo img {
    height: 220px;
  }
  .screening-page .screening-specialist__quote {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   Tighter desktop spacing for selected sections
   (Why Choose Us, Serving the Community, What to Expect)
   ========================================================================== */
@media (min-width: 769px) {
  #about.section,
  #hospitals.section,
  #patient-journey.section {
    padding-top: var(--space-10);    /* 40px instead of 64px */
    padding-bottom: var(--space-10);
  }
  #about .section-header,
  #hospitals .section-header,
  #patient-journey .section-header {
    margin-bottom: var(--space-5);   /* 20px instead of 32px */
  }
}

/* =============================================================
   COMING-SOON PAGE
   ============================================================= */
.coming-soon {
  padding: var(--space-12) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-white) 60%);
  position: relative;
  overflow: hidden;
}
.coming-soon::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(3, 105, 161, 0.10) 0%, rgba(3, 105, 161, 0) 65%);
  pointer-events: none;
  z-index: 0;
}
.coming-soon > .container { position: relative; z-index: 1; }
.coming-soon__inner {
  max-width: 760px;
  margin: 0 auto;
}
.coming-soon__overline {
  display: inline-block;
  font-family: var(--font-accent, 'DM Sans', sans-serif);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary-700);
  background: var(--color-secondary-50, rgba(3, 105, 161, 0.08));
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.coming-soon__heading {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary-900);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.coming-soon__heading-tail {
  display: block;
  color: var(--color-secondary-700);
  font-weight: var(--font-semibold);
}
.coming-soon__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-8);
  max-width: 62ch;
}
.coming-soon__stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.coming-soon-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.coming-soon-stat + .coming-soon-stat {
  border-left: 1px solid var(--color-border-light);
}
.coming-soon-stat__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-secondary-700);
  line-height: 1.1;
}
.coming-soon-stat__num sup {
  font-size: 0.5em;
  font-weight: 700;
}
.coming-soon-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: var(--font-medium);
  margin-top: var(--space-1);
  line-height: 1.3;
}

.coming-soon__doctor {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px -4px rgba(30, 58, 138, 0.10), 0 2px 6px -2px rgba(30, 58, 138, 0.06);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.coming-soon__doctor::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-primary-700), var(--color-accent-500));
}
.coming-soon__doctor-main {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-6) var(--space-6) var(--space-5);
}
.coming-soon__doctor--with-stats .coming-soon__stats {
  border-top: 1px solid var(--color-border-light);
  background: linear-gradient(180deg, rgba(3, 105, 161, 0.03) 0%, rgba(3, 105, 161, 0.06) 100%);
  padding: 0 var(--space-3);
}
.coming-soon__doctor-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-sm);
}
.coming-soon__doctor-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-1);
}
.coming-soon__doctor-title {
  font-size: var(--text-sm);
  color: var(--color-secondary-700);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.coming-soon__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
}
.coming-soon__doctor-bio {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}
.coming-soon__reassurance {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: rgba(3, 105, 161, 0.04);
  border-left: 3px solid var(--color-secondary-700);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.coming-soon__reassurance strong {
  color: var(--color-primary-900);
}
.coming-soon__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --- "Already live" block --- */
.coming-soon-live__header {
  text-align: center;
  margin-bottom: var(--space-8);
}
.coming-soon-live__header h2 {
  margin: var(--space-2) 0 var(--space-3);
}
.coming-soon-live__header p {
  color: var(--color-text-secondary);
  margin: 0 auto;
  max-width: 56ch;
}
.coming-soon-live__grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.coming-soon-live__grid a {
  position: relative;
  display: block;
  padding: var(--space-5) var(--space-10) var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.coming-soon-live__grid a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-5);
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--color-secondary-700);
  border-right: 2px solid var(--color-secondary-700);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.45;
  transition: opacity 0.2s ease, right 0.2s ease;
}
.coming-soon-live__grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(30, 58, 138, 0.18), 0 2px 6px -2px rgba(30, 58, 138, 0.08);
  border-color: var(--color-secondary-300, rgba(3, 105, 161, 0.3));
}
.coming-soon-live__grid a:hover::after {
  opacity: 1;
  right: calc(var(--space-5) - 2px);
}
.coming-soon-live__grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-primary-900);
  margin-bottom: var(--space-1);
}
.coming-soon-live__grid span {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 640px) {
  .coming-soon {
    padding: var(--space-8) 0 var(--space-12);
  }
  .coming-soon-stat {
    padding: var(--space-4) var(--space-2);
  }
  .coming-soon-stat__num {
    font-size: var(--text-xl);
  }
  .coming-soon__doctor-main {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-6) var(--space-5) var(--space-4);
  }
  .coming-soon__doctor-photo {
    width: 96px;
    height: 96px;
    margin: 0 auto;
  }
  .coming-soon__credentials {
    justify-content: center;
  }
  .coming-soon__ctas {
    justify-content: center;
  }
  .coming-soon__ctas .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .coming-soon-live__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   CONTACT ENQUIRY — Elfsight form (left) + doctor image with CTAs (right)
   ========================================================================= */
.contact-enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.contact-enquiry__form {
  background-color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-height: 480px;
}

.contact-enquiry__form-title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-5);
  color: var(--color-text-primary);
  line-height: 1.25;
  text-align: center;
}

.contact-enquiry__media {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-enquiry__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.contact-enquiry__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-enquiry__btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .contact-enquiry {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-enquiry__form {
    min-height: 0;
    order: 2;
  }

  .contact-enquiry__media {
    order: 1;
  }
}

/* ==========================================================
   PROSE FIGURE — inline images inside .prose blocks
   Used on condition pages (e.g. /conditions/atrial-fibrillation)
   ========================================================== */
.prose-figure {
  margin: var(--space-10) 0;
}

.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.prose-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.55;
  color: var(--color-neutral-600, #4b5563);
  text-align: center;
  font-style: italic;
}

/* Lifetime-risk infographic (shared include) — keep it readable rather than
   stretching the wide graphic edge-to-edge, and lighten the caption when the
   figure sits on a dark section (e.g. homepage Heart Facts). */
.prose-figure--lifetime-risk {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.prose-figure--on-dark figcaption {
  color: var(--color-neutral-300, #d1d5db);
}

.prose-figure--on-dark figcaption a {
  color: var(--color-accent-400, #fbbf24);
}

@media (max-width: 640px) {
  .prose-figure {
    margin: var(--space-8) 0;
  }
}

/* --------------------------------------------------------------------------
   TAGLINE — "Restoring the rhythm of life" (ECG morphs into the word)
   A thin ECG trace draws across the section. As the QRS spike fires, the
   italic "rhythm" wakes up — a faded navy resolves into a warm sunrise
   gradient, with a gentle spring-in. Pure CSS/SVG; triggered by the
   existing IntersectionObserver that toggles .is-visible on [data-animate].
   -------------------------------------------------------------------------- */

.tagline-scene-section {
  background: var(--color-white);
  overflow-x: hidden; /* keep Option 2's full-bleed band from causing a horizontal scrollbar on Windows */
}

.tagline-scene {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* ---- Kinetic word-swap headline (sits above the ECG) ---- */

.tagline-scene__kinetic {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4.4vw, 3.125rem);
  font-weight: var(--font-medium);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary-900);
  margin: 0 0 var(--space-5) 0;
  perspective: 700px;
}

.kinetic-slot {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  transform-style: preserve-3d;
}

/* Invisible word reserves the slot's width (longest word + italic correction) */
.kinetic-ghost {
  visibility: hidden;
  font-style: italic;
  font-weight: var(--font-semibold);
  padding-inline-end: 0.28em; /* italic correction */
}

.kinetic-word {
  position: absolute;
  inset: 0;
  font-style: italic;
  font-weight: var(--font-semibold);
  white-space: nowrap;
  padding-inline-end: 0.28em; /* italic correction so the slant of 'm' isn't clipped by background-clip: text */
  background: linear-gradient(135deg, #F59E0B 0%, #EC4899 55%, #6366F1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  transform-origin: 50% 50%;
  transform: rotateX(90deg);
}

.tagline-scene.is-visible .kinetic-word {
  animation: kinetic-flip 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.tagline-scene.is-visible .kinetic-word--1 { animation-delay: 0s; }
.tagline-scene.is-visible .kinetic-word--2 { animation-delay: 3s; }
.tagline-scene.is-visible .kinetic-word--3 { animation-delay: 6s; }

@keyframes kinetic-flip {
  0%   { opacity: 0; transform: rotateX(90deg); }
  5%   { opacity: 1; transform: rotateX(0); }
  30%  { opacity: 1; transform: rotateX(0); }
  35%  { opacity: 0; transform: rotateX(-90deg); }
  100% { opacity: 0; transform: rotateX(-90deg); }
}

.tagline-scene__ecg {
  width: 100%;
  margin: 0 auto var(--space-3);
  pointer-events: none;
}

.tagline-scene__ecg-svg {
  width: 100%;
  height: 64px;
  display: block;
}

.ecg-line {
  fill: none;
  stroke: #6366F1;                /* indigo accent */
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;          /* pairs with pathLength="100" on the path */
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.35));
}

.tagline-scene.is-visible .ecg-line {
  animation: ecg-draw 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes ecg-draw {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  6%   { opacity: 1; }
  55%  { stroke-dashoffset: 0;   opacity: 1; }
  82%  { stroke-dashoffset: 0;   opacity: 1; }
  94%  { opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}

/* ---- Sandbox labels ("Option 1", "Option 2", "Option 3") ---- */

.tagline-scene__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-secondary-700);
  margin-bottom: var(--space-2);
  opacity: 0.6;
}

.tagline-scene__label--spaced {
  margin-top: var(--space-10); /* extra breathing room between options */
}

/* ---- Byline with circular thumbnail under Option 1 ---- */

.tagline-scene__byline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) auto 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease-out 1.4s,
              transform 0.8s ease-out 1.4s;
  text-align: left;
}

.tagline-scene.is-visible .tagline-scene__byline {
  opacity: 1;
  transform: translateY(0);
}

.tagline-scene__byline-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--color-white);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.18),
    0 6px 14px -6px rgba(30, 58, 138, 0.35);
  flex-shrink: 0;
}

.tagline-scene__byline-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}

.tagline-scene__byline-name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-900);
  letter-spacing: -0.005em;
}

.tagline-scene__byline-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary-700);
  margin-top: 2px;
}

/* ---- Full-bleed dark-navy band for Option 2 ---- */

.tagline-scene__card {
  /* break out of the .container width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--space-16) var(--space-6) var(--space-14);
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #1E1B4B 100%);
  border-radius: 0;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Flex column centres every child horizontally regardless of their own margins,
     dodging the specificity collision with .tagline-scene__sub's `margin: 0 0 X 0`. */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Soft indigo spotlight haloing the headline */
.tagline-scene__card::before {
  content: '';
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(900px, 115%);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(129, 140, 248, 0.32) 0%,
    rgba(99, 102, 241, 0.18) 28%,
    rgba(99, 102, 241, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

/* Cinematic corner vignette */
.tagline-scene__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Constrain each inner block to the original content width */
.tagline-scene__card > * {
  width: 100%;
  max-width: 760px;
  position: relative;
}

/* Light-on-dark text treatment for everything inside the card */
.tagline-scene__card .tagline-scene__label {
  color: rgba(199, 210, 254, 0.82);
  margin-bottom: var(--space-3);
  opacity: 1;
}

.tagline-scene__card .tagline-scene__sub {
  color: rgba(241, 245, 249, 0.94);
  /* Keep "Return to the Rhythm of Living" on a single line on desktop/tablet.
     The clamp scales the font so the line stays within the full-bleed card width. */
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(1.125rem, 3.5vw, 3.125rem);
}

.tagline-scene__card .sub-word {
  margin-inline: 0.08em;
}

/* Soft glow under the gradient 'Rhythm' word */
.tagline-scene__card .sub-word--accent {
  filter: drop-shadow(0 0 18px rgba(165, 180, 252, 0.55));
}

.tagline-scene__card .ecg-line {
  stroke: #A5B4FC;
  filter: drop-shadow(0 0 8px rgba(165, 180, 252, 0.55));
}

/* ---- Gold hairline ornament with diamond endpoints (Options 2 & 3) ---- */

.tagline-scene__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 260px;
  max-width: 60%;
  margin: 0 auto var(--space-5);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.9s ease-out 0.15s,
              transform 0.9s ease-out 0.15s;
}

.tagline-scene.is-visible .tagline-scene__ornament {
  opacity: 1;
  transform: translateY(0);
}

/* In card context (Option 2), beat the .tagline-scene__card > * universal
   selector that forces width: 100%. */
.tagline-scene__card .tagline-scene__ornament {
  width: 260px;
}

.tagline-scene__ornament-diamond {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
  flex-shrink: 0;
}

.tagline-scene__ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(245, 158, 11, 0.55) 28%,
    rgba(252, 211, 77, 0.7) 50%,
    rgba(245, 158, 11, 0.55) 72%,
    rgba(245, 158, 11, 0) 100%);
}

/* ---- Bracket the ECG line with glowing pulse dots ---- */

.tagline-scene__card .tagline-scene__ecg {
  position: relative;
  padding-inline: 4px;
}

.tagline-scene__card .tagline-scene__ecg::before,
.tagline-scene__card .tagline-scene__ecg::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A5B4FC;
  transform: translate(0, -50%) scale(0.6);
  box-shadow:
    0 0 0 2px rgba(165, 180, 252, 0.18),
    0 0 14px rgba(165, 180, 252, 0.7);
  opacity: 0;
}

.tagline-scene__card .tagline-scene__ecg::before { left: 0; }
.tagline-scene__card .tagline-scene__ecg::after  { right: 0; }

.tagline-scene.is-visible .tagline-scene__card .tagline-scene__ecg::before {
  animation: bracket-pulse-left 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tagline-scene.is-visible .tagline-scene__card .tagline-scene__ecg::after {
  animation: bracket-pulse-right 5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes bracket-pulse-left {
  0%, 100% { opacity: 0; transform: translate(0, -50%) scale(0.6); }
  6%       { opacity: 1; transform: translate(0, -50%) scale(1.3); }
  14%, 88% { opacity: 1; transform: translate(0, -50%) scale(1); }
  94%      { opacity: 0; transform: translate(0, -50%) scale(0.6); }
}

@keyframes bracket-pulse-right {
  0%, 50%  { opacity: 0; transform: translate(0, -50%) scale(0.6); }
  55%      { opacity: 1; transform: translate(0, -50%) scale(1.3); }
  62%, 88% { opacity: 1; transform: translate(0, -50%) scale(1); }
  94%      { opacity: 0; transform: translate(0, -50%) scale(0.6); }
}

/* ---- Plain straight divider between options (sandbox helper) ---- */

.tagline-scene__divider {
  border: none;
  height: 1px;
  background: rgba(30, 58, 138, 0.14);
  width: 100%;
  max-width: 720px;
  margin: var(--space-16) auto;
}

/* Hide the dividers immediately adjacent to the dark full-bleed card —
   the dark band itself acts as the visual separator. */
.tagline-scene__divider:has(+ .tagline-scene__card),
.tagline-scene__card + .tagline-scene__divider {
  display: none;
}

/* ---- Beating heart at the end of Option 1 ---- */

.beating-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.28em;
  vertical-align: -0.05em;
  color: #EC4899;
  animation: beating-heart 1.4s ease-in-out infinite;
}

.beating-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes beating-heart {
  0%, 55%, 100% { transform: scale(1); }
  8%, 24%       { transform: scale(1.22); }
  16%           { transform: scale(1.04); }
}

/* ---- Option 3 closer line: words fade up, then gradient underline draws ---- */

.tagline-scene__closer {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4.4vw, 3.125rem);
  font-weight: var(--font-semibold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-primary-900);
  margin: 0;
}

.closer-text {
  display: inline-block;
}

/* Each letter (split by JS) blurs + fades + scales in, staggered ~25ms */
.closer-letter {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.88);
  transform-origin: center bottom;
}

.tagline-scene.is-visible .closer-letter {
  animation: closer-letter-resolve 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes closer-letter-resolve {
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* ---- Option 3 closer: BPM chip stacked above the text ---- */

.tagline-scene__closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  isolation: isolate;
  padding-block: var(--space-8);
}

/* Soft warm radial halo behind the closer line */
.tagline-scene__closer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 112%);
  aspect-ratio: 5 / 3;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(252, 211, 77, 0.22) 0%,
    rgba(236, 72, 153, 0.11) 30%,
    rgba(99, 102, 241, 0.06) 55%,
    rgba(255, 255, 255, 0) 75%);
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

/* ---- Pulse rings emanating from the heart-pair ---- */

.heart-pair::before,
.heart-pair::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 72, 153, 0.55);
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.heart-pair::after {
  border-color: rgba(245, 158, 11, 0.45);
}

.tagline-scene.is-visible .heart-pair::before {
  animation: pulse-ring 2.8s ease-out infinite;
}

.tagline-scene.is-visible .heart-pair::after {
  animation: pulse-ring 2.8s ease-out 1.4s infinite;
}

@keyframes pulse-ring {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.55); }
  10%  { opacity: 0.9; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.4); }
}

/* ---- Gradient underline that draws beneath the closer text ---- */

.closer-text {
  position: relative;
  padding-bottom: var(--space-3);
}

.closer-text::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(236, 72, 153, 0) 0%,
    rgba(236, 72, 153, 0.5) 22%,
    rgba(245, 158, 11, 0.85) 50%,
    rgba(99, 102, 241, 0.5) 78%,
    rgba(99, 102, 241, 0) 100%);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.4s;
}

.tagline-scene.is-visible .closer-text::after {
  transform: translateX(-50%) scaleX(1);
}

.heart-pair {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 42px;
}

.heart-pair__heart {
  position: absolute;
  display: block;
  transform-origin: center center;
  animation: heart-pair-beat 0.9s ease-in-out infinite;
}

.heart-pair__heart--1 {
  width: 40px;
  height: 40px;
  left: 0;
  top: 0;
  color: #EC4899;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
}

.heart-pair__heart--2 {
  width: 28px;
  height: 28px;
  left: 30px;
  top: 8px;
  color: #F59E0B;
  z-index: 1;
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.40));
  animation-delay: -0.18s;
}

@keyframes heart-pair-beat {
  0%, 55%, 100% { transform: scale(1); }
  8%, 24%       { transform: scale(1.22); }
  16%           { transform: scale(1.04); }
}

/* ---- Sub-tagline ("Steady Beats. Stronger Lives.") — cadenced reveal ---- */

.tagline-scene__sub {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4.4vw, 3.125rem);
  font-weight: var(--font-medium);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-secondary-700);
  margin: 0 0 var(--space-6) 0;
}

.sub-word {
  display: inline-block;
  margin-inline: 0.15em;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: center bottom;
}

.tagline-scene.is-visible .sub-word--1 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.40s forwards; }
.tagline-scene.is-visible .sub-word--2 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 1.00s forwards; }
.tagline-scene.is-visible .sub-word--3 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 1.60s forwards; }
.tagline-scene.is-visible .sub-word--4 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 2.20s forwards; }
.tagline-scene.is-visible .sub-word--5 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 2.80s forwards; }
.tagline-scene.is-visible .sub-word--6 { animation: sub-pop 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 3.40s forwards; }

/* Highlight the on-theme word in Option 2 ('Rhythm') with the same italic + gradient as Option 1's swap */
.sub-word--accent {
  font-style: italic;
  font-weight: var(--font-semibold);
  padding-inline-end: 0.18em; /* italic correction */
  background: linear-gradient(135deg, #F59E0B 0%, #EC4899 55%, #6366F1 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes sub-pop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.94); }
  55%  { opacity: 1; transform: translateY(0)  scale(1.06); }
  100% { opacity: 1; transform: translateY(0)  scale(1); }
}

.sub-dot {
  display: inline-block;
  color: var(--color-accent-500);
  margin-left: 0.02em;
}

.tagline-scene.is-visible .sub-dot {
  animation: sub-dot-pulse 2.8s ease-in-out 3.6s infinite;
}

@keyframes sub-dot-pulse {
  0%, 70%, 100% { transform: scale(1);   opacity: 1;   }
  12%           { transform: scale(1.5); opacity: 0.7; }
}

@media (max-width: 768px) {
  .tagline-scene__ecg-svg {
    height: 46px;
  }
  /* On mobile, let the headline wrap so we don't have to shrink to unreadable sizes */
  .tagline-scene__card .tagline-scene__sub {
    white-space: normal;
    width: 100%;
    font-size: clamp(1.125rem, 4.2vw, 1.875rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecg-line,
  .sub-word,
  .sub-dot,
  .kinetic-word,
  .beating-heart,
  .closer-letter,
  .pulse-ring__ring,
  .tagline-scene__ornament,
  .tagline-scene__card .tagline-scene__ecg::before,
  .tagline-scene__card .tagline-scene__ecg::after,
  .heart-pair::before,
  .heart-pair::after,
  .closer-text::after {
    transition: none !important;
    animation: none !important;
  }
  .ecg-line { stroke-dashoffset: 0; }
  .sub-word { opacity: 1; transform: none; }
  .kinetic-word--1 { opacity: 1; transform: none; }
  .closer-letter { opacity: 1; filter: none; transform: none; }
  .pulse-ring__ring { display: none; }
  .tagline-scene__ornament { opacity: 1; transform: none; }
  .tagline-scene__card .tagline-scene__ecg::before,
  .tagline-scene__card .tagline-scene__ecg::after {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
  .heart-pair::before,
  .heart-pair::after { opacity: 0; }
  .closer-text::after { transform: translateX(-50%) scaleX(1); }
}
