/* ==========================================================================
   HOSPITAL PORTAL - ENTERPRISE DESIGN SYSTEM (WHITE THEME)
   Modern, Clean, Clinical, Glassmorphism, Micro-animations, Responsive
   ========================================================================== */

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

:root {
  /* White Theme Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%);
  --primary-sheen: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --teal-dark: #0f766e;

  --navy: #0f172a;
  --navy-light: #1e293b;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-focus: #38bdf8;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px -2px rgba(15, 23, 42, 0.07), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 50px -6px rgba(15, 23, 42, 0.14);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
  --topbar-height: 42px;
}

[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-subtle: #1e293b;
  --bg-muted: #334155;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1f2937;
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

h1 { font-size: 2.75rem; letter-spacing: -0.025em; }
h2 { font-size: 2.15rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

/* ==========================================================================
   UTILITY CLASSES & BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
  background: var(--primary-sheen);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

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

.btn-teal {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-emergency {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  animation: pulse-soft 2s infinite;
}

.btn-emergency:hover {
  background: #b91c1c;
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-light); color: var(--primary-hover); }
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-info { background: var(--info-bg); color: #1d4ed8; }

.section-padding {
  padding: 5rem 0;
}

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

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  margin-bottom: 1rem;
}

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

/* Glassmorphism card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #00897b 0%, #009688 50%, #00a896 100%);
  color: #ffffff;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
}

/* White Pill for Emergency & Trauma Care (Left Side) */
.topbar-emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.topbar-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00897b;
  font-size: 1rem;
}

.topbar-pill-label {
  color: #0f172a;
  font-weight: 700;
}

.topbar-pill-number {
  color: #dc2626;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topbar-pill-number:hover {
  text-decoration: underline;
}

/* White Button for Request A Callback (Right Side) */
.topbar-callback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  color: #00897b;
  border: none;
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.topbar-callback-btn:hover {
  background: #f8fafc;
  color: #00695c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.topbar-callback-icon {
  color: #00897b;
  font-size: 1rem;
}

