/* Menu bar with light background for black text (not on home hero — see body.page-home rules below) */
body:not(.page-home) header.header-01.white-transparent .mega-menu > .menu-list-items {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
body:not(.page-home) header.header-01.white-transparent .mega-menu > .menu-list-items .container-fluid {
  background: transparent !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu.desktopTopFixed > .menu-list-items {
  background: rgba(255, 255, 255, 0.95) !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu.desktopTopFixed > .menu-list-items .container-fluid {
  background: transparent !important;
}

/* Menu link colors - black text (inner pages only; home uses white-over-hero) */
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-links > li > a {
  color: #000000 !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-links > li:hover > a {
  color: #ffffff !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-links > li:hover {
  background: #09767c !important;
}
/* @ icon - ONLY the circle is teal. No teal above/below. White @ by default, teal when clicked */
header.header-01.white-transparent .mega-menu .menu-sidebar > li.iq-share,
header.header-01.white-transparent .mega-menu .menu-sidebar .iq-share .slideouticons {
  background: transparent !important;
}
header.header-01.white-transparent .mega-menu .menu-sidebar .iq-share .slideouticons .mainlabel {
  color: #ffffff !important;
  background: #09767c !important;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
header.header-01.white-transparent .mega-menu .menu-sidebar .iq-share .slideouticons .mainlabel i {
  color: #ffffff !important;
  background: none !important;
}
header.header-01.white-transparent .mega-menu .menu-sidebar .iq-share .slideouticons input:checked ~ .mainlabel {
  color: #09767c !important;
  background: #ffffff !important;
}
header.header-01.white-transparent .mega-menu .menu-sidebar .iq-share .slideouticons input:checked ~ .mainlabel i {
  color: #09767c !important;
  background: none !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-sidebar > li > a,
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-sidebar > li > a i {
  color: #000000 !important;
}
body:not(.page-home) header.header-01.white-transparent .mega-menu .menu-sidebar > li > a:hover {
  color: #333333 !important;
}
/* Arabic language link - teal and slightly larger */
.mega-menu .menu-sidebar .lang-ar {
  color: #09767c !important;
  font-size: 1.1em !important;
}
.mega-menu .menu-sidebar .lang-ar:hover {
  color: #09767c !important;
}

/* Slideshow starts from very top - menu overlays it */
#rev_slider_117_1_wrapper.fullwidthbanner-container,
.rev_slider_wrapper.fullwidthbanner-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
}
.rev_slider_wrapper {
  position: relative;
  z-index: 1;
}
header.header-01 {
  z-index: 999;
}

/* shortcodes.css sets `header { position: absolute }` for every page — inner pages must stay in flow */
body:not(.page-home) header.header-01 {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  width: 100% !important;
}

/*
 * Inner pages (desktop): .menu-list-items is float:left in mega_menu.css — flow-root clears the float.
 * No extra padding when .desktopTopFixed: sticky bar overlays; user preference is no compensating gap.
 */
@media (min-width: 991px) {
  body:not(.page-home) header.header-01 {
    display: flow-root;
  }
  body:not(.page-home) header.header-01 #menu-1.mega-menu {
    display: flow-root;
  }
}

/* Full-screen search overlay sits above header (shortcodes use z-index: 1000 with .js on html) */
body.hh-search-open {
  overflow: hidden;
  touch-action: none;
}

/* ========== HOME PAGE ONLY: transparent menu over banner, white text, social icons always open ========== */
body.page-home header.header-01 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
body.page-home .mega-menu .menu-list-items,
body.page-home .mega-menu .menu-list-items .container-fluid {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* After fixing div.menu-list-items, shortcodes/responsive .header-01.white-transparent rules matched and beat the block above; pin transparent until sticky */
body.page-home header.header-01.white-transparent .mega-menu:not(.desktopTopFixed):not(.mobileTopFixed) > .menu-list-items,
body.page-home header.header-01.white-transparent .mega-menu:not(.desktopTopFixed):not(.mobileTopFixed) > .menu-list-items .container-fluid {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* Remove grey lines above/below menu and dropdown on hover */
body.page-home .mega-menu .menu-links > li > a:before,
body.page-home .mega-menu .menu-links > li > a:after {
  display: none !important;
}
body.page-home .mega-menu .menu-links > li,
body.page-home .mega-menu .drop-down,
body.page-home .mega-menu .drop-down-multilevel {
  border: none !important;
  box-shadow: none !important;
}
body.page-home .mega-menu.desktopTopFixed .menu-list-items,
body.page-home .mega-menu.desktopTopFixed .menu-list-items .container-fluid {
  background: #ffffff !important;
}
/* Home scrolled (desktop): dark nav text + dark hamburger area icons; hover keeps teal bar */
@media (min-width: 991px) {
  body.page-home .mega-menu.desktopTopFixed .menu-links > li > a,
  body.page-home .mega-menu.desktopTopFixed .menu-links > li > a * {
    color: #1a1a1a !important;
  }
  body.page-home .mega-menu.desktopTopFixed .menu-links > li:hover {
    background: #09767c !important;
  }
  body.page-home .mega-menu.desktopTopFixed .menu-links > li:hover > a,
  body.page-home .mega-menu.desktopTopFixed .menu-links > li:hover > a * {
    color: #ffffff !important;
  }
  body.page-home .mega-menu.desktopTopFixed .menu-sidebar > li > a,
  body.page-home .mega-menu.desktopTopFixed .menu-sidebar > li > a i {
    color: #1a1a1a !important;
  }
  body.page-home .mega-menu.desktopTopFixed .menu-sidebar > li > a:hover {
    color: #09767c !important;
  }
}
/* White menu text + light hover only on desktop overlay; mobile hamburger panel uses custom.css mobile block */
@media (min-width: 991px) {
  body.page-home header.header-01 .mega-menu .menu-links > li > a,
  body.page-home header.header-01 .mega-menu .menu-links > li > a * {
    color: #ffffff !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li:hover > a,
  body.page-home header.header-01 .mega-menu .menu-links > li:hover > a * {
    color: #ffffff !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li:hover {
    background: rgba(0,0,0,0.2) !important;
  }
}
/* Home: white vs color logo — see en/js/custom.js (hhHomeLogo); assets: logo-white.png / logo.png */
body.page-home header.header-01 .mega-menu .menu-logo a,
body.page-home header.header-01 .mega-menu .menu-logo a *,
body.page-home header.header-01 .mega-menu .menu-sidebar > li > a,
body.page-home header.header-01 .mega-menu .menu-sidebar > li > a i,
body.page-home header.header-01 .mega-menu .menu-sidebar > li > a * {
  color: #ffffff !important;
}
body.page-home header.header-01 .mega-menu .menu-sidebar > li > a:hover {
  color: rgba(255,255,255,0.9) !important;
}
body.page-home .mega-menu .menu-sidebar .lang-ar {
  color: #09767c !important;
  font-size: 1.1em !important;
}
body.page-home .mega-menu .menu-sidebar .lang-ar:hover {
  color: #09767c !important;
}
/*
 * Home scrolled (all viewports): white bar + dark search icon.
 * The overlay rule above uses .menu-sidebar > li > a * { white } with header.header-01 in the
 * chain — it beats older .mobileTopFixed .menu-sidebar rules that omitted header, so search
 * stayed white. These selectors match or exceed that specificity and target #btn-search.
 */
body.page-home header.header-01:has(.mega-menu.desktopTopFixed),
body.page-home header.header-01:has(.mega-menu.mobileTopFixed) {
  background: #ffffff !important;
}
body.page-home header.header-01 .mega-menu.desktopTopFixed > .menu-list-items,
body.page-home header.header-01 .mega-menu.desktopTopFixed > .menu-list-items .container-fluid,
body.page-home header.header-01 .mega-menu.mobileTopFixed > .menu-list-items,
body.page-home header.header-01 .mega-menu.mobileTopFixed > .menu-list-items .container-fluid {
  background: #ffffff !important;
  box-shadow: none !important;
}
body.page-home header.header-01 .mega-menu.desktopTopFixed #btn-search,
body.page-home header.header-01 .mega-menu.desktopTopFixed #btn-search i,
body.page-home header.header-01 .mega-menu.mobileTopFixed #btn-search,
body.page-home header.header-01 .mega-menu.mobileTopFixed #btn-search i {
  color: #1a1a1a !important;
}
body.page-home header.header-01 .mega-menu.desktopTopFixed .menu-sidebar .lang-ar,
body.page-home header.header-01 .mega-menu.mobileTopFixed .menu-sidebar .lang-ar {
  color: #09767c !important;
}
/*
 * Sticky home nav bar: `hh-home-nav-fixed` is toggled on <body> in custom.js when #menu-1 gets
 * mobileTopFixed/desktopTopFixed. Many mobile WebViews lack :has(), so CSS-only :has() rules never
 * applied and the bar stayed transparent over the hero.
 */
body.page-home.hh-home-nav-fixed header.header-01 {
  background: #ffffff !important;
}
body.page-home.hh-home-nav-fixed .mega-menu > .menu-list-items,
body.page-home.hh-home-nav-fixed .mega-menu > .menu-list-items .container-fluid {
  background: #ffffff !important;
  box-shadow: none !important;
}
/* Banner/hero: 90% of viewport height, image zooms to fill if needed */
body.page-home .hero-swiper {
  margin-top: 0 !important;
  height: 90vh !important;
  min-height: 400px;
}
/* Swiper/slide height chain - ensure 90vh fills properly */
body.page-home .hero-swiper .swiper-wrapper,
body.page-home .hero-swiper .swiper-slide,
body.page-home .hero-swiper .hero-slide {
  height: 100% !important;
}
body.page-home .hero-swiper .hero-slide {
  overflow: hidden;
}
body.page-home .hero-media {
  object-fit: cover !important;
  min-height: 100% !important;
  min-width: 100% !important;
}
body.page-home .hero-bg {
  background-size: cover !important;
  background-position: center !important;
  min-height: 100% !important;
  min-width: 100% !important;
}
@media (max-width: 767.98px) {
  body.page-home .hero-swiper {
    height: 60vh !important;
    min-height: 300px;
  }
}
/* Home page mobile: keep header transparent over the banner until sticky scroll */
@media (max-width: 990px) {
  body.page-home header.header-01 {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
  }
  body.page-home header.header-01:not(:has(.mega-menu.mobileTopFixed)) {
    background: transparent !important;
  }
  body.page-home header.header-01:has(.mega-menu.mobileTopFixed) {
    background: #ffffff !important;
  }
  body.page-home .mega-menu > .menu-list-items,
  body.page-home .mega-menu > .menu-list-items .container-fluid {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  body.page-home .mega-menu .menu-mobile-collapse-trigger:before,
  body.page-home .mega-menu .menu-mobile-collapse-trigger:after,
  body.page-home .mega-menu .menu-mobile-collapse-trigger span {
    background: #ffffff !important;
  }
  /* When scrolled, menu gets solid white background (transparent only over slideshow) */
  body.page-home .mega-menu.mobileTopFixed > .menu-list-items,
  body.page-home .mega-menu.mobileTopFixed > .menu-list-items .container-fluid {
    background: #ffffff !important;
  }
  body.page-home .mega-menu.mobileTopFixed .menu-mobile-collapse-trigger:before,
  body.page-home .mega-menu.mobileTopFixed .menu-mobile-collapse-trigger:after,
  body.page-home .mega-menu.mobileTopFixed .menu-mobile-collapse-trigger span {
    background: #222222 !important;
  }
  body.page-home .mega-menu.mobileTopFixed .menu-sidebar > li > a,
  body.page-home .mega-menu.mobileTopFixed .menu-sidebar > li > a i {
    color: #222222 !important;
  }
  /* Drawer open on home: white bar, dark X, dark search/lang (logo handled in JS) */
  body.page-home .mega-menu:has(.menu-mobile-collapse-trigger.active) .menu-sidebar > li > a,
  body.page-home .mega-menu:has(.menu-mobile-collapse-trigger.active) .menu-sidebar > li > a i {
    color: #222222 !important;
  }
  body.page-home .mega-menu .menu-mobile-collapse-trigger.active:before,
  body.page-home .mega-menu .menu-mobile-collapse-trigger.active:after,
  body.page-home .mega-menu .menu-mobile-collapse-trigger.active span {
    background: #222222 !important;
  }
}
/* Arabic link - larger and clearer on mobile */
@media (max-width: 990px) {
  .mega-menu .menu-sidebar .lang-ar {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 8px 12px !important;
    letter-spacing: 0.02em;
  }
}
/* Hero social icons - sticky on all pages, same position (below menu) */
.hero-social {
  position: fixed;
  top: 100px;
  right: 24px;
  left: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #09767c !important;
  text-decoration: none;
  transition: background 0.2s;
}
.hero-social a i {
  color: #09767c !important;
}
.hero-social a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #09767c !important;
}
.hero-social a:hover i {
  color: #09767c !important;
}

/* Mobile hamburger: solid white panel, black text; hover = teal + white (override home transparent hover) */
@media (max-width: 990px) {
  /* Medical departments page: hide fixed social column (room for sticky bar / prev-next) */
  body.page-dept-md .hero-social {
    display: none !important;
  }
  /*
   * Find physicians: full-bleed form + Select2 sit in a busy stacking context; html.js .search uses
   * z-index:1000 — keep the bar and hamburger above that layer (still below Select2 dropdown 9999).
   */
  body.page-find-physicians header.header-01 {
    z-index: 1200 !important;
  }
  body.page-find-physicians #menu-1.mega-menu {
    z-index: 1200 !important;
  }
  /*
   * Collapsed drawer: hide primary nav before JS runs. mega_menu.js calls .hide(0) only inside
   * $(document).ready), so without this the full .menu-links list flashes then disappears.
   */
  #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) .menu-list-items .menu-links {
    display: none !important;
  }
  #menu-1:has(.menu-mobile-collapse-trigger.active) .menu-list-items .menu-links {
    display: inline-block !important;
    width: 100% !important;
  }
  /* Inner pages: space below the fixed top bar so the first link is not flush under عربي/search */
  body:not(.page-home) #menu-1:has(.menu-mobile-collapse-trigger.active) .menu-list-items .menu-links {
    padding-top: 22px !important;
    box-sizing: border-box !important;
  }
  .mega-menu .menu-links,
  .mega-menu .drop-down,
  .mega-menu .drop-down-multilevel {
    background: #ffffff !important;
  }
  .mega-menu .menu-links > li:not(.activeTriggerMobile):not(.activeTrigger),
  .mega-menu .drop-down-multilevel > li:not(.activeTriggerMobile):not(.activeTrigger) {
    background: #ffffff !important;
  }
  .mega-menu .menu-links > li.activeTriggerMobile,
  .mega-menu .menu-links > li.activeTrigger,
  .mega-menu .drop-down-multilevel > li.activeTriggerMobile,
  .mega-menu .drop-down-multilevel > li.activeTrigger {
    background: #09767c !important;
  }
  .mega-menu .menu-links > li > a,
  .mega-menu .drop-down-multilevel li > a,
  .mega-menu .drop-down-multilevel li a {
    color: #222222 !important;
  }
  .mega-menu .menu-links > li > a *,
  .mega-menu .drop-down-multilevel li a * {
    color: inherit !important;
  }
  .mega-menu .menu-links > li.activeTriggerMobile > a,
  .mega-menu .menu-links > li.activeTrigger > a,
  .mega-menu .drop-down-multilevel > li.activeTriggerMobile > a,
  .mega-menu .drop-down-multilevel > li.activeTrigger > a,
  .mega-menu .menu-links > li.activeTriggerMobile > a *,
  .mega-menu .menu-links > li.activeTrigger > a *,
  .mega-menu .drop-down-multilevel > li.activeTriggerMobile > a *,
  .mega-menu .drop-down-multilevel > li.activeTrigger > a * {
    color: #ffffff !important;
  }
  /* Nested submenus (2nd+ level): dark text on white; theme + mega_menu.css default to white on parents */
  #menu-1 .drop-down-multilevel .drop-down-multilevel li > a,
  #menu-1 .drop-down-multilevel .drop-down-multilevel li > a * {
    color: #222222 !important;
  }
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile > a,
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTrigger > a,
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile > a *,
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTrigger > a * {
    color: #ffffff !important;
  }
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile,
  #menu-1 .drop-down-multilevel .drop-down-multilevel li.activeTrigger {
    background: #09767c !important;
  }
  /* Hover: solid teal, white text (not transparent / not home-banner styles) */
  .mega-menu .menu-links > li:hover,
  .mega-menu .drop-down-multilevel li:hover {
    background: #09767c !important;
  }
  .mega-menu .menu-links > li:hover > a,
  .mega-menu .menu-links > li:hover > a *,
  .mega-menu .drop-down-multilevel li:hover > a,
  .mega-menu .drop-down-multilevel li:hover a {
    color: #ffffff !important;
  }
  /* Home: solid bar behind open drawer (transparent header would show hero through rows) */
  body.page-home .mega-menu .menu-list-items:has(.menu-mobile-collapse-trigger.active),
  body.page-home .mega-menu .menu-list-items:has(.menu-mobile-collapse-trigger.active) .container-fluid {
    background: #ffffff !important;
  }
  /* Same as above with header in selector (ties specificity with other home rules) */
  body.page-home header.header-01 .mega-menu .menu-links > li:not(.activeTriggerMobile):not(.activeTrigger),
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li:not(.activeTriggerMobile):not(.activeTrigger) {
    background: #ffffff !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTriggerMobile,
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTrigger,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTriggerMobile,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTrigger {
    background: #09767c !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li > a,
  body.page-home header.header-01 .mega-menu .menu-links > li > a *,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel li > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel li a {
    color: #222222 !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTriggerMobile > a,
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTrigger > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTriggerMobile > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTrigger > a,
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTriggerMobile > a *,
  body.page-home header.header-01 .mega-menu .menu-links > li.activeTrigger > a *,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTriggerMobile > a *,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel > li.activeTrigger > a * {
    color: #ffffff !important;
  }
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li > a * {
    color: #222222 !important;
  }
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTrigger > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile > a *,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTrigger > a * {
    color: #ffffff !important;
  }
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTriggerMobile,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel .drop-down-multilevel li.activeTrigger {
    background: #09767c !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li:hover,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel li:hover {
    background: #09767c !important;
  }
  body.page-home header.header-01 .mega-menu .menu-links > li:hover > a,
  body.page-home header.header-01 .mega-menu .menu-links > li:hover > a *,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel li:hover > a,
  body.page-home header.header-01 .mega-menu .drop-down-multilevel li:hover a {
    color: #ffffff !important;
  }
  /*
   * Mobile menu: do NOT set position:relative on .menu-links / .menu-sidebar — that
   * overrides responsive.css (absolute top bar for عربي + search). Only tweak tap area + stacking.
   */
  #menu-1 .menu-links > li > a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 44px 10px 15px !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
  }
  #menu-1 .drop-down-multilevel > li > a,
  #menu-1 .drop-down > li > a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 44px 10px 18px !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
  }
  #menu-1 .menu-links {
    z-index: 50;
  }
  #menu-1 .menu-sidebar {
    z-index: 40;
  }
  #menu-1 .menu-links .drop-down-multilevel,
  #menu-1 .menu-links .drop-down,
  #menu-1 .menu-links .drop-down-tab-bar {
    z-index: 60 !important;
  }
  #menu-1 .drop-down-multilevel .drop-down-multilevel {
    z-index: 70 !important;
  }
  /* Fixed social stack was sitting on top of the open drawer */
  header.header-01:has(#menu-1 .menu-mobile-collapse-trigger.active) ~ .hero-social {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ========== Site-wide readable body text ========== */
body {
  font-size: 17px;
  line-height: 1.65;
}

/* ========== About Us + Training/Education: aligned text + portrait photos (square corners) ========== */
.about-row-aligned {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.about-row-aligned > [class*="col-"] {
  float: none;
}
.about-section-block .about-text-block,
.about-section-block .about-image-block,
.education-section-block .about-text-block,
.education-section-block .about-image-block,
.iq-about3 .about-text-block,
.iq-about3 .about-image-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.about-section-block .about-text-block .small-title,
.education-section-block .about-text-block .small-title,
.iq-about3 .about-text-block .small-title {
  margin-top: 0;
  padding-top: 0;
}
.about-section-block .about-text-block .small-title h3,
.education-section-block .about-text-block .small-title h3,
.iq-about3 .about-text-block .small-title h3 {
  margin-top: 0 !important;
}
.about-section-block .about-text-block p:first-of-type,
.education-section-block .about-text-block p:first-of-type,
.iq-about3 .about-text-block p:first-of-type {
  margin-top: 0;
}
.about-section-block .about-text-block.iq-mtb-15,
.about-section-block .about-image-block.iq-mtb-15,
.education-section-block .about-text-block.iq-mtb-15,
.education-section-block .about-image-block.iq-mtb-15 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.about-section-block .about-row-aligned,
.education-section-block .about-row-aligned {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px;
  column-gap: 30px;
  row-gap: 0;
  align-items: start;
}
.about-section-block .about-row-aligned > .about-text-block,
.about-section-block .about-row-aligned > .about-image-block,
.education-section-block .about-row-aligned > .about-text-block,
.education-section-block .about-row-aligned > .about-image-block {
  width: auto !important;
  max-width: none !important;
  float: none !important;
}
.iq-about3 .about-row-aligned {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px;
  column-gap: 30px;
  align-items: start;
}
.iq-about3 .about-row-aligned > .about-text-block,
.iq-about3 .about-row-aligned > .about-image-block {
  width: auto !important;
  max-width: none !important;
  float: none !important;
}
.iq-about3 .about-row-aligned > .about-text-block,
.iq-about3 .about-row-aligned > .about-image-block,
.about-section-block .about-row-aligned > .about-text-block,
.about-section-block .about-row-aligned > .about-image-block,
.education-section-block .about-row-aligned > .about-text-block,
.education-section-block .about-row-aligned > .about-image-block {
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: start;
}
.about-photo-wrap {
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.about-section-block .about-image-block .about-photo-wrap,
.education-section-block .about-image-block .about-photo-wrap,
.iq-about3 .about-image-block .about-photo-wrap {
  margin-left: auto;
  margin-right: 0;
}
@media (min-width: 992px) {
  .about-section-block .about-row-aligned .about-photo-wrap,
  .education-section-block .about-row-aligned .about-photo-wrap,
  .iq-about3 .about-row-aligned .about-photo-wrap {
    margin-top: 14px !important;
  }
}
.about-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin-top: 0;
  vertical-align: top;
}
.about-text-block p {
  line-height: 1.7;
}
@media (max-width: 991.98px) {
  .about-row-aligned {
    display: block;
  }
  .about-row-aligned > [class*="col-"] {
    float: left;
  }
  .about-section-block .about-image-block .about-photo-wrap,
  .education-section-block .about-image-block .about-photo-wrap,
  .iq-about3 .about-image-block .about-photo-wrap {
    margin-left: auto;
    margin-right: auto;
  }
  .about-photo-wrap {
    width: 340px;
    max-width: 100%;
    margin-top: 12px;
  }
  .about-photo {
    height: 420px;
  }
  .about-section-block .about-row-aligned,
  .education-section-block .about-row-aligned,
  .iq-about3 .about-row-aligned {
    display: block !important;
  }
}

/* ========== Medical Imaging: larger text, aligned grid, fixed media size ========== */
.mi-section .mi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  column-gap: 36px;
  row-gap: 28px;
  align-items: start;
}
.mi-section .mi-row--rtl {
  grid-template-columns: 420px minmax(0, 1fr);
}
.mi-section .mi-row--text-only {
  grid-template-columns: minmax(0, 1fr);
}
.mi-section .mi-row--text-only.mi-row--rtl {
  grid-template-columns: minmax(0, 1fr);
}
.mi-section .mi-title-wrap {
  margin-top: 0;
  padding-top: 0;
}
.mi-section .mi-heading {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-top: 0 !important;
}
.mi-section .mi-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #333;
}
.mi-section .mi-body p {
  margin-bottom: 1rem;
}
.mi-section .mi-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}
.mi-section .mi-media-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}
.mi-section .mi-row:not(.mi-row--rtl) .mi-media-col {
  margin-left: auto;
  margin-right: 0;
}
.mi-section .mi-row--rtl .mi-media-col {
  margin-right: auto;
  margin-left: 0;
}
.mi-section .mi-photo-wrap {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  background: #f0f0f0;
}
.mi-section .mi-photo {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.mi-section .mi-video-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #111;
}
.mi-section .mi-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ========== Home Care: text first, photos below, larger type ========== */
.home-care-page .home-care-text.overview-block-ptb {
  padding-top: 60px;
  padding-bottom: 12px;
}
.home-care-page .home-care-photos.overview-block-pb {
  padding-top: 0;
}
.home-care-page .home-care-text .small-title {
  margin-top: 0;
}
.home-care-page .home-care-text h3.small-title {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-top: 0;
}
.home-care-page .home-care-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #333;
}
.home-care-page .home-care-body p {
  margin-bottom: 1rem;
}
.home-care-page .home-care-body p:last-child {
  margin-bottom: 0;
}
.home-care-page .home-care-photo-row {
  margin-top: 0;
}
.home-care-page .home-care-photo-cell {
  margin-bottom: 16px;
}
.home-care-page .home-care-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Blog post detail: less empty space under hero, correct title from DB */
.main-content .blog-details-page.overview-block-ptb {
  padding-top: 36px;
  padding-bottom: 70px;
}

