/* 
 * Sankalp Hospital Redesign Stylesheet
 * Custom Premium & Responsive Clinical Design System
 */

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

:root {
  /* Color Tokens */
  --primary: #0f5cad;        /* Rich Clinical Blue */
  --primary-dark: #0b4582;   /* Deep Blue */
  --primary-light: rgba(15, 92, 173, 0.06);
  --secondary: #00cca7;      /* Clean Medical Teal */
  --secondary-dark: #00a385; /* Dark Teal */
  --secondary-light: rgba(0, 204, 167, 0.06);
  --emergency: #e11d48;      /* Emergency Crimson */
  --emergency-light: rgba(225, 29, 72, 0.08);
  --dark: #1e293b;           /* Muted Slate Dark */
  --light-bg: #f8fafc;       /* Bright Slate Background */
  --text-dark: #0f172a;      /* Slate 900 Body Text */
  --text-muted: #64748b;     /* Slate 500 Subtexts */
  --border-color: #e2e8f0;   /* Light Slate Border */
  --white: #ffffff;
  
  /* Glassmorphism & Elevation */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 92, 173, 0.1), 0 8px 10px -6px rgba(15, 92, 173, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(15, 92, 173, 0.15);
  --shadow-premium: 0 20px 40px -15px rgba(15, 92, 173, 0.06), 0 5px 15px -5px rgba(0, 0, 0, 0.01);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Fluid Typography Scale (Mobile-first, clamp scale) */
  --fs-h1: clamp(2.2rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 4vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 3vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 2vw, 1.4rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
}

.page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* FLOATING NAVIGATION CAPSULE */
.floating-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 95%;
  height: 64px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 92, 173, 0.08);
  border-radius: 50px;
  box-shadow: 0 20px 40px -10px rgba(15, 92, 173, 0.06);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.floating-nav.scrolled {
  top: 10px;
  height: 58px;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 92, 173, 0.12);
  box-shadow: 0 20px 40px -10px rgba(15, 92, 173, 0.1);
}

.brand-logo {
  height: 38px;
  object-fit: contain;
  transition: var(--transition);
}

.floating-nav.scrolled .brand-logo {
  height: 34px;
}

.mobile-brand-logo {
  height: 40px;
  object-fit: contain;
}

.floating-nav .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 18px !important;
  border-radius: 30px;
  transition: var(--transition);
}

.floating-nav .navbar-nav .nav-link:hover,
.floating-nav .navbar-nav .nav-item.active .nav-link {
  color: var(--primary);
  background-color: rgba(15, 92, 173, 0.06);
}

.floating-nav .dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(15, 92, 173, 0.06);
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(15, 92, 173, 0.1);
  padding: 12px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  display: block;
  transition: var(--transition);
}

.floating-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-nav .dropdown-item {
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.floating-nav .dropdown-item:hover {
  background-color: rgba(15, 92, 173, 0.05);
  color: var(--primary);
}

.btn-primary-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -4px rgba(15, 92, 173, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.btn-primary-nav:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(15, 92, 173, 0.45);
  color: var(--white);
}

.btn-primary-nav:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-emergency-nav {
  background: linear-gradient(135deg, var(--emergency) 0%, #be123c 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.btn-emergency-nav:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(225, 29, 72, 0.4);
  color: var(--white);
}

.btn-emergency-nav:active {
  transform: translateY(-1px) scale(0.98);
}

.navbar-toggler {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Offset target scroll targets for the floating nav height */
:target {
  scroll-margin-top: 100px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(15, 92, 173, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(15, 92, 173, 0.45);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(0, 204, 167, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(0, 204, 167, 0.4);
  color: var(--white);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-emergency {
  background: linear-gradient(135deg, var(--emergency) 0%, #be123c 100%);
  color: var(--white);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-emergency:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(225, 29, 72, 0.45);
  color: var(--white);
}

.btn-emergency:active {
  transform: translateY(-1px) scale(0.98);
}

/* HERO SLIDER SECTION */
.hero-slider {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  padding-top: 100px;
  padding-bottom: 40px;
  overflow: hidden;
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 23, 44, 0.72) 0%, rgba(8, 23, 44, 0.45) 50%, rgba(8, 23, 44, 0.78) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-slider #heroCarousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: brightness(0.85) contrast(1.05);
}

/* Floating Booker Widget on Hero */
.hero-overlay-content {
  position: relative;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.hero-overlay-content .container {
  pointer-events: auto;
}

.hero-text-block {
  color: var(--white);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-right: 0;
  margin-bottom: 20px;
}

.hero-text-block h1 {
  font-size: var(--fs-h1);
  font-weight: 850;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-text-block h1 span {
  background: linear-gradient(135deg, var(--secondary) 20%, #00b594 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0, 204, 167, 0.15));
}

.hero-text-block p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 35px;
  opacity: 0.92;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline-light {
  border-radius: 50px !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-width: 2px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-outline-light:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(255, 255, 255, 0.15);
}

.btn-outline-light:active {
  transform: translateY(-1px) scale(0.98);
}

/* Glassmorphic Widget */
.hero-booker-widget {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 204, 167, 0.03);
  color: var(--white);
}

.hero-booker-widget h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hero-booker-widget p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 25px;
}

.widget-form .form-group {
  margin-bottom: 18px;
}

.widget-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
  color: var(--secondary);
}

.widget-form select,
.widget-form input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.widget-form select option {
  background-color: var(--dark);
  color: var(--white);
}

.widget-form select:focus,
.widget-form input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 204, 167, 0.18);
}

.widget-form .btn-submit {
  width: 100%;
  padding: 14px 28px;
  margin-top: 10px;
  border-radius: 50px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border: none;
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px rgba(0, 204, 167, 0.4);
}

.widget-form .btn-submit:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(15, 92, 173, 0.4);
}

.widget-form .btn-submit:active {
  transform: translateY(-1px) scale(0.98);
}

/* NEWS TICKER */
.news-ticker {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  position: relative;
}

.ticker-wrap {
  overflow: hidden;
}

.ticker-label {
  background-color: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  position: relative;
  height: 24px;
  overflow: hidden;
}

.ticker-content ul {
  position: absolute;
  width: 100%;
  animation: tickerSlide 12s infinite linear;
}

.ticker-content li {
  line-height: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ticker-controls button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 6px;
  cursor: pointer;
  outline: none;
}

.ticker-controls button:hover {
  color: var(--secondary);
}

@keyframes tickerSlide {
  0% { transform: translateY(0); }
  20% { transform: translateY(0); }
  25% { transform: translateY(-24px); }
  45% { transform: translateY(-24px); }
  50% { transform: translateY(-48px); }
  70% { transform: translateY(-48px); }
  75% { transform: translateY(-72px); }
  95% { transform: translateY(-72px); }
  100% { transform: translateY(0); }
}

/* STATS COUNTER SECTION (Modern Premium Theme) */
.stats-section {
  background: radial-gradient(circle at 80% 20%, rgba(0, 204, 167, 0.02) 0%, transparent 50%), 
              radial-gradient(circle at 20% 80%, rgba(15, 92, 173, 0.02) 0%, transparent 50%),
              var(--white);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 45px 30px;
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.01);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

/* Base Top Indicator Border */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: all 0.4s ease;
  z-index: 1;
}

/* Blue themed cards (Surgeries & IVF Babies) */
.stat-card.stat-surgeries::before,
.stat-card.stat-babies::before {
  background: var(--primary);
}
.stat-card.stat-surgeries .stat-icon-wrapper,
.stat-card.stat-babies .stat-icon-wrapper {
  background-color: rgba(15, 92, 173, 0.06);
  color: var(--primary);
  border-color: rgba(15, 92, 173, 0.1);
}
.stat-card.stat-surgeries .stat-number,
.stat-card.stat-babies .stat-number {
  background: linear-gradient(135deg, var(--primary) 20%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Teal themed cards (Dialysis & Specialists) */
.stat-card.stat-dialysis::before,
.stat-card.stat-specialists::before {
  background: var(--secondary-dark);
}
.stat-card.stat-dialysis .stat-icon-wrapper,
.stat-card.stat-specialists .stat-icon-wrapper {
  background-color: rgba(0, 204, 167, 0.06);
  color: var(--secondary-dark);
  border-color: rgba(0, 204, 167, 0.1);
}
.stat-card.stat-dialysis .stat-number,
.stat-card.stat-specialists .stat-number {
  background: linear-gradient(135deg, var(--secondary-dark) 20%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover States: Inversion Animation */

/* Blue Hover (Surgeries & IVF Babies) */
.stat-card.stat-surgeries:hover,
.stat-card.stat-babies:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 92, 173, 0.25);
}
.stat-card.stat-surgeries:hover .stat-icon-wrapper,
.stat-card.stat-babies:hover .stat-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05) rotate(8deg);
}
.stat-card.stat-surgeries:hover .stat-number,
.stat-card.stat-babies:hover .stat-number {
  -webkit-text-fill-color: var(--white) !important;
}
.stat-card.stat-surgeries:hover .stat-label,
.stat-card.stat-babies:hover .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* Teal Hover (Dialysis & Specialists) */
.stat-card.stat-dialysis:hover,
.stat-card.stat-specialists:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 163, 133, 0.25);
}
.stat-card.stat-dialysis:hover .stat-icon-wrapper,
.stat-card.stat-specialists:hover .stat-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05) rotate(8deg);
}
.stat-card.stat-dialysis:hover .stat-number,
.stat-card.stat-specialists:hover .stat-number {
  -webkit-text-fill-color: var(--white) !important;
}
.stat-card.stat-dialysis:hover .stat-label,
.stat-card.stat-specialists:hover .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Common Card Elements */
.stat-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid;
}

