/* ======================================================
   JIMCH — Modern Blue Theme
====================================================== */

:root {
  --navy-950: #030b1a;
  --navy-900: #051937;
  --navy-800: #0a2a5e;
  --blue-800: #0a3d7a;
  --blue-700: #0f52a0;
  --blue-600: #1565c9;
  --blue-500: #2d82e8;
  --blue-400: #4f9cf0;
  --blue-300: #8ec7ff;
  --blue-100: #eaf4ff;
  --cyan: #00d4ff;
  --cyan-soft: #6fe3ff;
  --white: #ffffff;
  --ink: #10233f;
  --muted: #5b7091;

  --gradient-hero: linear-gradient(135deg, var(--navy-950) 0%, var(--blue-800) 45%, var(--blue-600) 75%, #0596c9 100%);
  --gradient-accent: linear-gradient(120deg, var(--blue-600), var(--cyan));
  --gradient-radial: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.35), transparent 60%);

  --shadow-sm: 0 4px 16px rgba(10, 42, 94, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 42, 94, 0.14);
  --shadow-lg: 0 24px 60px rgba(5, 25, 55, 0.22);
  --shadow-glow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 12px 30px rgba(21, 101, 201, 0.35);

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

  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-bn: "Hind Siliguri", sans-serif;
}

html[lang="bn"] body { font-family: var(--font-bn); }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4,
html[lang="bn"] .brand-mark, html[lang="bn"] .btn, html[lang="bn"] .nav-links a,
html[lang="bn"] .section-tag, html[lang="bn"] .eyebrow, html[lang="bn"] .breadcrumb {
  font-family: var(--font-bn);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
i { line-height: 1; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; }

.text-gradient {
  background: linear-gradient(120deg, var(--cyan), var(--blue-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 1200;
  transition: width 0.1s ease-out;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar a { transition: color 0.2s; }
.topbar a:hover { color: var(--cyan-soft); }
.topbar i { color: var(--cyan); margin-right: 6px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; color: #7CFFB2; font-weight: 600; }
.badge-live i { font-size: 0.5rem; color: #7CFFB2; animation: pulseDot 1.6s infinite; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.3;
}
.lang-btn[lang="bn"] { font-family: var(--font-bn); }
.lang-btn.active {
  background: var(--gradient-accent);
  color: var(--navy-950);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 25, 55, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(5, 20, 45, 0.92);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-accent);
  color: var(--navy-950);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.brand-mark span { color: var(--navy-950); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--white); font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 0.5px; }
.brand-text small { color: var(--blue-300); font-size: 0.68rem; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.86rem;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--gradient-accent);
  transition: width 0.25s;
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--gradient-accent);
  color: var(--navy-950);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(0,212,255,0.18), 0 16px 36px rgba(21,101,201,0.4); }

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); border-color: var(--cyan-soft); }

.btn-glow {
  background: var(--navy-950);
  color: var(--cyan-soft);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0,212,255,0.35);
}
.btn-glow:hover { background: #082042; box-shadow: 0 0 30px rgba(0,212,255,0.55); }

.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}