@media (max-width: 991.98px) {
  .mi-section .mi-row,
  .mi-section .mi-row--rtl {
    grid-template-columns: 1fr;
  }
  .mi-section .mi-media-col {
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
    order: -1;
  }
  .mi-section .mi-row--rtl .mi-media-col {
    order: -1;
  }
  .mi-section .mi-heading {
    font-size: 1.55rem;
  }
}

/*
 * Home (top of page): kill frosted/off-white bar. Theme shortcodes use
 * `header.white-transparent .mega-menu>.menu-list-items { rgba(255,255,255,.4) }` and
 * `header .menu-list-items .container-fluid { background: white }` — they load before this file
 * but can still tie or layer oddly; #menu-1 + html.js + !important wins. Skip when sticky
 * (body.hh-home-nav-fixed) or mobile drawer open.
 */
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid .row,
html.js body.page-home:not(.hh-home-nav-fixed) #menu-1:not(:has(.menu-mobile-collapse-trigger.active)) > .menu-list-items .container-fluid .col-sm-12 {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.js body.page-home:not(.hh-home-nav-fixed):not(:has(#menu-1 .menu-mobile-collapse-trigger.active)) header.header-01.white-transparent {
  background: transparent !important;
  background-color: transparent !important;
}

/*
 * HHUMC: larger logo, vertically centered with the white nav bar (90px row / 70px when sticky).
 * Theme shortcodes use margin-top-only on .menu-logo, which leaves the logo riding high.
 */