.stat-number {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 850;
  line-height: 1.1;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  letter-spacing: -0.8px;
  transition: all 0.4s ease;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.4s ease;
}

.stats-badges .badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-sm);
  background-color: var(--white) !important;
}

/* ABOUT SECTION */
.about-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background-color: var(--white);
}

.about-badge {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.about-section h2 {
  font-size: var(--fs-h2);
  margin-bottom: 25px;
}

.about-section h2 span {
  color: var(--primary);
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about-feat-item {
  display: flex;
  gap: 12px;
}

.about-feat-item i {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-top: 3px;
}

.about-feat-item h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-feat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-image-wrapper {
  position: relative;
  padding: 10px;
  margin-top: 20px;
}

.about-img-1 {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-img-experience {
  position: absolute;
  bottom: -15px;
  right: 10px;
  background-color: var(--secondary);
  color: var(--dark);
  padding: clamp(15px, 3vw, 25px);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  text-align: center;
  max-width: 140px;
}

.about-img-experience h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-img-experience p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* SPECIALTIES / DEPARTMENTS SECTION */
.specialties-section {
  background-color: var(--light-bg);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section-title span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: var(--fs-h2);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Interactive Specialty Hub */
.specialty-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  z-index: 10;
}

@media (min-width: 992px) {
  .specialty-sidebar-card {
    height: 620px;
    display: flex;
    flex-direction: column;
  }
  .specialty-nav-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
  }
  .specialty-nav-list::-webkit-scrollbar {
    width: 6px;
  }
  .specialty-nav-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
}

.specialty-nav-list {
  gap: 8px;
}

@media (min-width: 992px) {
  .specialty-sidebar-card {
    height: 620px;
    display: flex;
    flex-direction: column;
  }
  .specialty-nav-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
  }
  .specialty-nav-list::-webkit-scrollbar {
    width: 6px;
  }
  .specialty-nav-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

@media (max-width: 991px) {
  .specialty-sidebar-card {
    position: static;
    padding: 15px;
    margin-bottom: 10px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .specialty-nav-list,
  .nav.specialty-nav-list {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    display: flex !important;
    overflow: visible !important;
    gap: 8px !important;
  }
  .specialty-nav-list::-webkit-scrollbar {
    width: 5px;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
  }
}

@media (max-width: 991px) {
  .specialty-tab-btn {
    white-space: normal;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .arrow-indicator {
    display: block;
  }
}
  .specialty-nav-list {
    flex-direction: column !important;
    flex-wrap: nowrap;
  }
  .specialty-nav-list::-webkit-scrollbar {
    width: 5px;
  }
  .specialty-nav-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
  }
}

.specialty-tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  width: 100%;
}

.specialty-tab-btn:hover {
  background-color: rgba(15, 92, 173, 0.04);
  border-color: var(--primary);
  color: var(--primary);
}

.specialty-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(15, 92, 173, 0.25);
}

.btn-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon-title i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.arrow-indicator {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: var(--transition);
}

.specialty-tab-btn.active .arrow-indicator {
  transform: translateX(3px);
  opacity: 1;
}

.specialty-sub-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.specialty-tab-sm {
  flex: 1;
  min-width: 0;
  padding: 10px 8px !important;
  font-size: 0.78rem !important;
  justify-content: center !important;
}

.specialty-tab-sm .btn-icon-title {
  gap: 6px;
}

.specialty-tab-sm .btn-icon-title i {
  font-size: 0.9rem;
  width: auto;
}

@media (max-width: 991px) {
  .specialty-tab-btn {
    white-space: normal;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
  }
  .arrow-indicator {
    display: block;
  }
}

/* Specialty Detail Panels */
.specialty-details-container {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-lg);
  min-height: 100%;
}

@media (min-width: 992px) {
  .specialty-details-container {
    height: 620px;
    overflow-y: auto;
  }
  .specialty-details-container::-webkit-scrollbar {
    width: 6px;
  }
  .specialty-details-container::-webkit-scrollbar-track {
    background: transparent;
  }
  .specialty-details-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }
  .specialty-details-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

.panel-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.panel-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(15, 92, 173, 0.08);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--secondary-dark);
  display: block;
  margin-bottom: 4px;
}

.panel-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.panel-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.procedures-title, .specialists-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 30px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.procedure-list {
  padding-left: 0;
  margin-bottom: 0;
}

.procedure-list li {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.procedure-list li i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Mini Doctor Cards */
.mini-doc-card {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 250px;
  transition: var(--transition);
}

.mini-doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 92, 173, 0.2);
  box-shadow: var(--shadow-sm);
}

.mini-doc-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.mini-doc-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(15, 92, 173, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.mini-doc-card h6 {
  font-size: 0.9rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.mini-doc-card small {
  font-size: 0.75rem;
}

.btn-book-specialty {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 30px;
}

/* OUR EXPERTS / DOCTORS SECTION */
.doctors-section {
  padding: 90px 0;
  background-color: var(--white);
}

.doctors-slider-container {
  overflow: hidden;
  width: 100%;
  padding: 15px 0;
  position: relative;
}

.doctors-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.doctor-card-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.doctor-card {
  border-radius: 12px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.doctor-img-container {
  position: relative;
  background-color: #f1f5f9;
  height: 280px;
  overflow: hidden;
}

.doctor-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.doctor-socials {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 92, 173, 0.9), transparent);
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.doctor-card:hover .doctor-socials {
  bottom: 0;
}

.doctor-socials a {
  width: 32px;
  height: 32px;
  background-color: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.doctor-socials a:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

.doctor-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doc-dept {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-dark);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.doctor-info h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.doc-degrees {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.doc-btn {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  background-color: rgba(15, 92, 173, 0.05);
  color: var(--primary);
  border: 1px solid rgba(15, 92, 173, 0.1);
  margin-top: auto;
  transition: var(--transition);
}

.doctor-card:hover .doc-btn {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Custom Doctor Slider Controls */
.doc-control-prev,
.doc-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.doc-control-prev {
  left: 5px;
}

.doc-control-next {
  right: 5px;
}

.doc-control-prev:hover,
.doc-control-next:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* DYNAMIC APPOINTMENT BOOKING SECTION */
.booking-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: linear-gradient(rgba(15, 92, 173, 0.9), rgba(15, 92, 173, 0.95)), url('images/hero1.png') no-repeat center center/cover;
  color: var(--white);
  position: relative;
}

.booking-text {
  text-align: center;
  margin-bottom: 40px;
}

.booking-text h2 {
  color: var(--white);
  font-size: var(--fs-h2);
  margin-bottom: 20px;
}

.booking-text p {
  opacity: 0.9;
  margin-bottom: 30px;
  font-weight: 300;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feat-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
}

.feat-row h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feat-row p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

.booking-card-wrapper {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  padding: clamp(20px, 5%, 40px);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.booking-card-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  text-align: center;
}

.appointment-form .form-group {
  margin-bottom: 20px;
}

.appointment-form label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 92, 173, 0.12);
  background-color: rgba(248, 250, 252, 0.7);
  outline: none;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dark);
}

.appointment-form textarea {
  resize: vertical;
  height: 90px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 92, 173, 0.08), 0 4px 15px -3px rgba(15, 92, 173, 0.04);
}

