/* ==========================================================================
   PES HOSPITALS — COMPLETE UNIFIED DESIGN SYSTEM & COMPONENT LIBRARY
   Built for PES Hospitals Group, PES Hospital Kuppam, & PES University Hospital
   ========================================================================== */

:root {
  /* ---- PES Unified Brand Palette ---- */
  --navy: #00264d;
  --navy-deep: #001830;
  --navy-light: #004080;
  --navy-pale: #e9eff6;
  --navy-pale-2: #dbe5f0;
  --navy-glow: rgba(0, 38, 77, 0.12);

  --orange: #ef7e1a;
  --orange-light: #ff9a45;
  --orange-pale: #fef1e2;
  --orange-glow: rgba(239, 126, 26, 0.25);

  --brand-blue: #005691;
  --brand-blue-pale: #e8f4fc;
  --accent-green: #0f8b6c;
  --accent-green-pale: #e6f5f0;
  --accent-coral: #d9534f;
  --accent-coral-pale: #fdf2f2;

  --ink: #0a1626;
  --heading: #00264d;
  --muted: #5c6b80;
  --muted-2: #8493a6;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f7;
  --surface: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd6e3;
  --header-bg: rgba(255, 255, 255, 0.94);

  /* ---- Typography ---- */
  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ---- Elevation & Shadows ---- */
  --shadow-sm: 0 2px 10px rgba(0, 38, 77, 0.06);
  --shadow-md: 0 12px 34px rgba(0, 38, 77, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 38, 77, 0.16);
  --shadow-glow: 0 0 30px rgba(239, 126, 26, 0.2);
  --shadow-hover: 0 20px 45px -10px rgba(0, 38, 77, 0.18);

  --topbar-h: 38px;
  --header-h: 76px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Per-site accent overrides */
body[data-site="kuppam"] {
  --site-accent: var(--orange);
  --site-accent-pale: var(--orange-pale);
}
body[data-site="university"] {
  --site-accent: #0f8b6c;
  --site-accent-pale: #e6f5f0;
}

/* ---- Dark Theme ---- */
html[data-theme="dark"] {
  --navy-pale: rgba(255, 255, 255, 0.07);
  --navy-pale-2: rgba(255, 255, 255, 0.12);
  --orange-pale: rgba(239, 126, 26, 0.15);
  --brand-blue-pale: rgba(0, 86, 145, 0.25);
  --accent-green-pale: rgba(15, 139, 108, 0.2);
  --accent-coral-pale: rgba(217, 83, 79, 0.2);

  --ink: #e6edf5;
  --heading: #f0f4f9;
  --muted: #9bb0c6;
  --muted-2: #71869d;
  --paper: #09131f;
  --paper-2: #0f1e31;
  --paper-3: #162942;
  --surface: #122238;
  --line: #1c324c;
  --line-strong: #2c496e;
  --header-bg: rgba(9, 19, 31, 0.94);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .logo-word b { color: #fff; }
html[data-theme="dark"] .btn.outline { border-color: var(--line-strong); color: var(--heading); }
html[data-theme="dark"] .btn.outline:hover { background: var(--heading); color: var(--paper); }
html[data-theme="dark"] .btn.outline-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
html[data-theme="dark"] .btn.outline-light:hover { background: #fff; color: var(--navy); }
html[data-theme="dark"] .btn.solid-light { background: var(--paper-2); color: var(--heading); border: 1px solid var(--line-strong); }
html[data-theme="dark"] .accred-badge { color: var(--heading); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .spec-ic svg { stroke: #ff9a45; }
html[data-theme="dark"] .qa-item { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .qa-item:hover { background: var(--paper-2); }
html[data-theme="dark"] .sheet-list a { border-color: var(--line); color: var(--heading); }
html[data-theme="dark"] .sidebar-list a.active { background: rgba(239, 126, 26, 0.2); color: var(--orange-light); }
html[data-theme="dark"] .hero-hosp-card { background: var(--surface) !important; border-color: var(--line) !important; }
html[data-theme="dark"] .facility-item { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .card-tab { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .hero-split {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.6px, transparent 1.6px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}
html[data-theme="dark"] .hero-split::before {
  background: radial-gradient(circle, rgba(255, 143, 69, 0.22), transparent 70%);
}
html[data-theme="dark"] .hero-split::after {
  background: radial-gradient(circle, rgba(58, 120, 200, 0.22), transparent 70%);
}

/* ---- Base Resets ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  transition: background var(--transition-normal), color var(--transition-normal);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---- Headings & Display ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
p { line-height: 1.75; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ---- Eyebrows ---- */
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--orange-light); }
.eyebrow.on-dark::before { background: var(--orange-light); }
.eyebrow.center { justify-content: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn.solid {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 126, 26, 0.32);
}
.btn.solid:hover {
  background: #d96e0f;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(239, 126, 26, 0.42);
}
.btn.outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn.outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn.outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn.outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn.solid-light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn.solid-light:hover {
  background: var(--orange-pale);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn.sm { padding: 9px 18px; font-size: 13px; }
.btn.lg { padding: 16px 34px; font-size: 15.5px; }
.btn.block { width: 100%; display: flex; }

/* ---- TOP UTILITY BAR ---- */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--topbar-h);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-links-left,
.topbar-links-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.topbar-link:hover { color: #fff; }
.topbar-btn {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}
.topbar-btn:hover { background: #d96e0f; transform: translateY(-1px); }

@media (max-width: 768px) {
  :root {
    --topbar-h: 0px;
  }
  .site-topbar {
    display: none !important;
  }
  header.site {
    top: 0 !important;
  }
}

/* ---- STICKY HEADER ---- */
header.site {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-normal), box-shadow var(--transition-normal), height var(--transition-normal);
}
header.site.scrolled {
  box-shadow: 0 4px 20px rgba(0, 20, 42, 0.08);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, #003d7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 38, 77, 0.2);
}
.logo-mark svg { width: 22px; height: 22px; stroke: #fff; }
.logo-mark.group {
  background: linear-gradient(135deg, var(--navy) 0%, var(--orange) 100%);
}
.logo-word {
  display: flex;
  flex-direction: column;
}
.logo-word b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
}
.logo-word span {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Image-based header/footer logos (light/dark theme swap in header; footer always uses the dark variant since its background is fixed-dark) */
.logo-img { height: 42px; width: auto; display: block; }
.logo-img-dark { display: none; }
html[data-theme="dark"] .logo-img-light { display: none; }
html[data-theme="dark"] .logo-img-dark { display: block; }
.foot-logo-img { height: 38px; }

nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--heading);
}
nav.links > a {
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}
nav.links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width var(--transition-normal);
}
nav.links > a:hover::after,
nav.links > a.active::after {
  width: 100%;
}
nav.links > a:hover,
nav.links > a.active {
  color: var(--orange);
}

.mega-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--heading);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}
.mega-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width var(--transition-normal);
}
.mega-trigger:hover::after,
.mega-trigger.active::after,
.mega-item.open .mega-trigger::after {
  width: 100%;
}
.mega-trigger:hover,
.mega-trigger.active,
.mega-item.open .mega-trigger {
  color: var(--orange);
}
.mega-trigger .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
  margin-top: 1px;
}
.mega-item.open .mega-trigger .caret {
  transform: rotate(180deg);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcontrol-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  background: var(--paper);
  transition: all var(--transition-fast);
}
.hcontrol-btn:hover {
  background: var(--paper-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.hcontrol-btn svg { width: 17px; height: 17px; }
.icon-sun { display: block; }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.menu-btn { display: none; }
@media (max-width: 1040px) {
  nav.links { display: none; }
  .menu-btn { display: none; } /* Kept clean per mobile constraint */
}

/* ---- HEADER PROFILE DROPDOWN (logged-in staff) ---- */
.profile-menu-wrap { position: relative; }
.profile-btn { padding: 0; overflow: hidden; }
.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.profile-avatar.lg { width: 42px; height: 42px; font-size: 14px; flex-shrink: 0; }
.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 120;
  overflow: hidden;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.profile-name { font-weight: 700; color: var(--heading); font-size: 14px; }
.profile-username { font-size: 12px; color: var(--muted); }
.profile-dropdown-body { padding: 8px; display: flex; flex-direction: column; }
.profile-dropdown-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition-fast);
}
.profile-dropdown-body a:hover { background: var(--paper-2); }
.profile-dropdown-body a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.profile-dropdown-body a.danger { color: var(--accent-coral); }
.profile-dropdown-body a.danger svg { color: var(--accent-coral); }
.profile-dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.profile-badge {
  margin-left: auto;
  background: var(--accent-coral);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* ---- MEGA PANELS ---- */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 30, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.mega-backdrop.show { opacity: 1; visibility: visible; }

.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 20, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}
.mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.apple-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 32px;
}
.apple-mega-grid {
  display: grid;
  gap: 36px;
}
.apple-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.apple-col:last-child { border-right: none; }
.apple-col-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 6px;
}
.apple-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
}
.apple-link:hover {
  background: var(--paper);
  border-color: var(--orange);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.apple-link .al-name {
  display: block;
  font-weight: 700;
  color: var(--heading);
  font-size: 14.5px;
}
.apple-link .al-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.apple-link-sm {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  padding: 6px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.apple-link-sm:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.apple-mega-cta-panel {
  background: linear-gradient(145deg, var(--navy) 0%, #001833 100%);
  color: #fff;
  padding: 24px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.apple-mega-cta-ic svg { width: 26px; height: 26px; stroke: var(--orange); margin-bottom: 12px; }
.apple-mega-cta-panel h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.apple-mega-cta-panel p { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.5; margin-bottom: 14px; }
.apple-mega-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-light);
  font-size: 13px;
  font-weight: 700;
}
.apple-mega-cta-link svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.apple-mega-cta-link:hover svg { transform: translateX(3px); }

.apple-mega-foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.apple-mega-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.apple-mega-foot a svg { width: 15px; height: 15px; }
.apple-mega-foot a:hover { color: var(--orange); }

/* ---- HERO COMPONENTS ---- */
.hero-split {
  position: relative;
  padding: 64px 0 84px;
  background-color: var(--paper-2);
  background-image:
    radial-gradient(circle, rgba(0, 38, 77, 0.09) 1.6px, transparent 1.6px),
    linear-gradient(115deg, rgba(0, 38, 77, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-split::before,
.hero-split::after,
.pg-hero::before,
.pg-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero-split::before {
  top: -140px;
  right: -120px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(239, 126, 26, 0.16), transparent 70%);
}
.hero-split::after {
  bottom: -160px;
  left: -110px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 64, 128, 0.14), transparent 70%);
}
.hero-split > *,
.pg-hero > * {
  position: relative;
  z-index: 1;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-split-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  margin-top: 14px;
}
.hero-split-copy p {
  font-size: 16.5px;
  color: var(--muted);
  margin-top: 18px;
  max-width: 54ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-split-media {
  position: relative;
}
.hero-split-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-media-badge {
  position: absolute;
  bottom: -18px;
  left: 24px;
  background: rgba(0, 24, 48, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

/* Page Hero (Inner Pages) */
.pg-hero {
  position: relative;
  padding: 54px 0 60px;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.6px, transparent 1.6px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, var(--navy) 0%, #001833 100%);
  background-size: 24px 24px, 48px 48px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.pg-hero::before {
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(239, 126, 26, 0.22), transparent 70%);
}
.pg-hero::after {
  bottom: -160px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.20), transparent 70%);
}
.pg-hero h1 { color: #fff; font-size: clamp(30px, 3.8vw, 48px); }
.pg-hero p { color: rgba(255, 255, 255, 0.82); font-size: 16px; margin-top: 14px; max-width: 60ch; }
.crumbs {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}
.crumbs a { color: rgba(255, 255, 255, 0.85); }
.crumbs a:hover { color: var(--orange-light); }
.pg-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.pg-hero-media {
  position: relative;
}
.pg-hero-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.media-badge {
  position: absolute;
  bottom: -14px;
  left: 20px;
  background: rgba(239, 126, 26, 0.95);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .hero-split-grid, .pg-hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-split-media, .pg-hero-media { max-width: 580px; width: 100%; }
}
@media (max-width: 600px) {
  .hero-media-badge, .media-badge {
    position: static;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    font-size: 11.5px;
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
  }
}


/* ---- ISLAND STATS RIBBON ---- */
.island-shell { position: relative; z-index: 20; }
.island-wrap { margin-top: -50px; }
.island-card {
  background: radial-gradient(ellipse 640px 320px at 12% 0%, rgba(255, 154, 69, 0.14), transparent 60%), linear-gradient(150deg, var(--navy) 0%, #001830 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -15px rgba(0, 20, 42, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.isl-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.isl-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.isl-item:last-child { border-right: none; }
.isl-item .h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #fff;
  line-height: 1.1;
}
.isl-item .s {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .island-wrap { margin-top: -36px; }
  .isl-grid { grid-template-columns: repeat(2, 1fr); }
  .isl-item:nth-child(2) { border-right: none; }
  .isl-item:nth-child(1), .isl-item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
}
@media (max-width: 500px) {
  .isl-item { padding: 20px 16px; }
}

/* ---- SECTION LAYOUTS ---- */
section.section {
  padding: 88px 0;
}
section.section.alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin: 0 0 36px 0;
  text-align: left;
}
.section-head.center {
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin-top: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
}


/* ---- DUAL HOSPITAL CARDS ---- */
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.hosp-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hosp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.hosp-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hosp-card:hover .hosp-card-photo {
  transform: scale(1.04);
}
.hosp-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 15, 30, 0.2) 0%, rgba(0, 15, 30, 0.75) 50%, rgba(0, 15, 30, 0.95) 100%);
}
.hosp-card-body {
  position: relative;
  z-index: 2;
  padding: 34px 30px;
  color: #fff;
}
.hosp-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-light);
  display: inline-block;
  margin-bottom: 8px;
}
.hosp-card-body h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}
.hosp-card-body .loc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.hosp-card-body .loc svg { width: 15px; height: 15px; stroke: var(--orange); }
.hosp-card-facts {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 22px;
}
.hosp-card-facts b { font-size: 18px; color: #fff; display: block; }
.hosp-card-facts span { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); text-transform: uppercase; }
.hosp-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 850px) {
  .hosp-grid { grid-template-columns: 1fr; }
}

