/* ═══════════════════════════════════════════════════════
   Tirupati Accident Hospital – Main Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:        #1565C0;
  --primary-dark:   #0D47A1;
  --primary-light:  #1E88E5;
  --primary-ultra:  #E3F2FD;
  --accent:         #E65100;
  --accent-light:   #FF6D00;
  --success:        #2E7D32;
  --text-dark:      #1a202c;
  --text-medium:    #4a5568;
  --text-light:     #718096;
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-300:       #cbd5e1;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.14);
  --shadow-xl:      0 20px 60px rgba(0,0,0,.18);
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      20px;
  --radius-full:    9999px;
  --transition:     all 0.3s ease;
  --header-h:       76px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section Shared ────────────────────────────────────── */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-ultra);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-medium);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21,101,192,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(21,101,192,.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Image Placeholder ─────────────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, var(--primary-ultra), var(--gray-200));
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.img-placeholder img { display: none !important; }

.img-placeholder-content {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

.img-placeholder .img-placeholder-content { display: flex; }

.img-placeholder-content i { font-size: 2.5rem; opacity: .5; }
.img-placeholder-content small { color: var(--text-light); font-size: 0.72rem; }

/* ═══════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left, .topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar span, .topbar a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
}

.topbar a:hover { color: var(--white); }
.topbar i { font-size: 0.8rem; opacity: .75; }

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 58px;
  height: 58px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-ultra);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  padding: 8px 20px;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Body offset for fixed header + topbar */
body { padding-top: calc(var(--header-h) + 36px); }

/* ═══════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h) - 36px);
  min-height: 540px;
  max-height: 800px;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Slide backgrounds */
.slide-1 { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%); }
.slide-2 { background: linear-gradient(135deg, #0a2744 0%, #1a4a7a 50%, #1565C0 100%); }
.slide-3 { background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #00897b 100%); }
.slide-4 { background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%); }

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide-bg picture {
  position: absolute;
  inset: 0;
  display: block;
}

.slide-bg picture img,
.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
}

.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.slide-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.slide-content p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.92;
  max-width: 520px;
}

.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════
   QUICK STATS
   ═══════════════════════════════════════════════════════ */
.quick-stats {
  background: var(--primary);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 20px;
  color: var(--white);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: var(--transition);
}

.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,.08); }

.stat-card i {
  font-size: 2rem;
  opacity: .85;
  margin-bottom: 4px;
}

.stat-card strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-card span {
  font-size: 0.85rem;
  opacity: .8;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════ */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image { position: relative; }

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 480px;
  background: linear-gradient(135deg, var(--primary-ultra), var(--gray-100));
  position: relative;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 480px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

.about-badge i { font-size: 1.4rem; }

.about-content { padding: 0 0 20px; }

.about-content .lead {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.65;
}

.about-content p {
  color: var(--text-medium);
  margin-bottom: 14px;
  line-height: 1.75;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
}

.highlight i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   DOCTOR SECTION
   ═══════════════════════════════════════════════════════ */
.doctor-section {
  background: var(--gray-50);
}

.doctor-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.doctor-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 420px;
  background: linear-gradient(160deg, #1565C0, #42A5F5);
  position: relative;
}

.doctor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 420px;
}

.doctor-card-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.doctor-card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.doctor-specialty {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.doctor-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doctor-quals span {
  background: var(--primary-ultra);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.doctor-bio h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.doctor-bio p {
  color: var(--text-medium);
  margin-bottom: 14px;
  line-height: 1.78;
}

.bio-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-subtitle i { color: var(--primary); }

.qual-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.qual-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-dark);
  font-weight: 500;
}

.qual-list li i {
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tags span {
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════
   FACILITIES SECTION
   ═══════════════════════════════════════════════════════ */
.facilities-section { background: var(--white); }

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.facility-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.facility-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-ultra), var(--gray-200));
  overflow: hidden;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-img img { transform: scale(1.06); }

.facility-img .img-placeholder-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  text-align: center;
}

.facility-img.img-placeholder .img-placeholder-content { display: flex; }

.facility-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.facility-body { padding: 20px; }

