/* Marwar Hospital Bikaner - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Hospital Theme */
:root {
  --primary-color: #0066cc;
  --secondary-color: #50c105e3;
  --accent-color: #ff6b6b;
  --success-color: #e2e5f5;
  --warning-color: #ffa726;
  --text-dark: #2c3e50;
  --text-light: #2c3e50;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  /* header height used to offset hero content so header (fixed) doesn't create visible gap */
  --header-height: 120px;
  /* Secondary button colors (isolated from primary/primary-color so header links won't change)
     Change these to update only `.btn.btn-secondary` visuals */
  --btn-secondary-bg: var(--primary-color);
  --btn-secondary-color: #ffffff;
  --btn-secondary-border: transparent;
  --btn-secondary-hover: #219301;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make media elements responsive by default */
img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  /* push page content below the fixed header to avoid overlap */
  padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.col {
  padding: 0 15px;
  flex: 1;
}

/* Hero background image + overlay pattern (used by about.html) */
:root {
  --hero-overlay-color: rgba(3, 86, 144, 0.55); /* slightly stronger tint so text is visible */
  --hero-overlay-gradient: linear-gradient(180deg, rgba(3,86,144,0.55) 0%, rgba(3,86,144,0.45) 40%, rgba(0,0,0,0.18) 100%);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  filter: saturate(1.05) contrast(1.02);
  background: var(--bg-white);
  padding: 0;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay-gradient);
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.hero-content p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

/* Tablet screens (1025px+) */
@media (min-width: 1025px) {
  .hero {
    min-height: calc(100vh - var(--header-height, 80px));
  }
  .hero-slider {
    min-height: calc(100vh - var(--header-height, 80px));
  }
  .hero-slide {
    height: calc(100vh - var(--header-height, 80px));
    min-height: 600px;
  }
}

/* Medium screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 90vh;
    height: auto;
  }
  .hero-slider {
    min-height: 90vh;
  }
  .hero-slide {
    min-height: 90vh;
  }
  .hero-content {
    padding: 50px 20px;
  }
  .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
  }
  .hero-content p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    height: auto;
  }
  .hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
  }
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
  }
  .hero-content { 
    text-align: center; 
    padding: 40px 20px;
  }
  .hero-content h1 { 
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  /* Style scroll bar on mobile where supported */
  .nav-menu::-webkit-scrollbar { width: 8px; }
  .nav-menu::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 8px; }

  /* Mobile: make dropdown lists expand in-flow rather than absolute hover */
  .nav-menu .dropdown-list {
    position: relative;
    top: auto; left: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding-left: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }

  .nav-menu .dropdown-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* leave room on the right for the expander so text doesn't overlap the chevron */
    padding-right: 56px;
  }

  .nav-menu .dropdown-menu-item.active .dropdown-list {
    max-height: none;
    overflow: visible;
    padding-left: 6px;
  }

  /* Expander button (mobile only) shown on the right of parent links */
  .dropdown-expander {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.05rem;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    /* position the expander to the extreme right inside the parent link */
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .dropdown-expander span { display: inline-block; transform: rotate(0deg); transition: transform 220ms ease; }
  .dropdown-menu-item.active > a .dropdown-expander span { transform: rotate(90deg); }

  /* Hide expander on desktop (only mobile) */
  @media (min-width: 769px) {
    .dropdown-expander { display: none; }
  }

  /* Left-side expander (new): place an arrow on the left of parent menu items */
  .dropdown-expander-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--primary-color);
    font-size: 1rem;
    padding: 6px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 6px 18px rgba(2,48,78,0.06);
    z-index: 9999;
    pointer-events: auto;
    touch-action: manipulation;
  }

  /* Anchor dropdown expander within the menu item */
  .nav-menu .dropdown-menu-item {
    position: relative;
  }

  .dropdown-expander-left:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
  }

  /* ensure parent link text doesn't overlap left expander; keep default left padding small
     but ensure there is room on the right for the right-side arrow which we append into the link */
  .nav-menu .dropdown-menu-item > a {
    padding-left: 12px;
    padding-right: 64px; /* give room for the arrow appended to the right */
  }

  .dropdown-expander-left span { display: inline-block; transform: rotate(0deg); transition: transform 220ms ease; }
  .dropdown-menu-item.active > .dropdown-expander-left span { transform: rotate(90deg); }

  /* Style the inline SVG inside the expander */
  .dropdown-expander-left svg {
    width: 14px;
    height: 14px;
    display: block;
    color: var(--primary-color);
  }

  /* hide left arrows on larger viewports (desktop) */
  @media (min-width: 769px) {
    .dropdown-expander-left { display: none; }
  }

  /* Right-side expander (visible by appending into the link). Use existing right-expander styles
     (defined earlier) — but ensure the SVG color is black and spacing matches requirement. */
  .dropdown-expander svg,
  .dropdown-expander-right svg {
    width: 14px;
    height: 14px;
    display: block;
    color: #000; /* make the chevron black as requested */
    fill: #000;
  }

  /* ensure appended expander (right) is positioned correctly inside the parent link */
  /* support expander as a sibling of the anchor (we add it as a sibling in HTML) */
  .nav-menu .dropdown-menu-item > .dropdown-expander,
  .nav-menu .dropdown-menu-item > a + .dropdown-expander,
  .nav-menu .dropdown-menu-item > a .dropdown-expander {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 6px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(2,48,78,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: auto;
    touch-action: manipulation;
  }

  /* keep right expander visible only on mobile */
  @media (min-width: 769px) {
    .nav-menu .dropdown-menu-item > a .dropdown-expander { display: none; }
  }

  /* Submenu scrolling when expanded on mobile */
  .nav-menu .dropdown-menu-item .dropdown-list {
    transition: max-height 0.28s ease;
    overflow: hidden;
    max-height: 0;
  }

  .nav-menu .dropdown-menu-item.active .dropdown-list {
    max-height: 320px; /* default; JS may set a more suitable maxHeight */
    overflow-y: auto;
    padding-left: 8px;
  }

  .nav-menu .dropdown-list li a {
    padding: 10px 12px;
    border-left: none;
  }
  .hero-content p { font-size: 0.96rem; }
}