.btn-book-submit {
  width: 100%;
  padding: 14px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  font-weight: 700;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(0, 204, 167, 0.4);
}

.btn-book-submit:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -4px rgba(15, 92, 173, 0.4);
}

.btn-book-submit:active {
  transform: translateY(-1px) scale(0.98);
}

/* EMPANELMENTS SECTION (Endless Scrolling Marquee) */
.empanelments-section {
  padding: 50px 0;
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.empanelments-slider {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.empanelments-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

/* Pause on hover for interaction */
.empanelments-slider:hover .empanelments-track {
  animation-play-state: paused;
}

.empanelment-logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 30px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.empanelment-logo:hover {
  transform: translateY(-2.5px);
  border-color: rgba(15, 92, 173, 0.25);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.empanelment-logo i {
  color: var(--secondary-dark);
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* TESTIMONIALS SECTION */
.testimonials-section {
  padding: 90px 0;
  background-color: var(--white);
}

.testimonial-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: 12px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-card i.quote {
  font-size: 2.2rem;
  color: rgba(15, 92, 173, 0.15);
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.testimonial-author h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-author small {
  color: var(--text-muted);
  font-weight: 500;
}

/* MAP & FAQ SECTION */
.faq-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background-color: var(--light-bg);
}

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

.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  padding: 18px 20px;
  background-color: var(--white);
  outline: none;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(15, 92, 173, 0.04);
  color: var(--primary);
}

.faq-accordion .accordion-body {
  padding: 20px;
  background-color: var(--white);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.map-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-iframe {
  height: 280px;
  width: 100%;
  border: none;
}

.map-info {
  padding: 25px;
}

.map-info h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.map-info p {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-dark);
}

.map-info p i {
  color: var(--primary);
  margin-top: 3px;
}

/* FOOTER */
.site-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 70px 0 30px;
  font-size: 0.85rem;
}

.footer-logo {
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-socials a:hover {
  background-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
}

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

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links li a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

.footer-contact li {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
  color: var(--secondary);
  margin-top: 3px;
}

.footer-contact li span {
  display: block;
}

.footer-contact li a {
  color: var(--white);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* SCROLL TOP BUTTON */
.scrollTop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(15, 92, 173, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
}

.scrollTop.show-button {
  transform: translateY(0);
  opacity: 1;
}

.scrollTop:hover {
  background-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 204, 167, 0.4);
}

/* GALLERY FACILITY CAROUSEL SLIDER */
.facility-slider-frame {
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(15, 92, 173, 0.08);
}

#facilityCarousel .facility-img {
  height: 400px;
  object-fit: cover;
}

#facilityCarousel .carousel-caption {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 20px;
  bottom: 20px;
  left: 6%;
  right: 6%;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

#facilityCarousel .carousel-caption h5 {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

#facilityCarousel .carousel-caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  margin-bottom: 0;
  line-height: 1.4;
}

#facilityCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.5;
  margin: 0 4px;
}

#facilityCarousel .carousel-indicators .active {
  background-color: var(--secondary);
  opacity: 1;
  transform: scale(1.25);
}

/* Custom Navigation Controls */
.btn-slider-control {
  width: 44px;
  height: 44px;
  background-color: rgba(15, 92, 173, 0.08);
  color: var(--primary);
  border: 1px solid rgba(15, 92, 173, 0.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-slider-control:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 92, 173, 0.2);
}

/* Facility Feature Highlights */
.facility-features {
  display: flex;
  flex-direction: column;
}

.facility-feat-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(15, 92, 173, 0.05);
  border: 1px solid rgba(15, 92, 173, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.facility-features > div:hover .facility-feat-icon {
  background-color: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .facility-slider-frame {
    margin-top: 20px;
  }
}

#facilityCarousel .facility-img {
  height: 250px;
  object-fit: cover;
}

#facilityCarousel .carousel-caption {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0 0 16px 16px;
  border: none;
  background: #0f172a;
  padding: 15px;
}

/* PROGRESSIVE BREAKPOINT ENHANCEMENTS */

/* 1. Tablet Viewport (min-width: 481px) */
@media (min-width: 481px) {
  .about-features {
    grid-template-columns: 1fr 1fr;
  }
  .doctor-card-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }
  #facilityCarousel .facility-img {
    height: 320px;
  }
}

/* 2. Laptop/iPad Pro Viewport (min-width: 769px) */
@media (min-width: 769px) {
  .floating-nav {
    top: 20px;
    width: 90%;
    max-width: 1200px;
    height: 70px;
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.85);
  }
  
  .floating-nav.scrolled {
    top: 10px;
    width: 95%;
    max-width: 1280px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
  }
  
  .brand-logo {
    height: 42px;
  }
  
  .floating-nav.scrolled .brand-logo {
    height: 36px;
  }

  .hero-slider {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-text-block {
    text-align: left;
    margin-bottom: 0;
  }

  .booking-text {
    text-align: left;
    margin-bottom: 0;
  }

  .doctor-card-wrapper {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .facility-slider-frame {
    margin-top: 0;
  }

  #facilityCarousel .facility-img {
    height: 400px;
  }

  #facilityCarousel .carousel-caption {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.75);
    padding: 15px 20px;
  }
}

/* 3. Large Desktop Viewport (min-width: 1025px) */
@media (min-width: 1025px) {
  .doctor-card-wrapper {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* ==========================================
   SUB-PAGES PREMIUM STYLES
   ========================================== */

/* Subpage Hero Banner */
.subpage-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #082f5c 50%, var(--primary) 100%);
  padding: 130px 0 60px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 204, 167, 0.15) 0%, transparent 60%);
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.subpage-hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* Vision & Mission Cards */
.vision-mission-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.vision-mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 92, 173, 0.2);
}

.vision-mission-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 204, 167, 0.08);
  color: var(--secondary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

.vision-mission-card.vision .vision-mission-icon {
  background-color: rgba(15, 92, 173, 0.08);
  color: var(--primary);
}

.vision-mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.vision-mission-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Director's message card */
.director-msg-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 50px);
  box-shadow: var(--shadow-lg);
}

.director-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.director-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(15, 92, 173, 0.9) 0%, rgba(15, 92, 173, 0.7) 100%);
  color: var(--white);
  padding: 15px;
  text-align: center;
}

.director-badge h5 {
  color: var(--white);
  margin-bottom: 2px;
  font-size: 1.1rem;
}

.director-quote {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  margin-bottom: 25px;
}

/* Interactive Horizontal Timeline */
.timeline-horizontal-wrap {
  position: relative;
  width: 100%;
  margin-top: 50px;
  margin-bottom: 30px;
}

.timeline-horizontal-line {
  position: absolute;
  top: 36px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1;
}