/* ---- SPECIALTY CARDS GRID ---- */
.spec-grid, .spec-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .spec-grid, .spec-index-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .spec-grid, .spec-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .spec-grid, .spec-index-grid { grid-template-columns: 1fr; } }


.spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.spec-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.spec-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.spec-card:hover .spec-ic { transform: scale(1.1); }
.spec-ic svg { width: 22px; height: 22px; stroke: var(--orange); }
.spec-card b {
  font-family: var(--display);
  font-size: 17.5px;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1.25;
}
.spec-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.spec-avail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.spec-avail span {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.spec-avail .at-kuppam { background: #e8f4fc; color: #005691; }
.spec-avail .at-university { background: #e6f5f0; color: #0f8b6c; }

/* ---- PILLARS ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.pillar .ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar .ic svg { width: 24px; height: 24px; stroke: var(--orange); }
.pillar h3 { font-size: 19px; margin-bottom: 10px; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .pillars { grid-template-columns: 1fr; } }

/* ---- SPLIT COLLAGE & EXCELLENCE SHOWCASE ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 14px;
}
.ph {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- ACADEMIC EXCELLENCE REDESIGN ---- */
.excellence-section {
  position: relative;
  background: var(--paper);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.excellence-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.excellence-copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  margin: 12px 0 16px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.excellence-copy h2 em {
  font-style: italic;
  color: var(--orange);
}
.excellence-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 58ch;
}
.excellence-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
.excellence-feature-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.excellence-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 126, 26, 0.4);
  box-shadow: var(--shadow-md);
}
.excellence-ic {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.excellence-ic svg {
  width: 20px;
  height: 20px;
}
.excellence-feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin: 0;
}
.excellence-feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Media Showcase */
.excellence-media {
  position: relative;
  padding-bottom: 24px;
}
.excellence-main-photo {
  width: 100%;
  aspect-ratio: 4/3.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: block;
}
.excellence-badge-stat {
  position: absolute;
  bottom: 0px;
  left: -20px;
  background: linear-gradient(145deg, var(--navy) 0%, #001833 100%);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}
.excellence-badge-stat .stat-num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  color: var(--orange-light);
  line-height: 1;
}
.excellence-badge-stat .stat-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.excellence-badge-top {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .excellence-badge-top {
  background: rgba(13, 27, 42, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 960px) {
  .excellence-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .excellence-badge-stat {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
  .excellence-media {
    padding-bottom: 0;
  }
}
@media (max-width: 600px) {
  .excellence-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .excellence-section {
    padding: 50px 0;
  }
}

/* ---- WARM 25-YEAR IMPACT SHOWCASE ---- */
.warm-impact-section {
  padding: 80px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.warm-impact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.warm-impact-head-copy h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  color: var(--heading);
  line-height: 1.2;
  margin-top: 8px;
}
.warm-impact-head-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 64ch;
  margin-top: 12px;
}
.warm-impact-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.warm-impact-banner-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.warm-impact-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 24, 51, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.warm-impact-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange-light);
}

.warm-impact-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
}
.warm-stat-item {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.warm-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}
.warm-stat-num {
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
html[data-theme="dark"] .warm-stat-num {
  color: #fff;
}
.warm-stat-num span.accent {
  color: var(--orange);
}
.warm-stat-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.warm-stat-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Warm Impact Stats inside Detail / Sidebar Pages */
.detail-main .warm-impact-stats,
.detail-block .warm-impact-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-main .warm-stat-item,
.detail-block .warm-stat-item {
  padding: 16px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.detail-main .warm-stat-item::after,
.detail-block .warm-stat-item::after {
  display: none !important;
}
.detail-main .warm-stat-num,
.detail-block .warm-stat-num {
  font-size: 28px;
  margin-bottom: 4px;
}
.detail-main .warm-stat-label,
.detail-block .warm-stat-label {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-main .warm-stat-desc,
.detail-block .warm-stat-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Care Moments Grid */
.care-moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.care-moment-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.care-moment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 126, 26, 0.4);
}
.care-moment-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.care-moment-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.care-moment-body h3 {
  font-size: 18px;
  margin: 10px 0 8px;
  color: var(--heading);
}
.care-moment-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .warm-impact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 16px;
  }
  .warm-stat-item:nth-child(3)::after {
    display: none;
  }
}
@media (max-width: 680px) {
  .warm-impact-stats {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }
  .warm-stat-item:not(:last-child)::after {
    display: none;
  }
  .warm-impact-banner-img {
    height: 260px;
  }
  .warm-impact-badge {
    position: static;
    margin-top: 14px;
    border-radius: var(--radius-sm);
  }
}



