/* ==========================================================================
   Narayana Institute of Medical Superspecialty — Design System
   ========================================================================== */

:root {
  /* Brand palette — drawn from the NIMSS crest (maroon → purple → blue ring,
     red pulse mark, blue "trust" ribbon) */
  --maroon: #7d1d54;
  --maroon-dark: #5a1240;
  --purple: #5b2a80;
  --indigo: #33308a;
  --blue: #1463b3;
  --blue-dark: #0b3f78;
  --sky: #1e88d8;
  --red: #e0293c;
  --red-dark: #b81d2d;

  --ink: #1c1526;
  --ink-soft: #5a5468;
  --ink-faint: #8a839a;
  --bg: #fffbfd;
  --bg-alt: #f7f1f8;
  --bg-alt-2: #f1eefb;
  --line: #ece3ee;
  --white: #ffffff;

  --grad-brand: linear-gradient(135deg, var(--maroon) 0%, var(--purple) 50%, var(--blue) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(125,29,84,.08) 0%, rgba(91,42,128,.08) 50%, rgba(20,99,179,.08) 100%);
  --grad-red: linear-gradient(135deg, var(--red) 0%, #ff6a5c 100%);
  --grad-blue: linear-gradient(135deg, var(--blue) 0%, var(--sky) 100%);

  --shadow-sm: 0 2px 10px rgba(60, 20, 50, .06);
  --shadow-md: 0 10px 30px rgba(60, 20, 60, .10);
  --shadow-lg: 0 20px 60px rgba(50, 15, 55, .16);
  --shadow-glow: 0 0 0 6px rgba(125, 29, 84, .08);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--maroon); color: #fff; }

/* Scrollbar accent */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--grad-brand); border-radius: 10px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(125, 29, 84, .07);
  border: 1px solid rgba(125, 29, 84, .16);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-red);
  box-shadow: 0 0 0 4px rgba(224,41,60,.15);
}

.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.section-head p { font-size: 1.05rem; }
.section-head.left { margin-left: 0; text-align: left; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .96rem;
  border: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-brand);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background-position: 100% 50%; }
.btn-accent {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(224,41,60,.28);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(224,41,60,.36); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(125,29,84,.05); }
.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}
.btn-ghost-white:hover { background: #fff; color: var(--maroon); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: #ffb3ba; font-weight: 600;
}
.topbar-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e;
  box-shadow: 0 0 0 0 rgba(255,77,94,.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255,77,94,.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,77,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar-social svg { width: 13px; height: 13px; }
.topbar-social a:hover { background: var(--grad-red); }

@media (max-width: 900px) {
  .topbar-right .topbar-social { display: none; }
}
@media (max-width: 640px) {
  .topbar .container { font-size: .74rem; }
  .topbar .hide-sm { display: none; }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(0px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(40,10,40,.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 1; min-width: 0; }
.brand-mark {
  width: 50px; height: 50px; position: relative; flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark-footer {
  background: #fff; border-radius: 50%; padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.brand-text { line-height: 1.15; }
.brand-text .name-top {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 1.7rem; letter-spacing: .01em; line-height: 1.05;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text .name-sub {
  display: block; font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  margin-top: 3px; white-space: nowrap;
}

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > li { position: relative; }
.nav-main > li > a, .nav-main > li > button.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 16px; font-weight: 600; font-size: .93rem;
  color: var(--ink); border-radius: var(--radius-pill);
  background: none; border: none;
  transition: color .25s, background .25s;
}
.nav-main > li > a::after {
  content:'';
}
.nav-main > li > a:hover, .nav-main > li.active > a,
.nav-main > li > button.nav-link:hover { color: var(--maroon); background: rgba(125,29,84,.07); }
.nav-main svg.chev { width: 13px; height: 13px; transition: transform .3s; }
.nav-main li:hover svg.chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 40;
}
.nav-main li:hover .dropdown, .dropdown.force-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; font-size: .87rem; font-weight: 600;
  color: var(--ink-soft);
  transition: background .2s, color .2s, padding-left .2s;
}
.dropdown a:hover { background: var(--bg-alt-2); color: var(--maroon); padding-left: 16px; }
.dropdown a .ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.dropdown a .ic svg { width: 17px; height: 17px; color: var(--maroon); }
.dropdown-foot {
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
}
.dropdown-foot a { color: var(--blue); font-size: .82rem; padding-left: 12px; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-call {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--ink-soft);
}
.nav-call .ic-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-red); display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  animation: ringPulse 2.4s infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,41,60,.35); }
  50% { box-shadow: 0 0 0 8px rgba(224,41,60,0); }
}
.nav-call .ic-wrap svg { width: 18px; height: 18px; }
.nav-call strong { display: block; color: var(--ink); font-size: .95rem; }

