/* =============================================================
   MEDICARE HOSPITAL — MAIN STYLESHEET
   Framework : Bootstrap 5.3
   Theme     : Professional Medical (Teal / White)
   Author    : MediCare Design Team
   Version   : 3.0
   ============================================================= */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --primary:        #0b7a75;
  --primary-dark:   #086460;
  --primary-light:  #e4f5f4;
  --secondary:      #1aa87a;
  --accent:         #f59e0b;
  --danger:         #ef4444;
  --dark:           #0d1a18;
  --dark-alt:       #1a2e2b;
  --gray-100:       #f7fafa;
  --gray-200:       #eff5f5;
  --gray-300:       #d8ecea;
  --gray-500:       #5c7270;
  --gray-600:       #445956;
  --white:          #ffffff;
  --card-shadow:    0 4px 24px rgba(11, 122, 117, 0.09);
  --card-shadow-lg: 0 12px 48px rgba(11, 122, 117, 0.16);
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:         14px;
  --radius-sm:      8px;
  --radius-lg:      20px;
}

/* ─────────────────────────────────────────────
   1. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-alt);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* ─────────────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; }

/* ─────────────────────────────────────────────
   3. UTILITY CLASSES
───────────────────────────────────────────── */
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.bg-light-blue { background: var(--gray-100); }
.bg-dark-blue  { background: var(--dark); }
.text-primary-custom { color: var(--primary) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ─────────────────────────────────────────────
   4. BUTTONS
───────────────────────────────────────────── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 30px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 18px rgba(11, 122, 117, 0.3);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11, 122, 117, 0.4);
  color: var(--white);
}
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-appointment {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 10px 26px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(11, 122, 117, 0.28);
  transition: var(--transition);
  border: none;
}
.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 122, 117, 0.4);
  color: var(--white) !important;
}

/* WhatsApp Floating Container & Popup Tooltip */
.whatsapp-floater-container {
  position: fixed;
  bottom: 28px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  pointer-events: none; /* Let clicks pass through to content below unless on child elements */
  transition: bottom 0.3s ease;
}

#scrollTop.show ~ .whatsapp-floater-container {
  bottom: 84px; /* Shift up when Scroll To Top button is visible */
}

/* Enable pointer events on active elements */
.whatsapp-floater-container a,
.whatsapp-floater-container button,
.whatsapp-floater-container .whatsapp-popup {
  pointer-events: auto;
}

/* WhatsApp Floating Button - Green Gradient */
.btn-whatsapp-dark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp-dark 2s infinite;
  flex-shrink: 0;
  z-index: 2;
}

/* Green online status badge on top-right of WhatsApp circle */
.btn-whatsapp-dark::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #25D366;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-dark:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: none; /* Stop pulsing on hover */
}

.btn-whatsapp-dark i {
  font-size: 1.9rem;
  margin: 0;
}

/* WhatsApp Tooltip/Popup Message */
.whatsapp-popup {
  position: absolute;
  right: calc(100% + 12px); /* Positioned to the left of the WhatsApp button */
  top: 50%;
  transform: translateY(-50%) translateX(15px);
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 34px 12px 14px; /* extra padding on right for close button */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  visibility: hidden;
  z-index: 1;
  white-space: nowrap; /* Keep content on single line boundaries */
}

/* Active class triggered on page load (visible by default) */
.whatsapp-popup.active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}

/* Maintain visible on hover on desktop even if active class is not there, or when hovering */
@media (min-width: 768px) {
  .whatsapp-floater-container:hover .whatsapp-popup {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
  }
}

/* Hide popup permanently when dismissed */
.whatsapp-floater-container.dismissed .whatsapp-popup {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Triangle Pointer pointing to WhatsApp button */
.whatsapp-popup::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* Popup Content Flex */
.whatsapp-popup-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Doctor Avatar Circle */
.whatsapp-popup-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: #dcfce7; /* Light green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7a75; /* Teal icon */
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Online Indicator Dot on Doctor Avatar */
.whatsapp-popup-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  background: #25D366;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

/* Text Section */
.whatsapp-popup-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.whatsapp-popup-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0b7a75; /* Teal title */
  margin-bottom: 2px;
  text-transform: uppercase;
}

.whatsapp-popup-msg {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b; /* Dark text */
  margin: 0;
  line-height: 1.3;
}

/* Close Button (X) */
.whatsapp-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.whatsapp-popup-close:hover {
  color: #ef4444;
}

@keyframes pulse-whatsapp-dark {
  0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15), 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile responsive styles for floating buttons */