/* ---- GROUP STRIP CTA BANNER ---- */
.group-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: radial-gradient(ellipse 640px 320px at 10% 0%, rgba(255, 154, 69, 0.12), transparent 60%), linear-gradient(145deg, var(--navy) 0%, #001830 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.group-strip-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.group-strip-left .logo-mark {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange) 0%, #d96e0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(239, 126, 26, 0.35);
}
.group-strip-left .logo-mark svg {
  width: 24px;
  height: 24px;
}
.group-strip-left b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.group-strip-left span span {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 3px;
}
@media (max-width: 768px) {
  .group-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
    gap: 16px;
  }
  .group-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- STEP-BY-STEP PROCESS & MILESTONES TIMELINE ---- */
.proc-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.proc-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.proc-item:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 126, 26, 0.4);
  box-shadow: var(--shadow-md);
}
.proc-item .step {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(239, 126, 26, 0.3);
}
.proc-item h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 6px;
}
.proc-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .proc-item {
    flex-direction: row;
    gap: 14px;
    padding: 18px 16px;
  }
  .proc-item .step {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* ---- VALUE CARDS (VISION & MISSION) ---- */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.value-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
}
.value-card:hover {
  border-color: rgba(239, 126, 26, 0.4);
  box-shadow: var(--shadow-md);
}
.value-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-ic svg { width: 22px; height: 22px; }
.value-card b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}
.value-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- QUALITY BENCHMARK CARDS ---- */
.quality-benchmark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.quality-benchmark-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}
.quality-benchmark-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 126, 26, 0.4);
  box-shadow: var(--shadow-md);
}
.benchmark-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.benchmark-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benchmark-ic svg { width: 20px; height: 20px; }
.benchmark-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-green-pale);
  color: var(--accent-green);
}
.quality-benchmark-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin: 0;
}
.quality-benchmark-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 640px) {
  .quality-benchmark-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- EMERGENCY TRIAGE CARDS ---- */
.triage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.triage-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.triage-card.red { border-top: 4px solid #d93025; }
.triage-card.yellow { border-top: 4px solid #f29900; }
.triage-card.green { border-top: 4px solid #1e8e3e; }
.triage-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.triage-card.red .triage-badge { background: #fce8e6; color: #c5221f; }
.triage-card.yellow .triage-badge { background: #fef7e0; color: #b06000; }
.triage-card.green .triage-badge { background: #e6f4ea; color: #137333; }
.triage-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}
.triage-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.triage-card ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.triage-card ul li {
  font-size: 12.5px;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.triage-card ul li::before {
  content: "•";
  color: var(--orange);
  font-weight: bold;
}

/* ---- HEALTH CHECKUP PARAMETER GROUPS ---- */
.param-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.param-group-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.param-group-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.param-group-card h4 svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
}
.param-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.param-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--heading);
}

/* ---- INSURANCE PARTNER CARDS ---- */
.insurer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.insurer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  position: relative;
}
.insurer-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.insurer-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insurer-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin: 0;
}
.insurer-info span.type {
  font-size: 12px;
  color: var(--muted);
}
.insurer-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}
.insurer-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-green);
  font-weight: 700;
}
.insurer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 2.5px var(--accent-green-pale);
}
.insurer-tag {
  background: var(--paper-2);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 11px;
}

