/* ==========================================================================
   Dr Dibbendhu Khanra — Cardiologist & Cardiac Electrophysiologist
   Main stylesheet (sits on top of Bootstrap 5)
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Utilities & buttons
   4.  Header / navigation
   5.  Hero
   6.  Stats
   7.  Section scaffolding
   8.  About
   9.  Cards (expertise, conditions, patients, why)
   10. Three.js rhythm section
   11. Timeline
   12. Patient journey
   13. Dark ECG section
   14. Commitment carousel
   15. FAQ
   16. Contact & forms
   17. Inner page hero & content blocks
   18. Footer
   19. Reveal animations
   20. Responsive
   21. Reduced motion
   22. Video gallery & popup player
   23. Blog (listing, sidebar, pagination, article)
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --navy: #0a1a33;
  --navy-2: #0f2545;
  --navy-3: #16325a;
  --blue: #1d5fae;
  --blue-600: #174e90;
  --cyan: #2aaecd;
  --cyan-300: #7fd3e6;
  --cyan-soft: #e3f4f9;
  --bg: #f5f8fb;
  --bg-2: #edf2f7;
  --white: #ffffff;
  --ink: #0f1e33;
  --muted: #56657a;
  --muted-2: #7b889a;
  --line: rgba(15, 30, 51, 0.09);
  --line-strong: rgba(15, 30, 51, 0.16);
  --accent: #d9485f;

  --font-display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 51, 0.04), 0 4px 12px rgba(10, 26, 51, 0.05);
  --shadow: 0 2px 6px rgba(10, 26, 51, 0.04), 0 18px 40px -12px rgba(10, 26, 51, 0.14);
  --shadow-lg: 0 30px 70px -20px rgba(10, 26, 51, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* 2. Base & typography --------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

p { color: var(--muted); }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--blue-600); }

img { max-width: 100%; height: auto; }

/* Off-screen reveal transforms (fade-left/right) must never cause sideways scroll */
main,
.site-footer { overflow-x: clip; }

.contact-list a,
.footer-contact a { overflow-wrap: anywhere; }

::selection { background: var(--cyan-soft); color: var(--navy); }

/* Visible, consistent focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Utilities & buttons ------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.eyebrow.eyebrow-light { color: var(--cyan-300); }
.eyebrow.centered::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.text-gradient {
  background: linear-gradient(100deg, var(--blue) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Extend the painted box below the baseline so descenders (g, y, p)
     aren't clipped by the tight display line-height; margin cancels it out. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.text-muted-2 { color: var(--muted) !important; }
.bg-soft { background: var(--bg); }
.fw-display { font-family: var(--font-display); }

.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn i { transition: transform 0.35s var(--ease); }
.btn:hover i.bi-arrow-right,
.btn:hover i.bi-arrow-up-right { transform: translateX(3px); }

.btn-primary-x {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-bg: var(--blue-600);
  --bs-btn-active-border-color: var(--blue-600);
  --bs-btn-active-color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10, 26, 51, 0.55);
}
.btn-primary-x:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(29, 95, 174, 0.6);
}

.btn-outline-x {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  background: rgba(255, 255, 255, 0.6);
}
.btn-outline-x:hover { transform: translateY(-2px); }

.btn-light-x {
  --bs-btn-color: var(--navy);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: var(--cyan-soft);
  --bs-btn-hover-border-color: var(--cyan-soft);
  --bs-btn-active-bg: var(--cyan-soft);
  --bs-btn-active-color: var(--navy);
}
.btn-light-x:hover { transform: translateY(-2px); }

.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.3);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.7);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.12);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
}
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--blue-600);
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--blue);
  background: linear-gradient(145deg, var(--cyan-soft), #f3f8fc);
  border: 1px solid rgba(42, 174, 205, 0.18);
  transition: transform 0.45s var(--ease), background 0.35s ease, color 0.35s ease;
}

.divider-ecg {
  display: block;
  width: 120px;
  height: 24px;
  color: var(--cyan);
}

/* 4. Header / navigation ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  padding: 1.1rem 0;
  transition: padding 0.4s var(--ease), background-color 0.4s ease,
    box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(10, 26, 51, 0.25);
}

.site-header .navbar { padding: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav .nav-link {
  position: relative;
  padding: 0.5rem 0.7rem !important;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.site-nav .btn { white-space: nowrap; }
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--blue); }

/* Animated hamburger (three lines → cross) */
.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.nav-toggle-box { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.4s var(--ease), opacity 0.25s ease, top 0.4s var(--ease);
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 6px; }
.nav-toggle-line:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 3.5rem) 0 8rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(42, 174, 205, 0.12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(29, 95, 174, 0.08), transparent 60%),
    linear-gradient(180deg, #f7fafd 0%, #eef4f9 100%);
}

/* Faint engineering grid in the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 95, 174, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 95, 174, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* Animated ECG line across the hero background */
.hero-ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  width: 100%;
  height: 160px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-ecg .ecg-base {
  fill: none;
  stroke: rgba(29, 95, 174, 0.12);
  stroke-width: 1.5;
}
.hero-ecg .ecg-pulse {
  fill: none;
  stroke: url(#ecgGradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 260 2600;
  stroke-dashoffset: 2860;
  animation: ecg-travel 6s linear infinite;
}
@keyframes ecg-travel {
  to { stroke-dashoffset: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(2.1rem, 8.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin-bottom: 1.6rem;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  max-width: 34rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.hero-meta-item i { color: var(--cyan); font-size: 1.15rem; }

/* Right-hand visual: Three.js stage + portrait card */
.hero-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1.08;
  max-width: 560px;
  margin-left: auto;
  margin-right: clamp(1.5rem, 3.5vw, 3rem);
}

.hero-stage {
  position: absolute;
  inset: 0 2% 8% 8%;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 42%, #1a3f70 0%, #0d2342 55%, #081629 100%);
  box-shadow: var(--shadow-lg);
}
.hero-stage::after {
  /* thin inner border for a crafted feel */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(127, 211, 230, 0.18);
  pointer-events: none;
}

.three-canvas-wrap {
  position: absolute;
  inset: 0;
}
.three-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Static fallback if WebGL is unavailable (toggled by three-scene.js) */
.three-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
}
.three-fallback svg { width: 62%; height: auto; opacity: 0.9; }
.webgl-fallback .three-fallback { display: grid; }
.webgl-fallback canvas { display: none !important; }

.portrait-card {
  position: absolute;
  left: -15%;
  bottom: -2%;
  width: 50%;
  max-width: 285px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 48px -12px rgba(10, 26, 51, 0.28);
  z-index: 2;
  transition: transform 0.35s var(--ease);
}
.portrait-card:hover {
  transform: translateY(-4px);
}
.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  background: var(--bg-2);
}
.portrait-caption {
  padding: 0.85rem 0.6rem 0.45rem;
}
.portrait-caption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.25;
}
.portrait-caption span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
  margin-top: 0.2rem;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px -8px rgba(10, 26, 51, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  z-index: 3;
  animation: float-y 7s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.float-chip .chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--blue);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.float-chip {
  white-space: nowrap;
}
.float-chip.chip-1 { right: -25%; top: 8%; }
@media (min-width: 1400px) {
  .float-chip.chip-1 { right: -28%; top: 8%; }
}
@media (max-width: 1199.98px) {
  .float-chip.chip-1 { right: -18%; top: 6%; }
}
@media (max-width: 991.98px) {
  .float-chip.chip-1 { right: -6%; top: 4%; }
}
.float-chip.chip-2 { right: -10%; bottom: 16%; animation-delay: -3.5s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27c28a;
  box-shadow: 0 0 0 0 rgba(39, 194, 138, 0.6);
  animation: live 2s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(39, 194, 138, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(39, 194, 138, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
}
.scroll-cue::after {
  content: "";
  width: 3px;
  height: 8px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--blue);
  animation: scroll-cue 2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* 6. Stats --------------------------------------------------------------- */
.stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -5rem;
}
.stats {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat {
  padding: 2.2rem 1.75rem;
  position: relative;
  height: 100%;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--line);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.stat-number .suffix { color: var(--cyan); font-size: 0.7em; }
.stat-label {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* 7. Section scaffolding ------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}
.section-sm { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 1.1rem;
}
.section-lead { font-size: 1.1rem; }

/* Section Split Head (Header with Action Button) */
.section-head-split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 768px) {
  .section-head-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
  }
}