.burger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .3s, opacity .3s;
}
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: rotate(45deg) translate(-4px,-5px); top: 0; }
.burger.is-open span::after { transform: rotate(-45deg) translate(-4px,5px); top: 0; }

@media (max-width: 1360px) {
  .nav-call { display: none; }
  .nav-main > li > a, .nav-main > li > button.nav-link { padding: 12px 12px; }
}
@media (max-width: 1140px) {
  .nav-main { display: none; }
  .burger { display: flex; flex-shrink: 0; }
}
@media (max-width: 1140px) {
  .nav-wrap { gap: 10px; }
  .brand-text { min-width: 0; overflow: hidden; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
  .brand-text .name-top { font-size: 1.4rem; }
  .brand-text .name-sub { font-size: .56rem; letter-spacing: .03em; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 600;
  visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-drawer.is-open { visibility: visible; opacity: 1; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(20,8,20,.5); backdrop-filter: blur(2px); }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
  background: #fff; padding: 26px 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.2);
}
.mobile-drawer.is-open .panel { transform: translateX(0); }
.mobile-drawer .m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-drawer .m-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mobile-drawer .m-close svg { width: 16px; height: 16px; }
.m-links > li > a, .m-links > li > .m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-weight: 700; font-size: 1.02rem; border-bottom: 1px solid var(--line);
  background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left;
}
.m-links svg.chev { width: 14px; height: 14px; transition: transform .3s; }
.m-links li.open svg.chev { transform: rotate(180deg); }
.m-sub {
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.m-links li.open .m-sub { max-height: 600px; }
.m-sub a { display: block; padding: 11px 6px 11px 16px; font-size: .92rem; color: var(--ink-soft); font-weight: 600; }
.m-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 76px 0 110px;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 25%;
  opacity: 0; transition: opacity 1.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,6,14,.72) 0%, rgba(10,6,14,.52) 28%, rgba(10,6,14,.24) 48%, rgba(10,6,14,.06) 64%, rgba(10,6,14,0) 78%);
}
@media (max-width: 980px) {
  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(10,6,14,.68) 0%, rgba(10,6,14,.4) 45%, rgba(10,6,14,.55) 100%);
  }
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .3; mix-blend-mode: screen;
  animation: floatBlob 16s ease-in-out infinite, hueShift 22s linear infinite;
}
.hero-blob.b1 { width: 480px; height: 480px; top: -180px; right: -120px; background: radial-gradient(circle, var(--maroon), transparent 70%); }
.hero-blob.b2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: radial-gradient(circle, var(--blue), transparent 70%); animation-delay: -6s; }
.hero-blob.b3 { width: 300px; height: 300px; top: 30%; left: 42%; background: radial-gradient(circle, var(--purple), transparent 70%); opacity: .18; animation-delay: -10s; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-25px) scale(1.06); }
  66% { transform: translate(-25px,20px) scale(.96); }
}
@keyframes hueShift {
  0% { filter: blur(60px) hue-rotate(0deg); }
  100% { filter: blur(60px) hue-rotate(360deg); }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin-bottom: .4em;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero-copy .eyebrow {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff;
  backdrop-filter: blur(6px);
}
.hero-copy .text-gradient {
  background-image: linear-gradient(90deg, #ff9db3 0%, #e2aaff 50%, #8fd6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy .lede { font-size: 1.12rem; max-width: 540px; margin-top: 28px; color: rgba(255,255,255,.88); }
.hero-check { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; }
.hero-check li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; font-size: .96rem; }
.hero-check .tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hero-check .tick svg { width: 13px; height: 13px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-visual { position: relative; z-index: 2; }
.hero-card {
  position: relative; border-radius: var(--radius-lg);
  background: var(--grad-brand);
  padding: 3px;
  box-shadow: var(--shadow-lg);
}
.hero-card-inner {
  border-radius: calc(var(--radius-lg) - 3px);
  background: #fff;
  padding: 34px;
  position: relative; overflow: hidden;
}
.pulse-wrap { height: 90px; position: relative; margin-bottom: 10px; }
.pulse-wrap svg { width: 100%; height: 100%; }
.pulse-line {
  fill: none; stroke: url(#pulseGrad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: drawPulse 3.2s var(--ease) infinite;
}
@keyframes drawPulse { to { stroke-dashoffset: -340; } }

.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.hero-stat {
  background: var(--bg-alt); border-radius: 16px; padding: 16px 14px; text-align: left;
  border: 1px solid var(--line);
}
.hero-stat .num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat .lbl { font-size: .76rem; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }

.hero-float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-md); z-index: 3;
  animation: floatY 4.5s ease-in-out infinite;
}
.hero-float-badge.fb1 { top: -22px; left: -22px; animation-delay: -1s; }
.hero-float-badge.fb2 { bottom: -20px; right: -18px; animation-delay: -2.4s; }
.hero-float-badge .ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad-red); display: flex; align-items: center; justify-content: center; color: #fff;
}
.hero-float-badge .ic svg { width: 20px; height: 20px; }
.hero-float-badge strong { display: block; font-size: .88rem; }
.hero-float-badge span { font-size: .74rem; color: var(--ink-soft); }
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-check { align-items: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-float-badge { display: none; }
}