/* ---- AWARDS & RECOGNITIONS GRID ---- */
.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.award-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.award-ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.award-ic svg {
  width: 22px;
  height: 22px;
}
.award-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}
.award-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 8px;
}
.award-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--orange);
  display: inline-block;
}


.claim-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.claim-step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.claim-step-card .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.claim-step-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}
.claim-step-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- FOUNDER'S GUIDING VISION BAND ---- */

.founder-quote-section {
  padding: 70px 0;
  background: radial-gradient(ellipse 800px 400px at 90% 0%, rgba(255, 154, 69, 0.15), transparent 60%), linear-gradient(150deg, var(--navy) 0%, #001830 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.founder-quote-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}
.founder-portrait-wrap {
  position: relative;
  text-align: center;
  flex-shrink: 0;
}
.founder-portrait-img {
  width: 190px;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 10, 25, 0.5);
  display: block;
}
.founder-quote-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.founder-quote-content blockquote {
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 29px);
  line-height: 1.45;
  font-style: italic;
  color: #ffffff;
  margin: 6px 0 12px;
  position: relative;
}
.founder-quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
}
.founder-quote-author .name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-light);
}
.founder-quote-author .role {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

@media (max-width: 840px) {
  .founder-quote-section {
    padding: 50px 0;
  }
  .founder-quote-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .founder-portrait-wrap {
    margin: 0 auto;
  }
  .founder-portrait-img {
    width: 150px;
    height: 180px;
    margin: 0 auto;
  }
  .founder-quote-content {
    align-items: center;
  }
  .founder-quote-content .eyebrow {
    justify-content: center;
  }
  .founder-quote-content blockquote {
    font-size: 18px;
    line-height: 1.5;
  }
  .founder-quote-author {
    align-items: center;
  }
}

/* ---- CHECKLIST ---- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.checklist .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-green-pale);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist .check-content,
.checklist li > div:not(.tick) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.checklist .check-title,
.checklist li b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}
.checklist .check-desc,
.checklist li p,
.checklist li span.check-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}


/* ---- PILL LIST ---- */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--heading);
  transition: all var(--transition-fast);
}
.pill:hover {
  background: var(--orange-pale);
  color: var(--orange);
  border-color: var(--orange);
}

/* ---- SIDEBAR & DETAIL LAYOUT ---- */
.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sidebar-card h5 .sidebar-title-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card h5 .sidebar-toggle-icon,
.sidebar-card h5 .sidebar-active-pill {
  display: none;
}
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-right: 4px;
}
.sidebar-list::-webkit-scrollbar { width: 6px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
.sidebar-list::-webkit-scrollbar-thumb:hover { background: var(--orange); }
.sidebar-list a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--transition-fast);
}
.sidebar-list a:hover {
  background: var(--paper-2);
  color: var(--orange);
  transform: translateX(3px);
}
.sidebar-list a.active {
  background: var(--orange-pale);
  color: var(--orange);
  font-weight: 700;
}
.sidebar-cta {
  background: linear-gradient(145deg, var(--navy) 0%, #001830 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.sidebar-cta h5 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-bottom: 16px; }

/* ---- MOBILE COLLAPSIBLE STICKY SUB-NAV ---- */
@media (max-width: 960px) {
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .detail-sidebar {
    position: sticky;
    top: calc(var(--topbar-h) + var(--header-h) + 6px);
    z-index: 95;
    margin-bottom: 12px;
    gap: 0;
  }
  .sidebar-card {
    position: relative;
    padding: 0;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: visible;
  }
  .sidebar-card h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--heading);
    border-bottom: none;
    cursor: pointer;
    user-select: none;
    background: var(--paper);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }
  .sidebar-card h5 .sidebar-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
  }
  .sidebar-card h5 .sidebar-title-label {
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
  }
  .sidebar-card h5 .sidebar-active-pill {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-pale);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }
  .sidebar-card h5 .sidebar-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
  }
  .sidebar-card h5 .sidebar-toggle-icon svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
  }
  .sidebar-card.open h5 {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
  .sidebar-card.open h5 .sidebar-toggle-icon {
    background: var(--orange);
    color: #fff;
  }
  .sidebar-card.open h5 .sidebar-toggle-icon svg {
    transform: rotate(180deg);
  }
  .sidebar-list {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.5px;
    right: -1.5px;
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 40px rgba(0, 20, 42, 0.18);
    padding: 12px;
    max-height: 58vh;
    overflow-y: auto;
    z-index: 100;
  }
  .sidebar-card.open .sidebar-list {
    display: flex;
  }
  .sidebar-cta {
    display: none;
  }
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.detail-block h2 { font-size: 24px; margin-bottom: 14px; }
.detail-block .lede { font-size: 16.5px; color: var(--muted); line-height: 1.7; }

/* ---- QUICK ACCESS BAR ---- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .qa-grid {
    grid-template-columns: 1fr;
  }
}
.qa-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}
.qa-item:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
.qa-item b {
  color: var(--heading);
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.qa-item span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- HEALTH CHECKUP PACKAGE CARDS ---- */
.package-split-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .package-split-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 20px;
  }
}

