:root {
  --primary: #008744;
  --primary-dark: #006332;
  --primary-light: #e8f8ef;
  --primary-glow: rgba(0, 135, 68, 0.15);
  --secondary: #0284c7;
  --secondary-light: #e0f2fe;
  --dark: #0f172a;
  
  /* Semantic Tokens for Light Mode */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #008744;
  --hero-bg: linear-gradient(180deg, #e8f8ef 0%, #ffffff 100%);
  --header-bg: #ffffff;
  --banner-bg: #e8f8ef;
  --banner-border: #bbf7d0;
  --banner-text: #166534;
  --table-header-bg: #f1f5f9;
  --table-stripe-bg: #f8fafc;
  --white: #ffffff;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 30px -10px rgba(0, 135, 68, 0.18);
}

/* Explicit Dark Theme Tokens */
[data-theme="dark"] {
  --dark: #f8fafc;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --bg-main: #0b1120;
  --bg-surface: #1e293b;
  --bg-surface-subtle: #0f172a;
  --border: #334155;
  --border-focus: #22c55e;
  --hero-bg: linear-gradient(180deg, #064e3b 0%, #0b1120 100%);
  --header-bg: #0f172a;
  --banner-bg: #064e3b;
  --banner-border: #059669;
  --banner-text: #dcfce7;
  --primary-light: rgba(0, 135, 68, 0.25);
  --primary-glow: rgba(34, 197, 94, 0.2);
  --table-header-bg: #0f172a;
  --table-stripe-bg: #162032;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 30px -10px rgba(34, 197, 94, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dark: #f8fafc;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --bg-main: #0b1120;
    --bg-surface: #1e293b;
    --bg-surface-subtle: #0f172a;
    --border: #334155;
    --border-focus: #22c55e;
    --hero-bg: linear-gradient(180deg, #064e3b 0%, #0b1120 100%);
    --header-bg: #0f172a;
    --banner-bg: #064e3b;
    --banner-border: #059669;
    --banner-text: #dcfce7;
    --primary-light: rgba(0, 135, 68, 0.25);
    --primary-glow: rgba(34, 197, 94, 0.2);
    --table-header-bg: #0f172a;
    --table-stripe-bg: #162032;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 30px -10px rgba(34, 197, 94, 0.25);
  }
}

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

html {
  scroll-behavior: smooth;

  overflow-x: visible;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.top-bar {
  background: #020617;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-locations {
  display: flex;
  gap: 20px;
}

.top-locations strong {
  color: #e2e8f0;
}

.top-locations a {
  color: #38bdf8;
}

/* Header & Nav */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1;
}

.logo-text span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.8px;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: 0.2s ease;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Mobile Hamburger Button */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 20px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-menu-drawer {
  display: none;
  background: var(--header-bg);
  border-bottom: 2px solid var(--border);
  padding: 15px 20px 20px;
  position: absolute;
  top: 75px;
  left: 0;
  right: 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  z-index: 999;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-drawer a:last-child {
  border-bottom: none;
}

.mobile-menu-drawer a.active {
  color: var(--primary);
}

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-surface);
  min-width: 240px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 0;
  z-index: 200;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  font-size: 14px;
  color: var(--text-main);
}

.dropdown-content a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Premium Button Styles */
.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.25);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 135, 68, 0.35);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.25s ease;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-whatsapp:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}





/* Section Containers */
.section {
  padding: 60px 0;
}

.section-gray {
  background-color: var(--bg-surface-subtle);
}

.page-hero {
  background: var(--hero-bg);
  padding: 45px 0 30px;
  text-align: center;
}

.page-hero h1 {
  font-size: 34px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
}

/* 🖼️ UNPROPORTIONAL IMAGE FIX: RESPONSIVE & UNCLIPPED */
.dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  margin-bottom: 30px;
  transition: all 0.25s ease;
}

.dept-img-wrap {
  position: relative;
  background: #020617;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dept-img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.dept-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dept-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.dept-doctor {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.dept-body h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.dept-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.treatment-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.treatment-pill {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.treatment-pill.highlight {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(34, 197, 94, 0.3);
}

.dept-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Gallery Responsive Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-card-body {
  padding: 18px;
}

.gallery-card-body h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.gallery-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 25px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.review-author h4 {
  font-size: 14.5px;
  margin-bottom: 2px;
}

.review-author span {
  font-size: 12px;
  color: var(--text-dim);
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.review-branch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 10px;
}