header.header-01 .mega-menu .menu-logo {
  margin: 0 !important;
  padding: 9px 0;
  box-sizing: border-box;
}
header.header-01 .mega-menu .menu-logo > li > a img,
header.header-01 .mega-menu .menu-logo #logo_img {
  height: 72px !important;
  width: auto;
  max-width: none;
  vertical-align: middle;
  margin-top: 10px;
  border-radius: 0 !important;
}
header.header-01 .mega-menu.desktopTopFixed .menu-logo {
  padding: 6px 0 !important;
}
header.header-01 .mega-menu.desktopTopFixed .menu-logo > li > a img,
header.header-01 .mega-menu.desktopTopFixed .menu-logo #logo_img {
  height: 58px !important;
  margin-top: 10px;
}

/* Tablet: responsive.css shrinks logo to 50px — keep it larger and centered */
@media screen and (max-width: 1399px) and (min-width: 992px) {
  header.header-01 .mega-menu .menu-logo {
    padding: 11px 0 !important;
  }
  header.header-01 .mega-menu .menu-logo > li > a img,
  header.header-01 .mega-menu .menu-logo #logo_img {
    height: 68px !important;
    margin-top: 10px;
  }
  header.header-01 .mega-menu.desktopTopFixed .menu-logo {
    padding: 7px 0 !important;
  }
  header.header-01 .mega-menu.desktopTopFixed .menu-logo > li > a img,
  header.header-01 .mega-menu.desktopTopFixed .menu-logo #logo_img {
    height: 56px !important;
    margin-top: 10px;
  }
}