.timeline-cards-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 10px 30px 10px;
  position: relative;
  z-index: 2;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom horizontal scrollbar matching modern standards */
.timeline-cards-scroll::-webkit-scrollbar {
  height: 8px;
}

.timeline-cards-scroll::-webkit-scrollbar-track {
  background: rgba(15, 92, 173, 0.05);
  border-radius: 10px;
}

.timeline-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 92, 173, 0.2);
  border-radius: 10px;
}

.timeline-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.timeline-scroll-card {
  flex: 0 0 320px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 35px 25px 25px 25px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 40px;
}

.timeline-node {
  position: absolute;
  top: -51px; /* Center-align on the 4px horizontal line */
  left: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--white);
  border: 4px solid var(--primary);
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-scroll-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 92, 173, 0.08);
  border-color: rgba(15, 92, 173, 0.15);
}

.timeline-scroll-card:hover .timeline-node {
  transform: scale(1.25);
  background-color: var(--secondary);
  border-color: var(--primary-dark);
}

.timeline-year {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.timeline-scroll-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.timeline-scroll-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Our Experts Directory Filters */
.filter-tabs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-tab-btn:hover {
  background-color: rgba(15, 92, 173, 0.04);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 92, 173, 0.2);
}

/* Doctors Directory Cards styling */
.doctor-directory-grid .doctor-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doctor-directory-grid .doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 92, 173, 0.15);
}

.doctor-directory-grid .doctor-img-container {
  position: relative;
  background-color: var(--light-bg);
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect ratio */
}

.doctor-directory-grid .doctor-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.doctor-directory-grid .doctor-card:hover .doctor-img-container img {
  transform: scale(1.05);
}

.doctor-directory-grid .doctor-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.doctor-directory-grid .doc-dept {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.doctor-directory-grid h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.doctor-directory-grid .doc-degrees {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-weight: 500;
}

.doctor-directory-grid .doc-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.doctor-directory-grid .doc-cta-btn {
  background-color: var(--light-bg);
  color: var(--primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 30px;
  transition: var(--transition);
  display: block;
  width: 100%;
  text-align: center;
}

.doctor-directory-grid .doctor-card:hover .doc-cta-btn {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 92, 173, 0.2);
}

/* ==========================================
   UPDATED PREMIUM ABOUT & EXPERTS REDESIGN
   ========================================== */

/* 1. Enhanced About Section (Trendy Layout) */
.about-section {
  background: radial-gradient(circle at 10% 20%, rgba(15, 92, 173, 0.02) 0%, transparent 40%), var(--white);
  position: relative;
}

.about-decor-bg {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 204, 167, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.about-image-wrapper {
  position: relative;
  z-index: 5;
}

.about-img-1 {
  border-radius: 24px;
  border: 4px solid var(--white);
  box-shadow: 0 25px 50px -12px rgba(15, 92, 173, 0.15);
  transition: var(--transition);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 204, 167, 0.25);
  border-radius: 28px;
  z-index: 1;
  pointer-events: none;
}

.about-img-experience {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  bottom: 20px !important;
  right: 15px !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important;
  transition: var(--transition);
}

.about-img-experience h3 {
  color: var(--secondary) !important;
  font-size: 2.5rem !important;
}

.about-img-experience p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500 !important;
}

/* Feature Cards */
.about-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.about-feat-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(15, 92, 173, 0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.about-feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.about-feat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15, 92, 173, 0.08);
  border-color: rgba(15, 92, 173, 0.12);
}

.about-feat-card:hover::before {
  height: 100%;
}

.about-feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(15, 92, 173, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.about-feat-card:hover .about-feat-icon-box {
  background-color: var(--secondary);
  color: var(--dark);
}

.about-feat-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.about-feat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* 2. Premium Experts (Doctors) Section (Clean Cards & Glass Overlays) */
.doctors-section {
  background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
  position: relative;
}

.doctors-slider-container {
  padding: 30px 10px !important;
}

.doctor-card {
  border-radius: 20px !important;
  border: 1px solid var(--border-color);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.03);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

.doctor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 92, 173, 0.15) !important;
  border-color: rgba(15, 92, 173, 0.1);
}

.doctor-card:hover::after {
  transform: scaleX(1);
}

.doctor-img-container {
  height: 310px !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.doctor-img-container img {
  filter: grayscale(15%);
}

.doctor-card:hover .doctor-img-container img {
  filter: grayscale(0%);
  transform: scale(1.05) !important;
}

/* Glassmorphic vertical panel for socials on hover */
.doctor-glass-socials {
  position: absolute;
  top: 65px;
  right: -60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  opacity: 0;
}

.doctor-card:hover .doctor-glass-socials {
  right: 15px;
  opacity: 1;
}

.doctor-glass-socials a {
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.doctor-glass-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.doc-badge-status {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  z-index: 4;
}

.doctor-info {
  padding: 25px 20px !important;
  text-align: center;
  align-items: center;
}

.doc-dept-badge {
  display: inline-block;
  background-color: rgba(15, 92, 173, 0.06);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.doctor-card:hover .doc-dept-badge {
  background-color: var(--secondary);
  color: var(--dark);
}

.doctor-info h4 {
  font-size: 1.25rem !important;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.doc-degrees {
  font-size: 0.82rem !important;
  color: var(--text-muted);
  margin-bottom: 12px !important;
  font-weight: 500;
}

.doc-btn {
  background: var(--light-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--primary) !important;
  border-radius: 30px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  width: auto !important;
  margin: 10px auto 0 !important;
  box-shadow: none !important;
}

.doctor-card:hover .doc-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(15, 92, 173, 0.2) !important;
}

/* Premium Slider Controls */
.doc-control-prev,
.doc-control-next {
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(15, 92, 173, 0.08) !important;
  color: var(--primary) !important;
}

.doc-control-prev {
  left: 10px !important;
}

.doc-control-next {
  right: 10px !important;
}

@media (max-width: 768px) {
  .doc-control-prev {
    left: 5px !important;
  }
  .doc-control-next {
    right: 5px !important;
  }
  .about-img-experience {
    right: 10px !important;
  }
}

/* 3. Empanelments Dedicated Page Styles */
.scheme-highlight-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.03);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.scheme-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.scheme-highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 92, 173, 0.08);
  border-color: rgba(15, 92, 173, 0.1);
}

.scheme-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(0, 204, 167, 0.08);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.scheme-highlight-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.scheme-highlight-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.emp-grid-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.emp-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 92, 173, 0.06);
  border-color: rgba(15, 92, 173, 0.1);
}

.emp-grid-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(15, 92, 173, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.emp-grid-card span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.claim-process-timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
}

.claim-process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 3px;
  background: rgba(15, 92, 173, 0.1);
}

.process-step-node {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.process-step-node:last-child {
  margin-bottom: 0;
}

.process-step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 92, 173, 0.2);
  z-index: 2;
  border: 4px solid var(--white);
}

.process-step-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.process-step-content h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.process-step-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ==========================================
   INTERACTIVE PAGES STYLING (ABOUT CORNER)
   ========================================== */

/* 1. Myths & Facts (3D Card Flips) */
.myths-section {
  padding: 60px 0;
  background-color: var(--light-bg);
}

.myths-filter-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.myth-card-container {
  perspective: 1200px;
  height: 280px;
  margin-bottom: 30px;
  cursor: pointer;
}

.card-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Class applied by jQuery on click */
.myth-card-container.flipped .card-flipper {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(15, 92, 173, 0.04);
  border: 1px solid var(--border-color);
  justify-content: space-between;
}

.card-front {
  background-color: var(--white);
  z-index: 2;
  transform: rotateY(0deg);
}

.card-back {
  background-color: #f0fdfa; /* Soft clean teal */
  border-color: rgba(0, 204, 167, 0.2);
  transform: rotateY(180deg);
}

.card-indicator {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 30px;
}