.review-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* CTA Banner */
.cta-banner-section {
  background: linear-gradient(135deg, #006332 0%, #004d26 100%) !important;
  color: #ffffff !important;
  padding: 45px 0;
  text-align: center;
}

.cta-banner-section h2, .cta-banner-section h3 {
  color: #ffffff !important;
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-banner-section p {
  color: #dcfce7 !important;
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.cta-btn-call {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

/* Footer */
footer {
  background: #020617;
  color: #94a3b8;
  padding: 50px 0 25px;
  font-size: 14px;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  padding: 10px 14px;
  z-index: 9999;
}

.mobile-bar-inner {
  display: flex;
  gap: 10px;
}

.mobile-btn-call {
  flex: 1;
  background: var(--dark);
  color: var(--bg-main);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-btn-wa {
  flex: 1.1;
  background: #25D366;
  color: #ffffff;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   📱 COMPREHENSIVE MOBILE DEVICE OPTIMIZATIONS (TABLETS & PHONES <= 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: block; }
  .mobile-sticky-bar { display: block; }
  .top-bar { display: none; }
  
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 14.5px; }

  /* Grids collapse gracefully to single column */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  
  /* Department Cards Full View on Mobile */
  .dept-card {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }
  
  .dept-img-wrap {
    min-height: 220px;
    max-height: 280px;
    border-bottom: 1px solid var(--border);
  }
  
  .dept-img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  
  .dept-body {
    padding: 20px 16px;
  }
  
  .dept-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .dept-body p {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  
  .dept-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .dept-ctas a, .dept-ctas button {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* Symptom Self-Assessment Grid */
  .symptom-guide-box {
    padding: 20px 16px;
    margin-bottom: 30px;
  }
  .symptom-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .symptom-card {
    padding: 14px;
    gap: 12px;
  }
  .symptom-icon {
    font-size: 26px;
  }
  .symptom-content h4 {
    font-size: 15px;
  }
  .symptom-content p {
    font-size: 12.5px;
  }

  /* Doctor Team Grid */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .doctor-img-wrap {
    height: 280px !important;
  }
  .doctor-img-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* Pillar Page Hero Boxes */
  .implant-hero-box, .aligner-hero-box, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .implant-hero-box img, .aligner-hero-box img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  .step-grid, .implant-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Hero Section on Homepage */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    text-align: center;
  }
  .hero-img-wrap img {
    max-height: 250px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: var(--radius-md) !important;
  }
}

@media (max-width: 550px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text h2 { font-size: 16px; }
  .logo-text span { font-size: 9.5px; }
  .logo-img { height: 40px; }
  .page-hero h1 { font-size: 22px; }
  .cta-banner-section h2 { font-size: 22px; }
}


/* Specialist Consultation Feature Banner */
.specialist-feature-banner {
  background: #0f172a;
  color: #ffffff;
  padding: 55px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease;
}

[data-theme="dark"] .specialist-feature-banner {
  background: var(--bg-surface);
  color: var(--text-main);
}

.specialist-feature-banner h2 {
  color: #ffffff !important;
  font-size: 30px;
  margin: 10px 0 14px;
}

[data-theme="dark"] .specialist-feature-banner h2 {
  color: var(--text-main) !important;
}

.specialist-feature-banner p {
  color: #cbd5e1 !important;
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

[data-theme="dark"] .specialist-feature-banner p {
  color: var(--text-muted) !important;
}

.specialist-feature-btn-secondary {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.specialist-feature-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .specialist-feature-btn-secondary {
  color: var(--text-main) !important;
  border-color: var(--border) !important;
  background: var(--bg-surface-subtle) !important;
}

[data-theme="dark"] .specialist-feature-btn-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}


/* Hospital Highlight Banner (Theme Adaptive) */
.hospital-highlight-banner {
  background: linear-gradient(135deg, #e8f8ef 0%, #e0f2fe 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: all 0.25s ease;
}

[data-theme="dark"] .hospital-highlight-banner {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border-color: #059669;
}

.hospital-highlight-banner h3 {
  color: #008744 !important;
  margin-bottom: 6px;
  font-size: 18px;
}

[data-theme="dark"] .hospital-highlight-banner h3 {
  color: #4ade80 !important;
}

.hospital-highlight-banner p {
  color: #334155 !important;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

[data-theme="dark"] .hospital-highlight-banner p {
  color: #f1f5f9 !important;
}

@media (max-width: 768px) {
  .hospital-highlight-banner {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}


/* Trust Barometer Stats Bar */
.trust-barometer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 25px 0;
  box-shadow: var(--shadow-sm);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  padding: 10px;
}

.trust-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.trust-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* 6-Step Hospital-Grade Sterilization Protocol */
.sterilization-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.sterilization-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.sterilization-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.sterilization-content h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.sterilization-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Interactive FAQ Accordion */
.faq-grid {
  max-width: 850px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-family: var(--font-main);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  font-size: 14px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .sterilization-grid { grid-template-columns: 1fr; gap: 14px; }
}


/* Comprehensive Multi-Specialty Mega Menu */
.dropdown-mega {
  position: relative;
  display: inline-block;
}

.dropdown-mega-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -150px;
  background-color: var(--bg-surface);
  width: 680px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  z-index: 2000;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dropdown-mega:hover .dropdown-mega-content {
  display: grid;
}

.mega-column-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.mega-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.mega-menu-item:hover {
  background-color: var(--primary-light);
  transform: translateX(3px);
}

.mega-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.mega-text h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.mega-text p {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.mega-footer-banner {
  grid-column: span 2;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.mega-footer-banner a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 900px) {
  .dropdown-mega-content { display: none !important; }
}


/* ==========================================================================
   ⭐ COMPETITOR-BEATING FEATURE UPGRADES (IDA RIBBON, TECH SUITE, WIDGET, CHIPS)
   ========================================================================== */

/* 1. Official IDA Trust Ribbon */
.ida-trust-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 135, 68, 0.12) 0%, rgba(2, 132, 199, 0.12) 100%);
  border: 1px solid rgba(0, 135, 68, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 135, 68, 0.08);
}

[data-theme="dark"] .ida-trust-ribbon {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* 2. Interactive Self-Diagnosis & Treatment Matcher */
.treatment-matcher-box {
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  box-shadow: 0 15px 35px rgba(0, 135, 68, 0.12);
  margin: 30px 0 40px;
}

.matcher-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.matcher-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.matcher-symptom-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.matcher-tab-btn {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.matcher-tab-btn span.tab-icon {
  font-size: 22px;
}

.matcher-tab-btn:hover, .matcher-tab-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.25);
}

.matcher-result-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
  align-items: center;
}

.matcher-result-left h4 {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.matcher-result-left p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.matcher-meta-row {
  display: flex;
  gap: 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  flex-wrap: wrap;
}

.matcher-meta-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.matcher-result-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

/* 3. Clinical Technology & Equipment Suite */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.tech-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tech-info h4 {
  font-size: 15.5px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.tech-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 4. Quick WhatsApp Action Chips Bar */
.wa-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.wa-chip {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.wa-chip:hover {
  background: #25D366;
  color: #ffffff !important;
  border-color: #25D366;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .matcher-symptom-tabs { grid-template-columns: 1fr 1fr; }
  .matcher-result-card { grid-template-columns: 1fr; padding: 18px; }
  .tech-grid { grid-template-columns: 1fr; gap: 14px; }
  .treatment-matcher-box { padding: 20px 16px; }
}


/* Header Alignment & Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}





.lang-switcher-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  font-size: 13.5px;
  white-space: nowrap;
}

.hero {
  background: var(--hero-bg);
  padding: 40px 0 35px;
}

.page-hero {
  padding: 35px 0 25px;
}


.nav-highlight {
  color: var(--primary) !important;
  background: var(--primary-light);
  padding: 5px 10px !important;
  border-radius: 20px;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}
.nav-highlight:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* ==========================================================================
   STRICT MOBILE OVERFLOW & EMPTY SPACE ELIMINATION
   ========================================================================== */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 80px !important;
  box-sizing: border-box !important;
}

*, *:before, *:after {
  box-sizing: border-box !important;
}

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

/* Ensure all tables scroll internally without breaking page width */
.compare-table-wrap, .table-wrap, .table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: block !important;
  margin-top: 20px !important;
  border-radius: var(--radius-md) !important;
}

.compare-table {
  min-width: 500px !important;
  width: 100% !important;
}

/* Images & Media auto-contained */
img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto !important;
}

/* Mobile Media Query Rules (< 768px & < 500px) */
@media (max-width: 768px) {
  .hero-grid, 
  .branch-grid, 
  .treatment-grid-6, 
  .tech-grid-6, 
  .footer-grid, 
  .sitemap-grid, 
  .review-grid-3,
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .hero-float-badge {
    position: static !important;
    margin-top: 14px !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-image-wrapper img {
    height: 300px !important;
  }

  .hero-badges {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

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

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

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-ctas a, .hero-ctas button {
    width: 100% !important;
    justify-content: center !important;
  }

  .top-bar-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .top-locations {
    flex-direction: column !important;
    gap: 4px !important;
  }

  /* Prevent mega menu overflow on mobile */
  .dropdown-mega-content {
    display: none !important;
    width: 100% !important;
    left: 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  .badge-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 12px !important;
    background: var(--bg-surface-subtle) !important;
    border-radius: var(--radius-sm) !important;
  }
  
  .badge-item h4 {
    margin: 0 !important;
    font-size: 16px !important;
  }

  .symptom-tab-btn {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 6px !important;
  }

  .symptom-tabs {
    flex-direction: column !important;
  }
}


/* ==========================================================================
   BULLETPROOF MOBILE NAVIGATION & HAMBURGER SYSTEM
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  transition: all 0.2s ease;
  user-select: none;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-menu-drawer {
  display: none;
  background: var(--header-bg);
  border-bottom: 3px solid var(--primary);
  padding: 18px 20px 24px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  z-index: 9999;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.open {
  display: block !important;
  animation: slideDown 0.25s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu-drawer a:hover, .mobile-menu-drawer a:active {
  color: var(--primary);
  padding-left: 6px;
}

.mobile-menu-drawer a:last-child {
  border-bottom: none;
}

.mobile-menu-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Force Hamburger on all Screens <= 1024px */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    min-height: 60px !important;
    padding: 6px 0 !important;
  }
  .logo-img {
    height: 38px !important;
  }
  .logo-text h2 {
    font-size: 16px !important;
  }
  .logo-text span {
    font-size: 9px !important;
  }
  .nav-actions 
  .nav-actions .theme-toggle-btn {
    display: none !important;
  }
  .nav-actions {
    gap: 6px !important;
  }
}


/* ==========================================================================
   PERFECT MOBILE TITLE SPACING & ZERO-TRIM PADDING
   ========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding-top: 28px !important;
    padding-bottom: 35px !important;
    margin-top: 0 !important;
  }

  .page-hero {
    padding-top: 30px !important;
    padding-bottom: 25px !important;
    margin-top: 0 !important;
  }

  .hero-tag {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 12px !important;
    padding: 5px 12px !important;
    display: inline-flex !important;
    align-self: flex-start !important;
  }

  .hero h1 {
    margin-top: 4px !important;
    margin-bottom: 14px !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
    word-break: break-word !important;
  }

  .page-hero h1 {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .top-bar {
    padding: 5px 0 !important;
    font-size: 11.5px !important;
  }

  .top-bar-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 12px !important;
  }

  .top-locations {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 22px !important;
    padding-bottom: 30px !important;
  }

  .page-hero {
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }

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

  .top-bar {
    font-size: 11px !important;
  }
}


/* ==========================================================================
   ROCK-SOLID MOBILE DRAWER POSITIONING & TOUCH INTERACTION
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 24px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  z-index: 10001;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-drawer {
  display: none !important;
  background: var(--header-bg);
  border-bottom: 3px solid var(--primary);
  padding: 16px 20px 24px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  z-index: 99999;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-drawer.open {
  display: block !important;
}

.mobile-menu-drawer a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-menu-drawer a:hover, .mobile-menu-drawer a:active {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}


/* Scroll Offset for Fixed Header */
#symptom-matcher, .treatment-matcher-box, .symptom-matcher-section {
  scroll-margin-top: 90px !important;
}


/* ==========================================================================
   SLEEK MODERN LOGO & BRAND PROPORTIONS
   ========================================================================== */
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.logo-img {
  height: 38px !important;
  width: 38px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.logo:hover .logo-img {
  transform: scale(1.05) !important;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.logo-text h2 {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  color: var(--text-main) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.logo-text span {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  letter-spacing: 0.6px !important;
  line-height: 1.2 !important;
  margin-top: 1px !important;
  display: block !important;
}

@media (max-width: 600px) {
  .logo-img {
    height: 32px !important;
    width: 32px !important;
  }
  .logo-text h2 {
    font-size: 14.5px !important;
  }
  .logo-text span {
    font-size: 8.5px !important;
  }
}


/* 8-Card Super-Specialty Grid */
.treatment-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

@media (max-width: 1200px) {
  .treatment-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .treatment-grid-8 {
    grid-template-columns: 1fr !important;
  }
}

/* Dropdown Mega Menu Activation & Visual Hover Styles */
.dropdown-mega {
  position: relative;
  display: inline-block;
}

.dropdown-mega:hover .dropdown-mega-content,
.dropdown-mega:focus-within .dropdown-mega-content {
  display: grid !important;
  animation: fadeInDown 0.2s ease-out forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-mega-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -80px;
  background-color: var(--bg-surface);
  width: 620px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  z-index: 9999;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mega-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.mega-menu-item:hover {
  background: var(--primary-light) !important;
  transform: translateX(3px) !important;
}

.mega-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mega-text h5 {
  font-size: 13.5px;
  color: var(--text-main);
  margin: 0;
  font-weight: 700;
}

.mega-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.mega-footer-banner {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.mega-footer-banner a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .dropdown-mega-content {
    display: none !important;
  }
}


/* ==========================================================================
   INTERACTIVE LEAD CAPTURE & BOOKING FORM
   ========================================================================== */
.booking-card-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: var(--bg-surface);
}

.form-full-width {
  grid-column: span 2;
}

/* Affordability & Milestone Payment Card */
.affordability-card {
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 25px;
  box-shadow: var(--shadow);
}

.affordability-card h4 {
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.affordability-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-muted);
}

.affordability-card ul li {
  margin-bottom: 8px;
}

.affordability-card strong {
  color: var(--text-main);
}

/* FAQ Accordion Styles */
.faq-section {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  background: var(--bg-surface-subtle);
}

.faq-question::after {
  content: "＋";
  font-size: 18px;
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: "－";
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Timetable Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.schedule-table th, .schedule-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.schedule-table th {
  background: var(--bg-surface-subtle);
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
  .form-full-width {
    grid-column: span 1;
  }
}


#book-appointment, .booking-card-wrap {
  scroll-margin-top: 90px !important;
}


/* 4-Step Hospital Sterilization Protocol Grid */
.sterilization-protocol-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

.sterilization-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.steri-step-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.steri-step-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.steri-step-card h5 {
  font-size: 14px;
  margin: 6px 0 4px;
  color: var(--text-main);
  font-weight: 700;
}

.steri-step-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Confirmation Modal Popup */
.booking-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-modal-overlay.active {
  display: flex !important;
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.booking-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
}

@media (max-width: 768px) {
  .sterilization-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sterilization-steps-grid {
    grid-template-columns: 1fr;
  }
}


/* Fix Select Dropdowns, Form Controls & Prevent Bottom Element Overlap */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23008744' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 12px);
  background-position-y: 50%;
  padding-right: 36px !important;
  cursor: pointer;
  position: relative;
  z-index: 5;
  background-color: var(--bg-surface-subtle);
}

select.form-control option {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  padding: 10px !important;
}

.booking-card-wrap {
  position: relative;
  z-index: 10;
  margin-bottom: 40px !important;
}

.mobile-sticky-bar {
  z-index: 99 !important;
}

/* Ensure no floating elements block the form submit button */
@media (max-width: 768px) {
  .booking-card-wrap {
    padding: 20px 16px !important;
    margin-bottom: 30px !important;
  }
}


/* Emergency Dental Trauma First-Aid Box */
.trauma-emergency-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.02) 100%);
  border: 2px dashed rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 30px;
}

.trauma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.trauma-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

.trauma-card h5 {
  font-size: 14.5px;
  color: #dc2626;
  margin: 0 0 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trauma-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .trauma-grid {
    grid-template-columns: 1fr;
  }
}


/* IDA Prescribed Tariff Assurance Banner */
.ida-tariff-banner {
  background: linear-gradient(135deg, rgba(0, 135, 68, 0.08) 0%, rgba(0, 135, 68, 0.02) 100%);
  border: 1px solid rgba(0, 135, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ida-badge-circle {
  width: 54px;
  height: 54px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.25);
}

.ida-tariff-content h4 {
  font-size: 16px;
  color: var(--text-main);
  margin: 0 0 4px;
  font-weight: 700;
}

.ida-tariff-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Post-Op Recovery & Diet Accordion */
.postop-care-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 30px;
}

.postop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.postop-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.postop-dos {
  background: rgba(0, 135, 68, 0.04);
  border-left: 4px solid var(--primary);
}

.postop-donts {
  background: rgba(239, 68, 68, 0.04);
  border-left: 4px solid #ef4444;
}

.postop-card h5 {
  font-size: 14.5px;
  margin: 0 0 10px;
  font-weight: 700;
}

.postop-dos h5 { color: var(--primary); }
.postop-donts h5 { color: #dc2626; }

.postop-card ul {
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.7;
}

/* Google Maps Embed Container */
.map-embed-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
  margin-top: 15px;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .ida-tariff-banner {
    flex-direction: column;
    text-align: center;
  }
  .postop-grid {
    grid-template-columns: 1fr;
  }
}


/* Ethical IDA Pricing Section Styles */
.pricing-section-wrap {
  margin: 40px 0;
}

.pricing-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.pricing-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.pricing-pillar-card .pillar-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.pricing-pillar-card h4 {
  font-size: 15.5px;
  color: var(--text-main);
  margin: 0 0 6px;
  font-weight: 700;
}

.pricing-pillar-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Pricing Table */
.ida-fee-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.ida-fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ida-fee-table th {
  background: var(--bg-surface-subtle);
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
}

.ida-fee-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.ida-fee-table tr:last-child td {
  border-bottom: none;
}

.ida-fee-table tr:hover {
  background: var(--bg-surface-subtle);
}

.fee-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.fee-subtext {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Staged Milestone Box */
.milestone-roadmap-box {
  background: linear-gradient(135deg, rgba(0, 135, 68, 0.05) 0%, rgba(0, 135, 68, 0.01) 100%);
  border: 1px solid rgba(0, 135, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 25px;
}

.milestone-steps-flex {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.milestone-step-item {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.milestone-step-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.milestone-step-item h5 {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--text-main);
}

.milestone-step-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .pricing-pillars-grid {
    grid-template-columns: 1fr;
  }
  .milestone-steps-flex {
    flex-direction: column;
  }
  .ida-fee-table th, .ida-fee-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}


/* Pricing Anchor Scroll Margin */
#pricing-transparency {
  scroll-margin-top: 90px !important;
}


/* 100% Rock-Solid Fixed Floating Navigation Header */
.sticky-nav-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  background: var(--bg-surface) !important;
}

.sticky-nav-container .top-bar {
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sticky-nav-container header {
  position: relative !important;
  top: auto !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--header-bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Add Body Padding-Top so page content starts cleanly below the fixed header */
body {
  padding-top: 114px !important;
}

@media (max-width: 900px) {
  body {
    padding-top: 124px !important;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 128px !important;
  }
}

/* Offset Hash Anchor Targets */
#symptom-matcher, #book-appointment, #pricing-transparency, #treatments, #pricing {
  scroll-margin-top: 125px !important;
}


/* Restored High-Contrast Button System */
.btn-header {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 135, 68, 0.25) !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-header:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.35) !important;
}

.specialist-feature-banner {
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 20px;
}

.specialist-feature-btn-secondary {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.specialist-feature-btn-secondary:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-1px) !important;
}

.btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.25) !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 135, 68, 0.35) !important;
}

.btn-secondary {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: 0.25s ease !important;
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}


/* Header Logo & Navigation Spacing Refinements */
.nav-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 72px !important;
  gap: 24px !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-right: 28px !important; /* Generous breathing room after Clinic Name */
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.logo-img {
  height: 40px !important;
  width: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid rgba(0, 135, 68, 0.3) !important;
  flex-shrink: 0 !important;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.logo-text h2 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: var(--text-main) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.logo-text span {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  letter-spacing: 0.8px !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 1 !important;
}

.nav-links a {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  padding: 6px 4px !important;
  white-space: nowrap !important;
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  margin-left: 20px !important;
}

/* Switch to Hamburger Menu on screens <= 1120px to prevent any overlapping */
@media (max-width: 1120px) {
  .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
  .logo {
    margin-right: 0 !important;
  }
}


/* Prominent Standout Clinic Brand Identity */
.logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 24px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.logo-img {
  height: 44px !important;
  width: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 135, 68, 0.2) !important;
  flex-shrink: 0 !important;
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.logo-text h2 {
  font-size: 18px !important; /* Prominent & Standout */
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: var(--text-main) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.logo-text span {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
  letter-spacing: 1px !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}
