/* Shared layout overrides (all pages) */
html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Non-home pages: do not inherit Centro Playfair — match home TrueBlue stack */
body:not(:has(.hero.section)) {
  font-family: system-ui, -apple-system, "Segoe UI", "Roboto", sans-serif;
}

body:not(:has(.hero.section)) h1,
body:not(:has(.hero.section)) h2,
body:not(:has(.hero.section)) h3,
body:not(:has(.hero.section)) h4,
body:not(:has(.hero.section)) h5,
body:not(:has(.hero.section)) h6 {
  font-family: "Montserrat", "Roboto", system-ui, sans-serif;
}

/* Keep in-page anchors (e.g. #contact) clear of the sticky header */
#contact,
.contact.section {
  scroll-margin-top: 120px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

#main-content,
.footer {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: #025376;
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

header,
.header-area {
  position: relative;
  z-index: 99999;
}

#sticky-header {
  z-index: 99999;
}

.footer .social_links__icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

:root {
  --tb-header-grad: linear-gradient(
    135deg,
    #174a94,
    color-mix(in srgb, #022352db, #667eea 30%)
  );
}

.tb-header-container {
  max-width: 1140px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1400px) {
  .tb-header-container {
    max-width: 1320px;
  }
}

.header-area .main-header-area > .tb-header-container {
  width: 100%;
}

/* Match testwebsite.truebluemd.com — .header .branding { padding: 30px 0 } */
.header-area .main-header-area {
  padding: 30px 0 !important;
}

.header-area .main-header-area.sticky {
  padding: 30px 0 !important;
  background: var(--tb-header-grad) !important;
  box-shadow: 0 8px 24px rgba(2, 35, 82, 0.18);
  top: 0;
  transform: none;
}

header,
.header-area,
.header-area .main-header-area,
.header-area .tb-header-container,
.header-area .row,
.header-area .main-menu,
.header-area nav,
.header-area #navigation {
  overflow: visible !important;
}

.header-area .main-header-area .main-menu ul li .submenu {
  z-index: 100000;
  pointer-events: auto;
}

.header-area .main-header-area .main-menu ul li .submenu li a {
  color: #3c4049;
}

.header-area .main-header-area .main-menu ul li .submenu li a:hover {
  color: #1db78d;
}

.header-area .main-header-area .main-menu ul li .submenu .submenu {
  top: 0 !important;
  left: 100%;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
}

.header-area .main-header-area .main-menu ul li .submenu li:hover > .submenu {
  top: 0 !important;
  left: 100%;
  opacity: 1;
  visibility: visible;
}

.header-area .get_in_tauch a.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1db78d;
  border: 0;
  border-bottom: 1px solid #1db78d;
  border-radius: 0;
  padding: 4px 0;
  letter-spacing: 0;
  text-transform: none;
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 16px;
  width: auto;
}

.header-area .get_in_tauch a.header-cta:hover {
  color: #174a94;
  border-bottom-color: #174a94;
}

.header-area .main-header-area .main-menu ul li > a {
  position: relative;
}

.header-area .main-header-area .main-menu ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background-color: #25b88f;
  visibility: hidden;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition: width 0.3s ease-in-out;
}

.header-area .main-header-area .main-menu ul > li > a:hover::before,
.header-area .main-header-area .main-menu ul > li:hover > a::before,
.header-area .main-header-area .main-menu ul > li > a.active::before {
  visibility: visible;
  width: 100%;
}

.header-area .main-header-area .main-menu ul li .submenu li a::before {
  display: none !important;
}

/* Pages without a Hero/banner — TrueBlue sticky blue bar (not Centro white nav) */
body:not(:has(.hero.section)) header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--tb-header-grad);
  z-index: 99999;
}

body:not(:has(.hero.section)) .header-area {
  position: relative;
  width: 100%;
  background: transparent !important;
  z-index: 99999;
}

body:not(:has(.hero.section)) .header-area .main-header-area,
body:not(:has(.hero.section)) .header-area .main-header-area.sticky {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  background: var(--tb-header-grad) !important;
  padding: 30px 0 !important;
  box-shadow: 0 8px 24px rgba(2, 35, 82, 0.18);
  transform: none !important;
  animation: none !important;
}

body:not(:has(.hero.section)) .logo-img img {
  width: 80% !important;
  max-width: 180px;
  max-height: 36px !important;
  height: auto !important;
  object-fit: contain;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li {
  display: inline-block;
  position: relative;
  float: none;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 2px !important;
  margin: 0 12px;
  white-space: nowrap;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a:hover,
body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a.active {
  color: #25b88f;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  display: block;
  background: #fff;
  overflow: visible !important;
  z-index: 100000;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu li a {
  color: #3c4049 !important;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 20px !important;
  white-space: nowrap;
}

body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu li a:hover,
body:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu .active {
  color: #20b38b !important;
}

body:not(:has(.hero.section)) .header-area .get_in_tauch a.header-cta {
  color: #1db78d;
  border-bottom: 1px solid #1db78d;
}

body:not(:has(.hero.section)) .header-area .get_in_tauch a.header-cta:hover {
  color: #fff;
  border-bottom-color: #fff;
}

body:not(:has(.hero.section)) .slicknav_btn .slicknav_icon-bar {
  background-color: #fff !important;
}
