/* ==============================================================
   SHRI SURGICARE HOSPITAL - 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 {
  /* Strict 2-Color System (Exact Red & Green from Hospital Logo) */
  --primary-red: #fe0002;         /* Logo Cross Red */
  --primary-red-hover: #d60002;
  --secondary-red: #dc2626;
  --soft-red-bg: #fff1f2;         /* Gentle Red Tint */

  --primary-green: #02953c;       /* Logo Hands Green */
  --primary-green-hover: #017a31;
  --secondary-green: #059669;
  --dark-green: #016b2b;
  --forest-green: #02953c;
  --teal-accent: #02953c;
  --teal-soft: #f0fdf4;           /* Gentle Green Tint */
  --emerald-accent: #02953c;
  --emerald-light: #f0fdf4;
  --pmjay-amber: #02953c;         /* Unified with Logo Green (No 3rd color) */
  --pmjay-bg: #f0fdf4;

  --logotype-title-color: #fe0002;
  --logotype-tagline-color: #02953c;

  --slate-dark: #0f172a;          /* Clean Dark Heading */
  --slate-body: #334155;          /* Balanced Reading Text */
  --slate-muted: #64748b;         /* Gentle Subtitles */
  --border-light: rgba(2, 149, 60, 0.15); /* Subtle Green Toned Border */
  --border-card: #e2e8f0;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 16px rgba(2, 149, 60, 0.05);
  --shadow-md: 0 10px 28px -4px rgba(2, 149, 60, 0.08);
  --shadow-lg: 0 18px 40px -6px rgba(2, 149, 60, 0.12);
  --shadow-card-hover: 0 20px 42px -8px rgba(2, 149, 60, 0.16);
}

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

html {
  scroll-behavior: smooth !important;
  overflow-x: hidden;
}

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

/* ==========================================================================
   SOLID STABLE UI (All Sections Instantly Visible - No Hiding/Jumping)
   ========================================================================== */