@media (max-width: 480px) {
  .hero { 
    min-height: 100vh; 
    height: auto; 
  }
  .hero-slider { 
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
  }
  .hero-slide { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-content { 
    text-align: center;
    padding: 30px 15px;
  }
  .hero-content h1 { 
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  .hero-content p { 
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  /* Stack buttons vertically on very small screens */
  .hero-content .d-flex.gap-2 {
    flex-direction: column;
  }
  .hero-content .d-flex.gap-2 > * {
    width: 100%;
  }
}

/* Doctor detail page styles */
.doctor-page .doctor-profile-header.grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: center;
}

.doctor-avatar-wrap { text-align: center; }
.doctor-avatar {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden; /* ensure inner image is clipped to circle */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  box-shadow: 0 10px 30px rgba(2,48,78,0.12);
}

/* ensure any image placed inside the avatar fills it correctly */
.doctor-avatar img,
.doctor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-contact-mobile { display: none; gap: 8px; margin-top: 12px; }

.doctor-name { font-size: 2rem; margin-bottom: 6px; }
.doctor-qualification { color: var(--primary-color); margin-bottom: 8px; }
.doctor-role { color: var(--text-light); font-size: 1.05rem; margin-bottom: 14px; }

.doctor-meta { display: flex; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.meta-item { text-align: left; }
.meta-number { font-size: 1.4rem; font-weight: 700; color: var(--primary-color); }
.meta-label { font-size: 0.9rem; color: var(--text-light); }

.doctor-specialties { margin-bottom: 16px; }
.specialty-tag { display: inline-block; background: #fff; color: var(--primary-color); padding: 6px 10px; border-radius: 20px; margin-right: 8px; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; }

.doctor-actions .btn { margin-right: 8px; }

.doctor-sidebar { grid-column: 2 / 3; margin-top: 24px; }
.doctor-sidebar .doctor-card { background: #fff; padding: 16px; border-radius: 10px; box-shadow: var(--shadow-light); margin-bottom: 16px; }
.doctor-sidebar .doctor-card h4 { margin: 0 0 8px; }
.doctor-sidebar .card-body p { margin: 6px 0; color: var(--text-light); }

/* For pages that use the sidebar as the second column in the about-grid */
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }

@media (max-width: 992px) {
  .doctor-page .doctor-profile-header.grid { grid-template-columns: 1fr; text-align: center; }
  .doctor-avatar { width: 180px; height: 180px; font-size: 4rem; }
  .doctor-contact-mobile { display: flex; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .doctor-sidebar { grid-column: 1 / -1; }
}

/* Image box replacements for inline placeholders */
.image-box {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  display: block;
}
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-hospital {
  background: var(--bg-white);
  color: var(--text-light);
  display: block;
}

.image-prism {
  background: var(--primary-color);
  color: #fff;
  display: block;
}


/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header.scrolled {
  box-shadow: var(--shadow-medium);
}

.top-bar {
  background: var(--primary-color);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* changes in her */

.contact-info {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  height: 30px;
  background-color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
}

.contact-info span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 26s linear infinite;
  letter-spacing: 0.5px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Contact Form + Map Section */
.ffbox {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-light);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.ffbox1 {
  flex: 1;
  padding: 30px;
  background-color: var(--bg-light);
}

.ffbox1 label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.ffbox1 input,
.ffbox1 textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  background-color: #eaeaea;
  border: 1px solid var(--border-color);
  font-size: 1rem;
}

.ffbox1 textarea {
  resize: vertical;
  min-height: 120px;
}

.ffbox1 button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.ffbox1 button:hover {
  background-color: var(--secondary-color);
}



.ffbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px); /* adjust based on header height */
  margin-top: 140px; /* push below fixed header */
  padding: 20px;
}


.map-div {
  flex: 1;
  background-color: var(--bg-light);
  padding: 20px;
}

.map-div iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .ffbox {
    flex-direction: column;
  }

  .ffbox1,
  .map-div {
    padding: 20px;
  }

  .map-div iframe {
    height: 300px;
  }
}


/* Contact Form + Map Section end */


/* Gallery responsive layout and polished cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

.gallery-item {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.gallery-item .gallery-thumb {
  width: 100%;
  height: 250px; /* desktop card height */
  object-fit: cover;
  display: block;
}

.gallery-item h5,
.gallery-item p {
  padding: 12px 16px;
  margin: 0;
  color: var(--text-dark);
}

.gallery-item p { color: var(--text-light); font-size: 0.95rem; }

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

@media (max-width: 992px) {
  .gallery-item .gallery-thumb { height: 200px; }
}

@media (max-width: 480px) {
  .gallery-item .gallery-thumb { height: 140px; }
  .gallery-grid { gap: 14px; }
}

/* Buttons: modern pill buttons used across site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 6px 18px rgba(0,102,204,0.18);
}

.btn-accent {
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  color: white;
  box-shadow: 0 6px 18px rgba(0,168,255,0.14);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 1px solid var(--btn-secondary-border);
}

.btn-white {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn:hover {
  transform: translateY(-3px);
  opacity: 0.98;
}

/* Small helper for centered text areas */
.text-center { text-align: center; }

/* Ensure hero remains usable on small screens */
@media (max-width: 768px) {
  .hero { height: 48vh; min-height: 260px; }
  .hero-bg { object-position: center top; }
}

/* Minor tweaks for gallery card headings */
.gallery-item h5 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }






/* changes end here for scrool all contact */
.schemes-badges {
  display: flex;
  gap: 15px;
  align-items: center;
}

.scheme-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.navbar {
  padding: 7px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Container to avoid conflicts with any existing .logo styles */
.brand-wrapper {
  /* optional spacing: adjust as needed */
  padding: 6px 0;
}

/* make logo and text inline and vertically centered */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* image-specific class (no conflict with .logo) */
.logo-img {
  width: 80px;      /* change size as required */
  height: auto;
  display: block;
  max-width: none;  /* ensure not forced to 100% by any global img rule */
}

/* text styling for hospital name chagesss */
.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  line-height: 1;
}

/* responsive smaller screens changesss*/
@media (max-width: 480px) {
  .logo-img { width: 56px; }
  .logo-text { font-size: 1.2rem; }
}