.card-front .card-indicator {
  background-color: rgba(225, 29, 72, 0.08);
  color: var(--emergency);
}

.card-back .card-indicator {
  background-color: rgba(0, 204, 167, 0.08);
  color: var(--secondary-dark);
}

.card-title-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.card-title-box i {
  font-size: 2rem;
  flex-shrink: 0;
}

.card-front .card-title-box i {
  color: var(--emergency);
}

.card-back .card-title-box i {
  color: var(--secondary-dark);
}

.card-title-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.card-desc-box {
  margin-top: 15px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.card-front .card-desc-box {
  color: var(--text-dark);
}

.card-back .card-desc-box {
  color: #0f3d30; /* Darker clean teal text */
}

.card-action-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 10px;
}

.card-action-hint i {
  transition: transform 0.3s ease;
}

.myth-card-container:hover .card-action-hint i {
  transform: translateX(3px);
}

/* 2. Medical Glossary (Searchable Database) */
.glossary-search-wrapper {
  max-width: 600px;
  margin: 0 auto 35px;
  position: relative;
}

.glossary-search-box {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.05);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.glossary-search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.12);
}

.glossary-search-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.az-nav-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 45px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.az-letter-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.az-letter-btn:hover, .az-letter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(15, 92, 173, 0.25);
  transform: scale(1.05);
}

.az-letter-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background-color: var(--light-bg);
}

.glossary-term-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
  transition: var(--transition);
  height: 100%;
}

.glossary-term-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 92, 173, 0.06);
  border-color: rgba(15, 92, 173, 0.12);
}

.glossary-term-letter {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(15, 92, 173, 0.06);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 15px;
}

.glossary-term-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.glossary-term-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* 3. Patient Care Section (Guidelines Tabs) */
.care-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.care-tab-link {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  font-family: var(--font-body);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
}

.care-tab-link:hover {
  background-color: rgba(15, 92, 173, 0.02);
  border-color: var(--primary);
}

.care-tab-link.active {
  border-color: var(--primary);
  background-color: rgba(15, 92, 173, 0.05);
  box-shadow: var(--shadow-sm);
}

.care-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(15, 92, 173, 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.care-tab-link.active .care-tab-icon {
  background-color: var(--primary);
  color: var(--white);
}

.care-tab-title-wrap h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--text-dark);
}

.care-tab-title-wrap p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.care-details-pane {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.care-details-header {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.care-details-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

.care-details-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.care-rule-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.care-rule-row:last-child {
  margin-bottom: 0;
}

.care-rule-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 204, 167, 0.08);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.care-rule-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.care-rule-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Department Detail Pages Premium Styles
   ========================================================================== */

/* Brand Gradients for Department Themes */
.gradient-clinical {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary-dark) 100%) !important;
}

.gradient-emergency {
  background: linear-gradient(135deg, #9f1239 0%, var(--emergency) 70%, #f43f5e 100%) !important;
}

.gradient-family-care {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, #0ea5e9 100%) !important;
}

/* Subpage Hero Banner */
.subpage-hero {
  position: relative;
  padding: clamp(140px, 16vh, 180px) 0 clamp(80px, 10vh, 110px) 0;
  color: var(--white);
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.subpage-hero .lead {
  font-family: var(--font-body);
  font-weight: 400;
  max-width: 700px;
}

/* Sticky secondary sub-navigation floating capsule */
.sticky-sub-nav-wrapper {
  position: sticky;
  top: 85px; /* Spaced below the floating-nav */
  z-index: 999;
  pointer-events: none; /* Let clicks pass through margins */
  padding: 10px 0;
}

.sticky-sub-nav {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 92, 173, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px -5px rgba(15, 92, 173, 0.08);
  pointer-events: auto; /* Re-enable clicks for the menu itself */
  padding: 2px 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-sub-nav .nav {
  border: none !important;
}

.sticky-sub-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  padding: 10px 18px !important;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
}

.sticky-sub-nav .nav-link:hover,
.sticky-sub-nav .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-light);
}

/* When inside a custom theme container, hover & active states should adapt */
.dept-theme-container .sticky-sub-nav .nav-link:hover,
.dept-theme-container .sticky-sub-nav .nav-link.active {
  color: var(--dept-color) !important;
  background-color: var(--dept-color-light) !important;
}

.sticky-sub-nav .nav-link.active {
  font-weight: 700;
}

/* Feature Icon Boxes */
.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background-color: var(--dept-color-light) !important;
  color: var(--dept-color) !important;
}

/* Department Promo Card (Overlay-like glassmorphic look) */
.dept-promo-card {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}

.dept-promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dept-promo-card > * {
  position: relative;
  z-index: 2;
}

.promo-icon-circle {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bg-white-20 {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.border-white-10 {
  border-color: rgba(255,255,255,0.15) !important;
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color) !important;
}

.service-card-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transition: var(--transition);
  background-color: var(--dept-color) !important;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.service-icon-box {
  font-size: 1.75rem;
  color: var(--dept-color) !important;
}

/* Check circle styles */
.check-circle-decor {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--dept-color-light) !important;
  color: var(--dept-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Procedure visual overlay */
.bg-gradient-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Accordion Custom Styling */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color) !important;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
  font-family: var(--font-heading) !important;
  outline: none;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--dept-color-light) !important;
  color: var(--dept-color) !important;
}

/* Hover transitions */
.transition-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.transition-hover:hover {
  transform: translateY(-5px);
}

/* Booking box custom */
.booking-form-box {
  border: 1px solid var(--border-color);
}

/* Global Custom Doctor Card overrides for consistent button & themes */
.doc-cta-btn {
  background-color: var(--light-bg);
  color: var(--dept-color, var(--primary));
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 24px;
  border-radius: 30px;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  width: auto;
  margin-top: 10px;
  box-shadow: none;
}

.doctor-card:hover .doc-cta-btn {
  background: var(--dept-color, var(--primary)) !important;
  color: var(--white) !important;
  border-color: var(--dept-color, var(--primary)) !important;
  box-shadow: 0 4px 12px rgba(15, 92, 173, 0.15) !important;
}

/* Local Theme Overrides for Utility Classes */
.dept-theme-container {
  width: 100%;
}

.dept-theme-container .text-primary {
  color: var(--dept-color) !important;
}

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

.dept-theme-container .btn-primary:hover {
  filter: brightness(0.9);
}

.dept-theme-container .bg-primary {
  background-color: var(--dept-color) !important;
}

.dept-theme-container .border-primary-light {
  border-color: var(--dept-color-light) !important;
}

.dept-theme-container .doc-dept-badge {
  background-color: var(--dept-color-light) !important;
  color: var(--dept-color) !important;
}

.dept-theme-container .doctor-card:hover .doc-dept-badge {
  background-color: var(--dept-color) !important;
  color: var(--white) !important;
}

.dept-theme-container .appointment-support-icon {
  background-color: var(--dept-color-light) !important;
  color: var(--dept-color) !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Extra Font Weights */
.fw-extrabold {
  font-weight: 800 !important;
}

.fw-black {
  font-weight: 900 !important;
}

/* ==========================================================================
   PREMIUM MAKE-OVER STYLES (UI/UX UPGRADES)
   ========================================================================== */

/* 1. Premium Timeline cards horizontal scrollbar */
.timeline-cards-scroll::-webkit-scrollbar-track {
  background: rgba(15, 92, 173, 0.03) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(15, 92, 173, 0.05) !important;
}

.timeline-cards-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(15, 92, 173, 0.35) 0%, rgba(0, 204, 167, 0.35) 100%) !important;
  border-radius: 20px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

.timeline-cards-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%) !important;
  border-radius: 20px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

/* 2. Vision & Mission Cards - sliding colored border accent and soft scale lift */
.vision-mission-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
}

.vision-mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.vision-mission-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 30px 60px -15px rgba(15, 92, 173, 0.15) !important;
}