.km-fade-up,
.reveal, .reveal-up, .reveal-bottom, .reveal-top, 
.reveal-left, .reveal-right, .reveal-open, 
.reveal-zoom, .reveal-flip-left, .reveal-flip-right, .reveal-fade {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ==========================================================================
   PAGE ENTRANCE ANIMATIONS (Immediate Smooth Reveal on Page Click / Visit)
   ========================================================================== */
@keyframes kmHeroFadeDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kmCardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-entrance-animate,
.specialty-hero-section > .container,
.hero-slider-section {
  animation: pageFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-hero-animate {
  animation: kmHeroFadeDown 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-form-animate {
  animation: kmCardFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.contact-helplines-animate {
  animation: kmCardFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* ==========================================================================
   INTERACTIVE 3D HOVER PHYSICS & SPATIAL CARD ELEVATION
   Strictly in Logo Red (#fe0002) & Logo Green (#02953c)
   ========================================================================== */

/* Subtle Hover (Soft Shadow only, No Movement) */
.specialty-card-white,
.doctor-card,
.feature-glass-card,
.review-card-box,
.patient-story-card,
.infra-item,
.highlight-stat-box {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.specialty-card-white:hover,
.doctor-card:hover,
.feature-glass-card:hover,
.review-card-box:hover,
.patient-story-card:hover,
.highlight-stat-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 30px rgba(2, 149, 60, 0.12) !important;
}

/* Subtle image zoom on hover for portrait cards */
.doctor-img-container {
  overflow: hidden;
}
.doctor-img-container .doc-img,
.infra-item img {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-card:hover .doc-img,
.infra-item:hover img {
  transform: scale3d(1.045, 1.045, 1);
}

/* Tactile button micro-physics */
.btn-theme-red,
.btn-theme-green,
.btn-book-opd {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.btn-theme-red:hover,
.btn-book-opd:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 22px -4px rgba(254, 0, 2, 0.32);
}
.btn-theme-green:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 8px 22px -4px rgba(2, 149, 60, 0.32);
}
.btn-theme-red:active,
.btn-theme-green:active,
.btn-book-opd:active {
  transform: translate3d(0, 0, 0) scale3d(0.98, 0.98, 1);
}

/* ==========================================================================
   CLEAN & STABLE UI (Zero Automatic Swaying / Shaking)
   ========================================================================== */

/* Static Badges & Clean Icons */
.about-badge,
.clinical-badge-pill,
.ayushman-badge-top,
.doctor-dept-badge,
.director-overlay-tag {
  display: inline-block;
  transform: none !important;
  animation: none !important;
}

.feature-glass-card .f-icon,
.specialty-card-white i.fs-4 {
  transform: none !important;
  animation: none !important;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p {
  color: var(--slate-body);
  line-height: 1.72;
}

.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: var(--primary-green, #02953c);
  color: #ffffff;
  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 (LIGHT REFRESHING MEDICAL GREEN TINT) ---------------- */
.navbar-custom {
  background: linear-gradient(180deg, #f0fbf4 0%, #e6f7ec 100%) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1050 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1.5px solid rgba(2, 149, 60, 0.22) !important;
  box-shadow: 0 4px 18px rgba(2, 149, 60, 0.08) !important;
}

/* Offset page content so it never hides behind the fixed navbar */
body {
  padding-top: 80px !important;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 66px !important;
  }
  .navbar-custom {
    padding: 9px 0 !important;
  }
  .brand-wrapper {
    gap: 11px !important;
  }
  .brand-emblem {
    height: 44px !important;
    width: auto;
  }
  .brand-text-block .brand-title {
    font-size: 18px !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
  }
  .brand-text-block .brand-tagline {
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    margin-top: 1px !important;
  }
  .navbar-toggler {
    padding: 6px 9px !important;
    border: 1px solid rgba(2, 149, 60, 0.25) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 9px !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
  }
  .navbar-toggler:focus,
  .navbar-toggler:hover {
    border-color: var(--primary-green) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(2, 149, 60, 0.15) !important;
  }
  .navbar-toggler-icon {
    width: 22px !important;
    height: 22px !important;
    background-size: 100% !important;
  }
  .navbar-custom .navbar-collapse {
    background: #ffffff;
    border: 1px solid rgba(2, 149, 60, 0.18);
    padding: 16px 14px 18px;
    margin-top: 6px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  }
  .navbar-nav {
    gap: 2px !important;
    align-items: stretch !important;
  }
  .nav-link-custom {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  .nav-link-custom:hover {
    background-color: #f8fafc !important;
    color: var(--primary-green) !important;
  }
  .nav-link-custom.active {
    background-color: #edf7f2 !important;
    color: var(--primary-green) !important;
    font-weight: 700 !important;
    border: 1px solid rgba(2, 149, 60, 0.22) !important;
    box-shadow: none !important;
  }
  .dropdown-menu-custom {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    margin: 4px 0 8px !important;
    padding: 6px !important;
  }
  .navbar-collapse .d-flex {
    flex-direction: row !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    border-top: 1.5px dashed #e2e8f0 !important;
  }
  .navbar-collapse .btn-outline-green,
  .navbar-collapse .btn-theme-red {
    flex: 1 1 50% !important;
    font-size: 13.5px !important;
    padding: 11px 10px !important;
    border-radius: 10px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.brand-wrapper:hover {
  transform: scale(1.015);
}

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

.brand-text-block .brand-title {
  font-size: 21.5px;
  font-weight: 800;
  color: var(--logotype-title-color, #fe0002);
  line-height: 1.15;
  letter-spacing: -0.015em;
  display: block;
  white-space: nowrap;
}

.brand-text-block .brand-tagline {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--logotype-tagline-color, #02953c);
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 1px;
}

/* Nav links: Ultra-Clean Typography & Focused States (Slightly Larger & Crisp) */
.navbar-nav {
  gap: 5px;
  flex-wrap: nowrap !important;
  align-items: center;
}

.nav-link-custom {
  color: #0f172a !important;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.012em;
  padding: 7px 13px !important;
  border-radius: 9px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  position: relative;
}

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

/* Active link: Crisp White Badge with Brand Green Highlight */
.nav-link-custom.active {
  color: var(--primary-green) !important;
  background-color: #ffffff !important;
  font-weight: 700;
  border: 1.5px solid rgba(2, 149, 60, 0.28) !important;
  box-shadow: 0 2px 8px rgba(2, 149, 60, 0.1);
}

/* Dropdown arrow alignment */
.nav-link-custom.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border-top-color: currentColor;
  opacity: 0.7;
}

/* Extra large screens: even slightly roomier */
@media (min-width: 1400px) {
  .navbar-nav {
    gap: 8px;
  }
  .nav-link-custom {
    font-size: 17px;
    padding: 8px 15px !important;
  }
}

/* Compact desktop screens (992px to 1199px): seamless fit without wrapping */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav {
    gap: 2px !important;
  }
  .nav-link-custom {
    font-size: 14.5px !important;
    padding: 6px 9px !important;
  }
  .navbar-custom .btn-outline-green,
  .navbar-custom .btn-theme-red {
    font-size: 13.5px !important;
    padding: 7px 11px !important;
  }
}

/* Action buttons: High-Contrast, Sharp Focus & Perfectly Balanced */
.navbar-custom .btn-outline-green {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 8.5px 17px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  border: 1.5px solid var(--primary-green) !important;
  color: var(--primary-green) !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

.navbar-custom .btn-outline-green:hover {
  background: var(--primary-green) !important;
  color: #ffffff !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 4px 12px rgba(2, 149, 60, 0.2) !important;
}

.navbar-custom .btn-theme-red {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 8.5px 18px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px;
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary-red) !important;
  box-shadow: 0 4px 14px rgba(254, 0, 2, 0.25) !important;
  transition: all 0.2s ease !important;
}

.navbar-custom .btn-theme-red:hover {
  background: var(--primary-red-hover) !important;
  border-color: var(--primary-red-hover) !important;
  box-shadow: 0 6px 18px rgba(254, 0, 2, 0.35) !important;
}

.navbar-custom .btn-theme-red i,
.navbar-custom .btn-outline-green i {
  font-size: 15px;
}

/* Dropdown Menu: Crisp & High-Legibility */
.dropdown-menu-custom {
  border: 1px solid rgba(2, 149, 60, 0.18);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
  padding: 8px;
  margin-top: 6px;
}

.dropdown-item-custom {
  font-size: 15.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  color: #1e293b;
  transition: all 0.18s ease;
}

.dropdown-item-custom:hover {
  background: #edf7f2;
  color: var(--primary-green);
  transform: translateX(4px);
}

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

.btn-book-opd:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 0, 2, 0.38);
}

.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 - ZERO LAYOUT SHIFT) ---------------- */
.hero-slider-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(2, 149, 60, 0.08);
  contain: layout;
}

.hero-slider-section .carousel {
  contain: layout;
  position: relative;
}

.hero-slider-section .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  contain: layout;
}

.hero-slider-section .carousel-item {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-slider-section .carousel-item.active {
  z-index: 1;
}

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

@media (max-width: 767.98px) {
  .hero-slider-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 60%, #eaf7f0 100%);
  }
  .hero-slide-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1600 / 693 !important;
    object-fit: contain !important;
    min-height: unset !important;
    display: block !important;
  }
  .hero-slider-section .carousel-indicators {
    margin-bottom: 6px;
  }
  .hero-slider-section .carousel-indicators button {
    width: 24px;
    height: 4px;
    border-radius: 2px;
  }
  .hero-slider-section .container.py-5 {
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }
  .hero-slider-section .row.g-4 {
    --bs-gutter-x: 10px !important;
    --bs-gutter-y: 10px !important;
  }
  .feature-glass-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(2, 149, 60, 0.15) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    height: 100% !important;
  }
  .feature-glass-card .feature-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: left !important;
  }
  .feature-glass-card .f-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
    margin-bottom: 4px !important;
    flex-shrink: 0 !important;
  }
  .feature-card-text {
    width: 100% !important;
  }
  .feature-card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    margin-bottom: 3px !important;
    display: block !important;
    min-height: 34px !important; /* Ensures titles across both columns align vertically on 2 lines */
  }
  .feature-card-desc {
    font-size: 11px !important;
    line-height: 1.25 !important;
    color: #64748b !important;
    display: block !important;
  }
}

