/* ==========================================================================
   VEDANT HOSPITAL - LOGO-ALIGNED PREMIUM MODERN UI DESIGN SYSTEM
   Logo Colors:
   - Forest Green (Pulse & HOSPITAL & ICU): #4b7b45
   - Rich Warm Brown (VEDANT Heart): #6d4527
   - Caring Orange (Hand Accent): #f26522
   ========================================================================== */

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

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Logo Palette Exact Mapping */
  --primary: #4b7b45;               /* Logo Green */
  --primary-dark: #396034;
  --primary-light: #edf6ee;
  
  --brand-brown: #6d4527;           /* Logo Brown */
  --brand-brown-dark: #4a2e19;
  --brand-brown-light: #f7f3ef;
  
  --accent-orange: #f26522;         /* Logo Orange */
  --accent-orange-hover: #d95312;
  --accent-orange-light: #fff0e8;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #4b7b45 0%, #366033 100%);
  --brand-gradient: linear-gradient(135deg, #6d4527 0%, #4b7b45 100%);
  --orange-gradient: linear-gradient(135deg, #f26522 0%, #d95312 100%);
  --header-dark-gradient: linear-gradient(135deg, #2a1f1a 0%, #1c1511 100%);
  
  /* Neutral Warm Palette */
  --dark-espresso: #251c17;
  --dark-navy: #251c17;
  --dark-surface: #332720;
  --bg-light: #faf8f5;
  --bg-card: #ffffff;
  
  --text-main: #332b27;
  --text-muted: #665b55;
  --text-light: #998d86;
  
  --border-color: #e8e2dc;
  --border-focus: #4b7b45;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 5px rgba(37, 28, 23, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(37, 28, 23, 0.08), 0 8px 10px -6px rgba(37, 28, 23, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(75, 123, 69, 0.18), 0 10px 15px -3px rgba(37, 28, 23, 0.05);
  --shadow-glow: 0 0 25px rgba(75, 123, 69, 0.25);
  
  --glass-bg: rgba(255, 255, 255, 0.90);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Overrides */
body {
  font-family: var(--font-primary) !important;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  color: var(--brand-brown);
  letter-spacing: -0.02em;
}

a {
  transition: var(--transition);
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 226, 220, 0.7);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

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

/* Modern Gradient Text */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Pulse Glow Indicator */
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  box-shadow: 0 0 0 rgba(242, 101, 34, 0.4);
  animation: pulse-orange 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(242, 101, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0); }
}

/* Fix wrapper overflow breaking fixed header */
.wrapper {
  overflow: visible !important;
}

/* Glassmorphism Frosted Glass Desktop Header (Translucent Blur Effect) */
.header,
#header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(232, 226, 220, 0.7) !important;
  box-shadow: 0 6px 25px rgba(37, 28, 23, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.is-scrolled,
#header.is-scrolled {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  box-shadow: 0 10px 35px rgba(37, 28, 23, 0.12) !important;
  border-bottom: 1px solid rgba(75, 123, 69, 0.3) !important;
}

.nav-wrap {
  background: transparent !important;
  padding: 16px 0 !important;
  transition: all 0.3s ease;
}

.header.is-scrolled .nav-wrap {
  padding: 10px 0 !important;
}

.top-bar-section {
  background: var(--dark-espresso) !important;
  color: #ffffff !important;
  padding: 6px 0 !important;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.top-bar-section,
.top-contact,
.top-contact a,
.top-contact b {
  color: #ffffff !important;
}

.top-contact a:hover {
  color: var(--accent-orange) !important;
}

.top-contact i {
  color: var(--accent-orange) !important;
}

.header.is-scrolled .top-bar-section {
  max-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  border-bottom: none;
}

.nav-wrap {
  padding: 14px 0 !important;
  transition: all 0.3s ease;
}

.header.is-scrolled .nav-wrap {
  padding: 10px 0 !important;
}

@media (min-width: 992px) {
  .header-logo-img,
  .logo img,
  .logo-box img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 220px !important;
  }

  .navigation > ul > li > a {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    color: var(--brand-brown) !important;
  }
}

.logo img {
  max-height: 38px !important;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.header.is-scrolled .logo img {
  max-height: 32px !important;
}

.navigation > ul > li {
  position: relative;
  display: inline-block;
  margin: 0 2px;
}

.navigation > ul > li > a {
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: var(--brand-brown) !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  text-transform: capitalize !important;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.navigation > ul > li:hover > a,
.navigation > ul > li.active > a {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.navigation .sub-nav {
  background: var(--bg-card) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border-color) !important;
  padding: 10px !important;
  min-width: 220px;
}

.navigation .sub-nav li a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navigation .sub-nav li a:hover {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
  padding-left: 18px !important;
}

/* Logo Color Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 101, 34, 0.45);
  color: #ffffff !important;
}

.btn-modern-green {
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(75, 123, 69, 0.3);
}

.btn-modern-green:hover {
  box-shadow: 0 8px 25px rgba(75, 123, 69, 0.45);
}

.btn-modern-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-modern-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-modern-brown {
  background: var(--brand-brown);
  color: #ffffff !important;
}

.btn-modern-brown:hover {
  background: var(--brand-brown-dark);
}

/* Hero & Intro Sections Base Padding */
.hero-split-modern {
  padding: 175px 0 85px 0;
}

.inner-intro-section {
  padding: 155px 0 60px 0;
}

/* Hero Section Features */
.hero-feature-bar {
  margin-top: -60px;
  position: relative;
  z-index: 30;
  margin-bottom: 60px;
}

.feature-box-modern {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-box-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(75, 123, 69, 0.22);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.feature-box-modern:hover .feature-icon-wrapper {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: scale(1.08) rotate(-3deg);
}

.feature-box-modern h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--brand-brown);
}

.feature-box-modern p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Modern Section Headers */
.modern-section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.modern-subtitle {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.modern-section-title h2 {
  font-size: 32px;
  color: var(--brand-brown);
  margin-bottom: 14px;
}

.modern-section-title p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Modern Card Styling */
.modern-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.modern-card-body {
  padding: 24px;
}

/* Page Inner Banners & Hero - Clearance for Fixed Header */
.main-banner {
  margin-top: 88px;
}

.inner-intro-section,
.inner-intro {
  background: linear-gradient(135deg, #251c17 0%, #364e32 100%) !important;
  position: relative !important;
  height: auto !important;
  min-height: 280px !important;
  padding-top: 165px !important;
  padding-bottom: 50px !important;
  margin-top: 0 !important;
  display: block !important;
  color: #ffffff !important;
  overflow: hidden;
}

.inner-intro-section .container,
.inner-intro .container {
  display: block !important;
  height: auto !important;
  position: relative !important;
  z-index: 2;
}

.inner-intro-section .title,
.inner-intro .title,
.inner-intro .container .title,
.page-title {
  display: block !important;
  vertical-align: baseline !important;
  text-align: center !important;
}

.inner-intro-section::before,
.inner-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.page-title h1,
.inner-intro-section h1,
.inner-intro h1,
.inner-intro h2,
.inner-intro .title h1,
.inner-intro .title h2 {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  display: block !important;
  line-height: 1.3 !important;
}

.page-breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px;
}

.page-breadcrumb a {
  color: #d1c7c2 !important;
}

.page-breadcrumb a:hover {
  color: var(--accent-orange) !important;
}

.page-breadcrumb .active,
.page-breadcrumb span {
  color: #a8d2a3 !important;
  font-weight: 600;
}

/* Custom Modern Forms */
.modern-form-group {
  margin-bottom: 20px;
}

.modern-form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-brown);
  margin-bottom: 8px;
  display: block;
}

.modern-input {
  width: 100% !important;
  height: 44px !important;
  padding: 10px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-primary) !important;
  font-size: 13.5px !important;
  color: var(--text-main) !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.modern-input:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(75, 123, 69, 0.18) !important;
}