/* === Desktop Navigation Styles === */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* === Dropdown Menu for Specialities === */
.dropdown-menu-item {
  position: relative;
}

.dropdown-menu-item > a {
  cursor: pointer;
  user-select: none;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: white;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1010;
  padding: 4px 0;
  margin-top: 4px;
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-menu-item:hover .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-list li {
  margin: 0;
  list-style: none;
}

.dropdown-list a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.dropdown-list a:hover {
  background: #f0f5ff;
  border-left-color: var(--primary-color);
  padding-left: 18px;
  color: var(--primary-color);
}

/* Highlight current dropdown item when viewing that section/page */
.dropdown-list a.current {
  background: #eaf4ff;
  border-left-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding-left: 18px;
}

.dropdown-list a::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1001;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  margin-left: auto;
}


/* === Mobile Navigation Styles === */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  /* Classic top dropdown mobile menu with smooth open/close animations */
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height,120px));
    left: 0;
    width: 100%;
    background: white;
    /* allow scrolling inside mobile nav */
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* keep menu column layout and animations */
    flex-direction: column;
    padding: 14px 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transform: scaleY(0.96) translateY(-6px);
    transition: transform 380ms cubic-bezier(.22,.9,.3,1), opacity 260ms ease, visibility 260ms ease;
    z-index: 999;
    display: flex;
    pointer-events: none;
  }

  /* scrollbar styles for WebKit browsers */
  .nav-menu::-webkit-scrollbar { width: 8px; }
  .nav-menu::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 8px; }

  /* Active - animate open with subtle overshoot (curtain-like) */
  .nav-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: navOpen 420ms cubic-bezier(.22,.9,.3,1) forwards;
  }

  @keyframes navOpen {
    0% { transform: scaleY(0.94) translateY(-8px); opacity: 0; }
    60% { transform: scaleY(1.02) translateY(2px); opacity: 1; }
    100% { transform: scaleY(1) translateY(0); opacity: 1; }
  }

  /* Closing animation mirrors navOpen so close feels symmetric */
  @keyframes navClose {
    0% { transform: scaleY(1) translateY(0); opacity: 1; }
    40% { transform: scaleY(1.02) translateY(2px); opacity: 1; }
    100% { transform: scaleY(0.94) translateY(-8px); opacity: 0; }
  }

  /* When closing, play the close keyframe. Keep .active so visibility is retained during animation. */
  .nav-menu.closing {
    animation: navClose 360ms cubic-bezier(.22,.9,.3,1) forwards;
  }

  /* Ensure the SVG chevrons inside expander buttons do not intercept pointer events
     so taps/clicks land on the button itself on mobile devices. */
  .dropdown-expander svg,
  .dropdown-expander-left svg,
  .dropdown-expander svg *,
  .dropdown-expander-left svg * {
    pointer-events: none;
  }

  /* Closing uses inverse transform so transition handles it */
  .nav-menu:not(.active) {
    transform: scaleY(0.96) translateY(-6px);
    opacity: 0;
    visibility: hidden;
  }

  /* Left-align items and add a modern hover effect + staggered reveal */
  .nav-menu li { width: 100%; list-style: none; opacity: 0; transform: translateX(-10px); }
  .nav-menu a {
    display: block;
    padding: 12px 10px;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    transition: background 180ms ease, transform 160ms ease, color 180ms ease, opacity 240ms ease;
    text-align: left;
  }

  .nav-menu a:hover {
    background: linear-gradient(90deg, rgba(0,102,204,0.06), rgba(0,168,255,0.06));
    transform: translateX(6px);
    color: var(--primary-color);
  }

  .nav-menu a.active {
    background: rgba(0,102,204,0.08);
    color: var(--primary-color);
  }

  /* Stagger reveal for list items when menu is active */
  .nav-menu.active li { opacity: 1; transform: translateX(0); }
  .nav-menu.active li:nth-child(1) { transition-delay: 40ms; }
  .nav-menu.active li:nth-child(2) { transition-delay: 80ms; }
  .nav-menu.active li:nth-child(3) { transition-delay: 120ms; }
  .nav-menu.active li:nth-child(4) { transition-delay: 160ms; }
  .nav-menu.active li:nth-child(5) { transition-delay: 200ms; }
  .nav-menu.active li:nth-child(6) { transition-delay: 240ms; }
  .nav-menu.active li:nth-child(7) { transition-delay: 280ms; }

  /* Mobile dropdown menu styles */
  .dropdown-list {
    position: static;
    background: rgba(0,102,204,0.04);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-left: 20px;
    margin-top: 8px;
    padding: 0;
  }

  .dropdown-menu-item.active .dropdown-list,
  .dropdown-menu-item:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    max-height: none;
    padding: 4px 0;
    overflow: visible;
  }

  .dropdown-list a {
    padding: 10px 14px;
    font-size: 0.88rem;
    border-left: none;
    border-radius: 4px;
    margin: 2px 8px;
    white-space: normal;
  }

  .dropdown-list a:hover {
    background: linear-gradient(90deg, rgba(0,102,204,0.06), rgba(0,168,255,0.06));
    border-left: none;
    padding-left: 14px;
    color: var(--primary-color);
  }

  .dropdown-list a::after {
    display: none;
  }

  /* Mobile: compact buttons and floating-call */
  .btn { padding: 8px 12px; font-size: 0.95rem; border-radius: 999px; }
  .nav-menu .btn { display:inline-flex; width: calc(100% - 28px); margin: 8px 14px; justify-content:center; }
  .floating-call { width: 44px; height:44px; font-size:20px; line-height:44px; }

}
/* === Desktop Navigation Styles for 1025px and above === */
@media (min-width: 1025px) {
  /* Optimize navbar container width and center it */
  .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Reduce font size for navigation items to max 1rem */
  .nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 0;
  }

  /* Improve spacing between menu items - 20-25px gap */
  .nav-menu {
    gap: 22px;
  }

  /* Vertically center logo and text */
  .header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
  }

  .logo-img {
    width: 60px;
    height: auto;
    display: block;
  }

  .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Ensure navbar items are vertically centered */
  .navbar {
    padding: 8px 0;
  }

  .navbar .container {
    align-items: center;
    display: flex;
  }

  /* Dropdown styling for desktop - smaller and cleaner */
  .dropdown-list {
    min-width: 160px;
    font-size: 0.9rem;
  }

  .dropdown-list a {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}