.section-head-split .section-head {
  margin-bottom: 0;
  max-width: 44rem;
}

.section-head-split .section-head > :last-child {
  margin-bottom: 0;
}

.section-head-split .section-action {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .section-head-split .section-action {
    margin-bottom: 0.35rem; /* optically align with baseline of lead text */
  }
}

.section-head-split .section-action .btn,
.section-head-split > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: 0 4px 14px rgba(10, 26, 51, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}

.section-head-split .section-action .btn:hover,
.section-head-split > .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(10, 26, 51, 0.12);
}

.section-head-split .section-action .btn i,
.section-head-split > .btn i {
  transition: transform 0.25s ease;
}

.section-head-split .section-action .btn:hover i,
.section-head-split > .btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 767.98px) {
  .section-head-split {
    margin-bottom: 2rem;
    gap: 1.25rem;
  }
  .section-head-split .section-action {
    width: auto;
    margin-bottom: 0;
  }
}

/* Also enhance legacy markup <div class="d-lg-flex justify-content-between align-items-end ..."> */
.d-lg-flex.justify-content-between.align-items-end > .section-head {
  margin-bottom: 0;
}
.d-lg-flex.justify-content-between.align-items-end > .section-head > :last-child {
  margin-bottom: 0;
}
.d-lg-flex.justify-content-between.align-items-end {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 992px) {
  .d-lg-flex.justify-content-between.align-items-end > .btn {
    margin-bottom: 0.35rem !important;
  }
}
@media (max-width: 991.98px) {
  .d-lg-flex.justify-content-between.align-items-end > .btn.mb-5 {
    margin-top: 1.25rem;
    margin-bottom: 0 !important;
  }
}

.section-bg-soft { background: var(--bg); }
.section-bg-gradient {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

/* 8. About --------------------------------------------------------------- */
.about-media {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
}
.about-media::before {
  /* offset decorative contour border */
  content: "";
  position: absolute;
  left: -22px;
  right: -22px;
  top: 28%;
  bottom: -14px;
  border: 1.5px solid rgba(74, 163, 219, 0.45);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}
.about-media::after {
  /* dot pattern */
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 180px;
  background-image: radial-gradient(rgba(74, 163, 219, 0.45) 1.6px, transparent 1.8px);
  background-size: 16px 16px;
  z-index: 0;
  pointer-events: none;
}
.about-img {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(10, 26, 51, 0.1), 0 4px 14px rgba(10, 26, 51, 0.04);
  background: #ffffff;
}
.about-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: 50% 10%;
  transform: none !important;
}
.chip-about {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  font-size: 0.96rem;
  line-height: 1.4;
  color: #123353;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 2px;
}
.chip-about .chip-number {
  font-weight: 600;
  color: #123353;
  margin-right: 0.2rem;
}
.chip-about .chip-label {
  font-weight: 500;
  color: #123353;
}
.exp-badge {
  position: absolute;
  z-index: 2;
  right: -1.25rem;
  bottom: 4.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: float-y 8s ease-in-out infinite;
}
.exp-badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
}
.exp-badge strong sup { color: var(--cyan-300); font-size: 0.55em; top: -0.6em; }
.exp-badge span { font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.75); }

.check-list { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; }
.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  color: var(--ink);
  font-weight: 500;
}
.check-list li i {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.check-list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }

.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cred {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: #fff;
}

/* 9. Cards --------------------------------------------------------------- */
.card-x {
  position: relative;
  height: 100%;
  padding: 2rem 1.8rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
  isolation: isolate;
}
/* Animated gradient border (masked pseudo-element) */
.card-x::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0deg, var(--cyan) 70deg, var(--blue) 140deg, transparent 220deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}
.card-x:hover,
.card-x:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-x:hover::before,
.card-x:focus-within::before {
  opacity: 1;
  animation: spin-angle 4s linear infinite;
}
@keyframes spin-angle {
  to { --angle: 360deg; }
}
.card-x:hover .icon-badge {
  transform: translateY(-3px);
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  color: #fff;
}
.card-x h3 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.7rem;
}
.card-x p { margin-bottom: 0; font-size: 0.97rem; }
.card-x .card-num {
  position: absolute;
  top: 1.6rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted-2);
}
.card-x .link-arrow { margin-top: 1.2rem; }

/* Compact condition cards */
.condition {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.condition:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(42, 174, 205, 0.35);
}
.condition .icon-badge { width: 46px; height: 46px; border-radius: 12px; font-size: 1.2rem; }
.condition h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  color: var(--navy);
}
.condition p { font-size: 0.82rem; margin: 0.15rem 0 0; line-height: 1.45; }

/* "Why choose" feature columns */
.why-item {
  height: 100%;
  padding: 2.25rem 1.75rem;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.why-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 1.2s var(--ease) 0.2s;
}
.why-item.is-visible::before { width: 64px; }
.why-item .why-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 1.4rem;
  display: block;
}
.why-item h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

/* Info/fact tiles (patients & GPs) */
.fact-tile {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.6rem;
  height: 100%;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.fact-tile h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0;
}
.fact-tile p { margin: 0; font-size: 0.92rem; }

/* Feature panel (navy block used in GP / patient sections) */
.panel-navy {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(1.85rem, 3.8vw, 3rem);
  color: #fff;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(42, 174, 205, 0.25), transparent 60%),
    linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: var(--shadow-lg);
}
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy p { color: rgba(255, 255, 255, 0.72); }
.panel-navy .check-list { margin: 1rem 0 1.35rem; }
.panel-navy .check-list li {
  padding: 0.32rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.panel-navy .check-list li i {
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
}
.panel-navy .ecg-watermark {
  position: absolute;
  right: -5%;
  bottom: 8%;
  width: 70%;
  opacity: 0.12;
  pointer-events: none;
}

.service-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.service-row:last-child { border-bottom: 0; }
.service-row i {
  color: var(--cyan-300);
  font-size: 1.25rem;
  flex: none;
}
.service-row strong { display: block; color: #fff; font-weight: 600; font-size: 0.96rem; }
.service-row span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }

/* Compact patient facts grid with 4 cards - reduced gap, perfectly maintained height */
.patient-facts-grid {
  display: grid;
  gap: 0.65rem;
  height: 100%;
}
.patient-facts-grid .fact-cell {
  height: 100%;
}
.patient-facts-grid .fact-tile {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  padding: 0.72rem 1.15rem;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}
.patient-facts-grid .fact-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}
.patient-facts-grid .fact-tile .icon-badge {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.22rem;
}
.patient-facts-grid .fact-tile h3 {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--navy);
}
.patient-facts-grid .fact-tile p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--ink-light);
}