/* ==========================================================================
   Marquee strip (Knowledge / Trust / Compassion + highlights)
   ========================================================================== */
.strip {
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
}
.strip-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
  gap: 60px;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip-item {
  display: flex; align-items: center; gap: 12px; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.strip-item svg { width: 18px; height: 18px; color: #ff8a94; }
.strip-item .sep { color: rgba(255,255,255,.25); font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Highlights (stat cards)
   ========================================================================== */
.highlight-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.highlight-card {
  background: #fff; border-radius: var(--radius-md); padding: 30px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.highlight-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; background: var(--grad-brand-soft);
  transition: opacity .4s;
}
.highlight-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.highlight-card:hover::before { opacity: 1; }
.highlight-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff;
  position: relative; z-index: 1;
}
.highlight-icon svg { width: 26px; height: 26px; }
.highlight-card h3 { font-size: 1.02rem; position: relative; z-index: 1; }
.highlight-card p { font-size: .88rem; margin-bottom: 0; position: relative; z-index: 1; }
.highlight-card .count {
  font-family: var(--font-head); font-weight: 800; font-size: 2.1rem;
  color: var(--maroon); position: relative; z-index: 1; display: block; margin-bottom: 6px;
}

@media (max-width: 980px) { .highlight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .highlight-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Stats band (photo-backed statistics)
   ========================================================================== */
.stats-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 68px 40px;
  background-image: linear-gradient(180deg, rgba(13,7,18,.84), rgba(13,7,18,.90)), url('../assets/images/hospital-ward.jpg');
  background-size: cover; background-position: center;
}
.stats-band .section-head h2, .stats-band .section-head p { color: #fff; }
.stats-band .section-head p { color: rgba(255,255,255,.72); }
.stats-band .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.stats-band .eyebrow::before { background: var(--grad-red); }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; z-index: 1;
}
.stat-tile {
  background: rgba(255,255,255,.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 30px 16px; text-align: center;
  transition: transform .4s var(--ease), background .4s var(--ease);
  min-width: 0;
}
.stat-tile:hover { transform: translateY(-8px); background: rgba(255,255,255,.14); }
.stat-tile .ic {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad-red); display: flex; align-items: center; justify-content: center; color: #fff;
}
.stat-tile .ic svg { width: 22px; height: 22px; }
.stat-tile .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; }
.stat-tile .lbl { font-size: .8rem; color: rgba(255,255,255,.78); font-weight: 600; margin-top: 6px; }

@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-band { padding: 48px 22px; } }
@media (max-width: 380px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Photo gallery (mosaic)
   ========================================================================== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px;
  gap: 16px;
}
.gallery-item {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--bg-alt-2);
}
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,5,15,.65));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .88rem;
  opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); z-index: 1;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item.big { grid-column: span 2; grid-row: span 1; }
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.why-card {
  padding: 32px 26px; border-radius: var(--radius-md); background: #fff;
  border: 1px solid var(--line); transition: all .4s var(--ease);
}
.why-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.why-num {
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .08em;
  color: var(--white); background: var(--grad-brand); display: inline-block;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.why-card h3 { font-size: 1.12rem; }
.why-card p { font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Departments
   ========================================================================== */
.dept-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
@media (max-width: 1180px) { .dept-grid { grid-template-columns: repeat(3, 1fr); } }
.dept-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px 22px;
  border: 1px solid var(--line); text-align: left;
  transition: all .4s var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
}
.dept-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.dept-card .dept-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--grad-brand);
  transition: transform .4s var(--ease);
}
.dept-card:hover .dept-icon { transform: rotate(-8deg) scale(1.08); }
.dept-card .dept-icon svg { width: 24px; height: 24px; }
.dept-card h3 { font-size: 1.02rem; }
.dept-card p { font-size: .85rem; flex-grow: 1; }
.dept-card .dept-link {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .82rem; color: var(--maroon);
}
.dept-card .dept-link svg { width: 14px; height: 14px; transition: transform .3s; }
.dept-card:hover .dept-link svg { transform: translateX(4px); }

