/* ==========================================================================
   IMRAN IDREES TEACHING HOSPITAL (IITH) - MASTER STYLESHEET
   Official Domain: https://www.iith.edu.pk/
   ========================================================================== */

:root {
  /* Brand Palette */
  --navy-900: #12233F;
  --navy-800: #162B4D;
  --navy-700: #1E3A66;
  --blue-700: #1B4C87;
  --blue-600: #2563EB;
  --blue-100: #EBF2FA;
  --blue-50:  #F4F8FC;
  --red-700:  #B5192C;
  --red-600:  #C42538;
  --red-100:  #FBE7E9;
  --gray-900: #171A1F;
  --gray-600: #4B5563;
  --gray-400: #8A93A3;
  --gray-200: #E5E7EB;
  --gray-50:  #F7F8FA;
  --white:    #FFFFFF;

  /* Typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(18, 35, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 35, 63, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 35, 63, 0.12);

  /* Layout */
  --container: 1240px;
  --section-y: 96px;
  --section-y-sm: 64px;

  /* Transitions */
  --dur-fast: 160ms;
  --dur-med:  320ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: 44px; font-weight: 800; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; font-family: var(--font-body); }
h4 { font-size: 17px; font-weight: 600; font-family: var(--font-body); }
p  { color: var(--gray-600); margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--red-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red-700);
  display: inline-block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-600);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-navy {
  background: var(--blue-700);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--blue-600);
  box-shadow: var(--shadow-md);
}
.btn-text {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-text svg {
  transition: transform var(--dur-fast) var(--ease);
}
.btn-text:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION (PROFESSIONAL INSTITUTIONAL CONTAINER)
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--dur-med) var(--ease);
  width: 100%;
}
header.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  position: relative !important;
  box-sizing: border-box !important;
  transition: height var(--dur-med) var(--ease);
  gap: 8px;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}