/* Mobile collapsed header: slightly larger than theme 40px, centered in the top strip */
@media (max-width: 991.98px) {
  header.header-01 .mega-menu .menu-logo {
    margin: 9px 0 !important;
    padding: 0 !important;
  }
  header.header-01 .mega-menu.desktopTopFixed .menu-logo {
    padding: 0 !important;
  }
  header.header-01 .mega-menu .menu-logo > li > a img,
  header.header-01 .mega-menu .menu-logo #logo_img {
    height: 52px !important;
    margin-top: 6px;
  }
}

/* Footer wordmark: match larger header presence */
.footer-ref-logo img {
  height: 80px !important;
  width: auto;
}

/* Justified body copy site-wide (headings stay start-aligned on About/Patients blocks) */
.main-content .about-text-block p,
.main-content .about-text-block .typo-style1,
.main-content .about-section-block .about-text-block p,
.main-content .overview-block-ptb.iq-feature7 .col-lg-6.iq-mtb-15:not(.about-image-block) p,
.main-content .overview-block-ptb.iq-feature7 .col-lg-12.iq-mtb-15 p,
.main-content .overview-block-ptb.iq-feature7 .col-lg-12.iq-mtb-15 div p,
.main-content .iq-about3 .col-lg-8 p,
.main-content .iq-about3 .col-lg-12 p,
.main-content .iq-about3 .col-lg-12 div p {
  text-align: justify;
  text-justify: inter-word;
}
.main-content .small-title,
.main-content .small-title h3,
.main-content h3.small-title,
.main-content .about-text-block h3 {
  text-align: start;
}
/* Patient Relations block: prose only (headings / mini-titles stay start-aligned) */
.main-content .iq-about3 .col-lg-8:not(.about-text-block) p,
.main-content .iq-about3 .col-lg-8:not(.about-text-block) .typo-style1 {
  text-align: justify;
  text-justify: inter-word;
}
.main-content .iq-about3 .col-lg-8:not(.about-text-block) > .small-title,
.main-content .iq-about3 .col-lg-8:not(.about-text-block) > h3 {
  text-align: start;
}