.vision-mission-card:hover::before {
  transform: scaleX(1);
}

.vision-mission-card.vision:hover {
  border-color: rgba(15, 92, 173, 0.3) !important;
}

.vision-mission-card.mission:hover {
  border-color: rgba(0, 204, 167, 0.3) !important;
}

/* 3. Patient Care Tab Left-Border Glows */
.care-tab-link {
  position: relative;
  border-left: 4px solid transparent !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.care-tab-link:hover {
  border-left-color: rgba(15, 92, 173, 0.25) !important;
}

.care-tab-link.active {
  border-left-color: var(--primary) !important;
  background-color: rgba(15, 92, 173, 0.04) !important;
  box-shadow: 0 8px 20px -5px rgba(15, 92, 173, 0.08) !important;
}

/* 4. Refined 3D Flipping Cards for Myths & Facts */
.myth-card-container {
  perspective: 2000px !important;
}

.card-flipper {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important; /* Elegant elastic snap-back */
}

.card-front, .card-back {
  border-radius: 24px !important;
  border: 1px solid rgba(15, 92, 173, 0.08) !important;
  box-shadow: 0 15px 35px -5px rgba(15, 92, 173, 0.05) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
}

.card-front:hover {
  border-color: var(--emergency) !important;
  box-shadow: 0 25px 45px -10px rgba(225, 29, 72, 0.12) !important;
}

.card-back:hover {
  border-color: var(--secondary) !important;
  box-shadow: 0 25px 45px -10px rgba(0, 204, 167, 0.12) !important;
}

/* 5. Mobile Offcanvas Glassmorphism Makeover */
.offcanvas {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border-right: 1px solid rgba(15, 92, 173, 0.08) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.offcanvas-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(15, 92, 173, 0.05) !important;
}

.offcanvas-body .mobile-menu,
.offcanvas-body .mobile-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.offcanvas-body .mobile-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 10px 15px;
  border-radius: 12px;
  display: block;
  transition: all 0.3s ease !important;
}

.offcanvas-body .mobile-menu a:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary) !important;
  transform: translateX(6px) !important;
}

/* 6. Filter Tab Buttons Makeover */
.filter-tab-btn {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-width: 1px !important;
}

.filter-tab-btn:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
}

.filter-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 8px 20px -5px rgba(15, 92, 173, 0.3) !important;
}

/* ==========================================================================
   WORLD-CLASS PHONE & MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* Tablet & Mobile Category Horizontal Scroll Bar Layout (< 992px) */
@media (max-width: 991px) {
  .filter-tabs-container,
  .myths-filter-wrap,
  .dp-filter-btns {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .filter-tabs-container::-webkit-scrollbar,
  .myths-filter-wrap::-webkit-scrollbar,
  .dp-filter-btns::-webkit-scrollbar {
    display: none !important;
  }

  .filter-tab-btn,
  .dp-filter-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .dp-count-badge {
    display: inline-block !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* General Mobile Polish (< 768px) */
@media (max-width: 767px) {
  section {
    padding: clamp(2rem, 6vw, 4rem) 0 !important;
  }
  
  .section-title {
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem) !important;
  }

  .section-title h2 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }

  .director-msg-card {
    padding: 24px 16px !important;
    border-radius: 20px !important;
  }

  .director-quote {
    font-size: 1rem !important;
    padding-left: 12px !important;
    margin-bottom: 15px !important;
  }

  .vision-mission-card {
    padding: 25px 20px !important;
  }

  .vision-mission-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
  }

  .stat-card {
    padding: 30px 20px !important;
    border-radius: 16px !important;
  }

  .stat-icon-wrapper {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.35rem !important;
    margin-bottom: 15px !important;
  }

  /* Compact footer for mobile */
  footer {
    padding: 40px 0 20px 0 !important;
  }
  
  .footer-col {
    margin-bottom: 25px;
  }
}

/* Small Smartphone Viewports (< 576px) */
@media (max-width: 575px) {
  /* Prevent massive heroes on small screens */
  .subpage-hero {
    padding: clamp(100px, 12vh, 120px) 0 clamp(40px, 8vh, 60px) 0 !important;
    text-align: center !important;
  }

  .subpage-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem) !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
  }

  .subpage-hero p.lead {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  /* Booking form container phone padding */
  .hero-booker-widget {
    padding: 20px 15px !important;
    border-radius: 20px !important;
  }

  .hero-booker-widget h3 {
    font-size: 1.2rem !important;
  }

  /* Ensure myth card text doesn't overflow height */
  .myth-card-container {
    height: 340px !important;
  }

  .card-front, .card-back {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .card-title-box {
    margin-top: 10px !important;
  }

  .card-title-box h4 {
    font-size: 1rem !important;
  }

  .card-desc-box {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
  }

  /* Narrow timeline scroll cards to look best on swipe */
  .timeline-scroll-card {
    flex: 0 0 270px !important;
    padding: 25px 20px 20px 20px !important;
  }

  .timeline-scroll-card h4 {
    font-size: 1.1rem !important;
  }

  .timeline-scroll-card p {
    font-size: 0.8rem !important;
  }

  .timeline-node {
    top: -50px !important;
    width: 18px !important;
    height: 18px !important;
  }

  /* Ensure department overview sections align */
  .dept-promo-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }
}

/* Extra Small Phones & Screen Widths (< 480px) */
@media (max-width: 479px) {
  /* Nav bar auto scaling */
  .floating-nav {
    width: 96% !important;
    height: 56px !important;
    top: 10px !important;
    padding: 0 10px !important;
  }

  .floating-nav.scrolled {
    height: 52px !important;
    top: 6px !important;
  }

  .brand-logo {
    height: 28px !important;
  }

  .floating-nav.scrolled .brand-logo {
    height: 24px !important;
  }

  .btn-primary-nav {
    padding: 8px 12px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }

  .navbar-toggler {
    padding: 2px 4px !important;
  }

  .navbar-toggler i {
    font-size: 1.15rem !important;
  }

  /* Scale down tabs for category filter wrap */
  .myths-filter-wrap {
    gap: 8px !important;
    margin-bottom: 25px !important;
  }

  .filter-tab-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
  }

  /* Make tab scroll bar lists on mobile smooth and responsive */
  .specialty-nav-list {
    gap: 6px !important;
  }

  .specialty-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  /* Align forms on phone screens */
  .widget-form select,
  .widget-form input {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }

  .widget-form .btn-submit {
    padding: 11px 20px !important;
    font-size: 0.88rem !important;
  }
}

/* ==========================================================================
   ULITMATE PREMIUM VISUAL MAKE-OVER OVERRIDES
   ========================================================================== */

/* Frosted Glassmorphism Utility */
.frosted-glass-panel {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(15px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Drifting Mesh Glow Circles */
.mesh-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.mesh-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: drift 25s infinite alternate ease-in-out;
}
.mesh-glow-circle-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--dept-color, var(--primary)) 0%, transparent 70%);
  top: -10%;
  left: -5%;
}
.mesh-glow-circle-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  bottom: -15%;
  right: -5%;
  animation-delay: -7s;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -50px) scale(1.15); }
  100% { transform: translate(-50px, 60px) scale(0.9); }
}

/* Status Dot with pulse effect */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  animation: statusPulse 1.8s infinite ease-in-out;
}
.status-dot.dot-clinical { background-color: var(--primary); }
.status-dot.dot-surgical { background-color: var(--secondary-dark); }
.status-dot.dot-family { background-color: var(--emergency); }

@keyframes statusPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Dynamic Hub Cards */
.dept-hub-card {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(15, 92, 173, 0.08) !important;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.02) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.dept-hub-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--dept-accent) !important;
  box-shadow: 0 30px 60px -15px rgba(var(--dept-accent-rgb, 15, 92, 173), 0.18), 0 0 0 1px var(--dept-accent) !important;
}