header.site-header.is-scrolled .nav-row {
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo-img {
  height: 42px !important;
  width: auto;
  max-width: 42px !important;
  object-fit: contain;
  display: block;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5px;
  color: var(--red-700);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}
nav.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0px;
}
nav.main-nav > ul > li {
  position: relative;
}
nav.main-nav > ul > li.has-mega {
  position: static !important;
}
nav.main-nav > ul > li > a,
nav.main-nav > ul > li > button.nav-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 6px 5px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--gray-900) !important;
  background: none !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease) !important;
  text-decoration: none !important;
}
nav.main-nav > ul > li > a:hover,
nav.main-nav > ul > li:hover > button.nav-toggle,
nav.main-nav > ul > li.open > button.nav-toggle {
  color: var(--blue-700) !important;
  background: var(--blue-100) !important;
}
nav.main-nav .chev {
  width: 8px;
  height: 8px;
  transition: transform var(--dur-fast) var(--ease);
}
nav.main-nav > ul > li:hover .chev,
nav.main-nav > ul > li.open .chev {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0 !important;
}
.btn-emergency-sm {
  color: #B5192C;
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 9px;
  border: 1.5px solid #FFC9CF;
  background: #FFF0F2;
  border-radius: 50px;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0 !important;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.btn-emergency-sm::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #B5192C;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(181, 25, 44, 0.2);
}
.btn-emergency-sm:hover {
  background: #B5192C;
  color: #ffffff;
  border-color: #B5192C;
  box-shadow: 0 4px 12px rgba(181, 25, 44, 0.2);
}
.btn-emergency-sm:hover::before {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.header-actions .btn-primary {
  background: linear-gradient(135deg, #B5192C 0%, #8C1020 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(181, 25, 44, 0.28);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.header-actions .btn-primary:hover {
  background: linear-gradient(135deg, #C92035 0%, #9E1224 100%);
  box-shadow: 0 6px 20px rgba(181, 25, 44, 0.38);
  transform: translateY(-1px);
}/* ==========================================================================
   MEGA MENUS & SUB-MENUS (CENTERED SCREEN PLACEMENT)
   ========================================================================== */
.mega {
  position: absolute;
  top: 100%;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(940px, calc(100vw - 32px)) !important;
  max-width: 940px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(18, 35, 63, 0.18);
  border: 1px solid var(--gray-200);
  padding: 26px 30px;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}

/* Hover bridge so moving mouse between button and menu never loses hover */
.mega::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

/* Open on hover, focus-within, and active click */
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.open .mega,
li.open .mega {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.has-mega:hover .chev,
.has-mega:focus-within .chev,
.has-mega.open .chev {
  transform: rotate(180deg);
}

.has-mega:hover > a::after,
.has-mega:hover > button.nav-toggle::after,
.has-mega.open > button.nav-toggle::after {
  transform: scaleX(1);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1fr;
  gap: 24px;
  width: 100%;
}
.mega-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
  margin: 0 0 12px;
}
.mega-col ul li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-900);
}
.mega-col ul li a:hover {
  color: var(--blue-700);
}
.mega-feature {
  background: var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.mega-feature h5 {
  color: var(--blue-700);
}
.mega-feature p {
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ==========================================================================
   MOBILE DRAWER & BOTTOM BAR
   ========================================================================== */
.menu-trigger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.menu-trigger svg {
  width: 24px;
  height: 24px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer .scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 63, 0.5);
}
.mobile-drawer .panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
}
.mobile-drawer.open .panel {
  transform: translateX(0);
}
.mobile-drawer .drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-drawer .drawer-body {
  padding: 8px 12px 24px;
}
.m-acc-item > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-900);
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-200);
}
.m-acc-item .chev {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease);
}
.m-acc-item.open .chev {
  transform: rotate(180deg);
}
.m-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease);
}
.m-acc-item.open .m-acc-panel {
  max-height: 600px;
}
.m-acc-panel a {
  display: block;
  padding: 10px 10px 10px 20px;
  font-size: 14.5px;
  color: var(--gray-600);
}
.drawer-cta {
  padding: 16px 10px;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(18, 35, 63, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-bar .mbb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-900);
  border-right: 1px solid var(--gray-200);
}
.mobile-bottom-bar a:last-child {
  border-right: none;
}
.mobile-bottom-bar a.mbb-emergency {
  color: var(--red-700);
}
.mobile-bottom-bar svg {
  width: 19px;
  height: 19px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul li {
  margin-bottom: 11px;
}
.footer-col ul li a {
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: var(--white);
}
.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
}
.footer-bottom .legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero {
  position: relative;
  height: min(640px, 86vh);
  overflow: hidden;
  background: var(--navy-900);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,35,63,0.88) 0%, rgba(18,35,63,0.58) 50%, rgba(18,35,63,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  color: var(--white);
}
.hero-content .eyebrow {
  color: #FF8A93;
}
.hero-content .eyebrow::before {
  background: #FF8A93;
}
.hero-content h1 {
  color: var(--white);
  margin: 16px 0 18px;
  font-size: 42px;
  line-height: 1.15;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16.5px;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-controls {
  display: none !important;
}

/* Booking Hub */
.booking-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0 48px;
}
.hub-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.hub-card.whatsapp {
  background: linear-gradient(135deg, #128C7E, #075E54);
  color: var(--white);
}
.hub-card.phone {
  background: linear-gradient(135deg, #1B4C87, #12233F);
  color: var(--white);
}
.hub-card h3 {
  color: var(--white);
  font-size: 22px;
  margin: 12px 0 8px;
}
.hub-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.btn-hub-wa {
  background: #25D366;
  color: #075E54;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.btn-hub-wa:hover {
  background: #ffffff;
  color: #075E54;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn-hub-phone {
  background: #ffffff;
  color: #12233F;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.btn-hub-phone:hover {
  background: #FF8A93;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ==========================================================================
   QUICK ACCESS BAR
   ========================================================================== */
.quick-access {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.quick-access .container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px 10px;
  border-right: 1px solid var(--gray-200);
  transition: background var(--dur-fast) var(--ease);
  text-decoration: none;
}
.quick-item:last-child {
  border-right: none;
}
.quick-item:hover {
  background: var(--blue-100);
}
.quick-item .qi-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.quick-item:hover .qi-icon {
  background: var(--blue-700);
  color: var(--white);
}
.quick-item svg {
  width: 20px;
  height: 20px;
}
.quick-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
}

/* ==========================================================================
   PAGE SECTIONS & COMPONENTS
   ========================================================================== */
section {
  padding: var(--section-y) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.bg-tint {
  background: var(--gray-50);
}
.bg-navy {
  background: var(--navy-900);
}
.bg-navy h2, .bg-navy h3 {
  color: var(--white);
}
.bg-navy p {
  color: rgba(255, 255, 255, 0.85);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p {
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.65;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Departments Grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.dept-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dept-card .dc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dept-card svg {
  width: 22px;
  height: 22px;
}
.dept-card h4 {
  margin-bottom: 8px;
}
.dept-card p {
  font-size: 13.5px;
  margin-bottom: 14px;
  color: var(--gray-600);
}

/* Patient Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-item {
  background: var(--white);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
}
.service-item .si-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--red-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-item svg {
  width: 18px;
  height: 18px;
}
.service-item h4 {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--navy-900);
}
.service-item p {
  font-size: 13px;
  color: var(--gray-600);
}

/* Doctor Band */
.doctor-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.doctor-band-copy {
  background: var(--blue-700);
  color: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctor-band-copy h2 {
  color: var(--white);
  margin-top: 14px;
}
.doctor-band-copy p {
  color: rgba(255, 255, 255, 0.85);
  margin: 14px 0 24px;
}
.doctor-band-search {
  background: var(--white);
}
.doctor-band-search form {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 40px;
}
.search-fake {
  width: 100%;
}
.search-fake .sf-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.search-fake input, .search-fake select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
}

/* Diagnostics Cards */
.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.diag-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.diag-card.d1 {
  background: linear-gradient(135deg, #1B4C87, #12233F);
}
.diag-card.d2 {
  background: linear-gradient(135deg, #B5192C, #7A1020);
}
.diag-card h3 {
  color: var(--white);
  margin-bottom: 8px;
}
.diag-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.course-body {
  padding: 22px;
}
.course-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.course-body h4 {
  margin: 8px 0 10px;
  font-size: 17px;
}
.course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-600);
  margin: 14px 0 18px;
}

/* CTA Band */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--blue-700));
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--white);
}
.cta-band h2 {
  color: var(--white);
  max-width: 500px;
  font-size: 26px;
}
.cta-band .cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-info {
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--gray-200);
  border-left: none;
}
.contact-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row .ci-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row svg {
  width: 17px;
  height: 17px;
}
.contact-row .ci-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-row .ci-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}