/* Primary content: paragraphs & CMS blocks (pages with or without .main-content wrapper) */
body:not(.page-home) section.overview-block-ptb .container p,
body:not(.page-home) section.overview-block-pb .container p,
body:not(.page-home) section.overview-block-pt .container p,
body:not(.page-home) section.overview-block-ptb .container .typo-style1,
body:not(.page-home) section.overview-block-pb .container .typo-style1,
body:not(.page-home) section.overview-block-pt .container .typo-style1 {
  text-align: justify;
  text-justify: inter-word;
}
.main-content p,
.main-content .typo-style1,
.main-content .dept-description p,
.main-content .dept-description li,
.main-content .feature-content p,
.main-content .tab-pane .iq-mt-30 p,
.main-content .tab-pane .iq-mt-30 li,
.main-content .hh-ar-rich p,
.main-content .hh-ar-rich li,
.main-content .iq-blog-overview .iq-entry-content p {
  text-align: justify;
  text-justify: inter-word;
}
/* Article / event body: justify paragraphs & lists only (titles live in .iq-entry-title) */
.main-content .iq-entry-content p,
.main-content .iq-entry-content li,
.main-content .iq-entry-content blockquote {
  text-align: justify;
  text-justify: inter-word;
}
.main-content .iq-entry-content.text-right p,
.main-content .iq-entry-content.text-right li,
.main-content .iq-entry-content.text-right blockquote {
  text-align: justify !important;
  text-justify: inter-word;
}
.main-content .team-blog .iq-mt-10 {
  text-align: justify;
  text-justify: inter-word;
}
/* Home/contact “Get in touch” strip (outside .main-content on index) */
.getintouch-left .desc,
.getintouch-block .value {
  text-align: justify;
  text-justify: inter-word;
}
/* Never justify titles, mini-titles, or card/listing headings */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content .small-title,
.main-content .small-title *,
.main-content .iq-entry-title,
.main-content .iq-entry-title *,
.main-content .feature-content .tag,
.main-content .testimonial-name,
.main-content .testimonial-name * {
  text-align: start;
  text-justify: auto;
}
/* Home hero strips & cards: stay centered (not start / not justified) */
.main-content .visiting-header,
.main-content .visiting-header .visiting-header-inner,
.main-content .visiting-header h2,
.main-content .visiting-header p,
.main-content .visiting-card,
.main-content .visiting-card h3,
.main-content .visiting-card p,
.main-content .visiting-card .visiting-card-title,
.main-content .visiting-card .visiting-card-desc {
  text-align: center;
  text-justify: auto;
}
.main-content .highlights-card,
.main-content .highlights-card h5,
.main-content .highlights-card .highlights-title {
  text-align: center;
  text-justify: auto;
}
/* Keep intentionally centered blurbs and icon columns */
.main-content .text-center h1,
.main-content .text-center h2,
.main-content .text-center h3,
.main-content .text-center h4,
.main-content .text-center h5,
.main-content .text-center h6,
.main-content .text-center p,
.main-content .text-center .typo-style1,
.main-content .heading-title.text-center,
.main-content .heading-title.text-center .title,
.main-content .heading-title.text-center > p:first-child,
.main-content .iq-feature11.text-center h5,
.main-content .iq-feature11.text-center p,
.main-content .highlights-section p {
  text-align: center;
}
.main-content .heading-title.text-center h2.title,
.main-content .heading-title.text-center h2 {
  text-align: center;
}