@media (max-width: 980px) { .dept-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dept-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Doctors
   ========================================================================== */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 42px; }
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: #fff; font-weight: 600; font-size: .85rem; color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card {
  background: #fff; border-radius: var(--radius-md); padding: 26px 20px 22px; text-align: center;
  border: 1px solid var(--line); transition: all .4s var(--ease);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.doctor-avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  position: relative; overflow: hidden;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; }
.doctor-avatar::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px dashed rgba(125,29,84,.3);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.doctor-card h3 { font-size: 1rem; margin-bottom: 2px; }
.doctor-card .doc-degree { font-size: .78rem; color: var(--ink-faint); font-weight: 600; margin: 0 0 4px; }
.doctor-card .dept-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; color: var(--blue);
  background: rgba(20,99,179,.08); padding: 4px 12px; border-radius: var(--radius-pill); margin-top: 4px;
}
.doctor-card[data-dept] { display: none; }
.doctor-card.show { display: block; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) { .doctor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doctor-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Services tabs (used heavily on services.html)
   ========================================================================== */
.tabs-shell { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: flex-start; }
.tabs-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff;
  text-align: left; font-weight: 700; font-size: .92rem; color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.tab-btn .ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad-brand-soft); display: flex; align-items: center; justify-content: center; color: var(--maroon);
  transition: all .3s;
}
.tab-btn .ic svg { width: 19px; height: 19px; }
.tab-btn:hover { border-color: rgba(125,29,84,.3); color: var(--ink); }
.tab-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.tab-btn.active .ic { background: rgba(255,255,255,.2); color: #fff; }

.tab-panel { display: none; animation: fadeIn .5s var(--ease); }
.tab-panel.active { display: block; }
.tab-panel-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
}
.tab-panel-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-panel-head .ic-lg {
  width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center; color: #fff;
}
.tab-panel-head .ic-lg svg { width: 30px; height: 30px; }
.tab-panel-head h2 { margin-bottom: 2px; font-size: 1.5rem; }
.tab-panel-head span { color: var(--maroon); font-weight: 700; font-size: .88rem; }

.dept-highlights {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  background: var(--grad-brand-soft); border: 1px solid rgba(125,29,84,.14);
  border-radius: 18px; padding: 18px; margin: 4px 0 24px;
}
.dept-highlights li {
  display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 14px;
  padding: 14px 16px; font-size: .9rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
}
.dept-highlights li .hl-ic {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--grad-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.dept-highlights li .hl-ic svg { width: 15px; height: 15px; }
.dept-highlights li small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }
@media (max-width: 640px) { .dept-highlights { grid-template-columns: 1fr; } }