/* Hover dynamic gradient background glow */
.dept-hub-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 140px;
  background: radial-gradient(circle at 50% 120%, rgba(var(--dept-accent-rgb, 15, 92, 173), 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}
.dept-hub-card:hover::after {
  opacity: 1;
}

.dept-hub-card > * {
  position: relative;
  z-index: 2;
}

/* Icon box dynamic background gradients */
.dept-hub-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(var(--dept-accent-rgb, 15, 92, 173), 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dept-hub-card:hover .dept-hub-icon-box {
  transform: scale(1.1) rotate(6deg);
}

.dept-hub-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.dept-hub-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 15px;
}

/* Specialty Explorer Card Stats Strip */
.dept-card-stats-strip {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 92, 173, 0.03);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 15px 0;
  border: 1px dashed rgba(15, 92, 173, 0.1);
  transition: var(--transition);
}
.dept-hub-card:hover .dept-card-stats-strip {
  background: var(--white);
  border-color: rgba(var(--dept-accent-rgb), 0.15);
}
.dept-card-stat-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border-right: 1px solid rgba(15, 92, 173, 0.08);
}
.dept-card-stat-mini:last-child {
  border-right: none;
}
.dept-card-stat-mini .num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--dept-accent, var(--primary));
  line-height: 1.1;
}
.dept-card-stat-mini .lbl {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Services Badges */
.dept-hub-services-wrap {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}
.dept-service-badge {
  display: inline-block;
  background-color: var(--light-bg);
  color: var(--text-dark);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: var(--transition);
  margin-bottom: 5px;
}
.dept-hub-card:hover .dept-service-badge {
  background-color: var(--white);
  border-color: rgba(var(--dept-accent-rgb), 0.15);
}

/* Card CTA Button */
.dept-hub-cta-btn {
  background-color: var(--light-bg);
  color: var(--dept-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 11px 20px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.dept-hub-cta-btn i {
  transition: transform 0.3s ease;
}
.dept-hub-card:hover .dept-hub-cta-btn {
  background: var(--dept-accent) !important;
  color: var(--white) !important;
  border-color: var(--dept-accent) !important;
  box-shadow: 0 8px 20px -4px rgba(var(--dept-accent-rgb), 0.25) !important;
}
.dept-hub-card:hover .dept-hub-cta-btn i {
  transform: translateX(4px);
}

/* Search Hub Bar styling */
.search-hub-wrapper {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  max-width: 600px;
  margin: 0 auto;
}
.search-hub-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 30px -5px rgba(15, 92, 173, 0.15);
  transform: translateY(-2px);
}
.search-hub-input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  width: 100%;
}
.search-hub-btn-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: none;
  transition: var(--transition);
}
.search-hub-btn-clear:hover {
  color: var(--emergency);
  transform: scale(1.1);
}
.search-hub-icon {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-right: 12px;
}

/* Hub Quick Metrics Strip */
.hub-quick-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
}
.hub-metric-badge {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-metric-badge i {
  font-size: 1rem;
}
.hub-metric-badge .lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}
.hub-metric-badge .val {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Detail Metrics Dashboard Grid */
.dept-hero-metrics {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3) !important;
}
.dept-hero-metric-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px;
}
.dept-hero-metric-item:last-child {
  border-right: none;
}
.dept-hero-metric-item h3 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.dept-hero-metric-item p {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.8px;
  margin-bottom: 0;
}

/* Sub-nav indicator active line */
.sticky-sub-nav .nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 20px !important;
  border-radius: 30px;
  transition: var(--transition);
}
.sticky-sub-nav .nav-link:hover,
.sticky-sub-nav .nav-link.active {
  color: var(--dept-color, var(--primary)) !important;
  background: var(--dept-color-light, rgba(15, 92, 173, 0.06));
}

/* Capability Item Grid */
.capability-item {
  display: flex;
  align-items: start;
  gap: 15px;
  padding: 22px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: var(--transition);
}
.capability-item:hover {
  background: var(--white);
  border-color: var(--dept-color, var(--primary));
  box-shadow: 0 12px 25px -5px rgba(15, 92, 173, 0.05);
  transform: translateY(-2px);
}
.capability-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background-color: var(--dept-color-light, rgba(15, 92, 173, 0.06));
  color: var(--dept-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.capability-item:hover .capability-icon-box {
  background-color: var(--dept-color, var(--primary));
  color: var(--white);
  transform: scale(1.05) rotate(4deg);
}

/* Advisory Advisory Card */
.advisory-card {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: var(--transition);
}
.advisory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(var(--dept-color-rgb, 15, 92, 173), 0.3) !important;
}
.advisory-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
}

/* Patient Pathway Horizontal connecting lines */
@media (min-width: 992px) {
  .journey-step-card {
    position: relative;
  }
  .journey-step-card::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--dept-color, var(--primary)) 0%, transparent 100%);
    z-index: 10;
    opacity: 0.4;
  }
  .col-lg-4:last-child .journey-step-card::after {
    display: none !important;
  }
}

/* Clinical Journey Path Card overrides */
.journey-step-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 10px 25px rgba(15, 92, 173, 0.01);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}
.journey-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--dept-color, var(--primary)) !important;
}
.journey-step-num {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3.2rem;
  font-weight: 950;
  color: var(--dept-color-light, rgba(15, 92, 173, 0.06)) !important;
  line-height: 1;
  opacity: 0.8;
  font-family: var(--font-heading);
}
.journey-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--dept-color-light, rgba(15, 92, 173, 0.06)) !important;
  color: var(--dept-color, var(--primary)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 22px;
  transition: var(--transition);
}
.journey-step-card:hover .journey-step-icon {
  background-color: var(--dept-color, var(--primary)) !important;
  color: var(--white) !important;
  transform: scale(1.05);
}