@media (max-width: 991.98px) {
  .patient-facts-grid {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .patient-facts-grid .fact-tile {
    padding: 0.85rem 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .patient-facts-grid .fact-tile {
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }
  .patient-facts-grid .fact-tile .icon-badge {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 11px;
  }
  .patient-facts-grid .fact-tile h3 {
    font-size: 0.92rem;
  }
  .patient-facts-grid .fact-tile p {
    font-size: 0.8rem;
  }
}

/* 10. Three.js rhythm section ------------------------------------------- */
.rhythm-section {
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(42, 174, 205, 0.1), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.rhythm-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  margin: 0 auto;
  border-radius: 40px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #163763 0%, #0b1e3a 60%, #071427 100%);
  box-shadow: var(--shadow-lg);
  cursor: grab;
  touch-action: pan-y;
}
.rhythm-stage:active { cursor: grabbing; }
.rhythm-stage .stage-label {
  position: absolute;
  left: 1.4rem;
  top: 1.2rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rhythm-stage .stage-hint {
  position: absolute;
  right: 1.4rem;
  top: 1.2rem;
  z-index: 2;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}
.rhythm-ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(7, 20, 39, 0.85));
}
.rhythm-ecg canvas { width: 100%; height: 100%; display: block; }

.conduction-steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; }
.conduction-steps li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}
.conduction-steps li .step-dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.conduction-steps li strong { display: block; color: var(--navy); font-weight: 700; font-size: 0.98rem; }
.conduction-steps li span { font-size: 0.9rem; color: var(--muted); }
.conduction-steps li.is-active {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.conduction-steps li.is-active .step-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(42, 174, 205, 0.18);
}

/* 11. Timeline ----------------------------------------------------------- */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  --progress: 0;
}
.timeline::before,
.timeline-progress {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  transform: translateX(-50%);
  background: var(--line);
  border-radius: 2px;
}
.timeline-progress {
  bottom: auto;
  height: calc((100% - 1rem) * var(--progress));
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  transition: height 0.15s linear;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3.5rem 3rem 0;
}
.timeline-item:nth-child(odd) { margin-left: 50%; padding: 0 0 3rem 3.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  top: 1.6rem;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-strong);
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot { right: auto; left: -9px; }
.timeline-item.is-visible .timeline-dot {
  border-color: var(--cyan);
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(42, 174, 205, 0.16);
}
.timeline-card {
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline-card .step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.timeline-card h3 { font-size: 1.35rem; margin: 0.4rem 0 0.55rem; }
.timeline-card p { margin: 0; font-size: 0.95rem; }

/* 12. Patient journey ---------------------------------------------------- */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.journey::before,
.journey::after {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 32px;
  height: 2px;
  background: var(--line);
}
.journey::after {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.2s var(--ease) 0.3s;
}
.journey.is-visible::after { transform: scaleX(1); }
.journey-step { position: relative; text-align: center; z-index: 1; }
.journey-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.journey.is-visible .journey-num {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.journey.is-visible .journey-step:nth-child(1) .journey-num { transition-delay: 0.3s; }
.journey.is-visible .journey-step:nth-child(2) .journey-num { transition-delay: 0.65s; }
.journey.is-visible .journey-step:nth-child(3) .journey-num { transition-delay: 1s; }
.journey.is-visible .journey-step:nth-child(4) .journey-num { transition-delay: 1.35s; }
.journey.is-visible .journey-step:nth-child(5) .journey-num { transition-delay: 1.7s; }
.journey.is-visible .journey-step:nth-child(6) .journey-num { transition-delay: 2.05s; }
.journey-step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.journey-step p { font-size: 0.88rem; margin: 0; }

/* 13. Dark ECG section --------------------------------------------------- */
.ecg-section {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 11vw, 10rem) 0;
  background:
    radial-gradient(900px 500px at 50% 120%, rgba(42, 174, 205, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #081528 100%);
  color: #fff;
}
.ecg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 211, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 211, 230, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.ecg-section h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}
.ecg-section h2 em { color: var(--cyan-300); }
.ecg-section p { color: rgba(255, 255, 255, 0.7); }
.ecg-monitor {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 240px;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
.ecg-monitor canvas { width: 100%; height: 100%; display: block; }
.ecg-section .container { position: relative; z-index: 2; }
.ecg-readout {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 211, 230, 0.2);
  background: rgba(10, 26, 51, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}
.ecg-readout b { color: var(--cyan-300); font-weight: 700; }

/* Floating decorative particles (pure CSS, very light) */
.particles { position: absolute; inset: 0; pointer-events: none; }
.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-300);
  opacity: 0.35;
  animation: drift 16s linear infinite;
}
.particles span:nth-child(1) { left: 8%; top: 80%; animation-duration: 18s; }
.particles span:nth-child(2) { left: 22%; top: 90%; animation-duration: 22s; animation-delay: -6s; }
.particles span:nth-child(3) { left: 41%; top: 85%; animation-duration: 19s; animation-delay: -10s; width: 3px; height: 3px; }
.particles span:nth-child(4) { left: 63%; top: 95%; animation-duration: 24s; animation-delay: -3s; }
.particles span:nth-child(5) { left: 78%; top: 88%; animation-duration: 20s; animation-delay: -12s; width: 3px; height: 3px; }
.particles span:nth-child(6) { left: 91%; top: 92%; animation-duration: 26s; animation-delay: -8s; }
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.3; }
  100% { transform: translate(30px, -110vh); opacity: 0; }
}

/* 14. Commitment carousel ------------------------------------------------ */
.quote-carousel { max-width: 50rem; margin: 0 auto; text-align: center; }
.quote-carousel .carousel-item { padding: 0 3.5rem 0.5rem; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--cyan);
  display: block;
  margin-bottom: 1.25rem;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.quote-meta { font-size: 0.9rem; color: var(--muted); }
.quote-meta strong { color: var(--navy); }
.quote-carousel .carousel-control-prev,
.quote-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 40%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  opacity: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.quote-carousel .carousel-control-prev:hover,
.quote-carousel .carousel-control-next:hover { background: var(--navy); color: #fff; }
.quote-carousel .carousel-indicators { position: static; margin: 2rem 0 0; }
.quote-carousel .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--line-strong);
  opacity: 1;
  transition: background-color 0.3s ease, width 0.4s var(--ease);
}
.quote-carousel .carousel-indicators .active { width: 44px; background: var(--blue); }

/* 15. FAQ ---------------------------------------------------------------- */
.faq .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}
.faq .accordion-item:first-of-type { border-top: 1px solid var(--line-strong); }
.faq .accordion-button {
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  box-shadow: none;
  gap: 1rem;
}
.faq .accordion-button:not(.collapsed) { color: var(--blue); }
.faq .accordion-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.faq .accordion-button::after {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background-position: center;
  background-size: 14px;
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
}
.faq .accordion-button:not(.collapsed)::after { background-color: var(--cyan-soft); }
.faq .accordion-body { padding: 0 3.5rem 1.6rem 0; color: var(--muted); }