/* ---- CAREERS SPLIT LAYOUT ---- */
.careers-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .careers-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- RESPONSIVE TWO-COLUMN GRID ---- */
.two-col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .two-col-responsive {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- PATIENT GUIDES & SERVICES MOBILE RESPONSIVE ENHANCEMENTS ---- */
.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* ---- APPOINTMENT BOOKING FORM (patient-info appointments pages) ---- */
.appt-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}
.appt-form select,
.appt-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--heading);
  font-size: 14px;
}
.appt-form .field-row {
  margin-bottom: 18px;
}
.appt-form .field-row:last-of-type {
  margin-bottom: 0;
}
.appt-form .errorlist {
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 0;
}
.appt-form .form-success {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #e8f7ee;
  border: 1px solid #b7e4c7;
  color: #1e7a3d;
  font-size: 14px;
  font-weight: 600;
}

/* ---- ONLINE INQUIRY FORM (contact page) ---- */
.inquiry-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.inquiry-form select,
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--heading);
  font-size: 14px;
}
.inquiry-form .field-row {
  margin-bottom: 20px;
}
.inquiry-form .errorlist {
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 0;
}
.inquiry-form .form-success {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #e8f7ee;
  border: 1px solid #b7e4c7;
  color: #1e7a3d;
  font-size: 14px;
  font-weight: 600;
}

/* ---- ERROR / EXCEPTION HANDLER PAGE (400/403/404/500 & CSRF failures) ---- */
.error-page {
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.error-page-inner {
  max-width: 560px;
  text-align: center;
}
.error-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.error-icon svg { width: 34px; height: 34px; }
.error-icon.danger {
  background: var(--accent-coral-pale);
  color: var(--accent-coral);
}
.error-code {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 10px;
}
.error-title {
  font-size: 22px;
  margin-bottom: 12px;
}
.error-message {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-trace {
  text-align: left;
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11.5px;
  max-height: 300px;
  overflow: auto;
  font-family: 'Courier New', Courier, monospace;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.room-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 126, 26, 0.4);
}
.room-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.room-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 6px);
    z-index: 95;
    margin-bottom: 8px;
  }
  .detail-main {
    gap: 32px;
  }
  .detail-block h2 {
    font-size: 21px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .detail-block .lede {
    font-size: 15px;
    line-height: 1.6;
  }
  .detail-block form {
    padding: 20px 16px !important;
  }
  .detail-block form input,
  .detail-block form select,
  .detail-block form textarea {
    font-size: 16px !important;
    min-height: 46px;
  }
  .form-row-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
  }
  .room-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .package-split-card {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
    gap: 20px !important;
  }
  .param-group-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 16px !important;
  }
  .param-group-card {
    padding: 16px 14px;
  }
  .proc-item {
    padding: 16px 14px;
    gap: 14px;
  }
  .proc-item .step {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .proc-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .proc-item p {
    font-size: 13px;
    line-height: 1.5;
  }
  .checklist li {
    font-size: 13px !important;
  }
  .checklist .tick {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}


/* ---- DOCTOR CARDS & DIRECTORY ---- */
/* ---- Themed <select> — shared across every dropdown on the public site
   (doctor/specialty filters, contact/careers/admission forms) so they match
   the design system instead of the browser's default select chrome. The
   open option list is still rendered natively by the OS/browser (no CSS can
   fully restyle that popup cross-browser), but the option/background/color
   rules below do apply in current Chromium/Firefox. ---- */
.themed-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 40px 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--paper);
  color: var(--heading);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.themed-select:hover { border-color: var(--line-strong); }
.themed-select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }
.themed-select option {
  background: var(--paper);
  color: var(--heading);
}
html[data-theme="dark"] .themed-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239bb0c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .themed-select option { background: var(--paper-2); color: var(--heading); }

/* ---- Custom dropdown (built by initCustomSelects() in main.js) ----
   No browser lets CSS restyle a native <select>'s open option list, so for
   every .themed-select this replaces the trigger+popup with real DOM the
   theme can fully control. The original <select> stays in the DOM (visually
   hidden below) so existing code that reads/sets its .value or listens for
   "change" keeps working untouched. */
.custom-select { position: relative; display: inline-flex; min-width: 200px; }
.custom-select select.themed-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  background-image: none !important;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--heading);
  font-family: var(--body);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.custom-select-trigger:hover { border-color: var(--line-strong); }
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-pale);
}
.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-trigger svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.custom-select.open .custom-select-trigger svg { transform: rotate(180deg); }

.custom-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.custom-select-panel::-webkit-scrollbar { width: 6px; }
.custom-select-panel::-webkit-scrollbar-track { background: transparent; }
.custom-select-panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
.custom-select.open .custom-select-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-option:hover { background: var(--paper-2); color: var(--orange); }
.custom-select-option.selected { background: var(--orange-pale); color: var(--orange); font-weight: 700; }
html[data-theme="dark"] .custom-select-trigger { background: var(--paper-2); }
html[data-theme="dark"] .custom-select-panel { background: var(--paper-2); }
html[data-theme="dark"] .custom-select-option:hover { background: var(--surface); }

.filter-bar {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1040px) { .doctor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .doctor-grid { grid-template-columns: 1fr; } }