/* responsive smaller screens changesss */

/* .nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto; 
  align-items: center;
 }


.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 0;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 1001;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    display: none;
  }

  .nav-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }
} */


.hero-slide.active {
  opacity: 1;
}

/* .hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 92, 190, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
} */

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.hero-nav:hover {
  background: rgba(255,255,255,0.3);
}

/* hero background image element used by slides */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(1.05) brightness(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,102,204,0.45) 0%, rgba(0,102,204,0.35) 40%, rgba(0,0,0,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: white;
}
/* ===== HOME PAGE HERO - AUTOMATIC SLIDER ===== */
/* This section applies ONLY to index.html home page hero with class .home-page-hero */
/* Light overlay allows images to be visible and clean, like about page */

.home-page-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page-hero .hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.home-page-hero .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.home-page-hero .hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.home-page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  filter: saturate(1.02);
  background: var(--bg-white);
  padding: 0;
  margin: 0;
}

/* Light overlay - minimal darkening to keep image visible and clean */
.home-page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,86,144,0.25) 0%, rgba(3,86,144,0.15) 50%, rgba(0,0,0,0.08) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
}

.home-page-hero .hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.home-page-hero .hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.home-page-hero .hero-content p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Home page hero navigation buttons */
.home-page-hero .hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-size: 2rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.home-page-hero .hero-nav:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.1);
}

.home-page-hero .hero-prev {
  left: 30px;
}

.home-page-hero .hero-next {
  right: 30px;
}

/* Home page hero dots/indicators */
.home-page-hero .hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.home-page-hero .hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.3);
}

.home-page-hero .hero-dot:hover {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

.home-page-hero .hero-dot.active {
  background: white;
  border-color: white;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Responsive design for home page hero */
/* Tablet screens (1025px+) */
@media (min-width: 1025px) {
  .home-page-hero {
    min-height: calc(100vh - var(--header-height, 80px));
  }
  .home-page-hero .hero-slider {
    min-height: calc(100vh - var(--header-height, 80px));
  }
  .home-page-hero .hero-slide {
    height: calc(100vh - var(--header-height, 80px));
    min-height: 600px;
  }
}

/* Medium screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-page-hero {
    min-height: 90vh;
    height: auto;
  }
  .home-page-hero .hero-slider {
    min-height: 90vh;
  }
  .home-page-hero .hero-slide {
    min-height: 90vh;
  }
  .home-page-hero .hero-content {
    padding: 50px 20px;
  }
  .home-page-hero .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
  }
  .home-page-hero .hero-content p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
  }
  .home-page-hero .hero-nav {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    padding: 8px 14px;
  }
  .home-page-hero .hero-dots {
    bottom: 30px;
    gap: 10px;
  }
  .home-page-hero .hero-dot {
    width: 8px;
    height: 8px;
  }
}

/* Mobile screens (max-width: 768px) */
@media (max-width: 768px) {
  .home-page-hero {
    min-height: 100vh;
    height: 100vh;
  }
  
  .home-page-hero .hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
  }
  
  .home-page-hero .hero-bg {
    object-fit: contain;
    object-position: 0px 193px;
    background: #ffffff;
  }
  
  .home-page-hero .hero-overlay {
    z-index: 5;
    background: linear-gradient(180deg, rgba(3,86,144,0.2) 0%, rgba(3,86,144,0.12) 40%, rgba(0,0,0,0.05) 100%);
  }
  
  .home-page-hero .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
  }
  
  .home-page-hero .hero-content {
    text-align: center;
    padding: 40px 15px;
    z-index: 15;
  }
  
  .home-page-hero .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .home-page-hero .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .home-page-hero .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    padding: 6px 10px;
    z-index: 25;
  }
  
  .home-page-hero .hero-prev {
    left: 12px;
  }
  
  .home-page-hero .hero-next {
    right: 12px;
  }
  
  .home-page-hero .hero-dots {
    bottom: 4px;
    gap: 8px;
    z-index: 25;
  }
  
  .home-page-hero .hero-dot {
    width: 5px;
    height: 5px;
    border: 1px solid rgb(0, 0, 0);
  }
}

/* ===== END HOME PAGE HERO STYLES ===== */



/* Single Image Hero (for doctors, specialities, facilities pages) */
/* These pages don't have .hero-slider, just .hero with .hero-slide.active */
.hero:not(:has(.hero-slider)) {
  height: auto;
  min-height: 500px;
  max-height: none;
}

.hero:not(:has(.hero-slider)) .hero-slide {
  position: relative;
  opacity: 1;
  display: block;
}

.hero:not(:has(.hero-slider)) .hero-slide.active {
  display: block;
}

.hero:not(:has(.hero-slider)) .hero-bg {
  object-fit: contain;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 2px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  color: var(--btn-secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-accent {
  background: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background: #28a745;
  color: white;
}

/* Sections */
.section {
  padding: 80px 0;
}

/* Professional CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
  color: white;
}

.cta-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,48,78,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-content { flex: 1 1 380px; }
.cta-title { font-size: 2rem; margin: 0 0 6px; color: #fff; }
.cta-text { color: rgba(255,255,255,0.92); margin: 0 0 8px; font-size: 1.05rem; }

.cta-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-actions .btn { padding: 12px 22px; border-radius: 999px; font-weight: 600; }

.cta-section .btn-white {
  background: white; color: var(--primary-color); box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.cta-section .btn-white:hover { transform: translateY(-3px); }

.cta-section .btn-accent { background: #ff6b6b; color: #fff; }
.cta-section .btn-accent:hover { background: #ff5252; }

@media (max-width: 768px) {
  .cta-card { flex-direction: column; text-align: center; padding: 28px 18px; }
  .cta-content { order: 1; }
  .cta-actions { order: 2; justify-content: center; width: 100%; }
  .cta-actions .btn { width: auto; }
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
  margin-top: 5px;
}

/* Highlight target when navigated from dropdown or on-page link */
.highlight-target {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,249,230,0.9), rgba(255,255,255,0.0));
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 12px;
}