/* 16. Contact & forms ---------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon-badge { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 14px; }
.contact-list small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-list a,
.contact-list span.value { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }

.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.6rem; }
.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-control,
.form-select {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg);
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(42, 174, 205, 0.15);
}
.form-control::placeholder { color: var(--muted-2); }
.form-note { font-size: 0.8rem; color: var(--muted-2); }
.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: #e9f8f1;
  border: 1px solid #bfe9d5;
  color: #1a6a4a;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-success.is-shown { display: flex; }
.form-success i { font-size: 1.3rem; }

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 260px;
  background:
    radial-gradient(circle at 60% 45%, rgba(42, 174, 205, 0.25), transparent 40%),
    linear-gradient(145deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.map-card svg.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}
.map-pin {
  position: absolute;
  left: 58%;
  top: 38%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(42, 174, 205, 0.6);
  animation: pin 2.4s ease-out infinite;
}
@keyframes pin {
  0% { box-shadow: 0 0 0 0 rgba(42, 174, 205, 0.55); }
  100% { box-shadow: 0 0 0 26px rgba(42, 174, 205, 0); }
}
.map-card > :not(.map-photo):not(.map-pin):not(.map-lines) { position: relative; }
.map-card h3 { color: #fff; font-size: 1.4rem; }
.map-card p { color: rgba(255, 255, 255, 0.7); }

/* 17. Inner page hero & content blocks ---------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(42, 174, 205, 0.14), transparent 60%),
    linear-gradient(180deg, #f7fafd, #edf3f9);
}
.page-hero .hero-ecg { bottom: 0; height: 120px; opacity: 0.45; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.page-hero .lead { max-width: 40rem; font-size: 1.15rem; color: var(--muted); }
.breadcrumb { font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-item.active { color: var(--blue); font-weight: 600; }

.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 0 0 1.2rem; }
.prose h3 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
.prose p { font-size: 1.05rem; }
.prose .lead-first {
  font-size: 1.12rem;
  line-height: 1.7;
}
.prose .drop-cap,
.prose .lead-first .drop-cap {
  float: left;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.88;
  padding: 0.15rem 0.5rem 0 0;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.prose .lead-first::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

.career {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line-strong);
}
.career li { position: relative; padding: 0 0 2.2rem 2rem; }
.career li:last-child { padding-bottom: 0; }
.career li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
}
.career .where {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.career h3 { font-size: 1.3rem; margin: 0.35rem 0 0.4rem; }
.career p { margin: 0; font-size: 0.97rem; }

.sticky-aside { position: sticky; top: calc(var(--header-h) + 2rem); }

.aside-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.aside-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.subnav a {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.subnav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.tree-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tree-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tree-head .tree-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag-list span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
}

.industry-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.industry-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.industry-links a:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(42, 174, 205, 0.3), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 400; }
.cta-band p { color: rgba(255, 255, 255, 0.72); }

.legal h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }

/* 17b. Photography ------------------------------------------------------- */
/* Rounded image frame; the image always covers its box. Ratio modifiers
   fix the aspect ratio so layouts don't shift while images load. */
.media-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.media-frame:hover img:not([data-parallax]) { transform: scale(1.1); }
.media-frame::after {
  /* subtle navy wash for a consistent, premium tone across photos */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 51, 0) 55%, rgba(10, 26, 51, 0.35) 100%);
  pointer-events: none;
}
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.min-h-media { min-height: 360px; }
.min-h-media img { position: absolute; inset: 0; }

.media-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.media-caption i { color: var(--blue); }

/* Inner-page hero image */
.page-hero.has-media { padding-bottom: 5.5rem; }
.page-hero.has-media h1 { max-width: 14ch; }
.page-hero-media { position: relative; padding: 0 0 1.5rem 1.5rem; }
.page-hero-media::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 70%;
  border-radius: 32px;
  border: 1px solid rgba(29, 95, 174, 0.25);
}
.page-hero-media .media-frame { aspect-ratio: 5 / 4; border-radius: 32px; box-shadow: var(--shadow-lg); }
.page-hero-media.hero-portrait .media-frame,
.page-template-page-about .page-hero-media .media-frame,
body.about-page .page-hero-media .media-frame {
  aspect-ratio: 4 / 4.8;
  max-width: 440px;
  margin-left: auto;
}
.page-hero-media.hero-portrait .media-frame img,
.page-template-page-about .page-hero-media .media-frame img,
body.about-page .page-hero-media .media-frame img {
  object-position: 50% 10% !important;
  transform: scale(1.02);
}
.float-chip.chip-hero {
  left: -1.25rem;
  bottom: 0.25rem;
  z-index: 3;
}

/* Image at the top of a card */
.card-x .card-media {
  margin: -2rem -1.8rem 1.5rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.card-x .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card-x:hover .card-media img { transform: scale(1.06); }
.card-x.has-media .icon-badge { margin-top: -3.4rem; position: relative; background: #fff; box-shadow: var(--shadow-sm); }
.card-x.has-media h3 { margin-top: 1rem; }

/* Photo layered behind the dark ECG section */
.ecg-bg { position: absolute; inset: 0; }
.ecg-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: screen;
}

/* Photo inside the "Find the rooms" card */
.map-photo { position: absolute; inset: 0; }
.map-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.map-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 26, 51, 0.95) 10%, rgba(10, 26, 51, 0.35) 100%);
}

/* 17c. Colleagues -------------------------------------------------------- */
.colleague-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.colleague-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.colleague-photo { position: relative; overflow: hidden; background: var(--bg-2); }
.colleague-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 1s var(--ease);
}
.colleague-card:hover .colleague-photo img { transform: scale(1.04); }
.colleague-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.colleague-body { display: flex; flex-direction: column; padding: 2rem 1.9rem; }
.colleague-role {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.colleague-body h3 { font-size: 1.6rem; margin: 1rem 0 0.25rem; }
.colleague-quals { font-size: 0.85rem; font-weight: 600; color: var(--muted-2); margin-bottom: 1rem; }
.colleague-meta { list-style: none; padding: 0; margin: 0; }
.colleague-meta li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; font-size: 0.9rem; color: var(--ink); }
.colleague-meta i { color: var(--cyan); margin-top: 0.1rem; }
.colleague-body .tag-list { margin-top: 1rem; }
.colleague-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.colleague-note p { font-size: 0.95rem; color: var(--ink); }
@media (max-width: 1199.98px) and (min-width: 992px) {
  .colleague-body { padding: 1.6rem 1.4rem; }
  .colleague-body h3 { font-size: 1.4rem; }
}
@media (max-width: 575.98px) {
  .colleague-card { grid-template-columns: 1fr; }
  .colleague-photo { aspect-ratio: 4 / 3.4; }
  .colleague-body { padding: 1.5rem 1.35rem 1.6rem; }
}

/* 17b. Accreditations & Logo Carousel ----------------------------------- */
.section-logo-carousel {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(15, 37, 69, 0.06);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.logo-carousel-container {
  position: relative;
  max-width: 100%;
}

.logo-carousel-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 1.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.logo-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  animation: logoScrollMarquee 30s linear infinite;
  will-change: transform;
}

.logo-carousel-track:hover,
.logo-carousel-track:focus-within {
  animation-play-state: paused;
}

@keyframes logoScrollMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.logo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 270px;
  min-width: 270px;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 30, 51, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(10, 26, 51, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  user-select: none;
  flex-shrink: 0;
}

.logo-card:hover,
.logo-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(42, 174, 205, 0.4);
  box-shadow: 0 14px 32px rgba(10, 26, 51, 0.09), 0 2px 6px rgba(42, 174, 205, 0.12);
  text-decoration: none;
  color: inherit;
  outline: none;
}

.logo-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 100%;
  padding: 0.25rem;
}

.logo-card-img {
  max-height: 58px;
  max-width: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(8%) contrast(102%);
  opacity: 0.94;
  transition: all 0.35s ease;
}

.logo-card:hover .logo-card-img,
.logo-card:focus-visible .logo-card-img {
  filter: grayscale(0%) contrast(106%);
  opacity: 1;
  transform: scale(1.05);
}

.logo-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
  width: 100%;
  border-top: 1px solid rgba(15, 30, 51, 0.06);
  padding-top: 0.85rem;
}

.logo-card-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.logo-card-cred {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--cyan-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav arrows / controls */
.logo-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.logo-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 30, 51, 0.12);
  background: #ffffff;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 26, 51, 0.04);
}

.logo-nav-btn:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(29, 95, 174, 0.2);
}