.doctor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}
.doctor-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
}
.doctor-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-2);
}
.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.doctor-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-pale, var(--paper-2));
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
}
html[data-theme="dark"] .doctor-photo-fallback { background: var(--paper-2); color: var(--heading); }
.doctor-card:hover .doctor-photo {
  transform: scale(1.04);
}
.doctor-spec-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 20, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.doctor-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.doctor-hosp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  width: fit-content;
}
.doctor-hosp-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.doctor-hosp-badge.both {
  background: #f0f7ff;
  color: #005691;
  border: 1px solid #cce5ff;
}
.doctor-hosp-badge.kuppam {
  background: var(--orange-pale);
  color: var(--orange);
  border: 1px solid #ffd8b3;
}
.doctor-hosp-badge.university {
  background: #e6f5f0;
  color: #0f8b6c;
  border: 1px solid #b3e6d8;
}
html[data-theme="dark"] .doctor-hosp-badge.both { background: rgba(0, 86, 145, 0.25); color: #66b3ff; border-color: rgba(0, 86, 145, 0.4); }
html[data-theme="dark"] .doctor-hosp-badge.kuppam { background: rgba(239, 126, 26, 0.2); color: #ffad5c; border-color: rgba(239, 126, 26, 0.35); }
html[data-theme="dark"] .doctor-hosp-badge.university { background: rgba(15, 139, 108, 0.2); color: #4ee0b5; border-color: rgba(15, 139, 108, 0.35); }

.doctor-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--heading);
}
.doctor-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.doctor-name a:hover {
  color: var(--orange);
}
.doctor-qual {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}
.doctor-designation {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}
.doctor-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.doctor-exp-tag {
  font-weight: 700;
  color: var(--brand-blue);
}
.doctor-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.doctor-actions .btn {
  padding: 8px 10px;
  font-size: 12.5px;
  text-align: center;
  justify-content: center;
}

/* ---- EMPTY STATE (doctor grid, and any other listing with no results) ---- */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 64px 32px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.empty-state-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
}
.empty-state h3 {
  font-size: 19px;
  color: var(--heading);
  margin: 0;
}
.empty-state p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 40ch;
  line-height: 1.6;
  margin: 0;
}
.empty-state .btn {
  margin-top: 14px;
}

/* ---- DOCTOR PROFILE DETAIL PAGES ---- */
.doc-profile-header {
  position: relative;
  padding: 60px 0 54px;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.6px, transparent 1.6px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, var(--navy) 0%, #001833 100%);
  background-size: 24px 24px, 48px 48px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.doc-profile-header::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(239, 126, 26, 0.22), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.doc-profile-header::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.20), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.doc-profile-header > * {
  position: relative;
  z-index: 1;
}
.doc-profile-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 860px) {
  .doc-profile-hero {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 24px;
  }
}
.doc-profile-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: var(--paper-2);
}
.doc-profile-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.doc-profile-badge-float {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0, 20, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.doc-profile-info .eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.doc-profile-info h1 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 6px;
}
.doc-profile-info .doc-degrees {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.doc-profile-info .doc-role {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}
.doc-hosp-avail-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.doc-hosp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.doc-hosp-tag svg { width: 15px; height: 15px; color: var(--orange); }
.doc-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}
.doc-hero-stat-item b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}
.doc-hero-stat-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.doc-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.doc-detail-section {
  padding: 56px 0;
}
.doc-card-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.doc-card-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-card-block h3 svg { width: 20px; height: 20px; color: var(--orange); }
.doc-card-block p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 16px;
}
.doc-card-block p:last-child { margin-bottom: 0; }

.doc-bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 680px) { .doc-bullet-grid { grid-template-columns: 1fr; } }
.doc-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.doc-bullet-item svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 8px;
  border-left: 2px solid var(--orange-pale);
}
.doc-timeline-item {
  position: relative;
  padding-left: 20px;
}
.doc-timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
}
.doc-timeline-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  margin-bottom: 3px;
}
.doc-timeline-sub {
  font-size: 13.5px;
  color: var(--muted);
}

.doc-sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 680px) { .doc-sched-grid { grid-template-columns: 1fr; } }
.doc-sched-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.doc-sched-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-sched-card p {
  font-size: 13.5px;
  margin-bottom: 4px;
  color: var(--ink);
}

/* ---- DOCTOR PROFILE DETAIL LAYOUT & SIDEBAR ---- */
.doc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.doc-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.doc-sidebar .sidebar-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.doc-sidebar .sidebar-card h5 {
  color: var(--heading);
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc-sidebar .sidebar-cta {
  display: block;
  background: linear-gradient(135deg, var(--navy) 0%, #001830 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.doc-sidebar .sidebar-cta h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}
.doc-sidebar .sidebar-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .doc-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .doc-main {
    order: 1;
    width: 100%;
  }
  .doc-sidebar {
    order: 2; /* Naturally pushed to the very end of the page below all doctor details */
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100%;
    margin-top: 10px;
  }
  .doc-sidebar .sidebar-card {
    position: static !important;
    display: block !important;
    padding: 22px !important;
    border-radius: var(--radius) !important;
    background: var(--paper) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .doc-sidebar .sidebar-card h5 {
    display: block !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid var(--line) !important;
    cursor: default !important;
    background: transparent !important;
    font-size: 16px !important;
    color: var(--heading) !important;
  }
  .doc-sidebar .sidebar-cta {
    position: static !important;
    display: block !important;
    background: linear-gradient(135deg, var(--navy) 0%, #001830 100%) !important;
    color: #ffffff !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  .doc-sidebar .sidebar-cta h5 {
    color: #ffffff !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
  }
  .doc-sidebar .sidebar-cta p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }
  .doc-sidebar .sidebar-cta .btn {
    background: #ffffff !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 18px !important;
    border-radius: var(--radius-pill) !important;
    text-align: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-sm) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
  }
}


/* ---- INTERACTIVE TABS ---- */
.tabbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.tabbar button, .tabbar a {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  color: var(--heading);
  background: var(--paper);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.tabbar button:hover, .tabbar a:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.tabbar button.active, .tabbar a.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---- ACCORDIONS & FAQS ---- */
.accordion, .acc-list, .faq-list, .faqs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 28px;
}
.acc-item, .faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.acc-item:hover, .faq-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.acc-item.is-open, .faq-item.is-open {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.acc-head, .faq-head {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--heading);
  user-select: none;
  background: var(--paper);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.acc-head:hover, .faq-head:hover {
  color: var(--orange);
}
.acc-head .acc-icon, .faq-head .faq-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  color: var(--muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.acc-item.is-open .acc-icon, .faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--orange);
}
.acc-body, .faq-body {
  padding: 0 22px 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}
.acc-item.is-open .acc-body, .faq-item.is-open .faq-body {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}


/* ---- FOOTER ---- */
footer.site {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 16px;
  max-width: 32ch;
}
.foot-col h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.foot-col a:hover { color: #fff; }
.foot-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.foot-contact svg { width: 16px; height: 16px; stroke: var(--orange); flex-shrink: 0; margin-top: 3px; }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 14px;
}
.foot-social { display: flex; gap: 14px; }
.foot-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.foot-social a:hover { background: var(--orange); }
.foot-social svg { width: 16px; height: 16px; }

/* ---- APPLE-STYLE MOBILE FOOTER ACCORDION ---- */
@media (max-width: 768px) {
  footer.site {
    padding: 40px 0 110px; /* extra space for bottom-nav */
  }
  .foot-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
  }
  .foot-col.foot-brand {
    padding-bottom: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .foot-col.foot-brand p {
    max-width: 100%;
    margin-top: 12px;
    font-size: 13px;
  }
  .foot-col:not(.foot-brand) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .foot-col:not(.foot-brand) h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
  }
  .foot-col:not(.foot-brand) h5:hover {
    color: var(--orange-light);
  }
  .foot-col:not(.foot-brand) h5::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    flex-shrink: 0;
  }
  .foot-col:not(.foot-brand).is-open h5::after {
    transform: rotate(-135deg);
  }
  .foot-col:not(.foot-brand) ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    gap: 12px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
  }
  .foot-col:not(.foot-brand).is-open ul {
    max-height: 500px;
    opacity: 1;
    padding: 4px 0 18px 6px;
  }
  .foot-col:not(.foot-brand) ul li a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    transition: color var(--transition-fast), transform var(--transition-fast);
  }
  .foot-col:not(.foot-brand) ul li a:hover {
    color: var(--orange-light);
    transform: translateX(4px);
  }
  .foot-contact li {
    padding: 4px 0;
    font-size: 13px;
  }
}