/* Services/Specialities Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Service Card Link Wrapper */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.service-card-link:hover .service-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.service-card h4 {
  color: var(--text-dark);
  margin-bottom: 15px;
}

/* Facilities Section */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.facility-item {
  background: var(--bg-white);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.facility-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.facility-icon {
  width: 60px;
  height: 60px;
  background: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: white;
}

/* Doctors Grid */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 4fr));
  gap: 30px;
}

.doctor-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.doctor-image {
  width: 100%;
  height: 250px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-light);
}

.doctor-info {
  padding: 25px;
  text-align: center;
}

.doctor-name {
  color: var(--text-dark);
  margin-bottom: 5px;
}

.doctor-qualification {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.doctor-department {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
/* Department SPA styles and lazy-image placeholder */
.mh-dept { --hero-height: 56vh; }
.mh-dept-hero { position: relative; overflow: hidden; }
.mh-dept-hero .mh-dept-hero-bg { position: relative; height: var(--hero-height); }
.mh-dept-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-dept-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35)); }
.mh-dept-container { position: relative; z-index: 2; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.mh-dept-hero-title { font-size: 2.4rem; color: #fff; font-weight: 700; }

.mh-dept-section { padding: 60px 0; background: var(--bg-white); }
.mh-dept-heading { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 12px; }
.mh-dept-about { color: var(--text-light); margin-bottom: 18px; }

.mh-dept-tabs { display: flex; gap: 8px; }
.mh-nav-link { background: transparent; border: 1px solid var(--border-color); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.mh-nav-link.mh-is-active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.mh-tab-pane { display: none; }
.mh-tab-pane.mh-show { display: block; }

.mh-dept-doctors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.mh-dept-card { background: var(--bg-white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-light); }
.mh-dept-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.mh-dept-card-body { padding: 12px; }
.mh-dept-card-title { margin: 8px 0 4px; font-size: 1rem; }
.mh-dept-card-text { margin: 4px 0; color: var(--text-light); font-size: 0.95rem; }
.mh-dept-card-sep { border: none; border-top: 1px solid var(--border-color); margin: 8px 0; }

/* Lazy image blur placeholder */
.mh-lazy--blur { filter: blur(8px) scale(1.02); transition: filter 0.5s ease, transform 0.5s ease; }
.mh-lazy { background: #f2f2f2; }

@media (max-width: 768px) {
  .mh-dept-hero { --hero-height: 40vh; }
  .mh-dept-hero-title { font-size: 1.6rem; }
}


.gallery-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  height: auto;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px; /* thumbnail height */
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Contact Info */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-info-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: white;
}

/* Map */
.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

.footer-copyright {
  color: white !important;
  margin: 0 !important;
}

/* Floating Call Button */
.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.floating-call:hover {
  background: #ff5252;
  color: white;
  transform: scale(1.1);
}

/* Contact Modal Styles */
#contactModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  /* a bit wider to comfortably show embedded map without being too large */
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-start;
}

.social-icons a {
  color: white;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}


@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-color);
  color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.modal-close {
  font-size: 2rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 25px;
}

.contact-option {
  margin-bottom: 25px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.contact-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

.contact-option:last-child {
  margin-bottom: 0;
}

.contact-option h4 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-option p {
  margin: 0 0 15px 0;
  color: #666;
}

.contact-option .btn {
  margin: 0;
  min-width: 120px;
}

/* Map iframe inside modal - size similar to contact page but constrained to modal */
.contact-option .map-iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

/* Slightly taller map on larger screens */
@media (min-width: 900px) {
  .contact-option .map-iframe {
    height: 400px;
  }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .contact-option {
    padding: 15px;
    margin-bottom: 15px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
/* @media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    display: none;
  }

  .nav-menu.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scaleY(1) !important;
  }
} */


  
  /* Normalized hero fallback (avoid large page-specific top margin that caused gaps on some pages) */
  .hero {
    height: 50vh;
    min-height: 320px;
    margin-top: 0;
    padding-top: 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-nav {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .schemes-badges {
    justify-content: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .service-card,
  .facility-item {
    padding: 25px 20px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }



/* Chatbot Icon */
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  font-size: 1.8rem;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Chatbot Window */
#chatbot-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: sans-serif;
}

#chatbot-header {
  background: var(--primary-color);
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
}

#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
}

#chatbot-input {
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  font-size: 1rem;
  outline: none;
}






/* =============================================
   RESPONSIVE STYLES FOR MARWAR HOSPITAL
   Mobile and Tablet Optimizations
   ============================================= */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
	.container {
		max-width: 960px;
		padding: 0 30px;
	}

	.services-grid,
	.facilities-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}

	.doctors-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 25px;
	}

	.stats-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 25px;
	}

	.nav-menu {
		gap: 20px;
	}

	h1 { font-size: 2.25rem; }
	h2 { font-size: 1.875rem; }
	h3 { font-size: 1.375rem; }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
	/* Base adjustments */
	html {
		font-size: 15px;
	}

	.container {
		max-width: 100%;
		padding: 0 20px;
	}

	/* Typography scaling */
	h1 { font-size: 2rem; }
	h2 { font-size: 1.75rem; }
	h3 { font-size: 1.5rem; }
	h4 { font-size: 1.125rem; }
	
	p {
		font-size: 0.95rem;
	}

	/* Header adjustments */
	.top-bar {
		font-size: 0.85rem;
		padding: 10px 0;
	}

	.top-bar .container {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	.contact-info {
		height: auto;
		padding: 8px 0;
	}

	.contact-info span {
		animation: scroll-left 26s linear infinite;
	}

	.schemes-badges {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
	}

	.scheme-badge {
		font-size: 0.75rem;
		padding: 3px 10px;
	}

	/* Logo adjustments */
	.logo-img {
		width: 60px;
	}

	.logo-text {
		font-size: 1.4rem;
	}

	/* Hero section */
	.hero {
		height: 50vh;
		min-height: 400px;
		padding-top: 130px;
	}

	.hero-content h1 {
		font-size: 1.75rem;
	}

	.hero-content p {
		font-size: 1rem;
	}

	.hero-nav {
		display: none;
	}

	.hero-dots {
		bottom: 15px;
	}

	.hero-dot {
		width: 10px;
		height: 10px;
	}

	/* Grids */
	.about-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.stat-item {
		padding: 25px 15px;
	}

	.stat-number {
		font-size: 2rem;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.service-card {
		padding: 30px 20px;
	}

	.service-icon {
		width: 70px;
		height: 70px;
		font-size: 1.75rem;
	}

	.facilities-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.facility-item {
		padding: 20px 15px;
	}

	.facility-icon {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}

	.doctors-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.doctor-image {
		height: 220px;
		font-size: 3.5rem;
	}

	.doctor-info {
		padding: 20px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.gallery-item {
		height: 180px;
	}

	/* Contact form adjustments */
	.ffbox {
		flex-direction: column;
	}

	.ffbox1,
	.map-div {
		padding: 25px;
	}

	.map-div iframe {
		height: 300px;
	}

	.contact-info-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.contact-info-item {
		padding: 25px 15px;
	}

	.contact-icon {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}

	/* Footer */
	.footer {
		padding: 50px 0 20px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	/* Sections */
	.section {
		padding: 60px 0;
	}

	.section-title {
		margin-bottom: 2rem;
	}

	.section-title h2 {
		font-size: 1.75rem;
	}

	.section-title p {
		font-size: 1rem;
	}

	/* Buttons */
	.btn {
		padding: 10px 25px;
		font-size: 0.95rem;
	}

	/* Modal adjustments */
	.modal-overlay {
		padding: 15px;
	}

	.modal-content {
		max-height: 92vh;
	}

	.modal-header {
		padding: 18px 20px;
	}

	.modal-header h3 {
		font-size: 1.15rem;
	}

	.modal-body {
		padding: 20px;
	}

	.contact-option {
		padding: 18px;
		margin-bottom: 18px;
	}

	.contact-option h4 {
		font-size: 1rem;
	}

	/* Chatbot adjustments */
	#chatbot-window {
		width: calc(100% - 40px);
		bottom: 90px;
		right: 20px;
		max-height: 350px;
	}

	#chatbot-icon {
		font-size: 1.6rem;
		padding: 10px 12px;
	}

	/* Floating call button */
	.floating-call {
		width: 55px;
		height: 55px;
		font-size: 1.35rem;
		bottom: 15px;
		right: 15px;
	}

	/* Social icons */
	.social-icons {
		justify-content: center;
		flex-wrap: wrap;
	}

	.social-icons a {
		width: 38px;
		height: 38px;
		font-size: 1.1rem;
	}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
	/* Base adjustments */
	html {
		font-size: 14px;
	}

	.container {
		padding: 0 15px;
	}

	/* Typography */
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }
	h4 { font-size: 1.05rem; }
	h5 { font-size: 0.95rem; }

	p {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	/* Header */
	.top-bar {
		font-size: 0.8rem;
		padding: 8px 0;
	}

	.contact-info span {
		font-size: 0.9rem;
		animation: scroll-left 26s linear infinite;
	}

	.schemes-badges {
		gap: 8px;
	}

	.scheme-badge {
		font-size: 0.7rem;
		padding: 2px 8px;
	}

	/* Logo */
	.logo-img {
		width: 50px;
	}

	.logo-text {
		font-size: 1.1rem;
	}

	/* Hero */
	.hero {
		height: 45vh;
		min-height: 350px;
		padding-top: 120px;
	}

	.hero-content h1 {
		font-size: 1.5rem;
	}

	.hero-content p {
		font-size: 0.9rem;
	}

	/* Grids - Single column layout */
	.facilities-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.gallery-item {
		height: 220px;
	}

	/* Cards and items */
	.service-card,
	.facility-item {
		padding: 25px 20px;
	}

	.service-icon {
		width: 60px;
		height: 60px;
		font-size: 1.5rem;
	}

	.facility-icon {
		width: 45px;
		height: 45px;
		font-size: 1.1rem;
	}

	.stat-item {
		padding: 20px 15px;
	}

	.stat-number {
		font-size: 1.75rem;
	}

	.stat-label {
		font-size: 0.9rem;
	}

	.doctor-image {
		height: 200px;
		font-size: 3rem;
	}

	.doctor-info {
		padding: 18px;
	}

	/* Contact form */
	.ffbox1 {
		padding: 20px;
	}

	.ffbox1 input,
	.ffbox1 textarea {
		padding: 10px 12px;
		margin-bottom: 15px;
		font-size: 0.95rem;
	}

/* Support when the actual <img> element has class="doctor-image" (about.html uses this) */
.doctor-card img.doctor-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .doctor-card img.doctor-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .doctor-card img.doctor-image {
    height: 180px;
  }
}

	.ffbox1 button {
		padding: 10px;
		font-size: 0.95rem;
	}

	.map-div {
		padding: 15px;
	}

	.map-div iframe {
		height: 250px;
	}

	.ffbox-wrapper {
		margin-top: 130px;
		padding: 15px;
	}

	/* Forms */
	.form-control {
		padding: 10px 12px;
		font-size: 0.95rem;
	}

	textarea.form-control {
		min-height: 100px;
	}

	.contact-info-item {
		padding: 20px 15px;
	}

	/* Sections */
	.section {
		padding: 50px 0;
	}

	.section-title {
		margin-bottom: 1.75rem;
	}

	.section-title h2 {
		font-size: 1.5rem;
	}

	.section-title p {
		font-size: 0.95rem;
	}

	/* Buttons */
	.btn {
		padding: 9px 20px;
		font-size: 0.9rem;
	}

	/* Modal */
	.modal-overlay {
		padding: 10px;
	}

	.modal-content {
		max-height: 95vh;
		border-radius: 10px;
	}

	.modal-header {
		padding: 15px 18px;
	}

	.modal-header h3 {
		font-size: 1.05rem;
	}

	.modal-close {
		font-size: 1.75rem;
	}

	.modal-body {
		padding: 18px;
	}

	.contact-option {
		padding: 15px;
		margin-bottom: 15px;
	}

	.contact-option h4 {
		font-size: 0.95rem;
	}

	.contact-option p {
		font-size: 0.85rem;
	}

	.contact-option .btn {
		min-width: 100px;
		font-size: 0.85rem;
	}

	/* Chatbot */
	#chatbot-window {
		width: calc(100% - 30px);
		bottom: 85px;
		right: 15px;
		max-height: 320px;
	}

	#chatbot-header {
		padding: 10px;
		font-size: 0.95rem;
	}

	#chatbot-messages {
		padding: 8px;
		font-size: 0.85rem;
	}

	#chatbot-input {
		padding: 8px;
		font-size: 0.9rem;
	}

	#chatbot-icon {
		font-size: 1.5rem;
		padding: 9px 11px;
		bottom: 15px;
		right: 15px;
	}

	/* Floating elements */
	.floating-call {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}

	/* Footer */
	.footer {
		padding: 40px 0 15px;
	}

	.footer-content {
		gap: 25px;
	}

	.footer-section h4 {
		font-size: 1rem;
		margin-bottom: 15px;
	}

	.footer-section p,
	.footer-section a {
		font-size: 0.9rem;
	}

	.footer-bottom {
		padding-top: 15px;
		font-size: 0.85rem;
	}

	/* Social icons */
	.social-icons {
		gap: 15px;
	}

	.social-icons a {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}

	/* Testimonials */
	.testimonial-slide {
		padding: 25px 20px;
	}

	.testimonial-text {
		font-size: 1rem;
	}

	/* Map container */
	.map-container {
		height: 300px;
	}

	/* Utility spacing adjustments */
	.mb-1 { margin-bottom: 0.75rem; }
	.mb-2 { margin-bottom: 1.5rem; }
	.mt-1 { margin-top: 0.75rem; }
	.mt-2 { margin-top: 1.5rem; }
	.gap-1 { gap: 0.75rem; }
	.gap-2 { gap: 1.5rem; }
}