.logo-nav-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .section-logo-carousel { padding: 4rem 0 4.5rem; }
  .logo-card { width: 240px; min-width: 240px; padding: 1.25rem 1rem 1rem; }
  .logo-card-media { height: 60px; }
  .logo-card-img { max-height: 50px; }
  .logo-card-name { font-size: 0.84rem; }
  .logo-card-cred { font-size: 0.68rem; }
}

@media (max-width: 575.98px) {
  .section-logo-carousel { padding: 3rem 0 3.5rem; }
  .logo-carousel-wrap {
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }
  .logo-card { width: 215px; min-width: 215px; padding: 1rem 0.85rem 0.85rem; border-radius: 16px; }
  .logo-card-media { height: 52px; }
  .logo-card-img { max-height: 44px; }
  .logo-card-content { margin-top: 0.75rem; padding-top: 0.65rem; }
  .logo-card-name { font-size: 0.8rem; }
  .logo-card-cred { font-size: 0.65rem; }
  .logo-nav-btn { width: 36px; height: 36px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track {
    animation: none;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  .logo-card {
    scroll-snap-align: start;
  }
}

/* 18. Footer ------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: #07142a;
  color: rgba(255, 255, 255, 0.7);
  padding: 5.5rem 0 0;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 174, 205, 0.6), transparent);
}
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
  max-width: 100%;
}
.site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}
.site-footer .brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}
.site-footer .brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}
.site-footer .brand-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.site-footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}
.footer-links a:hover { color: var(--cyan-300); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.footer-contact i { color: var(--cyan-300); }
.footer-contact a:hover { color: var(--cyan-300); }
.footer-bottom {
  margin-top: 4rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { font-size: 0.85rem; margin: 0; color: rgba(255, 255, 255, 0.5); }
.footer-ecg {
  position: absolute;
  right: -5%;
  top: 2rem;
  width: 55%;
  opacity: 0.07;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1020;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s, background-color 0.25s ease;
}
.back-to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); }

/* 19. Reveal animations (driven by IntersectionObserver in main.js) ------ */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="fade-up"] { transform: translateY(32px); }
.js [data-reveal="fade-left"] { transform: translateX(-40px); }
.js [data-reveal="fade-right"] { transform: translateX(40px); }
.js [data-reveal="scale-in"] { transform: scale(0.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 20. Responsive --------------------------------------------------------- */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

@media (max-width: 1199.98px) {
  .site-nav .nav-link { padding: 0.5rem 0.6rem !important; font-size: 0.88rem; }
  .site-nav .nav-link::after { left: 0.6rem; right: 0.6rem; }
  .hero-visual { margin-right: 0.75rem; max-width: 510px; }
  .portrait-card { left: -12%; width: 50%; max-width: 265px; }
  .float-chip.chip-1 { right: -8%; top: 8%; }
  .float-chip.chip-2 { right: -6%; bottom: 15%; }
}

/* 7-item nav on small desktops: tighten links and the header CTA so nothing wraps */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link { padding: 0.5rem 0.45rem !important; font-size: 0.84rem; }
  .site-nav .nav-link::after { left: 0.45rem; right: 0.45rem; }
  .site-nav .btn { --bs-btn-padding-x: 1rem; --bs-btn-font-size: 0.84rem; }
  .site-nav .btn i { display: none; }
  .site-header .brand-role { display: none; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 72px; }

  .site-header { background: rgba(255, 255, 255, 0.94); padding: 0.7rem 0;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line); }

  .site-nav {
    margin-top: 0.75rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav .nav-link {
    padding: 0.85rem 0.25rem !important;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .nav-link::after { display: none; }
  .site-nav .btn { width: 100%; margin-top: 1.25rem; padding: 1rem; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 7rem; }
  .hero-visual { margin: 3.5rem auto 0; max-width: 500px; aspect-ratio: 1 / 1.12; }
  .hero-stage { inset: 0 2% 8% 6%; }
  .portrait-card { left: -6%; bottom: 0; width: 50%; max-width: 250px; }
  .float-chip.chip-1 { right: -4%; top: 6%; }
  .float-chip.chip-2 { right: -3%; bottom: 14%; }
  .hero-ecg { bottom: 42%; }
  .scroll-cue { display: none; }

  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .timeline::before,
  .timeline-progress { left: 9px; transform: none; }
  .timeline-item,
  .timeline-item:nth-child(odd) { width: 100%; margin-left: 0; padding: 0 0 2rem 3rem; }
  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot { left: 0; right: auto; }

  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before,
  .journey::after {
    left: 31px;
    right: auto;
    top: 32px;
    bottom: 32px;
    width: 2px;
    height: auto;
  }
  .journey::after { transform: scaleY(0); transform-origin: top; }
  .journey.is-visible::after { transform: scaleY(1); }
  .journey-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1.25rem;
    text-align: left;
    padding-bottom: 1.75rem;
  }
  .journey-step:last-child { padding-bottom: 0; }
  .journey-num { grid-row: span 2; margin: 0; }
  .journey-step h3 { align-self: end; margin-top: 0.6rem; }

  .sticky-aside { position: static; }
  .about-media { margin: 0 auto 1.5rem; max-width: 440px; }

  .page-hero.has-media { padding-bottom: 4rem; }
  .page-hero-media { max-width: 560px; margin: 0.5rem auto 0; }
  .ratio-21x9 { aspect-ratio: 16 / 9; }
  .min-h-media { min-height: 300px; }
}

@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  /* Bootstrap's g-5 horizontal gutter exceeds container padding on phones */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .about-media { max-width: 400px; margin: 0 auto 1.75rem; }
  .about-media::before {
    left: -16px;
    right: -16px;
    top: 20%;
    bottom: -16px;
    border-radius: 28px;
  }
  .about-media::after {
    right: -16px;
    top: -16px;
    width: 110px;
    height: 150px;
    background-size: 16px 16px;
  }
  .about-img { border-radius: 22px; }
  .chip-about { font-size: 0.98rem; margin-top: 1rem; }
  .stats-wrap { margin-top: -4rem; }
  .stat { padding: 1.6rem 1.25rem; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .quote-carousel .carousel-item { padding: 0 0.25rem; }
  .quote-carousel .carousel-control-prev,
  .quote-carousel .carousel-control-next { display: none; }
  .faq .accordion-body { padding-right: 0; }
  .exp-badge { right: 0.5rem; }
  .industry-links { grid-template-columns: 1fr; }
  .ratio-21x9 { aspect-ratio: 4 / 3; }
  .media-caption { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; font-size: 0.74rem; }
  .page-hero-media { padding: 0 0 1rem 1rem; }
  .page-hero-media.hero-portrait .media-frame,
  .page-template-page-about .page-hero-media .media-frame,
  body.about-page .page-hero-media .media-frame { max-width: 340px; margin: 0 auto; }
  .float-chip.chip-hero { left: -0.25rem; bottom: -0.25rem; }
  .hero-visual { margin: 2.5rem auto 0; max-width: 440px; aspect-ratio: 1 / 1.18; }
  .hero-stage { inset: 0 0 10% 4%; border-radius: 30px; }
  .portrait-card { left: -4%; bottom: 0; width: 52%; max-width: 230px; padding: 8px; }
  .portrait-card img { border-radius: 16px; }
  .portrait-caption { padding: 0.65rem 0.45rem 0.3rem; }
  .portrait-caption strong { font-size: 0.95rem; }
  .portrait-caption span { font-size: 0.72rem; line-height: 1.25; }
  .float-chip { font-size: 0.76rem; padding: 0.5rem 0.75rem; border-radius: 12px; gap: 0.45rem; }
  .float-chip .chip-icon { width: 30px; height: 30px; font-size: 0.9rem; }
  .float-chip.chip-1 { top: 2%; right: -2%; }
  .float-chip.chip-2 { bottom: 15%; right: -2%; }
}

@media (max-width: 575.98px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .brand-role { font-size: 0.6rem; letter-spacing: 0.1em; }
  .hero-title { font-size: clamp(1.9rem, 9.6vw, 2.35rem); }
  .hero .btn { width: 100%; }
  .hero-visual { margin: 2rem auto 0; max-width: 360px; aspect-ratio: 1 / 1.22; }
  .hero-stage { inset: 0 0 12% 2%; border-radius: 24px; }
  .portrait-card { left: -2%; width: 52%; max-width: 195px; padding: 6px; }
  .portrait-card img { border-radius: 14px; }
  .portrait-caption { padding: 0.5rem 0.35rem 0.25rem; }
  .portrait-caption strong { font-size: 0.88rem; }
  .portrait-caption span { font-size: 0.68rem; line-height: 1.2; }
  .float-chip { font-size: 0.7rem; padding: 0.42rem 0.65rem; border-radius: 10px; gap: 0.35rem; }
  .float-chip .chip-icon { width: 26px; height: 26px; font-size: 0.8rem; }
  .float-chip.chip-1 { top: 1%; right: 0; font-size: 0.68rem; padding: 0.38rem 0.62rem; }
  .float-chip.chip-2 { bottom: 12%; right: 0; }
  .float-chip.chip-hero {
    left: 0.25rem;
    bottom: -0.25rem;
    font-size: 0.74rem;
    padding: 0.45rem 0.75rem;
  }
  .float-chip.chip-hero .chip-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .about-media { max-width: 100%; padding: 0 0.5rem; margin: 0 auto 1.5rem; }
  .about-media::before {
    left: -4px;
    right: -4px;
    top: 18%;
    bottom: -14px;
    border-radius: 24px;
  }
  .about-media::after {
    right: -4px;
    top: -12px;
    width: 90px;
    height: 120px;
  }
  .about-img { border-radius: 20px; }
  .chip-about { font-size: 0.92rem; margin-top: 0.85rem; }
  .rhythm-stage { border-radius: 28px; }
  .cta-band .btn, .panel-navy .btn { width: 100%; }
}

/* 21. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-ecg .ecg-pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.4; }
  .particles { display: none; }
  .about-img img { transform: none; }
}

/* 22. Video gallery & popup player -------------------------------------- */
.video-section { position: relative; overflow: hidden; }
.video-section.is-dark {
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(42, 174, 205, 0.22), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(29, 95, 174, 0.32), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
}
.video-section.is-dark .section-title { color: #fff; }
.video-section.is-dark .section-lead,
.video-section.is-dark .video-note { color: rgba(255, 255, 255, 0.68); }
.video-section .video-ecg {
  position: absolute;
  left: -5%;
  bottom: 6%;
  width: 60%;
  color: var(--cyan-300);
  opacity: 0.08;
  pointer-events: none;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
.video-card:hover,
.video-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.is-dark .video-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.is-dark .video-card:hover,
.is-dark .video-card:focus-within { border-color: rgba(127, 211, 230, 0.4); }

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s ease;
}
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 51, 0.05) 35%, rgba(10, 26, 51, 0.75) 100%);
  transition: background-color 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); filter: saturate(1.1); }