/* Custom Dropdown Chevron for select elements */
select.modern-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d4527' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 36px !important;
  cursor: pointer !important;
}

/* Doctor Profile */
.doctor-profile-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.doctor-avatar {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.doctor-avatar img {
  width: 100%;
  object-fit: cover;
}

.badge-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
}

.badge-tag-orange {
  background: var(--accent-orange-light);
  color: var(--accent-orange-hover);
}

/* Footer Modern Balanced Spacing */
.footer {
  background: var(--dark-espresso) !important;
  color: #c4b9b3;
  padding-top: 48px !important;
  padding-bottom: 0 !important;
  position: relative;
  font-size: 13px;
}

.footer h5 {
  color: #ffffff !important;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  position: relative;
}

.footer h5::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--orange-gradient);
  border-radius: 2px;
  margin-top: 6px;
}

.footer address, .footer p {
  color: #c4b9b3;
  line-height: 1.6;
}

.footer-info {
  margin-bottom: 30px !important;
}

.footer .opening p {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
}

.footer .opening span {
  color: var(--accent-orange);
  font-weight: 600;
}

.social-icons-modern {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icons-modern a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons-modern a:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
  color: #ffffff;
}

.copyright {
  background: rgba(0, 0, 0, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #998d86;
}

.copyright a {
  color: #e6dfdb;
}

.copyright a:hover {
  color: var(--accent-orange);
}

/* Accordions Modernization */
.modern-accordion .panel {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.modern-accordion .panel-heading {
  background: #ffffff !important;
  padding: 0 !important;
}

.modern-accordion .panel-title a {
  display: block;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--brand-brown);
  text-decoration: none;
  transition: var(--transition);
}

.modern-accordion .panel-title a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Gallery Grid Modernization */
.gallery-grid-modern {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .gallery-grid-modern {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .gallery-grid-modern {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .gallery-grid-modern {
    grid-template-columns: 1fr !important;
  }
}

.gallery-item-modern {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background: var(--dark-espresso);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 220px;
}

.gallery-item-modern a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

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

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

.gallery-item-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(75, 123, 69, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
}

/* Fancybox Modern Popup Controls (Prev, Next, Close, Overlay) */
/* Fancybox Modern Popup Controls (Prev, Next, Close, Overlay) */
.fancybox-overlay {
  background: rgba(18, 12, 10, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999 !important;
}

.fancybox-wrap {
  z-index: 100000 !important;
}

.fancybox-skin {
  background: #ffffff !important;
  border-radius: var(--radius-md) !important;
  padding: 10px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

/* Disable legacy style.css pseudo-element line drawings on Fancybox */
.fancybox-prev span:before,
.fancybox-next span:before,
.fancybox-nav span:after,
.fancybox-close:before,
.fancybox-close:after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Strip ALL legacy PNG sprite background images */
.fancybox-close,
.fancybox-nav span,
.fancybox-prev span,
.fancybox-next span,
a.fancybox-close,
a.fancybox-nav span,
a.fancybox-prev span,
a.fancybox-next span {
  background-image: none !important;
  background: none !important;
}

/* Close Button - Crisp Circular Sunset Orange Button */
a.fancybox-close {
  top: -16px !important;
  right: -16px !important;
  width: 36px !important;
  height: 36px !important;
  background-color: #f26522 !important;
  background-image: none !important;
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(242, 101, 34, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  z-index: 100010 !important;
}

a.fancybox-close::before {
  content: "✕" !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  line-height: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  transform: none !important;
}

a.fancybox-close:hover {
  background-color: #e05310 !important;
  transform: scale(1.1);
}

/* Prev and Next Nav Buttons */
.fancybox-nav {
  width: 25% !important;
}

.fancybox-nav span,
.fancybox-prev span,
.fancybox-next span {
  visibility: visible !important;
  width: 48px !important;
  height: 48px !important;
  background-color: rgba(37, 28, 23, 0.88) !important;
  background-image: none !important;
  backdrop-filter: blur(4px);
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: -24px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s ease !important;
}

.fancybox-prev span {
  left: 20px !important;
}

.fancybox-next span {
  right: 20px !important;
}

.fancybox-prev span::before {
  content: "❮" !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  line-height: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  transform: none !important;
  margin-right: 2px;
}

.fancybox-next span::before {
  content: "❯" !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: bold !important;
  color: #ffffff !important;
  line-height: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  transform: none !important;
  margin-left: 2px;
}

/* High-Contrast Footer Styling */
.footer {
  background: linear-gradient(135deg, #1f1612 0%, #354e31 100%) !important;
  color: #ffffff !important;
  position: relative !important;
  z-index: 100 !important;
  clear: both !important;
  width: 100% !important;
  display: block !important;
}

.footer h5 {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.footer a {
  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--accent-orange) !important;
}

/* Header Flexbox Architecture */
.header-flex-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  position: relative !important;
}

.logo-box {
  display: flex !important;
  align-items: center !important;
}

.header-logo-img,
.logo img,
.logo-box img,
.footer img[src*="logo.png"],
.footer-info img[src*="logo.png"],
img[src*="logo.png"] {
  height: 38px !important;
  max-height: 38px !important;
  min-height: 0 !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.menu-box {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

/* Hamburger Menu Button */
.menu-btn,
button#menu,
.menu,
#menu {
  display: none;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 28px !important;
  height: 20px !important;
  position: relative !important;
  border-top: 3px solid var(--accent-orange) !important;
  border-bottom: 3px solid var(--accent-orange) !important;
  outline: none !important;
  z-index: 100000 !important;
}

.menu-btn:after,
button#menu:after,
.menu:after,
#menu:after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: auto !important;
  height: 3px !important;
  background: var(--accent-orange) !important;
  width: 100% !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES (Screens <= 991px)
   ========================================================================== */

@media (max-width: 991px) {
  /* Hide noisy top contact bar on all mobile & tablet devices */
  #top-bar,
  .top-bar-section {
    display: none !important;
  }

  /* Permanently Fixed & Rock-Solid Sticky Mobile Header Bar (Spacious 76px Height) */
  #header,
  .header,
  .header-1,
  .nav-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 76px !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 25px rgba(37, 28, 23, 0.12) !important;
    margin: 0 !important;
    transform: translate3d(0,0,0) !important;
    -webkit-transform: translate3d(0,0,0) !important;
  }

  .nav-wrap {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-flex-container {
    height: 76px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header-logo-img,
  .logo-box img {
    height: 46px !important;
    max-height: 46px !important;
    max-width: 210px !important;
  }

  /* Increased Size & Crisp Touch Target for Mobile Hamburger Button */
  .menu-btn,
  button#menu,
  .menu,
  #menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 32px !important;
    height: 24px !important;
    border-top: 3px solid var(--accent-orange) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
    margin: 0 !important;
  }

  /* Mobile Navigation Slide-Down Drawer (Full Viewport Width) */
  nav.navigation,
  .navigation {
    display: none; /* Allow jQuery slideToggle() to control visibility */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(37, 28, 23, 0.22) !important;
    border-top: 3px solid var(--primary) !important;
    border-bottom: 3px solid var(--accent-orange) !important;
    padding: 16px 20px !important;
    z-index: 999999 !important;
    float: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
  }

  .navigation > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
  }

  .navigation > ul > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  .navigation > ul > li:last-child {
    border-bottom: none !important;
  }

  .navigation > ul > li > a {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: var(--brand-brown) !important;
    border-radius: var(--radius-sm) !important;
    text-align: left !important;
    background: transparent !important;
  }

  .navigation > ul > li:hover > a,
  .navigation > ul > li.active > a {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
  }

  /* Mobile Sub-Menu Dropdown Drawer Styling */
  .navigation .sub-nav {
    display: none;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fdfaf7 !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: var(--radius-sm) !important;
    float: none !important;
    list-style: none !important;
  }

  .navigation > ul > li.on > .sub-nav {
    display: block !important;
    padding: 4px 0 !important;
    margin: 6px 0 10px 0 !important;
  }

  .navigation .sub-nav li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  }

  .navigation .sub-nav li:last-child {
    border-bottom: none !important;
  }

  .navigation .sub-nav li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--brand-brown) !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .navigation .sub-nav li a:hover,
  .navigation .sub-nav li.active a {
    background: rgba(75, 123, 69, 0.1) !important;
    color: var(--primary) !important;
    padding-left: 18px !important;
  }

  .navigation .sub-nav li a i {
    color: var(--accent-orange) !important;
    margin-right: 8px !important;
    font-size: 14px !important;
  }

  /* Hero & Inner Page Sections Mobile Responsive Clearance */
  .hero-split-modern {
    padding-top: 145px !important;
    padding-bottom: 40px !important;
  }

  .inner-intro-section {
    padding-top: 145px !important;
    padding-bottom: 40px !important;
  }

  .hero-split-modern .row {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-split-modern .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-card-modern-container {
    margin-top: 25px !important;
  }

  .hero-card-modern {
    max-width: 100% !important;
  }

  .hero-split-modern h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .hero-split-modern p {
    font-size: 14px !important;
  }

  /* Counter Stats on Mobile */
  .stats-flex-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: space-around !important;
  }

  .stat-item-modern {
    min-width: 28% !important;
    text-align: center !important;
  }

  .stat-number-modern {
    font-size: 20px !important;
  }

  .modern-section-title h2 {
    font-size: 24px !important;
  }

  .page-title h1 {
    font-size: 24px !important;
  }

  /* Prevent horizontal margin bleed and container overflow on mobile */
  .row,
  .row[style*="display: flex"],
  .row[style*="display:flex"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Prevent floating badges from overflowing container right edge */
  div[style*="right: -20px"],
  div[style*="right:-20px"],
  div[style*="right: -30px"],
  div[style*="right:-30px"] {
    right: 10px !important;
    bottom: 10px !important;
  }

  /* Explicit Header & Footer Logo Locks (Prevents Giant Logo Stretch) */
  .header-logo-img,
  .logo img,
  .logo-box img,
  .footer img[src*="logo.png"],
  .footer-info img[src*="logo.png"],
  img[src*="logo.png"] {
    height: 36px !important;
    max-height: 36px !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Doctor Avatar & Small Badge Images Exception */
  .doctor-avatar,
  .avatar-img,
  img.doctor-avatar,
  img[src*="doctor1.jpg"] {
    width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Global Facility & Doctor Image Aspect Ratio (Excludes Logos & Avatars) */
  img:not([src*="logo.png"]):not(.doctor-avatar):not([src*="doctor1.jpg"]) {
    max-width: 100% !important;
    height: auto !important;
  }

  div[style*="position: relative"] img:not([src*="logo.png"]):not(.doctor-avatar):not([src*="doctor1.jpg"]),
  .col-md-6 img:not([src*="logo.png"]):not(.doctor-avatar):not([src*="doctor1.jpg"]),
  .col-md-4 img:not([src*="logo.png"]):not(.doctor-avatar):not([src*="doctor1.jpg"]) {
    width: 100% !important;
    height: auto !important;
    min-height: 220px !important;
    object-fit: cover !important;
  }

  /* Force ALL grid columns & feature cards to span 100% FULL WIDTH on Mobile/Tablet */
  .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-feature-bar .row,
  .hero-feature-bar div[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .feature-box-modern {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 18px !important;
  }

  .modern-card-body,
  div[style*="padding: 35px"],
  div[style*="padding: 30px"],
  div[style*="padding: 26px"] {
    padding: 20px !important;
  }

  /* Force stack all custom flex rows on mobile */
  .row[style*="display: flex"],
  .row[style*="display:flex"] {
    flex-direction: column !important;
  }

  /* Reset sticky positioning on tablets & mobile */
  div[style*="position: sticky"],
  div[style*="position:sticky"] {
    position: relative !important;
    top: 0 !important;
  }

  /* Images & Maps Fluidity */
  img, iframe {
    max-width: 100% !important;
  }

  /* Footer Responsiveness */
  .footer-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }

  .footer-info .col-md-4 {
    width: 100% !important;
    margin-bottom: 0 !important;
  }
}

/* Global Mobile Anti-Overflow Base */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}