/* Extra small mobile (360px and below) */
@media (max-width: 360px) {
	html {
		font-size: 13px;
	}

	.container {
		padding: 0 12px;
	}

	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.35rem; }
	h3 { font-size: 1.15rem; }

	.logo-img {
		width: 45px;
	}

	.logo-text {
		font-size: 1rem;
	}

	.hero {
		min-height: 300px;
	}

	.service-card,
	.facility-item,
	.stat-item {
		padding: 20px 15px;
	}

	.section {
		padding: 40px 0;
	}

	.btn {
		padding: 8px 18px;
		font-size: 0.85rem;
	}
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
	.hero {
		height: 70vh;
		min-height: 350px;
	}

	.modal-content {
		max-height: 85vh;
	}

	#chatbot-window {
		max-height: 280px;
	}
}

/* Touch device specific adjustments */
@media (hover: none) and (pointer: coarse) {
	/* Increase tap targets */
	.btn,
	.nav-menu a,
	.mobile-menu-toggle {
		min-height: 44px;
		min-width: 44px;
	}

	.hero-dot {
		width: 14px;
		height: 14px;
	}

	/* Disable hover effects on touch devices */
	.service-card:hover,
	.facility-item:hover,
	.doctor-card:hover,
	.gallery-item:hover {
		transform: none;
	}

	/* Better touch scrolling */
	#chatbot-messages,
	.modal-content {
		-webkit-overflow-scrolling: touch;
	}
}
/* --------------------------------------------
   Additional Responsive Enhancements (Media Queries Only)
   Ensures facility photos are uniform, balanced, and responsive
--------------------------------------------- */