.video-thumb:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease), background-color 0.3s ease, color 0.3s ease;
}
.video-play i { margin-left: 4px; line-height: 1; }
.video-play::before,
.video-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: video-pulse 2.6s var(--ease) infinite;
}
.video-play::after { animation-delay: 1.3s; }
@keyframes video-pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}
.video-thumb:hover .video-play,
.video-thumb:focus-visible .video-play { transform: scale(1.1); background: var(--blue); color: #fff; }

.video-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 26, 51, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.video-badge i { color: #ff5a5a; font-size: 0.95rem; }
.video-source {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.video-source .watch { display: inline-flex; align-items: center; gap: 0.35rem; }

.video-info { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.7rem 1.8rem; }
.video-info h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.video-info p { font-size: 0.96rem; margin-bottom: 0; }
.video-info .tag-list { margin-top: auto; padding-top: 1.2rem; }
.is-dark .video-info h3 { color: #fff; }
.is-dark .video-info p { color: rgba(255, 255, 255, 0.68); }
.is-dark .video-info .tag-list span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}
.video-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.25rem auto 0;
  max-width: 44rem;
  font-size: 0.82rem;
  text-align: center;
}

/* Split layout (Home): intro column + two compact video cards */
.video-intro .section-title { font-size: clamp(2rem, 3vw, 2.6rem); }
.video-points { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: 0.8rem; }
.video-points li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.video-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(127, 211, 230, 0.12);
  border: 1px solid rgba(127, 211, 230, 0.2);
  color: var(--cyan-300);
  font-size: 1rem;
}
.video-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.video-card.is-compact .video-info { padding: 1.35rem 1.45rem 1.5rem; }
.video-card.is-compact .video-info h3 { font-size: 1.22rem; line-height: 1.28; }
.video-card.is-compact .video-info p { font-size: 0.92rem; }
.video-card.is-compact .video-play { width: 66px; height: 66px; margin: -33px 0 0 -33px; font-size: 1.8rem; }
.video-card.is-compact .video-source { justify-content: flex-start; font-size: 0.76rem; }
.col-xl-8 > .video-note { justify-content: flex-start; max-width: none; margin: 1.5rem 0 0; text-align: left; }

@media (max-width: 1199.98px) {
  .video-intro { max-width: 44rem; }
  .video-points { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1.4rem 0 1.75rem; }
  .video-section.is-dark .row.g-5 { --bs-gutter-y: 2.5rem; }
}
@media (max-width: 575.98px) {
  .video-points { grid-template-columns: 1fr; }
  .video-actions .btn { width: 100%; }
  .video-section .video-ecg { width: 120%; left: -10%; bottom: 2%; }
}

/* Popup player (Bootstrap modal) */
.modal-backdrop { --bs-backdrop-bg: #050d1b; --bs-backdrop-opacity: 0.86; }
.video-modal .modal-dialog { max-width: min(1100px, 94vw); }
.video-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #050d1b;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}
.video-modal .modal-header { gap: 1rem; padding: 0.85rem 0.9rem 0.85rem 1.4rem; border: 0; }
.video-modal .modal-title {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.video-modal .modal-title i { color: #ff5a5a; margin-right: 0.4rem; }
.video-modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background-color 0.25s ease, transform 0.35s var(--ease), border-color 0.25s ease;
}
.video-modal-close:hover,
.video-modal-close:focus-visible { background: var(--accent); border-color: transparent; transform: rotate(90deg); }
.video-modal iframe { border: 0; background: #000; }

/* 23. Blog --------------------------------------------------------------- */
.blog-toolbar { margin-bottom: 1.25rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.filter-chip .count,
.cat-list .count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.filter-chip:hover { border-color: var(--navy); }
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(10, 26, 51, 0.6);
}
.filter-chip.is-active .count { background: rgba(255, 255, 255, 0.16); color: #fff; }

.search-box { position: relative; min-width: 260px; }
.search-box > i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search-box .form-control { padding: 0.75rem 1rem 0.75rem 2.75rem; border-radius: 999px; }
.blog-results { margin: 0 0 2rem; font-size: 0.9rem; font-weight: 600; color: var(--muted-2); }
.blog-results strong { color: var(--navy); }

/* Featured post */
.post-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 3.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.post-featured:hover,
.post-featured:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-featured .post-thumb { aspect-ratio: auto; min-height: 380px; }
.post-featured .post-body { justify-content: center; padding: clamp(1.75rem, 3.5vw, 3rem); }
.post-featured h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.18; margin-bottom: 0.9rem; }
.post-featured p { font-size: 1.02rem; }
.featured-flag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(42, 174, 205, 0.16), rgba(29, 95, 174, 0.12));
  color: var(--blue-600);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Post cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
.post-card:hover,
.post-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(42, 174, 205, 0.35); }
.post-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 51, 0) 60%, rgba(10, 26, 51, 0.25) 100%);
}
.post-card:hover .post-thumb img,
.post-featured:hover .post-thumb img { transform: scale(1.06); }
.post-cat {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--blue-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.post-cat.is-static { position: static; display: inline-block; background: var(--cyan-soft); pointer-events: auto; text-decoration: none; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-2);
}
.post-meta i { margin-right: 0.35rem; color: var(--cyan); }
.post-card h3 { font-size: 1.3rem; line-height: 1.28; margin-bottom: 0.6rem; }
.post-card h3 a,
.post-featured h2 a {
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.5s var(--ease), color 0.3s ease;
}
.post-card:hover h3 a,
.post-featured:hover h2 a { color: var(--blue); background-size: 100% 1px; }
.post-card p { font-size: 0.94rem; margin-bottom: 1.2rem; }
.post-card .link-arrow { margin-top: auto; }
.post-card:hover .link-arrow i,
.post-featured:hover .link-arrow i { transform: translateX(4px); }