/* Executive Doctor Card styling */
.doctor-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--dept-color, var(--primary));
}
.doctor-img-container {
  height: 310px;
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}
.doctor-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-card:hover .doctor-img-container img {
  transform: scale(1.08) translateY(-4px);
}
.doc-badge-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 204, 167, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  z-index: 4;
}
.doc-badge-status i {
  animation: pulseGreen 1.5s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
.doctor-glass-socials {
  position: absolute;
  top: 65px;
  right: -60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  opacity: 0;
}
.doctor-card:hover .doctor-glass-socials {
  right: 15px;
  opacity: 1;
}
.doctor-glass-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--dept-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.doctor-glass-socials a:hover {
  background-color: var(--dept-color, var(--primary));
  color: var(--white);
  transform: scale(1.1);
}
.doctor-info {
  padding: 24px;
  background-color: var(--white);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-color);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.doc-dept-badge {
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--dept-color, var(--primary));
  background: var(--dept-color-light, rgba(15, 92, 173, 0.06));
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.doctor-info h4 {
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.doc-degrees {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.doc-bio {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.doc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 30px;
  width: 100%;
  transition: var(--transition);
  margin-top: auto;
}
.doctor-card:hover .doc-cta-btn {
  background: var(--dept-color, var(--primary));
  color: var(--white) !important;
  border-color: var(--dept-color, var(--primary));
  box-shadow: 0 8px 20px -4px rgba(var(--dept-color-rgb, 15, 92, 173), 0.25);
}

/* Floating FAQ Accordion Redesign */
.accordion-custom-floating {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.accordion-custom-floating .accordion-item {
  background: var(--white) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01) !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.accordion-custom-floating .accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(var(--dept-color-rgb, 15, 92, 173), 0.08) !important;
  border-color: var(--dept-color, var(--primary)) !important;
}
.accordion-custom-floating .accordion-button {
  padding: 22px 26px !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  background: transparent !important;
  color: var(--text-dark) !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
}
.accordion-custom-floating .accordion-button::after {
  background-size: 1rem !important;
  transition: transform 0.3s ease !important;
}
.accordion-custom-floating .accordion-button:not(.collapsed) {
  color: var(--dept-color, var(--primary)) !important;
  background: var(--dept-color-light, rgba(15, 92, 173, 0.06)) !important;
}
.accordion-custom-floating .accordion-collapse {
  border: none !important;
}
.accordion-custom-floating .accordion-body {
  padding: 0 26px 22px 26px !important;
  font-size: 0.88rem !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
}

/* Booking Form Box overrides */
.booking-form-box {
  background: var(--white) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 24px !important;
  padding: 35px !important;
  box-shadow: var(--shadow-lg) !important;
  position: relative;
  z-index: 10;
}
.booking-form-box .form-control,
.booking-form-box .form-select {
  padding: 12px 18px !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
  border: 2px solid var(--border-color) !important;
  background-color: var(--light-bg) !important;
  color: var(--text-dark) !important;
  outline: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.booking-form-box .form-control:focus,
.booking-form-box .form-select:focus {
  border-color: var(--dept-color, var(--primary)) !important;
  background-color: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(var(--dept-color-rgb, 15, 92, 173), 0.15) !important;
}

/* Dynamic Grid Transitions */
.dept-grid-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR VIEWPORTS
   ========================================================================== */

/* Subpage Hub responsive adjustments */
@media (max-width: 991px) {
  .dept-hero-metrics {
    margin-top: 35px;
  }
  .hub-quick-metrics {
    gap: 12px;
  }
  .hub-metric-badge {
    padding: 8px 16px;
  }
}

/* Sticky sub navigation list scrollable on mobile */
@media (max-width: 767px) {
  .sticky-sub-nav-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
  }
  .sticky-sub-nav .nav {
    flex-wrap: nowrap;
    padding: 8px 15px !important;
    justify-content: flex-start !important;
  }
  .sticky-sub-nav .nav-item {
    flex: 0 0 auto;
  }
  .sticky-sub-nav .nav-link {
    padding: 8px 15px !important;
    font-size: 0.8rem;
  }
  .booking-form-box {
    padding: 25px !important;
  }
}

@media (max-width: 575px) {
  .dept-hero-metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 0;
  }
  .dept-hero-metric-item:last-child {
    border-bottom: none;
  }
  .search-hub-wrapper {
    padding: 6px 10px 6px 16px;
    border-radius: 30px;
  }
  .search-hub-input {
    font-size: 0.88rem;
  }
}

/* Extra Small Phones & Screen Widths (< 480px) */
@media (max-width: 479px) {
  .floating-nav {
    width: 96% !important;
    height: 56px !important;
    top: 10px !important;
    padding: 0 10px !important;
  }
  .floating-nav.scrolled {
    height: 52px !important;
    top: 6px !important;
  }
  .brand-logo {
    height: 28px !important;
  }
  .floating-nav.scrolled .brand-logo {
    height: 24px !important;
  }
  .btn-primary-nav {
    padding: 8px 12px !important;
    font-size: 0.72rem !important;
    gap: 4px !important;
  }
  .navbar-toggler {
    padding: 2px 4px !important;
  }
  .navbar-toggler i {
    font-size: 1.15rem !important;
  }
  .myths-filter-wrap {
    gap: 8px !important;
    margin-bottom: 25px !important;
  }
  .filter-tab-btn {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
    border-radius: 20px !important;
  }
  .specialty-nav-list {
    gap: 6px !important;
  }
  .specialty-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }
  .widget-form select,
  .widget-form input {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }
  .widget-form .btn-submit {
    padding: 11px 20px !important;
    font-size: 0.88rem !important;
  }
}

/* Scroll Progress Bar at the top of the viewport */
#scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
#scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--secondary);
  transition: width 0.1s ease-out;
}

/* Global Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes for smoother sequential loading */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* Pulse animation for glowing elements */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 204, 167, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 204, 167, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 204, 167, 0); }
}

/* Hero text slide-up load effect */
.hero-text-block h1,
.hero-text-block p,
.hero-text-block .d-flex {
  opacity: 0;
  transform: translateY(20px);
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text-block h1 { animation-delay: 0.1s; }
.hero-text-block p { animation-delay: 0.3s; }
.hero-text-block .d-flex { animation-delay: 0.5s; }

@keyframes heroSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subpage Hero Background Image support */
.subpage-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.subpage-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(8, 47, 92, 0.75) 0%, rgba(15, 92, 173, 0.55) 50%, rgba(0, 204, 167, 0.25) 100%);
}

/* ==========================================
   HOMEPAGE ABOUT COLLAGE DESIGN
   ========================================== */
.about-collage-container {
  position: relative;
  width: 100%;
  padding-bottom: 50px;
  padding-right: 50px;
  margin-top: 20px;
}

.about-collage-bg-wrap {
  position: relative;
  width: 82%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 92, 173, 0.12);
  border: 5px solid var(--white);
  transition: var(--transition);
  z-index: 2;
}

.about-collage-img-bg {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-collage-fg-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16);
  border: 5px solid var(--white);
  transition: var(--transition);
  z-index: 4;
}

.about-collage-img-fg {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overlapping Experience badge positioning */
.about-collage-container .about-img-experience {
  left: -20px !important;
  right: auto !important;
  bottom: 40px !important;
  z-index: 5;
}

/* Hover effects */
.about-collage-container:hover .about-collage-bg-wrap {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 92, 173, 0.16);
}

.about-collage-container:hover .about-collage-fg-wrap {
  transform: translate(-10px, -5px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22);
}

.about-collage-container:hover .about-collage-img-bg,
.about-collage-container:hover .about-collage-img-fg {
  transform: scale(1.06);
}

/* ==========================================
   GLOBAL PREMIUM GLASSMORPHISM SYSTEM
   ========================================== */
/* Apply premium glassmorphic overlay styles to major components */
.floating-nav,
.floating-nav.scrolled,
.dp-dept-card,
.doctor-card,
.vision-mission-card,
.director-msg-card,
.care-details-pane,
.booking-card-wrapper,
.faq-accordion .accordion-item,
.scheme-highlight-card,
.emp-grid-card,
.card-front,
.card-back {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 8px 32px 0 rgba(15, 92, 173, 0.04) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Glassmorphic hover elevations */
.dp-dept-card:hover,
.doctor-card:hover,
.vision-mission-card:hover,
.director-msg-card:hover,
.booking-card-wrapper:hover,
.faq-accordion .accordion-item:hover,
.scheme-highlight-card:hover,
.emp-grid-card:hover,
.card-front:hover,
.card-back:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(15, 92, 173, 0.22) !important;
  box-shadow: 0 24px 50px -10px rgba(15, 92, 173, 0.12) !important;
}

/* Translucent component wrappers */
.dp-stats-strip,
.dp-filter-bar,
.myths-filter-wrap,
.doctors-filter-tabs,
.filter-tabs-container {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 10px 30px rgba(15, 92, 173, 0.05) !important;
}

.dp-filter-bar {
  border-radius: 0 0 24px 24px;
}

.myths-filter-wrap,
.doctors-filter-tabs,
.filter-tabs-container {
  border-radius: 50px;
  padding: 10px 20px;
}

/* ============================
   Gallery Page Styles
   ============================ */
.gallery-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 92, 173, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-lightbox {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
  transform: scale(0.8);
}

.gallery-card:hover .gallery-lightbox {
  transform: scale(1);
}

.gallery-lightbox:hover {
  background: var(--secondary);
  color: var(--white);
}

.gallery-info {
  padding: 20px;
}

.gallery-info h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.gallery-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Lightbox Modal */
#galleryModal .modal-content {
  background: rgba(0, 0, 0, 0.9);
}

#galleryModal .btn-close-white {
  filter: invert(1);
  width: 30px;
  height: 30px;
}

/* Badge soft background */
.bg-primary-soft {
  background: rgba(15, 92, 173, 0.1) !important;
}

/* ============================
   Blog Page Styles
   ============================ */
.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.blog-meta span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.blog-card:hover .blog-read-more {
  color: var(--secondary);
}