/* Hero 4 feature cards row (Balanced Symmetrical Alignment) */
.feature-glass-card {
  background: #ffffff;
  border: 1px solid rgba(2, 149, 60, 0.12);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 18px rgba(2, 149, 60, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-glass-card .f-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.feature-glass-card:hover .f-icon {
  transform: scale(1.08) rotate(3deg);
}

.feature-glass-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

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

.about-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  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: 450px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-badge {
  background: #f0fdf4;
  color: #065f46;
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.25s ease;
}

.about-badge:hover {
  background: #dcfce7;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* About Section Text Hover Interactivity */
.about-title-hover {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.about-title-hover:hover {
  color: var(--primary-red) !important;
  transform: translateX(4px);
}

.about-subtitle-hover {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.about-subtitle-hover:hover {
  color: #059669 !important;
  transform: translateX(4px);
}

.about-text-content {
  margin-bottom: 22px;
}

.about-p-hover {
  font-size: 15.5px;
  line-height: 1.85;
  color: #334155;
  padding: 8px 12px;
  border-radius: 10px;
  margin-left: -12px;
  margin-right: -12px;
  border-left: 3px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.about-p-hover:hover {
  background: #f0fdf4;
  color: #0f172a;
  border-left-color: var(--primary-green);
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(2, 149, 60, 0.06);
}

.highlight-stat-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: all 0.25s ease;
}

.highlight-stat-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.highlight-stat-box .h-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-green);
  display: block;
  line-height: 1.2;
}

.highlight-stat-box .h-label {
  font-size: 12.5px;
  color: var(--slate-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------------- CLINICAL WINGS (SOOTHING CALM PALETTE) ---------------- */
.section-clinical-green {
  background: linear-gradient(135deg, #06382e 0%, #0a473b 100%);
  color: #ffffff;
  padding: 65px 0 75px;
  position: relative;
}

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

.section-clinical-title {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}

.clinical-badge-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specialty-card-white {
  background: #ffffff;
  color: var(--slate-dark);
  border-radius: 18px;
  padding: 26px 22px;
  height: 100%;
  box-shadow: 0 8px 24px -4px rgba(2, 149, 60, 0.08);
  border: 1px solid rgba(2, 149, 60, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.specialty-card-white h4 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.specialty-card-white .specialty-list {
  flex-grow: 1;
}

.specialty-card-white .btn {
  margin-top: auto;
}

.specialty-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-green { background: #edf7f4; color: var(--primary-green); border: 1px solid rgba(6, 56, 46, 0.2); }
.tag-red { background: #fff1f3; color: var(--primary-red); border: 1px solid rgba(190, 18, 60, 0.2); }
.tag-blue { background: #edf7f4; color: var(--primary-green); border: 1px solid rgba(6, 56, 46, 0.2); }

.specialty-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
}

.specialty-list li {
  font-size: 14px;
  color: var(--slate-body);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

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

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

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

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

/* ---------------- LEADERSHIP & DIRECTOR SPOTLIGHT ---------------- */
.section-leadership {
  padding: 80px 0 75px;
  background: #f8fafc;
}

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

.director-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  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(9, 71, 59, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.doctor-card {
  background: #ffffff;
  border: 1px solid rgba(2, 149, 60, 0.14);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -4px rgba(2, 149, 60, 0.07);
}

.doctor-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.doctor-dept-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  top: auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--primary-green);
  border: 1px solid rgba(2, 149, 60, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctor-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doctor-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--slate-dark);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.doctor-designation {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-accent);
  margin-bottom: 4px;
}

.doctor-degrees {
  font-size: 12.5px;
  color: var(--slate-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.doctor-timing-badge {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-top: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-book-doc {
  background: #ffffff;
  color: var(--primary-red);
  border: 1.5px solid #fecdd3;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-book-doc:hover {
  background: var(--primary-red);
  color: #ffffff !important;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.2);
}

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

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

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

.infra-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s 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(9, 71, 59, 0.92), transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 14px 14px 8px;
}

.review-card-box {
  background: #ffffff;
  border: 1px solid rgba(2, 149, 60, 0.12);
  border-radius: 18px;
  padding: 24px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(2, 149, 60, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------------- AYUSHMAN BHARAT PROMO CARD ---------------- */
.ayushman-banner-block {
  background: var(--theme-gradient, linear-gradient(135deg, #016b2b 0%, #02953c 100%));
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ayushman-badge-top {
  background: #edf7f4;
  color: var(--primary-green);
  border: 1px solid rgba(6, 56, 46, 0.25);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.article-card {
  background: #ffffff;
  border: 1px solid rgba(2, 149, 60, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(2, 149, 60, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.article-card:hover {
  box-shadow: 0 16px 36px -8px rgba(2, 149, 60, 0.16);
  border-color: var(--primary-green);
}

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

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

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

.accordion-custom .accordion-item {
  border: 1px solid var(--border-card);
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.accordion-custom .accordion-item:hover {
  border-color: #cbd5e1;
}

.accordion-custom .accordion-button {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--slate-dark);
  background-color: #ffffff;
  padding: 20px 24px;
  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: var(--slate-body);
  line-height: 1.7;
  padding: 20px 24px;
  background-color: #ffffff;
}

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

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

.map-frame-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: #f1f5f9;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
}

.location-info-panel {
  background: linear-gradient(135deg, #09473b 0%, #0d5c4e 100%);
  color: #ffffff;
  padding: 38px 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.campus-map-tab-btn {
  border: 1.5px solid rgba(2, 149, 60, 0.35);
  background: #ffffff;
  color: #0f172a;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.campus-map-tab-btn:hover {
  border-color: #02953c;
  color: #02953c;
  transform: translateY(-1px);
}

.campus-map-tab-btn.active {
  background: #02953c;
  color: #ffffff;
  border-color: #02953c;
  box-shadow: 0 4px 14px rgba(2, 149, 60, 0.25);
}

/* ---------------- FOOTER (CRYSTAL CLEAR & HIGH CONTRAST) ---------------- */
.footer-hospital {
  background: #03211a;
  color: #e2e8f0;
  padding: 70px 0 30px;
  font-size: 15px;
}

.footer-hospital h4 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff !important;
}

.footer-hospital h5 {
  color: #ffffff !important;
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--primary-green);
  display: inline-block;
  padding-bottom: 6px;
}

.footer-hospital p {
  color: #cbd5e1 !important;
  font-size: 14.5px;
  line-height: 1.75;
}

.footer-hospital a {
  color: #e2e8f0;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.footer-hospital a:hover {
  color: #4ade80 !important;
  padding-left: 4px;
}

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

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

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  color: #f1f5f9 !important;
  font-weight: 500;
}

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

.footer-helpdesk-card .phone-title {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  display: block;
  letter-spacing: 0.02em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 14px;
  color: #cbd5e1 !important;
}

.footer-bottom a {
  color: #e2e8f0 !important;
}

.footer-bottom a:hover {
  color: #4ade80 !important;
}

/* ==============================================================
   ATTRACTIVE & MODERN HOSPITAL FOOTER STYLING
   ============================================================== */
.footer-hospital-attractive {
  background: linear-gradient(180deg, #02261a 0%, #011911 100%);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.footer-top-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #02953c 0%, #fe0002 50%, #02953c 100%);
}

.footer-ribbon-bar {
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ribbon-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.ribbon-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ribbon-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ribbon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.ribbon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.footer-main-content {
  padding: 55px 0 40px;
}

.footer-logo-wrapper {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(34, 197, 94, 0.4);
}

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

.footer-loc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.footer-social-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social-pill:hover {
  background: #02953c;
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #02953c;
  box-shadow: 0 4px 12px rgba(2, 149, 60, 0.35);
}

.footer-social-pill.social-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.footer-social-pill.social-share:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.footer-social-pill.social-youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.footer-social-pill.social-instagram:hover {
  background: #e1306c;
  border-color: #e1306c;
}

.footer-heading-wrap {
  position: relative;
}

.footer-heading-line {
  width: 38px;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
  margin-top: 6px;
}

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

.footer-nav-list a {
  color: #cbd5e1 !important;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-nav-list a:hover {
  color: #4ade80 !important;
  transform: translateX(4px);
}

.footer-contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.25s ease;
}

.footer-contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.footer-contact-card.emergency-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.15);
}

.footer-contact-card.opd-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.15);
}

.footer-phone-link {
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: block;
  transition: color 0.2s ease;
}

.footer-contact-card.emergency-card .footer-phone-link:hover {
  color: #f87171 !important;
}

.footer-contact-card.opd-card .footer-phone-link:hover {
  color: #4ade80 !important;
}

.btn-whatsapp-footer {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: #ffffff !important;
  transition: all 0.25s ease;
}

.btn-whatsapp-footer:hover {
  background: linear-gradient(135deg, #1ebe5d 0%, #0d6e63 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  color: #ffffff !important;
}

.footer-bottom-strip {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

/* ---------------- EMERGENCY STRIP ---------------- */
.emergency-action-strip {
  background: var(--theme-gradient, linear-gradient(135deg, #016b2b 0%, #02953c 100%));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 42px 48px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==============================================================
   UNIFIED 2-COLOR BUTTON SYSTEM (NO MISMATCHED COLORS)
   Color 1: Primary Red (#be123c)
   Color 2: Primary Green (#06382e)
   ============================================================== */

/* Red Action / CTA Buttons */
.btn-theme-red,
.btn-primary-red,
.btn-danger,
.btn-book-opd {
  background: var(--primary-red) !important;
  border: 1.5px solid var(--primary-red) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-theme-red:hover,
.btn-primary-red:hover,
.btn-danger:hover,
.btn-book-opd:hover {
  background: var(--primary-red-hover) !important;
  border-color: var(--primary-red-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(190, 18, 60, 0.35);
}

/* Green Action / Secondary Buttons */
.btn-theme-green,
.btn-primary-green,
.btn-success,
.btn-primary {
  background: var(--primary-green) !important;
  border: 1.5px solid var(--primary-green) !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(6, 56, 46, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-theme-green:hover,
.btn-primary-green:hover,
.btn-success:hover,
.btn-primary:hover {
  background: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 56, 46, 0.35);
}

/* Green Outline Buttons */
.btn-outline-green,
.btn-outline-success,
.btn-outline-primary,
.btn-outline-dark,
.btn-contact-outline {
  background: transparent !important;
  border: 2px solid var(--primary-green) !important;
  color: var(--primary-green) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-outline-green:hover,
.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-dark:hover,
.btn-contact-outline:hover {
  background: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 56, 46, 0.2);
}

/* Red Outline Buttons */
.btn-outline-red,
.btn-outline-danger {
  background: transparent !important;
  border: 2px solid var(--primary-red) !important;
  color: var(--primary-red) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-outline-red:hover,
.btn-outline-danger:hover {
  background: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.2);
}

/* Mismatched Yellow / Cyan Overrides */
.btn-warning,
.btn-info {
  background: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.btn-warning:hover,
.btn-info:hover {
  background: var(--primary-red-hover) !important;
  border-color: var(--primary-red-hover) !important;
  color: #ffffff !important;
}

/* Doctor Appointment Button */
.btn-book-doc {
  background: #ffffff !important;
  color: var(--primary-red) !important;
  border: 1.5px solid var(--primary-red) !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-book-doc:hover {
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.25);
}

/* ---------------- FLOATING ACTION BUTTONS ---------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

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

/* Right Floating Back-to-Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 88px;
  right: 25px;
  background: var(--primary-green);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 6px 20px rgba(2, 149, 60, 0.35);
  z-index: 998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background: var(--primary-green-hover);
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 24px rgba(2, 149, 60, 0.45);
}

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

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

.patient-story-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-green);
}

.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)
   ========================================================================== */

/* Ensure clean page boundary & generous left/right container spacing */
body {
  overflow-x: hidden;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* ---------------- TABLETS & SMALL LAPTOPS (< 992px) ---------------- */
@media (max-width: 991.98px) {
  /* 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 {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* ---------------- 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;
  }

  /* Container & Section Padding */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  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 {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .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: 78px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 23px;
  }
  .floating-back-to-top {
    bottom: 132px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  /* 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 !important;
    padding-right: 14px !important;
  }

  .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 {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  /* 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: var(--primary-green) !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;
}

/* ==============================================================
   STRICT 2-COLOR BRAND ENFORCEMENT (LOGO RED & LOGO GREEN ONLY)
   Eliminates all 3rd colors (blue, yellow, cyan, teal, amber)
   ============================================================== */
.text-primary,
.text-info,
.text-warning,
.text-warning-emphasis {
  color: var(--primary-green) !important;
}

.text-danger {
  color: var(--primary-red) !important;
}

.text-success,
.text-success-emphasis {
  color: var(--primary-green) !important;
}

.bg-primary {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
}

.bg-primary-subtle {
  background-color: var(--soft-red-bg) !important;
  color: var(--primary-red) !important;
}

.bg-warning,
.bg-info,
.bg-success {
  background-color: var(--primary-green) !important;
  color: #ffffff !important;
}

.bg-warning-subtle,
.bg-info-subtle,
.bg-success-subtle {
  background-color: var(--teal-soft) !important;
  color: var(--primary-green) !important;
}

.badge.bg-warning,
.badge.bg-info {
  background-color: var(--primary-green) !important;
  color: #ffffff !important;
}

.btn-primary {
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover) !important;
  border-color: var(--primary-red-hover) !important;
}

.btn-success,
.btn-info {
  background-color: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
}

.btn-success:hover,
.btn-info:hover {
  background-color: var(--primary-green-hover) !important;
  border-color: var(--primary-green-hover) !important;
}

/* ==============================================================
   UNIVERSAL INTERACTIVE HOVER SYSTEM (Smooth, Rich, Jitter-Free)
   ============================================================== */

/* 1. Global Buttons Hover (Rich Glow & Subtle Lift) */
.btn,
button,
input[type="submit"],
.btn-theme-red,
.btn-theme-green,
.btn-outline-green,
.btn-outline-red,
.btn-book-opd,
.btn-book-doc {
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:hover,
button:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* 2. All Interactive Cards (Subtle Brand Elevation & Border Glow) */
.feature-glass-card,
.specialty-card-white,
.doctor-card,
.facility-card,
.article-card,
.patient-story-card,
.footer-helpdesk-card,
.about-card-box,
.review-card,
.highlight-stat-box,
.contact-office-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              background-color 0.28s ease !important;
  cursor: pointer;
}

.feature-glass-card:hover,
.specialty-card-white:hover,
.facility-card:hover,
.article-card:hover,
.patient-story-card:hover,
.contact-office-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(2, 149, 60, 0.38) !important;
  box-shadow: 0 14px 32px rgba(2, 149, 60, 0.14) !important;
}

.doctor-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(254, 0, 2, 0.32) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
}

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

.doctor-img {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 3. Global Icon Hover Effects */
.f-icon,
.specialty-icon-box,
.facility-icon-wrap,
.feature-icon-circle {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.28s ease !important;
}

.feature-glass-card:hover .f-icon,
.specialty-card-white:hover .specialty-icon-box {
  transform: scale(1.1) rotate(4deg);
}

/* 4. Global Links & Nav Links */
a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--primary-green) !important;
  transition: color 0.2s ease;
}

/* 5. Footer Quick Links Hover */
.footer-links-list li a {
  transition: all 0.22s ease !important;
}
.footer-links-list li a:hover {
  color: #4ade80 !important;
  transform: translateX(5px);
}
.footer-links-list li a:hover i {
  color: #ffffff !important;
}

/* 6. Gallery & Image Hover Zoom */
.gallery-grid-item .gallery-img-card,
.facility-img-wrap,
.article-img-wrap {
  overflow: hidden;
  border-radius: 12px;
}

.gallery-grid-item img,
.facility-img-wrap img,
.article-img-wrap img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

.gallery-grid-item:hover img,
.facility-card:hover img,
.article-card:hover img {
  transform: scale(1.06);
}

/* 7. Badges & Chips Hover */
.badge,
.top-emergency-badge,
.pmjay-top-badge,
.top-share-badge {
  transition: all 0.2s ease !important;
  cursor: pointer;
}
.top-emergency-badge:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 8px rgba(254, 0, 2, 0.4);
}
.pmjay-top-badge:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 8px rgba(2, 149, 60, 0.4);
}

/* 8. Floating Action Buttons Hover */
.floating-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5) !important;
}
.floating-call:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(254, 0, 2, 0.5) !important;
}

/* Contact Page Hospital Office Photos (Natural Proportion & Full Visibility) */
.contact-office-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}
.contact-office-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.contact-office-card:hover .contact-office-img-wrap img {
  transform: scale(1.04);
}
@media (max-width: 767.98px) {
  .contact-office-img-wrap {
    aspect-ratio: 16 / 10;
  }
}

/* Service Page Doctor Showcase Frame (Natural 1:1 Portrait Proportion) */
.service-doctor-frame {
  max-width: 500px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  display: block;
}

.service-doctor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.service-doctor-frame:hover img {
  transform: scale(1.03);
}

.service-doctor-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.service-doctor-badge .badge-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.3;
}

.service-doctor-badge .badge-sub {
  display: block;
  font-size: 11px;
  color: #02953c;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   MOBILE HERO BADGES COMPACT INLINE-FLEX (Multiple Badges per Row)
   ========================================================================== */
.hero-badges-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

@media (max-width: 767.98px) {
  .hero-badges-group {
    gap: 6px 8px !important;
    margin-bottom: 12px !important;
  }
  .hero-badges-group .badge,
  .hero-badges-group .hero-badge-item,
  .specialty-hero-pill {
    font-size: 11.5px !important;
    padding: 5px 10px !important;
    line-height: 1.35 !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 6px !important;
    margin-bottom: 0 !important;
  }
  .specialty-hero-pill {
    border-radius: 50rem !important;
  }
}

/* ==========================================================================
   SPECIALTY HERO SECTION MOBILE REFINEMENTS
   ========================================================================== */
.specialty-hero-section {
  background: var(--theme-gradient, linear-gradient(135deg, #016b2b 0%, #02953c 100%));
  color: #ffffff;
  padding: 48px 0 52px;
}

/* Specialty Hero Top Badge (Glassmorphic Pill with High-Contrast Text) */
.specialty-top-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 7px 18px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease !important;
}

.specialty-top-badge:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-1px);
}

.specialty-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  animation: pulseSpecialtyDot 1.6s infinite;
}

@keyframes pulseSpecialtyDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

@media (max-width: 767.98px) {
  .specialty-hero-section {
    padding: 22px 0 26px !important;
  }
  .specialty-hero-section h1 {
    font-size: clamp(21px, 5.2vw, 25px) !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.01em !important;
  }
  .specialty-hero-section p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
    opacity: 0.95 !important;
  }
  .specialty-top-badge {
    font-size: 11px !important;
    padding: 5px 14px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.03em !important;
    border-radius: 50px !important;
    white-space: normal !important;
    display: inline-flex !important;
  }
  .specialty-hero-card {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    margin-top: 4px !important;
  }
  .specialty-hero-card h5 {
    font-size: 14.5px !important;
  }
  .specialty-hero-card .btn {
    font-size: 13px !important;
    border-radius: 8px !important;
  }
  .hero-badges-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  .specialty-hero-pill {
    flex: 1 1 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }
  .specialty-hero-pill i {
    font-size: 10px !important;
    margin-right: 2px !important;
  }
}