.svc-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 26px; }
.svc-block h4 {
  font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.svc-block h4 svg { width: 15px; height: 15px; }
.svc-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: .93rem; color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.svc-list li:last-child { border-bottom: none; }
.svc-list li svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

.consult-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.consult-pill {
  display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border-radius: var(--radius-pill);
  padding: 8px 16px 8px 8px; font-size: .85rem; font-weight: 700;
}
.consult-pill.has-photo { padding: 8px 20px 8px 8px; border-radius: 18px; }
.consult-pill .consult-photo {
  width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--grad-brand); border: 2px solid #fff; box-shadow: var(--shadow-sm);
}
.consult-pill .consult-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.consult-pill .consult-name { display: block; font-size: .92rem; }
.consult-pill .consult-degree { display: block; font-size: .74rem; font-weight: 600; color: var(--ink-faint); }
.consult-pill .mini-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800;
}

@media (max-width: 980px) {
  .tabs-shell { grid-template-columns: 1fr; }
  .tabs-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .tab-btn { flex-shrink: 0; }
  .svc-cols { grid-template-columns: 1fr; }
  .tab-panel-card { padding: 26px; }
}

/* ==========================================================================
   Trust ribbon (Knowledge / Trust / Compassion)
   ========================================================================== */
.ribbon {
  background: var(--grad-brand);
  background-size: 220% 220%;
  animation: gradientMove 12s ease infinite;
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  color: #fff; position: relative; overflow: hidden;
}
@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ribbon::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 40%);
}
.ribbon-item { text-align: center; position: relative; z-index: 1; }
.ribbon-item .ic {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.ribbon-item .ic svg { width: 26px; height: 26px; }
.ribbon-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.ribbon-item.featured .ic { width: 78px; height: 78px; background: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.18); }
.ribbon-item.featured .ic svg { width: 36px; height: 36px; stroke: var(--maroon); }
.ribbon-item.featured h3 { font-size: 1.45rem; }
.ribbon-item p { color: rgba(255,255,255,.85); font-size: .88rem; margin: 0; }
@media (max-width: 760px) { .ribbon { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line);
  transition: all .4s var(--ease); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  height: 190px; position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt-2); overflow: hidden;
}
.blog-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.blog-card:hover .blog-thumb img { transform: scale(1.07); }
.blog-thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(195deg, rgba(125,29,84,.32), rgba(15,10,25,.55));
}
.blog-thumb svg { width: 54px; height: 54px; color: #fff; position: relative; z-index: 1; }
.blog-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--maroon); font-size: .72rem; font-weight: 800;
  padding: 5px 12px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .04em;
}
.blog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { display: flex; gap: 14px; font-size: .76rem; color: var(--ink-faint); margin-bottom: 10px; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 13px; height: 13px; }
.blog-body h3 { font-size: 1.06rem; margin-bottom: 10px; }
.blog-body p { font-size: .88rem; flex-grow: 1; }
.blog-readmore {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem;
  color: var(--maroon); margin-top: 8px; background: none; border: none; padding: 0;
}
.blog-readmore svg { width: 14px; height: 14px; transition: transform .3s; }
.blog-readmore:hover svg { transform: translateX(4px); }

@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* Blog modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20,8,20,.55); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-box {
  background: #fff; max-width: 640px; width: 100%; max-height: 84vh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: 40px; position: relative;
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease);
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-box .blog-cat { position: static; display: inline-block; margin-bottom: 14px; background: var(--bg-alt-2); }
.modal-box h2 { font-size: 1.5rem; margin-bottom: 14px; }
.modal-box .blog-meta { margin-bottom: 20px; }
.modal-box p { font-size: .96rem; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--ink);
  background-image: radial-gradient(circle at 15% 20%, rgba(125,29,84,.55), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(20,99,179,.5), transparent 45%);
  padding: 60px 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.78); margin: 0; max-width: 420px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #150f1c; color: rgba(255,255,255,.68); padding-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-text .name-top { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin: 16px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.footer-social a svg { width: 16px; height: 16px; color: #fff; }
.footer-social a:hover { background: var(--grad-red); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: .89rem; color: rgba(255,255,255,.62); transition: color .25s, padding-left .25s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: .89rem; margin-bottom: 16px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 24px 0; font-size: .82rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Floating call button + back to top
   ========================================================================== */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 400; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 24px; height: 24px; }