/* Contact Page Cards */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 36px 0 48px;
}
.c-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.c-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.c-box.highlight {
  border-color: var(--red-700);
  background: #FFF9F9;
}
.c-box-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.c-box.highlight .c-box-icon {
  background: var(--red-100);
  color: var(--red-700);
}
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.form-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.dir-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dir-table th, .dir-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
.dir-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--navy-900);
}

/* Page Heroes */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0 60px;
}
.page-hero h1 {
  color: var(--white);
  font-size: 36px;
  margin: 8px 0;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 640px;
}
.breadcrumb, .breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.breadcrumb a, .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb svg, .breadcrumbs svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Emergency Page */
.emg-hero {
  background: linear-gradient(135deg, #12233F, #B5192C);
  color: var(--white);
  padding: 64px 0 72px;
}
.emg-hero h1 {
  color: var(--white);
  font-size: 38px;
  margin: 10px 0 14px;
}
.emg-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 16px;
  margin-bottom: 24px;
}
.emg-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--red-700);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.emg-call svg {
  width: 22px;
  height: 22px;
}
.emg-layout, .about-layout, .dept-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 48px 0;
}
.emg-panel, .dept-panel, .content-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Leadership & Governance */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.lead-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lead-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lead-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(18, 35, 63, 0.15);
  margin-bottom: 18px;
  background: var(--gray-100);
}
.lead-avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 6px 18px rgba(18, 35, 63, 0.15);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.lead-role {
  display: inline-block;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.lead-card h4 {
  font-size: 18.5px;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.lead-card p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.emg-side {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content;
}
.emg-side h4 {
  color: var(--white);
  margin-bottom: 12px;
}
.emg-side .num {
  font-size: 24px;
  font-weight: 700;
  color: #FF8A93;
  margin-bottom: 16px;
}
.emg-side .k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
}
.dept-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: var(--white);
  padding: 56px 0;
}
.dept-hero h1 {
  color: var(--white);
  font-size: 36px;
  margin: 8px 0;
}
.dept-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 600px;
}
.dept-hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.dept-hero-meta .lbl {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dept-hero-meta .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* International Patients Portal Styles */
.int-hero {
  position: relative;
  overflow: hidden;
}
.int-trust-card {
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.int-trust-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Sidebar Box & Menu */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
}
.safety-box {
  background: var(--gray-50);
  border-left: 4px solid var(--blue-700);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 14px;
}
.safety-box h4 {
  margin-bottom: 4px;
  color: var(--navy-900);
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--gray-700);
}
.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--blue-700);
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE FIXES
   ========================================================================== */