/* ---- SEARCH OVERLAY (command-palette style, always dark regardless of site theme) ---- */
#searchOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}
#searchOverlay.is-open { opacity: 1; visibility: visible; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 22px 24px 20px;
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}
#searchOverlay.is-open .search-panel { transform: translateY(0); }

.search-panel-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.search-panel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.search-panel-brand .brand-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-panel-brand .brand-mark svg { width: 12px; height: 12px; stroke: #fff; }
.search-close {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}
.search-close:hover { color: #fff; }
.search-close svg { width: 16px; height: 16px; }

.search-panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}
.search-panel-top svg { width: 20px; height: 20px; stroke: var(--muted); flex-shrink: 0; }
.search-panel-top input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15.5px;
  color: var(--heading);
  outline: none;
}
.search-submit-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.search-submit-btn:hover { background: var(--navy-light); }
.search-submit-btn svg { width: 16px; height: 16px; stroke: #fff; }

.search-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px;
}
.search-section-label .lbl-icon { color: var(--orange-light); font-size: 13px; line-height: 1; }
.search-section-label + .search-section-label { margin-top: 22px; }

.search-chip-row, .search-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.search-chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.search-chip:hover { background: rgba(255, 255, 255, 0.12); }
.search-chip.chip-danger { background: var(--accent-coral-pale); color: var(--accent-coral); border-color: rgba(217, 83, 79, 0.35); }
.search-chip.chip-danger:hover { background: rgba(217, 83, 79, 0.28); }
.search-chip.chip-active { background: rgba(239, 126, 26, 0.18); color: var(--orange-light); border-color: rgba(239, 126, 26, 0.4); }
.search-chip.chip-active:hover { background: rgba(239, 126, 26, 0.28); }

.search-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.search-tag:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }

.search-hint-row {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.kbd {
  display: inline-block;
  padding: 2px 7px;
  margin: 0 1px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: 'Courier New', Courier, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.search-suggest { display: none; flex-direction: column; gap: 4px; }
.search-suggest.show { display: flex; }
.search-browse.hide { display: none; }
.search-result {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: background var(--transition-fast);
}
.search-result:hover { background: rgba(255, 255, 255, 0.06); }
.sr-name { font-weight: 700; color: #fff; font-size: 14px; }
.sr-desc { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 640px) {
  #searchOverlay { padding: 70px 12px 24px; }
  .search-panel { padding: 18px 16px 16px; }
  .search-chip { padding: 8px 13px; font-size: 12.5px; }
}

/* ---- MOBILE FLOATING EMERGENCY & BOTTOM APP NAV ---- */
.fab-emergency {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  background: var(--accent-coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(217, 83, 79, 0.45);
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.fab-emergency svg { width: 17px; height: 17px; stroke: #fff; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 20, 42, 0.08);
  box-sizing: border-box;
}
.bn-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 4px 0;
  min-width: 0;
}
.bn-item svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }
.bn-item span {
  font-size: 10.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.bn-item.active, .bn-item:hover { color: var(--orange); }
.bn-item.active svg { stroke: var(--orange); }
.bn-primary .bn-fab {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(239, 126, 26, 0.4);
  margin-top: -14px;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.bn-primary .bn-fab svg { width: 20px; height: 20px; stroke: #fff; }
.bn-primary span { color: var(--orange); font-weight: 700; }

@media (max-width: 1040px) {
  .fab-emergency { display: flex; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- BACK TO TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.back-to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--paper-2); }
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 1040px) {
  .back-to-top { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- MOBILE "MORE" BOTTOM SHEET ---- */
#moreSheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
#moreSheet.is-open { opacity: 1; visibility: visible; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 30, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet-panel {
  position: relative;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  max-height: 82vh;
  overflow-y: auto;
  padding: 16px 24px 36px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}
#moreSheet.is-open .sheet-panel { transform: translateY(0); }
.sheet-grabber {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: 0 auto 16px;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sheet-top h3 { font-size: 20px; }
.sheet-close { font-size: 18px; color: var(--muted); }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.sheet-tile {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sheet-tile svg { width: 22px; height: 22px; stroke: var(--orange); }
.sheet-tile b { font-size: 12px; color: var(--heading); }
.sheet-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 18px 0 8px;
}
.sheet-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--heading);
}
.sheet-list a svg { width: 16px; height: 16px; stroke: var(--muted); }

/* ---- ANIMATIONS & REVEALS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---- HOSPITAL LOCATIONS UNDER SPECIALTIES ---- */
.hosp-loc-grid, .programs, .program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.hosp-loc-card, .program-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
  color: inherit;
}
.hosp-loc-card:hover, .program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.hosp-loc-media, .program-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy-deep);
}
.hosp-loc-media img, .program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hosp-loc-card:hover .hosp-loc-media img,
.program-card:hover .program-img img {
  transform: scale(1.06);
}
.hosp-loc-media .hosp-loc-badge, .program-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hosp-loc-badge.kuppam-badge {
  background: #005691;
  color: #fff;
}
.hosp-loc-badge.university-badge {
  background: #b25e00;
  color: #fff;
}
.hosp-loc-body, .program-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hosp-loc-body h3, .program-body h3 {
  font-family: var(--display);
  font-size: 21px;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.3;
}
.hosp-loc-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.hosp-loc-loc svg {
  width: 15px;
  height: 15px;
  stroke: var(--orange);
  flex-shrink: 0;
}
.hosp-loc-body p, .program-body p {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.hosp-loc-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-bottom: 18px;
}
.hosp-loc-meta-item b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  color: var(--heading);
}
.hosp-loc-meta-item span {
  font-size: 11px;
  color: var(--muted);
}
.hosp-loc-actions, .program-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.hosp-loc-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .hosp-loc-grid, .programs, .program-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NEWS & CLINICAL UPDATES SYSTEM
   ========================================================================== */

/* ---- NEWS HERO ZONE ---- */
.news-hero-zone {
  position: relative;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.6px, transparent 1.6px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, var(--navy) 0%, #001833 100%);
  background-size: 24px 24px, 48px 48px, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 56px 0 60px;
}
.news-hero-zone::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(239, 126, 26, 0.22), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.news-hero-zone::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.20), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.news-hero-zone > * {
  position: relative;
  z-index: 1;
}

