/* ==============================================================
   KUSUM HOSPITAL PATNA - MODERN CLINICAL & CORPORATE STYLESHEET
   Matching Exact Design Schemes from Screenshots (Fully Responsive & No-Crop)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-green: #074c3e;
  --dark-green: #053b30;
  --forest-green: #0b5949;
  --emerald-accent: #10b981;
  --emerald-light: #ecfdf5;
  --primary-red: #be123c;
  --primary-red-hover: #9f1239;
  --soft-red-bg: #fff1f2;
  --pmjay-yellow: #f59e0b;
  --pmjay-bg: #fef3c7;
  --slate-dark: #0f172a;
  --slate-body: #334155;
  --slate-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: #e5e7eb;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px -3px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 30px -4px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-body);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}


h1, h2, h3, h4, h5, h6 {
  color: var(--slate-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.ayushman-banner-block h1,
.ayushman-banner-block h2,
.ayushman-banner-block h3,
.ayushman-banner-block h4,
.ayushman-banner-block h5,
.ayushman-banner-block h6,
.emergency-action-strip h1,
.emergency-action-strip h2,
.emergency-action-strip h3,
.emergency-action-strip h4,
.emergency-action-strip h5,
.emergency-action-strip h6 {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ---------------- TOP EMERGENCY BAR ---------------- */
.top-bar {
  background: var(--dark-green);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #f1f5f9;
}

.top-bar a:hover {
  color: #34d399;
}

.top-emergency-badge {
  background: var(--primary-red);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pmjay-top-badge {
  background: #f59e0b;
  color: #78350f;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-share-badge {
  background: rgba(37, 211, 102, 0.18);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.top-share-badge:hover {
  background: #25d366;
  color: #ffffff;
}

/* ---------------- MAIN NAVBAR ---------------- */
.navbar-custom {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-emblem {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-text-block .brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #b91c1c;
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: block;
}

.brand-text-block .brand-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  display: block;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-link-custom {
  color: #1e293b !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-green) !important;
  background-color: #f0fdf4;
}

.dropdown-menu-custom {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
}

.dropdown-item-custom {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--slate-dark);
}

.dropdown-item-custom:hover {
  background: #f0fdf4;
  color: var(--primary-green);
}

.btn-book-opd {
  background: var(--primary-red);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.25);
  transition: all 0.25s ease;
}

.btn-book-opd:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(190, 18, 60, 0.35);
}

.btn-contact-outline {
  border: 1px solid var(--border-light);
  color: var(--slate-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
}

.btn-contact-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ---------------- HERO SLIDER (PERFECT PROPORTIONS - NO CROP) ---------------- */
.hero-slider-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 693;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

/* Hero 4 feature cards row */
.feature-glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* ---------------- ABOUT BUILDING OVERVIEW CARD ---------------- */
.section-about-overview {
  padding: 50px 0;
  background: #ffffff;
}

.about-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.about-building-container {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-building-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-badge {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.highlight-stat-box .h-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-green);
  display: block;
}
.highlight-stat-box .h-label {
  font-size: 12px;
  color: var(--slate-muted);
  font-weight: 600;
}

/* ---------------- DARK GREEN CLINICAL SECTION ---------------- */
.section-clinical-green {
  background: var(--primary-green);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
}

.section-clinical-green h2,
.section-clinical-green h3,
.section-clinical-green h4 {
  color: #ffffff;
}

.clinical-badge-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #d1fae5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 14px;
}

.specialty-card-white {
  background: #ffffff;
  color: var(--slate-dark);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.specialty-card-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.specialty-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-green { background: #dcfce7; color: #166534; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #e0f2fe; color: #075985; }

.specialty-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}

.specialty-list li {
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.specialty-list li i {
  color: var(--primary-green);
  margin-top: 3px;
  font-size: 12px;
}

/* Horizontal department strip below green section */
.dept-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.dept-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-dark);
  transition: all 0.2s ease;
}

.dept-pill-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: var(--primary-green);
}

/* ---------------- LEADERSHIP & DIRECTOR SPOTLIGHT ---------------- */
.section-leadership {
  padding: 65px 0 50px;
  background: #fafaf9;
}

.leadership-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.director-img-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #f8fafc;
  border: 1px solid var(--border-light);
}