.facility-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.facility-body p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════ */
.services-section { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-ultra);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-ultra);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--text-medium);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   WHY CHOOSE US
   ═══════════════════════════════════════════════════════ */
.why-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.why-section .section-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}

.why-section .section-title,
.why-section .section-sub { color: var(--white); }
.why-section .section-sub { opacity: .8; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 24px 18px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.2);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.why-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.why-text p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════ */
.gallery-section { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-ultra), var(--gray-200));
}

.gallery-item--large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item.img-placeholder { display: flex; align-items: center; justify-content: center; }
.gallery-item.img-placeholder .img-placeholder-content { display: flex; }
.gallery-item .img-placeholder-content { position: absolute; inset: 0; display: none; background: rgba(255,255,255,.0); }
.gallery-item.img-placeholder .img-placeholder-content { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21,101,192,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════ */
.blog-section { background: var(--gray-50); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  position: relative;
  height: 210px;
  background: linear-gradient(135deg, var(--primary-ultra), var(--gray-200));
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img img { transform: scale(1.05); }

.blog-img .img-placeholder-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3rem;
}

.blog-img.img-placeholder .img-placeholder-content { display: flex; }

.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.blog-body { padding: 22px; }

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-body p {
  font-size: 0.87rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-read-more {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.blog-read-more:hover { gap: 10px; }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Contact Info */
.contact-hospital-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.contact-logo {
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-logo .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.contact-hospital-name h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.contact-hospital-name p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-quals {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
  border-left: 3px solid var(--primary-ultra);
  padding-left: 12px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-ultra);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.contact-detail p {
  color: var(--text-dark);
  font-size: 0.94rem;
  line-height: 1.55;
}

.contact-detail p em {
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: normal;
}

.contact-detail a {
  color: var(--primary);
  font-weight: 500;
}
.contact-detail a:hover { text-decoration: underline; }

/* Consultation Hours */
.consultation-hours {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 8px;
}

.consultation-hours h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consultation-hours h4 i { color: var(--primary); }

.hours-grid { display: flex; flex-direction: column; gap: 10px; }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--gray-200);
}

.hours-row:last-child { border-bottom: none; padding-bottom: 0; }

.hours-row .day {
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hours-row .time { color: var(--text-medium); }

.emergency-row .day { color: var(--accent); }
.emergency-row .time { color: var(--accent); font-weight: 700; }

/* Contact Form */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label span { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  background: #E8F5E9;
  color: var(--success);
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
  gap: 8px;
}

.form-success.show { display: flex; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer { background: #0a1929; color: rgba(255,255,255,.75); }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  flex-shrink: 0;
}

.footer-logo strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.footer-logo span {
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a,
.footer-services a {
  font-size: 0.86rem;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-links a i,
.footer-services a i {
  font-size: 0.65rem;
  opacity: .6;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.footer-contact-item i {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item.emergency {
  background: rgba(230,81,0,.15);
  border: 1px solid rgba(230,81,0,.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
}

.footer-contact-item.emergency i { color: #FF7043; }
.footer-contact-item.emergency strong { color: #FF7043; }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .doctor-grid { grid-template-columns: 300px 1fr; gap: 40px; }
  .about-grid { gap: 48px; }
}

/* Tablet narrow (≤900px) */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-card:nth-child(2n) { border-right: none; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--large { grid-column: span 1; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  body { padding-top: calc(var(--header-h) + 36px); }

  .topbar-right { display: none; }
  .topbar-left { flex-wrap: nowrap; overflow: hidden; }
  .topbar-left span:last-child { display: none; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 36px);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 10px; bottom: 10px; }

  .doctor-grid { grid-template-columns: 1fr; gap: 32px; }
  .doctor-photo-frame { min-height: 320px; }
  .doctor-photo-frame img { min-height: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .hero-slider { height: 75vh; min-height: 480px; }
  .slide-content h1 { font-size: 1.8rem; }
  .slider-btn { width: 40px; height: 40px; font-size: 0.9rem; }
  .slider-prev { left: 12px; }
  .slider-next { right: 12px; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .contact-form-wrap { padding: 24px 18px; }
  .slide-actions { flex-direction: column; }
  .slide-actions .btn { width: 100%; justify-content: center; }
}