@media (max-width: 767px) {
  .whatsapp-popup {
    /* Position the popup above the WhatsApp button on mobile so it doesn't overflow horizontally */
    right: 0;
    bottom: calc(100% + 10px);
    top: auto;
    transform: translateY(10px);
    max-width: 260px;
  }
  .whatsapp-popup.active {
    transform: translateY(0);
  }
  .whatsapp-popup::after {
    /* Reposition triangle pointer pointing downwards */
    right: 18px;
    bottom: -7px;
    top: auto;
    transform: none;
    border-width: 7px 7px 0 7px;
    border-color: #ffffff transparent transparent transparent;
  }
  .whatsapp-floater-container {
    right: 26px; /* perfectly aligns centered horizontally with #scrollTop */
    bottom: 24px;
  }
  #scrollTop.show ~ .whatsapp-floater-container {
    bottom: 80px; /* 24px bottom + 44px height of scrollTop + 12px gap */
  }
  .btn-whatsapp-dark {
    width: 48px;
    height: 48px;
  }
  .btn-whatsapp-dark i {
    font-size: 1.7rem;
  }
  .btn-whatsapp-dark::after {
    width: 10px;
    height: 10px;
  }
}

/* ─────────────────────────────────────────────
   5. TOPBAR
───────────────────────────────────────────── */
#topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#topbar a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}
#topbar a:hover { color: var(--accent); }
.topbar-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}
.emergency-badge {
  background: var(--danger);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 50px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  transition: var(--transition);
}
.topbar-social a:hover { background: var(--primary); color: var(--white); }

/* ─────────────────────────────────────────────
   6. NAVBAR
───────────────────────────────────────────── */
#mainNav {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-300);
  transition: var(--transition);
  padding: 0;
}
#mainNav .container { min-height: 72px; }
.nav-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}
.nav-brand-sub {
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}
#mainNav .nav-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--dark) !important;
  padding: 26px 14px !important;
  position: relative;
  letter-spacing: 0.1px;
  transition: var(--transition);
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--primary) !important; }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
.dropdown-menu {
  .nav-link.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link.dropdown-toggle::after {
  margin-left: auto;
  .dropdown-toggle::after {
  content: "▼" !important;
  display: inline-block !important;
  margin-left: 10px;
}   /* pushes arrow to right */
}
}
.dropdown-item {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--dark-alt);
  padding: 9px 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 26px;
}
.dropdown-item i { width: 16px; color: var(--primary); font-size: 0.85rem; }
#mainNav.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

/* ── Departments Mega Menu ── */
.mega-menu-parent { position: static !important; }
.mega-dropdown {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: unset !important;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 8px;
  padding: 28px 36px !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  border-top: 3px solid var(--primary);
  margin-top: 0 !important;
}
.mega-dropdown.show { display: grid !important; }
.mega-col { display: flex; flex-direction: column; }
.mega-col .dropdown-item {
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--dark-alt);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  margin-bottom: 2px;
  background: none;
}
.mega-col .dropdown-item::before {
  content: '›';
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.mega-col .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 18px;
}
.mega-view-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--gray-300);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
.mega-view-all a {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.mega-view-all a:hover { color: var(--primary-dark); gap: 10px; }
@media (max-width: 991px) {
  .mega-menu-parent { position: relative !important; }
  .mega-dropdown {
    position: static !important;
    display: none;
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 16px !important;
    box-shadow: none !important;
    border-top: 1px solid var(--gray-300) !important;
    border-radius: var(--radius) !important;
  }
  .mega-dropdown.show { display: grid !important; }
  .mega-view-all { display: none; }
}
@media (max-width: 480px) {
  .mega-dropdown { grid-template-columns: 1fr !important; }
}

/* ─────────────────────────────────────────────
   7. PAGE HEADER (Inner Pages)
───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-alt) 60%, #063d3a 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(11, 122, 117, 0.08);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(11, 122, 117, 0.06);
  pointer-events: none;
}
.page-header-content { position: relative; z-index: 2; }
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-header p { color: rgba(255, 255, 255, 0.7); font-size: 1rem; margin: 0; }
.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.breadcrumb-item a { color: rgba(255, 255, 255, 0.6); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.35); }

/* ─────────────────────────────────────────────
   8. HERO (index.html only)
───────────────────────────────────────────── */
#hero { position: relative; overflow: hidden; }

.hero-slide {
  min-height: 92vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 22, 20, 0.88) 0%, rgba(8, 22, 20, 0.4) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 122, 117, 0.2);
  border: 1px solid rgba(11, 122, 117, 0.5);
  color: #7ee8e3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin-bottom: 2.2rem;
  line-height: 1.75;
}
.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1 !important;
  transition: var(--transition);
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: var(--primary); }
.carousel-control-prev { left: 24px; }
.carousel-control-next { right: 24px; }
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 4px;
  transition: var(--transition);
}
.carousel-indicators .active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   9. QUICK BAR
───────────────────────────────────────────── */
#quickBar { background: var(--primary); padding: 20px 0; }
.quick-item { display: flex; align-items: flex-start; gap: 14px; }
.quick-item .quick-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quick-text small { color: rgba(255, 255, 255, 0.7); font-size: 0.73rem; display: block; }
.quick-text strong { color: var(--white); font-size: 0.92rem; }