/* Large screens and below (ensure uniform image sizing in facility cards) */
@media (max-width: 1400px) {
  .facility-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
  }
  .facility-content { margin-top: 15px; }
}

/* Tablet landscape (1024px and below) */
@media (max-width: 1024px) {
  .facility-item img { height: 220px; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait (768px and below) */
@media (max-width: 768px) {
  .facility-item img { height: 200px; }
  .facilities-grid { gap: 15px; }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .facility-item img { height: 180px; }
}


/* Fix for About page stats-grid */
.stats-grid.six-cols {
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .stats-grid.six-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid.six-cols {
    grid-template-columns: 1fr;
  }
}












/* ===== Scope everything under .mh-dept to avoid conflicts ===== */
.mh-dept * { box-sizing: border-box; }
.mh-dept img { max-width: 100%; display: block; }

/* Local variables to avoid clashing with global :root */
.mh-dept{
  --mh-color-skyblue: #1780df;
  --mh-color-contact-div: #f7fbff;
  --mh-color-lightgray: #5f6b7a;

  /* Set this if header is fixed; else keep 0px */
  --mh-header-height: 0px; /* e.g. 80px */
}

/* ===== Container, Row, Col (scoped) ===== */
.mh-dept .mh-dept-container{
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}
.mh-dept .mh-row{ display: block; }
.mh-dept .mh-col-12{ width: 100%; }

@media (min-width: 768px){
  .mh-dept .mh-col-md-6{ width: 50%; }
  .mh-dept .mh-row{ display: flex; flex-wrap: wrap; gap: 16px 16px; }
}

/* ===== Spacing helpers (scoped) ===== */
.mh-dept .mh-mt-3{ margin-top: clamp(12px, 2.5vw, 20px); }
.mh-dept .mh-mt-5{ margin-top: clamp(24px, 4vw, 40px); }
.mh-dept .mh-mt-4{ margin-top: clamp(16px, 3vw, 24px); }
.mh-dept .mh-mb-4{ margin-bottom: clamp(16px, 3vw, 24px); }
.mh-dept .mh-text-center{ text-align: center; }
.mh-dept .mh-text-light{ color: #fff; }

/* ===== Department Hero Banner (scoped) ===== */
.mh-dept-hero{ width:100%; display:block; background:transparent; }

/* BASE: Desktop-first cover hero */
.mh-dept-hero .mh-dept-hero-bg{
  position: relative;
  width: 100%;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(16px, 2.8vw, 32px) 0;
  overflow: clip;
  /* If header fixed, uncomment:
     padding-top: var(--mh-header-height);
  */
  background-color: #0b2a3f; /* fallback behind image on mobile contain */
}

.mh-dept-hero-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;              /* desktop aesthetic fill */
  object-position: center 40%;
  z-index:0;
}

/* Overlay for readability */
.mh-dept-hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.52) 100%);
  pointer-events:none; z-index:1;
}