/* Mobile-first hero images: small file on phones, larger on bigger screens */
.bg-hero-home { background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=800&q=65'); }
.bg-hero-team { background-image: url('https://images.unsplash.com/photo-1551190822-a9333d879b1f?auto=format&fit=crop&w=800&q=65'); }
.bg-hero-corridor { background-image: url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?auto=format&fit=crop&w=800&q=65'); }
.bg-hero-supplies { background-image: url('https://images.unsplash.com/photo-1626315869436-d6781ba69d6e?auto=format&fit=crop&w=800&q=65'); }
.bg-hero-surgical { background-image: url('https://images.unsplash.com/photo-1580281657702-257584239a55?auto=format&fit=crop&w=800&q=65'); }

@media (min-width: 700px) {
  .bg-hero-home { background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1920&q=80'); }
  .bg-hero-team { background-image: url('https://images.unsplash.com/photo-1551190822-a9333d879b1f?auto=format&fit=crop&w=1600&q=80'); }
  .bg-hero-corridor { background-image: url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?auto=format&fit=crop&w=1600&q=80'); }
  .bg-hero-supplies { background-image: url('https://images.unsplash.com/photo-1626315869436-d6781ba69d6e?auto=format&fit=crop&w=1600&q=80'); }
  .bg-hero-surgical { background-image: url('https://images.unsplash.com/photo-1580281657702-257584239a55?auto=format&fit=crop&w=1600&q=80'); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  opacity: 0.92;
}
.hero-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-radial);
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
  background: radial-gradient(circle, var(--cyan-soft), transparent 70%);
}
.shape.s1 { width: 320px; height: 320px; top: -80px; right: 6%; }
.shape.s2 { width: 200px; height: 200px; bottom: 10%; left: 4%; animation-delay: 2s; }
.shape.s3 { width: 140px; height: 140px; top: 40%; right: 22%; animation-delay: 4s; }

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

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hero-content { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-soft);
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}
.hero-content p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s, background 0.3s;
}
.stat-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); }
.stat-card i { font-size: 1.6rem; color: var(--cyan-soft); }
.stat-card strong { display: block; font-size: 1.3rem; color: var(--white); font-family: var(--font-head); }
.stat-card span { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 5px; height: 5px;
  background: var(--cyan-soft);
  border-radius: 50%;
  margin: 8px auto;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--blue-100); }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-tag {
  display: inline-block;
  color: var(--blue-600);
  background: rgba(21, 101, 201, 0.09);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/4.6;
  object-fit: cover;
}
.about-media-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  max-width: 240px;
}
.about-media-badge i {
  width: 42px; height: 42px;
  background: var(--gradient-accent);
  color: var(--navy-950);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-media-badge strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.about-media-badge span { font-size: 0.76rem; color: var(--muted); }

.about-content h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.about-content > p { color: var(--muted); margin-bottom: 26px; font-size: 1.03rem; }
.section-tag { margin-bottom: 16px; }

.check-list { margin-bottom: 34px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy-900); }
.check-list i { color: var(--blue-500); font-size: 1.15rem; }

/* ---------- Why band ---------- */
.why-band { padding-top: 0; padding-bottom: 90px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(21,101,201,0.08);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.why-card i {
  font-size: 1.7rem;
  color: var(--white);
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.why-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Departments ---------- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.dept-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(21,101,201,0.1);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--gradient-hero);
}
.dept-card:hover i, .dept-card:hover span { color: var(--white); }
.dept-card i {
  font-size: 1.6rem;
  color: var(--blue-600);
  margin-bottom: 14px;
  display: block;
  transition: color 0.3s;
}
.dept-card span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: color 0.3s;
}