/* ─────────────────────────────────────────────
   10. ABOUT (home preview + about.html)
───────────────────────────────────────────── */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--card-shadow-lg); }
.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(11, 122, 117, 0.35);
  min-width: 130px;
}
.about-badge-card .num { font-size: 2.4rem; font-weight: 800; font-family: 'Inter', sans-serif; line-height: 1; }
.about-badge-card small { font-size: 0.76rem; opacity: 0.85; }
.about-check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--dark-alt);
}
.about-check li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.highlight-strip {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  border: 1px solid var(--gray-300);
}
.highlight-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.highlight-item small { color: var(--gray-500); font-size: 0.78rem; }
.milestone-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--primary);
  height: 100%;
}
.milestone-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.milestone-card h5 { font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.milestone-card p { font-size: 0.84rem; color: var(--gray-500); margin: 0; }
.cert-badge {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  border: 1px solid var(--gray-300);
  height: 100%;
}
.cert-badge i { font-size: 2.2rem; color: var(--primary); margin-bottom: 10px; }
.cert-badge h6 { font-size: 0.88rem; color: var(--dark); margin-bottom: 4px; }
.cert-badge small { font-size: 0.75rem; color: var(--gray-500); }

/* ─────────────────────────────────────────────
   11. DEPARTMENTS
───────────────────────────────────────────── */
.dept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-300);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.dept-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: var(--transition);
}
.dept-card:hover::before { opacity: 1; }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-lg); }
.dept-card > * { position: relative; z-index: 1; }
.dept-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}
.dept-card:hover .dept-icon { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.dept-card h5 { font-size: 1rem; margin-bottom: 8px; color: var(--dark); transition: var(--transition); }
.dept-card p { font-size: 0.83rem; color: var(--gray-500); margin: 0; transition: var(--transition); }
.dept-card:hover h5,
.dept-card:hover p { color: rgba(255, 255, 255, 0.9); }
.dept-link {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.dept-card:hover .dept-link { color: rgba(255, 255, 255, 0.85); }
.dept-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-300);
  height: 100%;
  transition: var(--transition);
}
.dept-detail-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); }
.dept-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   12. DOCTORS
───────────────────────────────────────────── */
.doctor-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--gray-300);
  height: 100%;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-lg); }
.doctor-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1.1; }
.doctor-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.doctor-card:hover .doctor-img-wrap img { transform: scale(1.05); }
.doctor-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 122, 117, 0.9) 0%, transparent 55%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.doctor-card:hover .doctor-overlay { opacity: 1; }
.doctor-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.82rem;
  margin-right: 6px;
  transition: var(--transition);
}
.doctor-social a:hover { background: var(--white); color: var(--primary); }
.doctor-info { padding: 20px; border-top: 1px solid var(--gray-200); }
.doctor-info h5 { font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.doctor-info .spec {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.doctor-info .exp { color: var(--gray-500); font-size: 0.78rem; margin-top: 4px; }
.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  padding: 6px 18px;
  transition: var(--transition);
}
.btn-view-profile:hover { background: var(--primary); color: var(--white); }
.doctor-filter-btn {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.doctor-filter-btn.active,
.doctor-filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ─────────────────────────────────────────────
   13. SERVICES
───────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-300);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-lg); border-color: var(--primary); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 18px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: var(--white); }
.service-card h5 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

/* ─────────────────────────────────────────────
   14. FACILITIES
───────────────────────────────────────────── */
.facility-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  transition: var(--transition);
  height: 100%;
}
.facility-card:hover { background: var(--primary); transform: translateY(-6px); border-color: var(--primary); }
.facility-card:hover .facility-icon,
.facility-card:hover h6,
.facility-card:hover p { color: var(--white); }
.facility-icon { font-size: 2rem; color: var(--primary); margin-bottom: 14px; transition: var(--transition); }
.facility-card h6 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; transition: var(--transition); }
.facility-card p { font-size: 0.8rem; color: var(--gray-500); margin: 0; transition: var(--transition); }