.mh-dept-hero-content{
  position:relative; z-index:2; padding:0 clamp(8px,1.2vw,16px);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), clamp(12px, 2.5vw, 24px));
  margin-top: clamp(4px, 1.5vw, 10px);
}

.mh-dept-hero-title{
  font-weight:800;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height:1.15;
  margin:0 0 6px 0;
  color:#fff;
}

/* Size modifiers */
.mh-dept-hero--lg .mh-dept-hero-bg{ min-height:75vh; }
.mh-dept-hero--sm .mh-dept-hero-bg{ min-height:50vh; }

/* ===== Desktop/large tablet tuning ===== */
@media (max-width: 1200px){
  .mh-dept-hero .mh-dept-hero-bg{ min-height: 62vh; }
  .mh-dept-hero-img{ object-position: center 45%; }
}
@media (max-width: 992px){
  .mh-dept-hero .mh-dept-hero-bg{ min-height: 56vh; }
  .mh-dept-hero-title{ font-size: clamp(24px, 5.2vw, 38px); }
  .mh-dept-hero-img{ object-position: center 50%; }
}

/* ===== Mobile/Tablet: switch to CONTAIN so full image shows with top/bottom gap ===== */
@media (max-width: 768px){
  .mh-dept-hero .mh-dept-hero-bg{
    min-height: auto;
    align-items: center;
    padding-top: calc(var(--mh-header-height) + clamp(12px, 4vw, 18px)); /* keep image clear of header */
    padding-bottom: clamp(16px, 4vw, 22px);
  }

  /* Instead of absolute, let image be in normal flow with contain */
  .mh-dept-hero-img{
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: auto;               /* natural image ratio */
    object-fit: contain;               /* show full image */
    object-position: center center;
    display: block;
    z-index: 0;
  }

  /* Because image is not background-filling now, overlay should be subtle or off */
  .mh-dept-hero-overlay{
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.20) 100%);
    mix-blend-mode: normal;
  }

  .mh-dept-hero-content{
    text-align:center;
    margin-top: clamp(8px, 2vw, 12px);
  }
  .mh-dept-hero-title{
    font-size: clamp(22px, 6vw, 34px);
    text-align: center;
  }

  .mh-dept .mh-dept-container{
    padding-inline: clamp(14px, 5vw, 22px);
  }
}

@media (max-width: 576px){
  .mh-dept-hero-title{ font-size: clamp(20px, 7vw, 30px); }
}

/* ===== Department Main ===== */
.mh-dept-section{
  background-color: var(--mh-color-contact-div, #f7fbff);
  padding-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(40px, 6vw, 60px);
}
.mh-dept-heading{
  color: var(--mh-color-skyblue, #1780df);
  font-weight:800;
  letter-spacing:.2px;
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: clamp(14px, 2.5vw, 18px);
}
.mh-dept-about{
  color: var(--mh-color-lightgray, #5f6b7a);
  text-align: justify;
  line-height: 1.75;
  margin: 0 0 clamp(18px, 3vw, 24px) 0;
  max-width: 980px;
  font-size: clamp(14px, 1.2vw, 16px);
}

/* ===== Tabs look (no Bootstrap dependency) ===== */
.mh-dept-tabs{
  display:flex; gap:8px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mh-nav-link{
  font-weight:700;
  color: var(--mh-color-skyblue, #1780df);
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.mh-nav-link.mh-is-active{
  background-color: var(--mh-color-skyblue, #1780df);
  color: var(--mh-color-contact-div, #f7fbff);
}
.mh-dept-tabpanes{
  border: 1px solid rgba(0,0,0,.06);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background:#fff;
  padding: clamp(14px, 2.4vw, 18px);
}
.mh-tab-pane{ display: none; }
.mh-tab-pane.mh-show{ display: block; }

/* ===== Doctors grid (scoped, CSS grid) ===== */
.mh-dept-doctors{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.5vw, 20px);
  align-items: stretch;
}

/* Doctor card (scoped) */
.mh-dept-card{
  display:flex; flex-direction:column;
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  background:#fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mh-dept-card-img{
  width:100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.mh-dept-card-body{
  display:flex; flex-direction:column; gap:8px;
  padding: 16px 14px 18px 14px;
  flex:1;
}
.mh-dept-card-title{
  font-weight:800;
  color: var(--mh-color-skyblue, #1780df);
  margin:0;
  font-size: clamp(16px, 1.8vw, 20px);
}
.mh-dept-card-text{
  color: var(--mh-color-lightgray, #5f6b7a);
  margin:0;
  font-size: clamp(14px, 1.2vw, 16px);
}
.mh-dept-card-sep{
  margin: 6px auto;
  width: 60%;
  opacity:.25;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.2);
}
@media (hover:hover){
  .mh-dept-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
}

/* ===== Lists (scoped) ===== */
.mh-dept-list{ list-style:none; padding-left:0; margin:0; }
.mh-dept-list li{
  position:relative;
  padding-left:28px;
  margin:8px 0;
  color: var(--mh-color-lightgray, #5f6b7a);
  font-size: clamp(14px, 1.2vw, 16px);
}
.mh-dept-list li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  color: var(--mh-color-skyblue, #1780df);
  font-weight:800;
}

/* ===== Safe-area for notched devices (scoped) ===== */
@supports (padding: env(safe-area-inset-bottom)){
  .mh-dept-hero-content{
    padding-bottom: max(env(safe-area-inset-bottom), clamp(12px, 2.5vw, 24px));
  }
}

/* ===== Doctor card responsive layout ===== */
@media (max-width: 1024px) {
  .mh-dept-doctors {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mh-dept-doctors {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mh-dept-card-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .mh-dept-doctors {
    grid-template-columns: 1fr;
  }
  .mh-dept-card-img {
    height: 200px;
  }
  .mh-dept-card-body {
    padding: 12px 10px 14px 10px;
  }
  .mh-dept-card-title {
    font-size: 0.95rem;
  }
  .mh-dept-card-text {
    font-size: 0.85rem;
  }
}