.director-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.director-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(7, 76, 62, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- DOCTORS GRID (PERFECT PORTRAIT RATIO) ---------------- */
.section-doctors {
  padding: 50px 0 60px;
  background: #ffffff;
}

.doctor-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.doctor-img-container {
  position: relative;
  height: 285px;
  background: #f8fafc;
  overflow: hidden;
}

.doctor-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-img-container img {
  transform: scale(1.04);
}

.doctor-dept-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.doctor-card-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doctor-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.doctor-designation {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.doctor-degrees {
  font-size: 12px;
  color: var(--slate-muted);
  margin-bottom: 12px;
}

.doctor-timing-badge {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-book-doc {
  background: #ffffff;
  color: var(--primary-red);
  border: 1.5px solid #fecdd3;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-book-doc:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* ---------------- INFRASTRUCTURE & REVIEWS ---------------- */
.section-infra-reviews {
  padding: 60px 0;
  background: #ffffff;
}

.infra-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.infra-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
}

.infra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.infra-item:hover img {
  transform: scale(1.05);
}

.infra-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px 12px 6px;
}

.review-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

/* ---------------- AYUSHMAN BHARAT PROMO CARD ---------------- */
.ayushman-banner-block {
  background: linear-gradient(135deg, #053b30 0%, #074c3e 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.ayushman-badge-top {
  background: var(--pmjay-yellow);
  color: #78350f;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ---------------- HEALTH ARTICLES / BLOG CARDS ---------------- */
.section-articles {
  padding: 55px 0;
  background: #f8fafc;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.article-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------- FAQ ACCORDION ---------------- */
.section-faqs {
  padding: 55px 0;
  background: #ffffff;
}

.accordion-custom .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--slate-dark);
  background-color: #ffffff;
  padding: 18px 22px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: #f0fdf4;
  color: var(--primary-green);
}

.accordion-custom .accordion-body {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  padding: 18px 22px;
  background-color: #ffffff;
}

/* ---------------- MAP & REACH US ---------------- */
.section-location {
  padding: 50px 0 65px;
  background: #f8fafc;
}

.map-card-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.location-info-panel {
  background: var(--dark-green);
  color: #ffffff;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------- FOOTER ---------------- */
.footer-hospital {
  background: #032d25;
  color: #94a3b8;
  padding: 60px 0 25px;
  font-size: 14px;
}

.footer-hospital h5 {
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-hospital a {
  color: #cbd5e1;
}

.footer-hospital a:hover {
  color: #34d399;
  padding-left: 3px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-helpdesk-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.footer-helpdesk-card .phone-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 13px;
}

/* ---------------- EMERGENCY STRIP ---------------- */
.emergency-action-strip {
  background: var(--dark-green);
  color: #fff;
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.btn-primary-red {
  background: var(--primary-red);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}
.btn-primary-red:hover {
  background: var(--primary-red-hover);
  color: #fff !important;
}

.btn-primary-green {
  background: var(--primary-green);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}
.btn-primary-green:hover {
  background: var(--dark-green);
  color: #fff !important;
}

/* ---------------- FLOATING ACTION BUTTONS ---------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.floating-call {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--primary-red);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(190, 18, 60, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}

.floating-call:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* ---------------- PATIENT STORIES SECTION ---------------- */
.section-patient-stories {
  padding: 55px 0 45px;
  background: #f8fafc;
}

.patient-story-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.patient-story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.patient-story-img-wrap {
  position: relative;
  height: 230px;
  background: #0f172a;
  overflow: hidden;
}

.patient-story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.patient-story-card:hover .patient-story-img-wrap img {
  transform: scale(1.04);
}

.patient-story-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 76, 62, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.patient-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.patient-story-card:hover .patient-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SUITE (COMPREHENSIVE DEVICE COVERAGE)
   ========================================================================== */

/* Prevent horizontal overflow on any device */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ---------------- TABLETS & SMALL LAPTOPS (< 992px) ---------------- */
@media (max-width: 991.98px) {
  /* Navbar Collapse Menu */
  .navbar-collapse {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    margin-top: 14px;
    border: 1px solid var(--border-light);
  }
  .nav-link-custom {
    padding: 10px 14px !important;
    font-size: 15px;
  }
  .dropdown-menu-custom {
    box-shadow: none;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin: 6px 0;
  }
  .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }
  .navbar-collapse .btn-contact-outline,
  .navbar-collapse .btn-book-opd {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 16px;
  }

  /* Building & Leadership Sections */
  .about-building-img {
    height: 380px;
  }
  .about-building-container {
    max-width: 480px;
    margin: 0 auto 20px;
  }
  .director-img {
    height: 380px;
  }
  .director-img-wrapper {
    max-width: 480px;
    margin: 0 auto 20px;
  }
  .doctor-img-container {
    height: 280px;
  }
}

/* ---------------- MOBILE LANDSCAPE & PHONES (< 768px) ---------------- */
@media (max-width: 767.98px) {
  /* Fluid Typography */
  h1, .display-4, .display-5 {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  h3 {
    font-size: 19px !important;
  }
  h4 {
    font-size: 17px !important;
  }

  /* Section Padding */
  section:not(.hero-slider-section) {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
  .hero-slider-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .navbar-custom {
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
  }
  .section-about-overview,
  .section-clinical-green,
  .section-leadership,
  .section-doctors,
  .section-infra-reviews,
  .section-patient-stories {
    padding: 38px 0 !important;
  }

  /* Top Bar */
  .top-bar {
    padding: 6px 0;
    font-size: 12px;
  }
  .top-emergency-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .pmjay-top-badge {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  /* Brand Header */
  .brand-emblem {
    height: 42px;
  }
  .brand-text-block .brand-title {
    font-size: 18px;
  }
  .brand-text-block .brand-tagline {
    font-size: 10px;
  }

  /* Building & Director */
  .about-building-img {
    height: 310px;
  }
  .about-card-box {
    padding: 20px 16px;
  }
  .director-img {
    height: 320px;
  }
  .leadership-box {
    padding: 20px 16px;
  }
  .director-overlay-tag {
    padding: 8px 12px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  .director-overlay-tag h6 {
    font-size: 13px;
  }
  .director-overlay-tag span {
    font-size: 11px;
  }

  /* Doctor Cards */
  .doctor-card {
    margin-bottom: 8px;
  }
  .doctor-img-container {
    height: 260px;
  }
  .doctor-card-body {
    padding: 16px;
  }

  /* Infrastructure 4-Grid */
  .infra-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .infra-item {
    height: 145px;
    border-radius: 10px;
  }
  .infra-label {
    font-size: 10.5px;
    padding: 8px 8px 4px;
  }

  /* Ayushman Banner Block */
  .ayushman-banner-block {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    text-align: center;
  }
  .ayushman-banner-block .btn {
    width: 100% !important;
    margin-top: 12px;
  }

  /* Emergency Action Strip */
  .emergency-action-strip {
    padding: 24px 18px !important;
    border-radius: 16px !important;
    text-align: center;
  }
  .emergency-action-strip .btn {
    width: 100% !important;
  }

  /* Patient Stories */
  .patient-story-img-wrap {
    height: 200px;
  }

  /* Floating Buttons */
  .floating-whatsapp {
    bottom: 18px;
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  .floating-call {
    bottom: 18px;
    left: 14px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Forms & iOS Safari Auto-Zoom Fix */
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
  }

  /* Quick Metrics Boxes */
  .highlight-stat-box {
    padding: 10px 6px;
  }
  .highlight-stat-box .h-number {
    font-size: 18px;
  }
  .highlight-stat-box .h-label {
    font-size: 11px;
  }

  /* Modals */
  .modal-dialog {
    margin: 12px;
  }

  /* Responsive Tables */
  .table-responsive {
    border-radius: 10px;
  }
}

/* ---------------- SMALL SMARTPHONES (< 576px) ---------------- */
@media (max-width: 575.98px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-emblem {
    height: 38px;
  }
  .brand-text-block .brand-title {
    font-size: 16.5px;
  }
  .brand-text-block .brand-tagline {
    font-size: 9px;
  }

  .top-bar {
    padding: 6px 0 !important;
  }
  .top-bar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .top-bar a.top-emergency-badge {
    width: auto !important;
    font-size: clamp(8.8px, 2.7vw, 11px) !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 1 !important;
  }
  .top-bar a.pmjay-top-badge {
    font-size: clamp(8.8px, 2.7vw, 11px) !important;
    padding: 3px 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* Hero Slider Zero Gap */
  .hero-slider-section {
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
  }

  /* Hero Feature Cards */
  .feature-glass-card {
    padding: 12px;
  }

  /* Building Image */
  .about-building-img {
    height: 260px;
  }

  /* Director Image */
  .director-img {
    height: 280px;
  }

  /* Doctor Cards */
  .doctor-img-container {
    height: 240px;
  }

  /* Infrastructure Grid */
  .infra-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .infra-item {
    height: 125px;
  }

  /* Gallery filter pills */
  .gallery-filter-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Site Footer */
  .site-footer {
    padding-top: 38px;
  }

  /* Modal on small devices */
  .modal-dialog {
    margin: 8px !important;
  }
  .modal-content {
    border-radius: 14px !important;
  }
  .modal-body {
    padding: 16px 14px !important;
  }
  .modal-header {
    padding: 14px 14px !important;
  }
  .modal-title {
    font-size: 16px !important;
  }
}

/* Hide floating action buttons and mobile appbar when a modal or backdrop is active */
body.modal-open .floating-whatsapp,
body.modal-open .floating-call,
body.modal-open .mobile-bottom-appbar {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease;
}

/* ---------------- MOBILE BOTTOM APP BAR (Native App Feel on < 768px) ---------------- */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 72px;
  }
}

.mobile-bottom-appbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
}

.mobile-bottom-appbar .appbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  padding: 4px 2px;
  transition: all 0.2s ease;
}

.mobile-bottom-appbar .appbar-item i {
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-bottom-appbar .appbar-emergency {
  color: #dc2626 !important;
}

.mobile-bottom-appbar .appbar-whatsapp {
  color: #16a34a !important;
}

.mobile-bottom-appbar .appbar-location {
  color: #2563eb !important;
}

.mobile-bottom-appbar .appbar-opd {
  background: transparent !important;
  color: var(--primary-green) !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.mobile-bottom-appbar .appbar-opd i {
  font-size: 19px;
  color: var(--primary-green) !important;
  margin-bottom: 2px;
}

.mobile-bottom-appbar .appbar-opd span {
  color: var(--primary-green) !important;
  font-weight: 600;
}