/* ---------- Facilities ---------- */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.facility-card {
  display: block;
  background: linear-gradient(160deg, #ffffff, var(--blue-100));
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(21,101,201,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
a.facility-card { cursor: pointer; text-decoration: none; color: inherit; }
.facility-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.facility-card i {
  font-size: 1.8rem;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.facility-card h4 { font-size: 0.96rem; color: var(--navy-900); margin-bottom: 8px; }
.facility-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.facility-card p a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.facility-card:target, .dept-card:target {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: var(--shadow-glow);
  scroll-margin-top: 120px;
}
.facility-card { scroll-margin-top: 120px; }

/* ---------- Doctors ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 30px;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.doctor-photo { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 22px; position: relative; }
.doctor-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,42,94,0.55), transparent 45%);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.08); }
.doctor-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.doctor-card span { color: var(--blue-600); font-weight: 600; font-size: 0.88rem; }

.doctor-photo.placeholder-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
}
.doctor-photo.placeholder-avatar i {
  font-size: 3.2rem;
  color: rgba(255,255,255,0.85);
}
.doctor-photo.placeholder-avatar::after { content: none; }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid rgba(21,101,201,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--gradient-accent);
  color: var(--navy-950);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.news-date span { font-size: 1.25rem; }
.news-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

/* ---------- Event cards (events.html) ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(21,101,201,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-media {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-media i { font-size: 2.6rem; color: rgba(255,255,255,0.92); }
.event-media.grad-a { background: linear-gradient(135deg, var(--blue-700), var(--blue-400)); }
.event-media.grad-b { background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); }
.event-media.grad-c { background: linear-gradient(135deg, var(--blue-600), var(--cyan)); }
.event-media.grad-d { background: linear-gradient(135deg, var(--blue-800), var(--blue-300)); }
.event-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  border-radius: 10px;
  padding: 7px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
}
.event-date-badge strong { display: block; font-size: 1.15rem; color: var(--blue-600); }
.event-body { padding: 26px; }
.event-body h3 { font-size: 1.04rem; margin-bottom: 10px; }
.event-body p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.gallery-item { border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; }
.gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  background: rgba(10,42,94,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.3rem;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.g-tall { grid-row: span 2; }
.gallery-item.g-wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(3,11,26,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 26px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 70px 0;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-radial);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,0.8); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid rgba(21,101,201,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card i {
  font-size: 1.4rem;
  color: var(--white);
  background: var(--gradient-accent);
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }
.contact-card a:hover { color: var(--blue-600); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 18px; font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer .brand-text strong { color: var(--white); }
.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: block; margin-bottom: 12px; font-size: 0.9rem; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--cyan-soft); padding-left: 4px; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact i { color: var(--cyan); width: 18px; }
.footer-contact a:hover { color: var(--cyan-soft); }

.footer-bottom-inner {
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--navy-950);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Mobile call/directions bar (hidden by default, shown under 860px) ---------- */
.mobile-cta-bar { display: none; }
body.no-scroll { overflow: hidden; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Section head row + soft button ---------- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-head-row .section-head { margin: 0; text-align: left; max-width: 560px; }

.btn-soft {
  background: var(--blue-100);
  color: var(--blue-700);
  border: 1px solid rgba(21,101,201,0.15);
}
.btn-soft:hover { background: var(--gradient-accent); color: var(--navy-950); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 90px;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  opacity: 0.93;
}
.page-hero-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-radial);
}
.page-hero-inner { position: relative; z-index: 2; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.breadcrumb a { color: var(--cyan-soft); }
.breadcrumb i { font-size: 0.65rem; opacity: 0.6; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Key Management ---------- */
.km-group { margin-bottom: 70px; }
.km-group:last-child { margin-bottom: 0; }
.km-group-title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.km-group-rule {
  width: 70px; height: 4px;
  background: var(--gradient-accent);
  border-radius: 4px;
  margin: 0 auto 42px;
}
.km-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.km-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(21,101,201,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 24px;
}
.km-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.km-photo { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 18px; }
.km-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.km-card:hover .km-photo img { transform: scale(1.07); }
.km-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.km-card .km-role { color: var(--blue-600); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 8px; }
.km-card .km-org { color: var(--muted); font-size: 0.84rem; padding: 0 14px; }
.km-card .km-email { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--blue-500); }

/* ---------- Find a Doctor ---------- */
.doctor-search {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 34px auto 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.doctor-search select {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: 100px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.doctor-search .btn { flex-shrink: 0; }

.doctor-note {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
}
.doctor-note i { color: var(--blue-600); margin-right: 8px; }

.doctor-results-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  display: none;
}
.doctor-results-empty.show { display: block; }

/* ---------- Responsive ---------- */
.hide-sm { display: inline; }

@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid, .news-grid, .events-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.35s ease;
    z-index: 1100;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; z-index: 1150; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 860px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-right > span:first-child { display: none; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.g-wide { grid-column: span 2; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }

  .page-hero { padding: 130px 0 60px; }

  .doctor-search { flex-direction: column; align-items: stretch; padding: 18px; }
  .doctor-search select, .doctor-search .btn { width: 100%; min-width: 0; }

  /* Sticky mobile call/directions bar */
  body { padding-bottom: 78px; }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 950;
    gap: 10px;
    background: var(--navy-950);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 26px rgba(3,11,26,0.35);
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.86rem;
  }
  .mobile-cta-btn.call { background: var(--gradient-accent); color: var(--navy-950); box-shadow: var(--shadow-glow); }
  .mobile-cta-btn.dir { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.28); }

  .back-to-top { bottom: 92px; width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .doctor-grid, .news-grid, .events-grid { grid-template-columns: 1fr !important; }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .brand-text small { display: none; }
  .page-hero { padding: 120px 0 50px; }
  .about-media-badge { right: 10px; bottom: -18px; max-width: 190px; padding: 14px 16px; gap: 10px; }
  .about-media-badge i { width: 34px; height: 34px; font-size: 0.95rem; }
}