.float-call { background: var(--grad-red); animation: ringPulse 2.4s infinite; }
.float-wa { background: #25d366; }
.float-wa svg { width: 28px; height: 28px; }
.float-top {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .35s var(--ease);
}
.float-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-top svg { width: 20px; height: 20px; }

/* progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand); z-index: 900; transition: width .1s linear;
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: translateY(0) scale(.92); }
[data-reveal="scale"].in-view { transform: scale(1); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal-stagger].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: .12s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: .19s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: .26s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: .33s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: .40s; }
[data-reveal-stagger].in-view > *:nth-child(7) { transition-delay: .47s; }
[data-reveal-stagger].in-view > *:nth-child(8) { transition-delay: .54s; }

/* ==========================================================================
   Page banner (About / Services / Blog / Contact headers)
   ========================================================================== */
.page-banner {
  position: relative; padding: 66px 0 60px; overflow: hidden;
  background: var(--ink);
  background-image: linear-gradient(180deg, rgba(14,8,19,.90), rgba(14,8,19,.94)),
                     radial-gradient(circle at 10% 20%, rgba(125,29,84,.6), transparent 40%),
                     radial-gradient(circle at 90% 80%, rgba(20,99,179,.55), transparent 45%),
                     url('../assets/images/about-team.jpg');
  background-size: cover, auto, auto, cover;
  background-position: center, center, center, center 30%;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); font-size: .88rem; font-weight: 600; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; }
.page-banner p.lede { color: rgba(255,255,255,.78); max-width: 560px; margin-top: 14px; }