/* ─────────────────────────────────────────────
   15. STATS
───────────────────────────────────────────── */
#stats {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 50%, #063d3a 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(11, 122, 117, 0.06);
}
.stat-item { text-align: center; }
.stat-icon { font-size: 2.2rem; color: var(--accent); margin-bottom: 14px; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ─────────────────────────────────────────────
   16. APPOINTMENT FORM
───────────────────────────────────────────── */
.appt-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(11, 122, 117, 0.1);
  border: 1px solid var(--gray-300);
}
.appt-info-wrap {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  height: 100%;
}
.appt-info-wrap h3 { color: var(--white); margin-bottom: 1rem; }
.appt-contact-item { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; }
.appt-contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.appt-contact-item .info strong { display: block; color: var(--white); font-size: 0.88rem; margin-bottom: 2px; }
.appt-contact-item .info span { color: rgba(255, 255, 255, 0.75); font-size: 0.84rem; }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--dark-alt); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  padding: 11px 16px;
  font-size: 0.88rem;
  transition: var(--transition);
  color: var(--dark-alt);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.1);
}
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(11, 122, 117, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(11, 122, 117, 0.4);
  color: var(--white);
}

/* ─────────────────────────────────────────────
   17. TESTIMONIALS
───────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-300);
  position: relative;
  height: 100%;
}
.testimonial-card .quote-mark {
  font-size: 4rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
  font-weight: 700;
}
.stars { color: var(--accent); font-size: 0.82rem; margin-bottom: 14px; }
.feedback { font-size: 0.9rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.author-role { font-size: 0.75rem; color: var(--gray-500); }

/* ─────────────────────────────────────────────
   18. BLOG
───────────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-300);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-lg); }
.blog-img { overflow: hidden; aspect-ratio: 16 / 10; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.blog-date { color: var(--gray-500); font-size: 0.76rem; margin-bottom: 8px; }
.blog-body h5 { font-size: 1rem; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.blog-body p { font-size: 0.84rem; color: var(--gray-500); flex: 1; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  margin-top: 14px;
  transition: var(--transition);
}
.read-more:hover { gap: 10px; color: var(--primary-dark); }

/* ─────────────────────────────────────────────
   19. CONTACT
───────────────────────────────────────────── */
.contact-info-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-300);
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.88rem; color: var(--dark); margin-bottom: 3px; }
.contact-item-text span { font-size: 0.83rem; color: var(--gray-500); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); height: 300px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ─────────────────────────────────────────────
   20. FOOTER
───────────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 0;
}
#footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  letter-spacing: 0.3px;
}
#footer p { font-size: 0.86rem; line-height: 1.8; }
#footer ul li { margin-bottom: 11px; }
#footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
#footer ul li a:hover { color: var(--accent); padding-left: 4px; }
#footer ul li a i { font-size: 0.65rem; color: var(--primary); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  margin-right: 8px;
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.84rem; }
.footer-contact-item i { color: var(--primary); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }
#footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  margin-top: 56px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
#footer-bottom a { color: rgba(255, 255, 255, 0.45); }
#footer-bottom a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   21. SCROLL TO TOP
───────────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(11, 122, 117, 0.4);
  border: none;
  cursor: pointer;
  z-index: 9999;
  transition: var(--transition);
}
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }
#scrollTop.show { display: flex; }

/* ─────────────────────────────────────────────
   22. RESPONSIVE OVERRIDES
───────────────────────────────────────────── */
@media (max-width: 991px) {
  #mainNav .nav-link { padding: 14px 14px !important; }
  #mainNav .nav-link::after { display: none; }
  .hero-slide { min-height: 75vh; }
  .appt-form-wrap, .appt-info-wrap { padding: 36px 28px; }
}
@media (max-width: 767px) {
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
  .hero-slide {
    min-height: 65vh;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .hero-title { font-size: 1.9rem; }
  .about-badge-card { position: static; margin-top: 20px; display: inline-block; }
  .appt-form-wrap, .appt-info-wrap { padding: 28px 20px; }
  .page-header { padding: 60px 0; }
}
@media (max-width: 575px) {
  .section-title { font-size: 1.65rem; }
  .carousel-control-prev, .carousel-control-next { display: none; }
}