.post-col[hidden] { display: none !important; }
.post-col.is-entering { animation: post-in 0.6s var(--ease) both; }
@keyframes post-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.blog-empty {
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--bg);
  text-align: center;
}
.blog-empty .icon-badge { margin: 0 auto 1rem; }
.blog-empty h3 { font-size: 1.4rem; }

/* Pagination */
.pagination-x {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 3rem;
}
.pagination-x button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 46px;
  height: 46px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pagination-x button:hover:not(:disabled):not(.is-active) { border-color: var(--navy); transform: translateY(-2px); }
.pagination-x button.is-active {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(29, 95, 174, 0.8);
}
.pagination-x button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-x .ellipsis { padding: 0 0.25rem; color: var(--muted-2); font-weight: 700; }

/* Sidebar widgets */
.blog-sidebar { display: grid; gap: 1.5rem; }
.widget {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.widget-title::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li + li { border-top: 1px solid var(--line); }
.cat-list a,
.cat-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}
.cat-list a:hover,
.cat-list button:hover,
.cat-list .is-active { color: var(--blue); padding-left: 4px; }
.cat-list .is-active .count { background: var(--blue); color: #fff; }

.recent-list { display: grid; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.recent-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.recent-item img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.recent-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  transition: color 0.25s ease;
}
.recent-item small { font-size: 0.76rem; font-weight: 600; color: var(--muted-2); }
.recent-item:hover strong { color: var(--blue); }
.recent-item:hover img { transform: scale(1.05) rotate(-1deg); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tag-cloud a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.widget-cta {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(42, 174, 205, 0.35), transparent 60%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%);
}
.widget-cta .widget-title { color: var(--cyan-300); }
.widget-cta h3 { color: #fff; font-size: 1.45rem; margin-bottom: 0.6rem; }
.widget-cta p { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }
.widget-cta .btn { width: 100%; }
.widget-cta .cta-ecg { position: absolute; right: -20%; bottom: -10%; width: 120%; color: var(--cyan-300); opacity: 0.1; pointer-events: none; }
.widget-cta > *:not(.cta-ecg) { position: relative; }

/* Article (details page) */
.read-progress { position: fixed; inset: 0 0 auto 0; z-index: 1040; height: 3px; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  transform: scaleX(var(--read, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.post-hero { padding-bottom: 10rem; }
.post-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-top: 1.1rem; }
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.6rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.post-hero-meta i { margin-right: 0.35rem; color: var(--cyan); }
.author-chip { display: inline-flex; align-items: center; gap: 0.75rem; }
.author-chip svg { width: 46px; height: 46px; flex: none; }
.author-chip strong { display: block; font-size: 0.95rem; line-height: 1.2; color: var(--navy); }
.author-chip small { font-size: 0.78rem; color: var(--muted-2); }
.post-cover { position: relative; z-index: 2; aspect-ratio: 21 / 9; margin-top: -7.5rem; }

.post-content { font-size: 1.07rem; }
.post-content .post-lead { font-size: 1.24rem; line-height: 1.65; color: var(--ink); }
.post-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 3rem 0 1rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.post-content h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.post-content strong { color: var(--ink); }
.post-content ul,
.post-content ol { list-style: none; margin: 0 0 1.6rem; padding: 0; color: var(--muted); }
.post-content li { position: relative; margin-bottom: 0.65rem; padding-left: 2rem; }
.post-content ul li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.post-content ol { counter-reset: step; }
.post-content ol li { counter-increment: step; }
.post-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 800;
}
.post-content blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, var(--cyan-soft), #f6fbfd);
}
.post-content blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
}
.post-content figure { margin: 2.5rem 0; }
.post-figcap { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; color: var(--muted-2); }

.callout {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.callout .icon-badge { width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; }
.callout p { margin: 0; font-size: 0.97rem; }
.callout.is-warning { background: #fff6f7; border-color: rgba(217, 72, 95, 0.2); }
.callout.is-warning .icon-badge { color: var(--accent); background: #ffe9ed; border-color: rgba(217, 72, 95, 0.2); }

.compare-table { width: 100%; margin: 1.5rem 0 2rem; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.compare-wrap .compare-table { margin: 0; min-width: 520px; }
.compare-table th,
.compare-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-table tbody th { color: var(--navy); font-weight: 700; }
.compare-table td { color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody tr:nth-child(even) { background: var(--bg); }

.takeaways {
  position: relative;
  overflow: hidden;
  margin: 3rem 0 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px 240px at 100% 0%, rgba(42, 174, 205, 0.3), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-3));
}
.takeaways h2 { margin-top: 0; color: #fff; font-size: 1.6rem; }
.takeaways ul { margin: 0; color: rgba(255, 255, 255, 0.78); }
.takeaways li::before { background: var(--cyan-300) !important; }

.post-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-footer-row .tag-cloud { gap: 0.4rem; }
.share-row { display: flex; align-items: center; gap: 0.5rem; }
.share-row > span { margin-right: 0.25rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.share-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.3s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.share-btn.is-copied { background: var(--cyan); border-color: var(--cyan); color: #fff; }

.author-box {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
}
.author-box svg { width: 92px; height: 92px; }
.author-role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.author-box h3 { margin: 0.3rem 0 0.5rem; font-size: 1.45rem; }
.author-box p { font-size: 0.96rem; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease;
}
.post-nav a:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--shadow-sm); }
.post-nav small { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.post-nav strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.3; color: var(--navy); }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }

.toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-list a {
  display: block;
  margin-left: -2px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.toc-list a:hover { color: var(--navy); }
.toc-list a.is-active { color: var(--blue); border-left-color: var(--blue); }

@media (max-width: 991.98px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .search-box { min-width: 0; width: 100%; }
  .post-hero { padding-bottom: 8rem; }
  .post-cover { margin-top: -6rem; aspect-ratio: 16 / 9; }
}

@media (max-width: 767.98px) {
  /* Category chips scroll sideways instead of stacking on phones */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5) 0.4rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 1.7rem; }
  .video-info { padding: 1.35rem 1.35rem 1.5rem; }
  .video-info h3 { font-size: 1.25rem; }
  .video-modal .modal-dialog { margin: 0.75rem auto; }
  .video-modal .modal-content { border-radius: 16px; }
  .post-content { font-size: 1.02rem; }
  .post-content .post-lead { font-size: 1.12rem; }
  .post-content blockquote { padding: 1.5rem 1.25rem 1.5rem 1.5rem; }
  .post-content blockquote p { font-size: 1.2rem; }
  .post-cover { margin-top: -5rem; aspect-ratio: 4 / 3; }
  .post-hero { padding-bottom: 7rem; }
}

@media (max-width: 575.98px) {
  .pagination-x .pg-label { display: none; }
  .pagination-x button { min-width: 42px; height: 42px; padding: 0 0.75rem; }
  .author-box { grid-template-columns: 1fr; padding: 1.5rem; }
  .author-box svg { width: 72px; height: 72px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .post-nav .next small { justify-content: flex-start; }
  .post-footer-row { flex-direction: column; align-items: flex-start; }
  .widget { padding: 1.5rem; }
  .video-source .watch { display: none; }
}

/* ==========================================================================
   Practice additions: name, referral strip, rooms, places (from theme design)
   ========================================================================== */
.brand { flex-shrink: 0; }
.site-header .brand-name {
  font-family: var(--font-display);
  font-size: calc(1.2rem + 10px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.15;
  white-space: nowrap;
}
.site-header .brand-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
}
.site-header .brand-mark {
  width: 48px;
  height: 48px;
}
@media (max-width: 1199.98px) {
  .site-header .brand-role { display: none; }
  .site-header .brand-name {
    font-size: calc(1.12rem + 6px);
  }
}
@media (max-width: 991.98px) {
  .site-header .brand-name {
    font-size: calc(1.15rem + 8px);
  }
}
@media (max-width: 767.98px) {
  .site-header .brand-name {
    font-size: calc(1.05rem + 6px);
  }
  .site-header .brand-mark {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 575.98px) {
  .site-header .brand {
    gap: 0.65rem;
  }
  .site-header .brand-name {
    font-size: 1.32rem;
    letter-spacing: -0.01em;
  }
  .site-header .brand-mark {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 380px) {
  .site-header .brand {
    gap: 0.5rem;
  }
  .site-header .brand-name {
    font-size: 1.16rem;
  }
  .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }
}

/* Centred page heroes (404) */
.page-hero.text-center h1,
.page-hero.text-center .lead { margin-left: auto; margin-right: auto; }
.page-hero.text-center .eyebrow { display: flex; justify-content: center; }
.page-hero.text-center { min-height: 70vh; display: flex; align-items: center; }
.page-hero.text-center > .container { width: 100%; }

/* Referral Strip */
.referral-strip { margin: 2.5rem 0 0; position: relative; z-index: 3; }
.referral-strip + .section { padding-top: 3rem; }
.referral-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  padding: 1.25rem 1.75rem; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #0a1a33, #1d5fae);
  box-shadow: var(--shadow);
}
.referral-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.referral-code { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: 0.04em; }
.referral-text { flex: 1 1 260px; margin: 0; color: rgba(255,255,255,0.88); }

/* Consulting Rooms Card & Refined Spacing */
.rooms-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px -10px rgba(10, 26, 51, 0.08);
  margin-bottom: 2rem;
}
.rooms-card:last-child {
  margin-bottom: 0;
}
.rooms-media {
  position: relative;
  overflow: hidden;
}
.rooms-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.rooms-body {
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rooms-body .eyebrow {
  margin-bottom: 0.35rem;
}
.rooms-body .section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.rooms-body .section-lead {
  font-size: 0.96rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Compact Contact List in Consulting Rooms */
.rooms-body .contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.rooms-body .contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.rooms-body .contact-list li:first-child {
  padding-top: 0;
}
.rooms-body .contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Phone & Email combined in ONE row */
.rooms-body .contact-list li.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 0.65rem 0;
}
.rooms-body .contact-list .contact-col {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.rooms-body .contact-list .icon-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 1rem;
  border-radius: 11px;
  background: var(--cyan-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rooms-body .contact-list small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.1rem;
}
.rooms-body .contact-list a,
.rooms-body .contact-list span.value {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease;
  word-break: break-word;
}
.rooms-body .contact-list a:hover {
  color: var(--blue);
}

/* Rooms Map Embed */
.rooms-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}
.rooms-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

/* Places / Hospital Cards */
.place-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.place-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.place-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }

/* Research & Publications */
.research-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; margin-top: 2.5rem; }
.research-title { font-weight: 700; margin-right: 0.5rem; }

@media (max-width: 991.98px) {
  .rooms-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .rooms-media img {
    height: 280px;
    min-height: 280px;
  }
  .rooms-body {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  .rooms-media img {
    height: 220px;
    min-height: 220px;
  }
  .rooms-body .contact-list li.contact-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .rooms-map iframe {
    height: 160px;
  }
}

/* ==========================================================================
   Research & Academics Section
   ========================================================================== */
.research-academics-section {
  position: relative;
  background-color: #f8fafc;
}
.research-lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 18px -4px rgba(10, 26, 51, 0.05);
  position: relative;
  overflow: hidden;
}
.research-lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d5fae, #2aaecd);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.research-lead-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(10, 26, 51, 0.12);
  border-color: #cbd5e1;
}
.research-lead-card:hover::before {
  opacity: 1;
}
.research-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f0f7fb;
  color: #1d5fae;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.research-lead-card:hover .research-icon-badge {
  background: #1d5fae;
  color: #ffffff;
  transform: scale(1.06);
}
.research-badge-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1d5fae;
  margin-bottom: 0.45rem;
}
.research-lead-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a1a33;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.research-org-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2aaecd;
  margin-bottom: 0.85rem;
}
.research-lead-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.badge-australia {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}
.study-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.study-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #eef7fc;
  color: #1d5fae;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #d4ebf7;
}