/* Article Hero specific */
.art-hero {
  padding-bottom: 80px;
}
.art-hero-inner {
  max-width: 900px;
  text-align: left;
}
.art-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.art-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(239, 126, 26, 0.16);
  border: 1px solid rgba(239, 126, 26, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}
.art-tag:hover {
  background: var(--orange);
  color: #fff;
}
.art-tag.navy {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.art-tag.navy:hover {
  background: #fff;
  color: var(--navy);
}

h1.art-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 10px;
}
.art-dek {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 18px;
  max-width: 68ch;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}
.art-meta .who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-meta .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.art-meta .who .name {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.art-meta .stat {
  display: flex;
  align-items: center;
  gap: 6px;
}
.art-meta .stat svg {
  width: 15px;
  height: 15px;
  stroke: var(--orange-light);
}
.art-meta .dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* Article Cover Image */
.art-cover {
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.art-cover-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 16/8.5;
  background: var(--paper-2);
}
.art-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .art-cover {
    margin-top: -30px;
  }
}

/* Article Detail Layout */
.art-layout {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .art-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
  }
}

.art-body {
  max-width: 760px;
}
.art-body p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 22px;
}
.art-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  color: var(--heading);
  margin: 38px 0 16px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-body h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.art-body ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.art-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 10px;
}
.art-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.art-body strong {
  color: var(--heading);
  font-weight: 700;
}

/* Pull Card / Quote */
.pull-card {
  background: linear-gradient(150deg, var(--navy) 0%, #001830 100%);
  border-radius: var(--radius);
  padding: 34px 38px;
  margin: 38px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}
.pull-card::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: 18px;
  font-family: var(--display);
  font-size: 110px;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}
.pull-card p {
  position: relative;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: #fff !important;
  margin: 0;
}
.pull-card .cite {
  position: relative;
  margin-top: 14px;
  font-family: var(--body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-light);
}

/* Gallery Grid */
.art-gallery {
  margin: 38px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-cap {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Footer Tag & Share Row */
.art-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 40px;
}
.foot-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.foot-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}
.foot-tag:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
html[data-theme="dark"] .foot-tag:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-row span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.share-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--heading);
}
.share-ic:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.share-ic svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Like Strip */
.like-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  flex-wrap: wrap;
}
.like-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-pale);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.like-btn:hover, .like-btn.liked {
  background: var(--orange);
  color: #fff;
}
.like-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}
.like-btn.liked svg {
  fill: currentColor;
}
.like-strip .note {
  font-size: 13px;
  color: var(--muted);
}

/* Previous / Next Cards */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .prevnext {
    grid-template-columns: 1fr;
  }
}
.pn-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.pn-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pn-card .dir {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.pn-card.next .dir {
  justify-content: flex-end;
}
.pn-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  line-height: 1.4;
  flex-grow: 1;
}
.pn-card.next {
  text-align: right;
}
.pn-card .pn-date {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
}

/* Sidebar Widgets in News Articles */
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.side-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--heading);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange-pale);
}
.side-news-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.side-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.side-news-item:first-child {
  padding-top: 0;
}
.side-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-news-item h5 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}
.side-news-item:hover h5 {
  color: var(--orange);
}
.side-news-item .side-date {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.side-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--heading);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}
.side-tag:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.side-cta {
  background: linear-gradient(150deg, var(--navy) 0%, #001830 100%);
  border-radius: var(--radius);
  padding: 30px 24px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.side-cta .ic {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.side-cta .ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange-light);
}
.side-cta h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}
.side-cta p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Related News / Keep Reading Block */
section.related-block {
  padding: 72px 0 80px;
  background: var(--paper-2);
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.rel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.rel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 126, 26, 0.4);
}
.rel-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-2);
}
.rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.rel-card:hover .rel-img img {
  transform: scale(1.06);
}
.rel-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.rel-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.rel-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--heading);
  margin: 6px 0 12px;
  line-height: 1.4;
  flex-grow: 1;
}
.rel-body .rel-date {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---- NEWS LISTING PAGE LAYOUT ---- */
.news-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
  align-items: center;
}
.news-tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  color: var(--heading);
  background: var(--paper);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.news-tab-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.news-tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
html[data-theme="dark"] .news-tab-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.news-featured-hero-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  align-items: center;
}
@media (max-width: 860px) {
  .news-featured-hero-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.news-feat-img {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}
.news-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.news-featured-hero-card:hover .news-feat-img img {
  transform: scale(1.04);
}
.news-feat-body {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 860px) {
  .news-feat-body {
    padding: 28px;
  }
}
.news-feat-body .art-tag {
  align-self: flex-start;
  margin-bottom: 14px;
}
.news-feat-body h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--heading);
  line-height: 1.25;
  margin-bottom: 14px;
}
.news-feat-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.news-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .news-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .news-listing-grid {
    grid-template-columns: 1fr;
  }
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 8px;
}
.news-page-numbers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.news-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--heading);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.news-page-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.news-page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  pointer-events: none;
}
html[data-theme="dark"] .news-page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
}

.news-grid-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}
.news-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(239, 126, 26, 0.4);
}
.news-card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.news-grid-card:hover .news-card-img-wrap img {
  transform: scale(1.06);
}
.news-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 38, 77, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.news-card-body h3 {
  font-family: var(--display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
  margin-bottom: 10px;
  flex-grow: 1;
}
.news-card-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.news-card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  transition: transform var(--transition-fast);
}
.news-grid-card:hover .news-card-read-link {
  transform: translateX(4px);
}

/* Newsletter card */
.news-subscribe-card {
  background: linear-gradient(135deg, var(--navy) 0%, #001830 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .news-subscribe-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 20px;
  }
}
.news-subscribe-copy h3 {
  font-family: var(--display);
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}
.news-subscribe-copy p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.news-subscribe-form {
  display: flex;
  gap: 10px;
}
@media (max-width: 500px) {
  .news-subscribe-form {
    flex-direction: column;
  }
}
.news-subscribe-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.news-subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.news-subscribe-form input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.16);
}

/* ---- CAMPUS VISIT & LOCATION STRIP ---- */
.campus-visit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .campus-visit-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 18px;
  }
}

/* ---- TESTIMONIALS & STORIES GRID ---- */
.stories-grid, .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .stories-grid, .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