@media (max-width: 1440px) {
  nav.main-nav > ul > li > a,
  nav.main-nav > ul > li > button.nav-toggle {
    font-size: 12.5px !important;
    padding: 6px 6px !important;
  }
  .nav-row {
    padding: 0 16px !important;
    gap: 8px !important;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-actions .btn-primary {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }
  .btn-emergency-sm {
    padding: 7px 11px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1240px) {
  nav.main-nav {
    display: none !important;
  }
  .header-actions .btn-navy span.label {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .menu-trigger {
    display: flex !important;
  }
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-item {
    border-bottom: 1px solid var(--gray-200);
  }
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .doctor-band, .contact-grid, .emg-layout, .about-layout, .dept-layout, .contact-main-grid, .booking-hub-grid, .info-grid-2col, .lead-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .contact-info {
    border-left: 1px solid var(--gray-200);
    border-top: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
}

@media (max-width: 768px) {
  .header-actions .btn-primary {
    display: none !important;
  }
  .brand-title {
    font-size: 15px !important;
  }
  .brand-sub {
    font-size: 10px !important;
  }
  .brand-logo-img {
    height: 38px !important;
    max-width: 38px !important;
  }
  .btn-emergency-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  .nav-row {
    height: 60px !important;
  }
  .container {
    padding: 0 16px !important;
  }
  .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }
  .section-head .btn, .section-head .btn-text {
    align-self: flex-start !important;
  }
  .hero {
    height: auto !important;
    min-height: 480px !important;
  }
  .hero-content {
    padding: 40px 0 !important;
  }
  .hero-content h1 {
    font-size: 26px !important;
    margin: 12px 0 14px !important;
  }
  .hero-content p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }
  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .quick-access {
    margin-top: 0 !important;
  }
  .quick-access .container {
    border-radius: var(--radius-md) !important;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  h4 { font-size: 16px !important; }
  :root { --section-y: 40px; }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dept-grid, .services-grid, .diag-grid, .course-grid, .form-row {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .cta-band {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 16px !important;
    gap: 20px !important;
  }
  .cta-band .cta-actions {
    width: 100% !important;
    flex-direction: column !important;
  }
  .cta-band .cta-actions .btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dept-hero-meta {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hub-card {
    padding: 22px 16px !important;
  }
  .btn-hub-wa, .btn-hub-phone {
    font-size: 13.5px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .about-media {
    aspect-ratio: auto !important;
    min-height: 220px !important;
  }
  .about-media img {
    height: auto !important;
    min-height: auto !important;
    max-height: 260px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