/* ==========================================================================
   About page specifics
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual { position: relative; }
.split-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-md); background: var(--bg-alt); }
.split-photo img { width: 100%; height: 260px; object-fit: contain; display: block; }
.tab-image { border-radius: 18px; overflow: hidden; margin: 22px 0 28px; box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.tab-image img { width: 100%; max-height: 280px; object-fit: contain; display: block; }
.split-panel {
  background: var(--grad-brand); border-radius: var(--radius-lg); padding: 3px; box-shadow: var(--shadow-lg);
}
.split-panel-inner { background: #fff; border-radius: calc(var(--radius-lg) - 3px); padding: 34px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stat { text-align: center; padding: 18px 10px; border-radius: 14px; background: var(--bg-alt); }
.mini-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--maroon); }
.mini-stat .lbl { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.timeline-list { display: flex; flex-direction: column; gap: 20px; }
.timeline-item { display: flex; gap: 16px; }
.timeline-item .dot-wrap { display: flex; flex-direction: column; align-items: center; }
.timeline-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-brand); flex-shrink: 0; }
.timeline-item .line { flex-grow: 1; width: 2px; background: var(--line); margin: 4px 0; }
.timeline-item:last-child .line { display: none; }
.timeline-item h4 { font-size: .98rem; margin-bottom: 4px; }
.timeline-item p { font-size: .88rem; margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: flex-start; }
.info-card {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line); margin-bottom: 18px;
  transition: all .3s var(--ease);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.info-card .ic {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center;
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h4 { font-size: .95rem; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: .88rem; margin: 0; }
.info-card a:hover { color: var(--maroon); }

.map-frame {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line);
  height: 240px; margin-top: 4px; box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-alt);
  transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--maroon); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .78rem; color: var(--ink-faint); margin-top: 14px; }
.form-success {
  display: none; align-items: center; gap: 12px; background: #eafaf0; color: #1e7d43;
  border: 1px solid #bfe9cf; padding: 16px 18px; border-radius: 14px; font-weight: 600; font-size: .9rem; margin-bottom: 18px;
}
.form-success.show { display: flex; animation: fadeIn .4s var(--ease); }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Emergency strip on contact */
.emg-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--grad-red); border-radius: var(--radius-md); padding: 22px 28px; color: #fff; margin-bottom: 40px;
}
.emg-strip .left { display: flex; align-items: center; gap: 16px; }
.emg-strip .ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.emg-strip .ic svg { width: 22px; height: 22px; }
.emg-strip h3 { color: #fff; font-size: 1.05rem; margin-bottom: 2px; }
.emg-strip p { color: rgba(255,255,255,.9); margin: 0; font-size: .86rem; }

/* Faq */
.faq-item { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
  padding: 20px 24px; background: none; border: none; font-weight: 700; font-size: .96rem;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .35s var(--ease); color: var(--maroon); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; font-size: .9rem; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 300px; }

/* Utility spacing */
.mt-60 { margin-top: 60px; }
.text-center { text-align: center; }

/* ==========================================================================
   NABH badge + hero brand / tagline
   ========================================================================== */
.nabh-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: var(--radius-pill);
  padding: 6px 18px 6px 6px; font-weight: 700; font-size: .9rem; line-height: 1.25;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 4px rgba(255,255,255,.3);
}
.nabh-seal {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #fff 55%, transparent 56%), conic-gradient(#1a4d9c, #e0293c, #f5a623, #1a4d9c);
  color: #1a4d9c; font-family: var(--font-head); font-weight: 800; font-size: .68rem; letter-spacing: .02em;
}
.nabh-badge small { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.nabh-badge-footer { margin-top: 16px; font-size: .8rem; box-shadow: none; }
.nabh-badge-footer .nabh-seal { width: 38px; height: 38px; font-size: .56rem; }
.topbar .nabh-mini { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }
.topbar .nabh-mini b { background: #fff; color: #1a4d9c; padding: 1px 8px; border-radius: 999px; font-size: .7rem; letter-spacing: .04em; }
.footer-brand .footer-tagline {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; color: #ff9db3; margin: 14px 0 0;
}
.hero-copy .nabh-badge { margin-bottom: 22px; }
.hero-brand {
  font-family: var(--font-head); font-weight: 800; color: #fff; line-height: 1;
  font-size: clamp(2.8rem, 6.4vw, 4.8rem); margin: 0; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero-brand-sub {
  display: block; color: rgba(255,255,255,.94); font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.35rem); margin: 6px 0 16px; letter-spacing: .02em;
}
.hero-tagline { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.hero-tagline span {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.hero-copy .hero-sub-h { font-size: clamp(1.2rem, 2.1vw, 1.6rem); font-weight: 600; margin-bottom: 0; }
@media (max-width: 980px) { .hero-tagline { justify-content: center; } }

/* ==========================================================================
   USP cards
   ========================================================================== */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.usp-card {
  position: relative; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line);
  padding: 30px 24px 26px; overflow: hidden; transition: all .4s var(--ease);
}
.usp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-brand); }
.usp-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.usp-card .usp-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; color: #fff;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
}
.usp-card .usp-ic svg { width: 24px; height: 24px; }
.usp-card .usp-dept { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.usp-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.usp-card p { font-size: .87rem; margin: 0; }
.usp-card .usp-tag {
  display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--grad-red); padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 980px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Google reviews
   ========================================================================== */
.reviews-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: stretch; }
.reviews-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: center;
}
.g-logo { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; }
.g-logo span:nth-child(1), .g-logo span:nth-child(4) { color: #4285f4; }
.g-logo span:nth-child(2), .g-logo span:nth-child(6) { color: #ea4335; }
.g-logo span:nth-child(3) { color: #fbbc05; }
.g-logo span:nth-child(5) { color: #34a853; }
.reviews-card .stars { color: #fbbc05; font-size: 1.5rem; letter-spacing: 3px; line-height: 1; }
.reviews-card .big {
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; margin: 14px 0 4px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reviews-card .big-lbl { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.reviews-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 400px; box-shadow: var(--shadow-sm); }
.reviews-embed iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
@media (max-width: 900px) { .reviews-wrap { grid-template-columns: 1fr; } .reviews-card { padding: 28px; } }

/* ==========================================================================
   WordPress + Elementor additions
   ========================================================================== */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100000; background: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow-md); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-main { display: block; }
[id] { scroll-margin-top: 110px; }

/* Section helpers used by the widgets */
.section-none { padding: 0; }
.container-narrow { max-width: 860px; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.nims-rich p:last-child { margin-bottom: 0; }
.nims-rich { margin-bottom: 4px; }
.page-banner.banner-center .container { text-align: center; }
.page-banner.banner-center .crumbs { justify-content: center; }
.page-banner.banner-center p.lede { margin-left: auto; margin-right: auto; }

/* Hero (brand name larger than the generic hero h1 rule) */
.hero-copy .hero-brand { font-size: clamp(2.8rem, 6.4vw, 4.8rem); line-height: 1; margin: 0; }
.hero-copy .hero-sub-h { color: #fff; font-family: var(--font-head); }
.hero-grid.hero-grid-single { grid-template-columns: 1fr; max-width: 760px; }

/* Flexible grids */
.stats-grid { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
@media (max-width: 980px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }
.dept-grid.dept-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dept-grid.dept-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .dept-grid.dept-cols-4, .dept-grid.dept-cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .dept-grid.dept-cols-3, .dept-grid.dept-cols-4, .dept-grid.dept-cols-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dept-grid.dept-cols-3, .dept-grid.dept-cols-4, .dept-grid.dept-cols-5 { grid-template-columns: 1fr; } }
.doctor-grid.doctor-cols-3 { grid-template-columns: repeat(3, 1fr); }
.doctor-grid.doctor-cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .doctor-grid.doctor-cols-3, .doctor-grid.doctor-cols-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doctor-grid.doctor-cols-3, .doctor-grid.doctor-cols-5 { grid-template-columns: 1fr; } }
.doctor-card .doc-role { color: var(--ink-soft); }

/* Directors / team cards */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.team-grid .team-card { width: 260px; }
.team-grid.team-large .doctor-avatar { width: 170px; height: 170px; }
.team-grid.team-large .team-card h3 { font-size: 1.12rem; }

/* Gallery fit option + lightbox links */
.gallery-item { display: block; }
.gallery-fit-cover .gallery-item img { object-fit: cover; }

/* Blog cards as links */
a.blog-thumb { color: #fff; }
.blog-body h3 a { color: inherit; transition: color .25s; }
.blog-body h3 a:hover { color: var(--maroon); }
.blog-readmore { text-decoration: none; }
.blog-cat-inline { position: static; display: inline-block; background: var(--bg-alt-2); }

/* Pagination */
.nims-pagination { margin-top: 44px; }
.nims-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.nims-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-soft); transition: all .25s;
}
.nims-pagination .page-numbers:hover { border-color: var(--maroon); color: var(--maroon); }
.nims-pagination .page-numbers.current { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* Single article + plain pages */
.nims-article .article-meta { align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.article-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-md); }
.article-image img { width: 100%; height: auto; }
.entry-content { font-size: 1.04rem; line-height: 1.8; }
.entry-content p, .entry-content li { color: var(--ink-soft); }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry-content a { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content img { border-radius: 14px; height: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--maroon); background: var(--bg-alt); border-radius: 0 14px 14px 0; }
.article-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.search-form { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.search-form input[type=search] { padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); min-width: 240px; }
.search-form input[type=submit], .search-form button { padding: 12px 22px; border-radius: 999px; border: none; background: var(--grad-brand); color: #fff; font-weight: 700; }

/* Reviews: third-party widget area */
.reviews-embed-sc { padding: 20px; background: #fff; min-height: 0; }

/* Contact form */
.nims-form { position: relative; }
.form-card .form-success { margin-bottom: 18px; }

/* Elementor compatibility: keep the design's image sizing */
.elementor .gallery-item img, .elementor .blog-thumb img, .elementor .doctor-avatar img,
.elementor .consult-photo img, .elementor .brand-mark img { height: 100%; }
.elementor .split-photo img { height: 260px; }
.elementor .tab-image img { height: auto; max-height: 280px; }
.elementor .gallery-item img, .elementor .blog-thumb img, .elementor .doctor-avatar img, .elementor .consult-photo img,
.elementor .split-photo img, .elementor .tab-image img { border-radius: 0; box-shadow: none; }
.elementor-widget-container > .nims-sec, .elementor-widget-container > .hero { margin: 0; }
.elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }

/* Elementor editor: always show content (no scroll animations while editing) */
.elementor-editor-active [data-reveal], .elementor-editor-active [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .strip-track { animation-play-state: paused; }