/* Subtle rounding for content images (exclude header logo, circular doctor portraits, icon glyphs) */
body .main-content img:not(.doctors-leadership-img):not(#logo_img) {
  border-radius: 6px;
}
.footer-ref .footer-ref-col img {
  border-radius: 6px;
}
.footer-ref .footer-ref-logo img {
  border-radius: 0 !important;
}
.doctors-leadership-img {
  border-radius: inherit !important;
}

/* Contact page: tighter alignment of address / phone / email / WhatsApp copy inside cards */
.main-content.iq-contact1.hh-contact-cards .overview-block-ptb2.green-bg .contact-blog .iq-line {
  gap: 0.35rem 0;
}
.main-content.iq-contact1.hh-contact-cards .overview-block-ptb2.green-bg .contact-blog:not(.whatsapp-contact-trigger) .iq-line .iq-lead,
.main-content.iq-contact1.hh-contact-cards .overview-block-ptb2.green-bg .contact-blog:not(.whatsapp-contact-trigger) .iq-line > p {
  max-width: 15rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.main-content.iq-contact1.hh-contact-cards .overview-block-ptb2.green-bg .contact-blog .iq-line .contact-phone-lines {
  max-width: 15rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.main-content.iq-contact1.hh-contact-cards .overview-block-ptb2.green-bg .whatsapp-contact-trigger .iq-line .wa-hint {
  max-width: 15rem;
  margin-left: auto;
  margin-right: auto;
}

/* CMS content pages (Outreach, Specialty Clinics, Social Department): normal vertical lists */
.main-content .iq-about3 .hh-page-content ul,
.main-content .iq-about3 .hh-page-body ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
  list-style: disc;
}
.main-content .iq-about3 .hh-page-content ul li,
.main-content .iq-about3 .hh-page-body ul li {
  width: auto;
  display: list-item;
  margin-bottom: 0.4rem;
  line-height: 1.55;
}
.main-content .iq-about3 .hh-page-content ul li img,
.main-content .iq-about3 .hh-page-body ul li img {
  float: none;
  margin-right: 0;
  display: block;
  max-width: 100%;
  height: auto;
}
.main-content .iq-about3 .hh-page-content ol,
.main-content .iq-about3 .hh-page-body ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.35rem;
}
.main-content .iq-about3 .hh-page-content ol li,
.main-content .iq-about3 .hh-page-body ol li {
  width: auto;
  display: list-item;
  margin-bottom: 0.4rem;
}
.main-content .hh-page-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.main-content .social-dept-contact {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #09767c;
  color: #2a2a2a;
  line-height: 1.65;
  box-shadow: 0 2px 10px rgba(15, 35, 40, 0.06);
}
.main-content .iq-about3 .hh-page-content .social-dept-contact,
.main-content .iq-about3 .hh-page-body + .social-dept-contact {
  margin-top: 2rem;
}
.main-content .social-dept-contact strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.main-content .social-dept-contact a {
  color: #09767c;
  font-weight: 700;
  text-decoration: none;
}
.main-content .social-dept-contact a:hover {
  text-decoration: underline;
}
[dir="rtl"] .main-content .social-dept-contact {
  border-left: none;
  border-right: 4px solid #09767c;
}
.main-content .hh-clinic-with-contact {
  margin-top: 0;
}
.main-content .hh-clinic-contact-aside .social-dept-contact {
  margin-top: 0;
}
@media (max-width: 991.98px) {
  .main-content .hh-clinic-contact-aside {
    margin-top: 1.5rem;
  }
}
[dir="rtl"] .main-content .iq-about3 .hh-page-content ul,
[dir="rtl"] .main-content .iq-about3 .hh-page-body ul {
  padding-left: 0;
  padding-right: 1.35rem;
}
[dir="rtl"] .main-content .iq-about3 .hh-page-content ol,
[dir="rtl"] .main-content .iq-about3 .hh-page-body ol {
  padding-left: 0;
  padding-right: 1.35rem;
}
.main-content .sc-wrap .small-title h3 {
  margin-bottom: 0.75rem;
}
.main-content .sc-wrap .sc-desc p {
  margin-bottom: 0.8rem;
}
.main-content .sc-wrap .sc-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.main-content .sc-wrap .sc-img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 991.98px) {
  .main-content .sc-wrap .sc-img-box {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
  .main-content .sc-wrap .col-lg-6 + .col-lg-6 {
    margin-top: 1rem;
  }
}