/* Portals Strip */
.research-portals-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 4px 16px -4px rgba(10, 26, 51, 0.04);
}
.research-portals-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portal-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0a1a33;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.portal-btn i {
  font-size: 1.1rem;
  color: #1d5fae;
  transition: color 0.25s ease;
}
.portal-btn .portal-badge {
  font-size: 0.72rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.2rem;
}
.portal-btn:hover {
  background: #1d5fae;
  border-color: #1d5fae;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(29, 95, 174, 0.25);
}
.portal-btn:hover i {
  color: #ffffff;
}
.portal-btn:hover .portal-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Publications Grid */
.landmark-pubs-heading {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}
.landmark-pubs-heading h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0a1a33;
  margin-bottom: 0.35rem;
}
.landmark-pubs-heading p {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 0;
}
.pub-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px -2px rgba(10, 26, 51, 0.04);
}
.pub-card:hover {
  border-color: #2aaecd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(10, 26, 51, 0.08);
}
.pub-card-content {
  flex: 1;
}
.pub-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.pub-year-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: #0a1a33;
  color: #ffffff;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.pub-journal {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d5fae;
  font-style: italic;
}
.pub-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a1a33;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.pub-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pub-tag {
  font-size: 0.72rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}
.pub-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  background: #f0f7fb;
  color: #1d5fae;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid #d4ebf7;
}
.pub-link-btn:hover {
  background: #1d5fae;
  color: #ffffff;
  border-color: #1d5fae;
  transform: translateX(3px);
}
@media (max-width: 767.98px) {
  .pub-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem;
  }
  .pub-link-btn {
    width: 100%;
    justify-content: center;
  }
  .portal-buttons-grid {
    flex-direction: column;
  }
  .portal-btn {
    width: 100%;
    justify-content: space-between;
  }
}