.main-header {
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 1.65rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1e293b;
  padding: 0 0.15rem;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.25rem;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

[data-theme="dark"] .nav-link {
  color: #f1f5f9;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Dropdown Arrow / Chevron strictly on the right side */
.dropdown-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.nav-item:hover .dropdown-chevron,
.nav-item:focus-within .dropdown-chevron,
.nav-item.dropdown-open .dropdown-chevron {
  transform: rotate(180deg);
  stroke: var(--teal);
}

/* Dropdown Card */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  min-width: 250px;
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 1000;
}

.nav-dropdown.nav-dropdown-right {
  left: auto;
  right: 0;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-highlight {
  color: var(--primary) !important;
  font-weight: 700;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.35rem 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-toggle-btn, .theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-toggle-btn:hover, .theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.portal-login-btn {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   HERO BANNER & HOME HIGHLIGHTS
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  padding: 4.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bae6fd;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--primary-hover);
  font-weight: 800;
  line-height: 1;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float-gentle 4s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  bottom: -20px;
  left: -20px;
}

.hero-floating-card.card-2 {
  top: 30px;
  right: -20px;
  animation-delay: 2s;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
}

.float-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.float-icon.blue { background: linear-gradient(135deg, #0284c7, #2563eb); }

/* Quick Services / Floating strip */
.quick-features-bar {
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

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

.feature-box:nth-child(2) .feature-icon-box {
  background: var(--teal-light);
  color: var(--teal);
}

.feature-box:nth-child(3) .feature-icon-box {
  background: var(--warning-bg);
  color: var(--warning);
}

.feature-box:nth-child(4) .feature-icon-box {
  background: var(--danger-bg);
  color: var(--danger);
}

.feature-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   DEPARTMENT & SERVICES CARDS
   ========================================================================== */
.dept-grid, .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

.dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.dept-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.dept-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.dept-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dept-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.dept-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.dept-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.dept-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.dept-doctor-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   DOCTORS SECTION & CARDS
   ========================================================================== */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 1200px) {
  .doctor-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.doctor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 150, 136, 0.4);
}

.doctor-image-wrap {
  position: relative;
  background: #f1f5f9;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

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

/* Navy Ribbon directly below doctor image with white text */
.doctor-name-bar {
  background: #19273c;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.doctor-name-bar .doctor-name-text {
  color: #ffffff;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doctor-card-body {
  padding: 1.25rem 1.15rem 1.35rem 1.15rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #1e293b;
}

.doctor-info-icon {
  width: 18px;
  height: 18px;
  color: #009688;
  flex-shrink: 0;
  margin-top: 1px;
}

.doctor-specialty {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.93rem;
}

.doctor-experience {
  font-weight: 500;
  color: #475569;
  font-size: 0.88rem;
}

/* Pushpanjali style teal outline View Profile button */
.doctor-view-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid #009688;
  border-radius: 8px;
  background: #ffffff;
  color: #009688;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.doctor-view-btn:hover {
  background: #009688;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 150, 136, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   HEALTH PACKAGES
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.package-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 1rem 0;
}

.package-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.package-tests-list {
  margin: 1.5rem 0;
  flex-grow: 1;
}

.package-tests-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   BLOGS & TESTIMONIALS
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.blog-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

.blog-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   HEALTH & WELLNESS BLOGS (User Reference Carousel Style)
   ========================================================================== */
.health-wellness-blogs-section {
  background: #edf0f5;
  padding: 4.5rem 0;
  position: relative;
}

[data-theme="dark"] .health-wellness-blogs-section {
  background: #0f172a;
}

.blogs-carousel-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.blogs-carousel-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #0b325b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

[data-theme="dark"] .blogs-carousel-title {
  color: #f1f5f9;
}

.blogs-slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.blog-nav-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: #7b8b98;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 2.5rem;
  line-height: 1;
}

.blog-nav-arrow:hover {
  color: #0b325b;
  transform: scale(1.15);
}

[data-theme="dark"] .blog-nav-arrow:hover {
  color: #38bdf8;
}

.blogs-track-scroll-area {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  width: 100%;
}

.blogs-track-scroll-area::-webkit-scrollbar {
  display: none;
}

.blog-slate-card {
  flex: 0 0 calc(33.333% - 1.2rem);
  min-width: 290px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-slate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(10, 37, 64, 0.12);
}

.blog-slate-img-wrap {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.blog-slate-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b325b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-slate-content {
  background: #c8d5e2;
  padding: 1.35rem 1.4rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

[data-theme="dark"] .blog-slate-content {
  background: #1e293b;
}

.blog-slate-title {
  color: #0b325b;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem;
}

[data-theme="dark"] .blog-slate-title {
  color: #f8fafc;
}

.blog-slate-excerpt {
  color: #2b4c6f;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 1.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

[data-theme="dark"] .blog-slate-excerpt {
  color: #94a3b8;
}

.blog-slate-btn-wrap {
  text-align: center;
}

.blog-read-more-btn {
  display: inline-block;
  background: #788896;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-read-more-btn:hover {
  background: #586877;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.blogs-carousel-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.blogs-view-all-link {
  color: #334155;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

[data-theme="dark"] .blogs-view-all-link {
  color: #cbd5e1;
}

.blogs-view-all-link:hover {
  color: var(--teal);
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .blog-slate-card {
    flex: 0 0 calc(50% - 0.9rem);
  }
}

@media (max-width: 640px) {
  .blog-slate-card {
    flex: 0 0 100%;
  }
  .blog-nav-arrow {
    font-size: 1.9rem;
  }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

/* ==========================================================================
   FAQ ACCORDION COMPONENT (Pill-Capsule Design)
   ========================================================================== */
.faq-accordion-section {
  background: #edf6fa;
  position: relative;
  border-top: 1px solid rgba(2, 132, 199, 0.08);
}

[data-theme="dark"] .faq-accordion-section {
  background: var(--bg-body);
}

.faq-wrapper {
  max-width: 1040px;
  margin: 0 auto;
}

.faq-header-clean {
  text-align: left;
  margin-bottom: 2.25rem;
}

.faq-header-clean .faq-title-main {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0a2540;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

[data-theme="dark"] .faq-header-clean .faq-title-main {
  color: #f1f5f9;
}

.faq-header-clean .faq-desc-main {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
  max-width: 860px;
}

[data-theme="dark"] .faq-header-clean .faq-desc-main {
  color: #94a3b8;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #d0e4ee;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .faq-accordion-item {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

.faq-accordion-item:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.faq-accordion-item.active {
  border-radius: 28px;
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}

.faq-question-btn {
  width: 100%;
  padding: 1.15rem 1.85rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: #0a2540;
  line-height: 1.4;
  transition: color 0.15s ease;
  user-select: none;
}

[data-theme="dark"] .faq-question-btn {
  color: #f8fafc;
}

.faq-question-btn:hover {
  color: var(--teal);
}

.faq-circle-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  stroke: #0284c7;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.faq-accordion-item.active .faq-circle-icon {
  transform: rotate(45deg);
  stroke: var(--teal);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 2rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

[data-theme="dark"] .faq-answer-pane {
  color: #cbd5e1;
}

.faq-accordion-item.active .faq-answer-pane {
  max-height: 450px;
  padding: 0 2rem 1.4rem 2rem;
}

.faq-help-card {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px dashed #0284c7;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .faq-help-card {
  background: var(--bg-surface);
}

/* ==========================================================================
   GLOBAL SEARCH & MODAL OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-normal);
  padding: 2.25rem;
  position: relative;
}

.modal-dialog.modal-lg {
  max-width: 850px;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Global search modal */
.search-modal-dialog {
  max-width: 700px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  font-size: 1.15rem;
  outline: none;
  background: var(--bg-surface);
}

.search-icon-inside {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.25rem;
}

.search-results-list {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--primary-light);
}

/* ==========================================================================
   WHATSAPP & EMERGENCY FLOATING WIDGETS
   ========================================================================== */
.floating-widgets {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.08);
}

.whatsapp-float-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.emergency-float-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  animation: pulse-ring 2s infinite;
}

/* Tooltips */
.float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp Chat Box popup */
.whatsapp-chat-box {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 340px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 1500;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.whatsapp-chat-box.open {
  display: flex;
  animation: slide-up 0.25s ease-out;
}

.wa-header {
  background: #075e54;
  color: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #075e54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wa-body {
  padding: 1.25rem;
  background: #efeae2;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wa-message-bubble {
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  font-size: 0.88rem;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  line-height: 1.4;
}

.wa-footer {
  padding: 0.85rem;
  background: #f0f2f5;
  display: flex;
  gap: 0.5rem;
}

.wa-input {
  flex-grow: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid #d1d5db;
  outline: none;
  font-size: 0.85rem;
}

.wa-send-btn {
  background: #25d366;
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 4.5rem 0 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-links-list a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.newsletter-box {
  margin-top: 1rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
  flex-grow: 1;
  outline: none;
}

.newsletter-input:focus {
  border-color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.02); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
/* Desktop-only hidden */
.mobile-drawer-footer {
  display: none !important;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .quick-features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  /* Hamburger Toggle Button */
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 1.35rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:active {
    background: var(--bg-subtle);
    color: var(--teal);
    border-color: var(--teal);
  }

  /* Lock body scrolling when mobile navigation drawer is active */
  body.mobile-menu-open {
    overflow: hidden !important;
  }

  /* Mobile Navigation Drawer Overlay */
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex !important;
    position: fixed !important;
    top: var(--header-height, 68px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: calc(100vh - var(--header-height, 68px)) !important;
    background: var(--bg-surface) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 1rem 1.25rem 6.5rem 1.25rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1400 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
    animation: mobileMenuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    gap: 0 !important;
  }

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

  /* Nav Items in Mobile Drawer */
  .nav-links.mobile-open .nav-item {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: static !important;
    padding: 0 !important;
  }

  .nav-links.mobile-open .nav-link {
    width: 100% !important;
    height: auto !important;
    padding: 0.95rem 0.5rem !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav-links.mobile-open .nav-link:active,
  .nav-links.mobile-open .nav-link:hover {
    background: var(--bg-subtle);
    color: var(--teal);
  }

  .nav-links.mobile-open .dropdown-chevron {
    width: 16px !important;
    height: 16px !important;
    margin-left: auto !important;
    stroke-width: 2.4 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .nav-links.mobile-open .nav-item.mobile-dropdown-open .dropdown-chevron {
    transform: rotate(180deg) !important;
    stroke: var(--teal) !important;
  }

  /* Mobile Dropdown Submenu Accordion */
  .nav-links.mobile-open .nav-dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--teal) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-subtle) !important;
    padding: 0.4rem 0.5rem !important;
    margin: 0.2rem 0 0.8rem 0.5rem !important;
    display: none !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .nav-links.mobile-open .nav-item.mobile-dropdown-open .nav-dropdown {
    display: flex !important;
    flex-direction: column !important;
    animation: fadeInSubmenu 0.2s ease forwards;
  }

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

  .nav-links.mobile-open .dropdown-link {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.92rem !important;
    color: var(--text-body) !important;
    white-space: normal !important;
    border-radius: var(--radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.15) !important;
  }

  .nav-links.mobile-open .dropdown-link:last-child {
    border-bottom: none !important;
  }

  .nav-links.mobile-open .dropdown-link:hover,
  .nav-links.mobile-open .dropdown-link:active {
    background: rgba(2, 132, 199, 0.08) !important;
    color: var(--primary) !important;
    transform: translateX(4px) !important;
  }

  /* Mobile Drawer Footer Actions */
  .mobile-drawer-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 2px dashed var(--border-color) !important;
  }

  .mobile-drawer-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  .mobile-drawer-portals {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 0.25rem !important;
  }

  .mobile-portal-badge {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 0.25rem !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.15s ease !important;
  }

  .mobile-portal-badge:hover,
  .mobile-portal-badge:active {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }
}

@media (max-width: 560px) {
  .brand-text h1 { font-size: 1.15rem; }
  .brand-text span { font-size: 0.62rem; }
  .brand-icon-box { width: 36px; height: 36px; font-size: 1.2rem; }
  .nav-actions { gap: 0.45rem; }
  .nav-actions .btn-primary { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
  .theme-toggle-btn { width: 36px; height: 36px; }
  .mobile-menu-btn { width: 38px; height: 38px; font-size: 1.25rem; }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 850px) {
  body {
    padding-bottom: 74px !important;
  }

  .floating-widgets {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #19273c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.25rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #cbd5e1;
    padding: 0.25rem 0.15rem;
    transition: color 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
  }

  .mobile-bottom-item:hover,
  .mobile-bottom-item.active {
    color: #38bdf8;
  }

  .mobile-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    color: currentColor;
  }

  .mobile-bottom-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -0.01em;
  }

  /* Center Prominent Elevated Circular Button */
  .mobile-bottom-item.mobile-bottom-cta {
    position: relative;
    top: -10px;
    flex: 1.2;
  }

  .mobile-cta-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #243c68;
    border: 3px solid #19273c;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  }

  .mobile-bottom-item.mobile-bottom-cta:hover .mobile-cta-circle,
  .mobile-bottom-item.mobile-bottom-cta:active .mobile-cta-circle {
    transform: scale(1.08);
    background: #0284c7;
  }

  .mobile-bottom-item.mobile-bottom-cta .mobile-bottom-label {
    color: #00d2d3;
    font-weight: 700;
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.1;
    margin-top: 3px;
    white-space: nowrap;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .top-bar { display: none; }
  .hero-title { font-size: 2.35rem; }
  .quick-features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
