/* Medicare body.page-home-v1 .mc-mega* felülírás — csak a shell oldalakon (utolsó link). */

body.page-home-v1 .mc-header .mc-mega {
  display: none !important;
  position: absolute !important;
  left: var(--mc-mega-left, 0) !important;
  top: calc(100% - 1px) !important;
  right: auto !important;
  transform: none !important;
  width: var(--mc-mega-width, 100%) !important;
  max-width: none !important;
  box-sizing: border-box;
  z-index: 2000;
  border: 1px solid var(--border, #dbe2ea);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 48px rgba(30, 58, 80, 0.14);
  overflow: hidden;
  background: #fff;
}

body.page-home-v1 .mc-header .mc-nav-item.has-mega:hover .mc-mega,
body.page-home-v1 .mc-header .mc-nav-item.has-mega:focus-within .mc-mega,
body.page-home-v1 .mc-header .mc-nav-item.has-mega.is-open .mc-mega {
  display: block !important;
}

html.mc-mega-intent-ready body.page-home-v1 .mc-header .mc-nav-item.has-mega:hover .mc-mega {
  display: none !important;
}
html.mc-mega-intent-ready body.page-home-v1 .mc-header .mc-nav-item.has-mega.is-open .mc-mega,
html.mc-mega-intent-ready body.page-home-v1 .mc-header .mc-nav-item.has-mega:focus-within .mc-mega {
  display: block !important;
}

body.page-home-v1 .mc-header .mc-mega-grid {
  display: grid !important;
  grid-template-columns: minmax(200px, 22%) minmax(0, 1fr) minmax(220px, 26%) !important;
  min-height: max(var(--mc-mega-unified-height, auto), var(--mc-mega-min-height, 550px)) !important;
  align-items: stretch !important;
  box-sizing: border-box;
}

body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-services,
body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-corp {
  height: var(--mc-mega-unified-height) !important;
  min-height: var(--mc-mega-unified-height) !important;
  max-height: var(--mc-mega-unified-height) !important;
}

body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-grid {
  height: var(--mc-mega-unified-height) !important;
  min-height: var(--mc-mega-unified-height) !important;
  max-height: var(--mc-mega-unified-height) !important;
}

body.page-home-v1 .mc-header .mc-mega-left {
  background: var(--df-gradient, linear-gradient(135deg, #19324a 0%, #204f75 60%, #248c99 100%)) !important;
  padding: 12px 12px 14px !important;
  border-right: none !important;
}

body.page-home-v1 .mc-header .mc-mega-cat {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  border-radius: 12px !important;
}

body.page-home-v1 .mc-header a.mc-mega-cat {
  text-decoration: none !important;
}

body.page-home-v1 .mc-header .mc-mega-cat.is-active {
  background: #fff !important;
  color: var(--navy, #1e3a50) !important;
  box-shadow: 0 6px 20px rgba(15, 40, 64, 0.18) !important;
}

body.page-home-v1 .mc-header .mc-mega-cat.is-active .chev {
  color: var(--brand, #4a8ea6) !important;
  opacity: 1 !important;
}

body.page-home-v1 .mc-header .mc-mega-mid {
  background: #fff !important;
  padding: 10px 22px 12px !important;
}

body.page-home-v1 .mc-header .mc-mega-corp .mc-mega-mid,
body.page-home-v1 .mc-header .mc-mega-services .mc-mega-mid {
  padding: 12px 22px 20px !important;
}

body.page-home-v1 .mc-header .mc-mega-panel-block:not(.is-visible) {
  display: none !important;
}

body.page-home-v1 .mc-header .mc-mega-panel-block.is-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-left,
body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-mid {
  overflow: hidden !important;
  align-self: stretch !important;
  min-height: 100% !important;
  height: 100% !important;
}

body.page-home-v1 #mcMainNav.mc-mega-viewport-capped .mc-header .mc-mega-left,
body.page-home-v1 #mcMainNav.mc-mega-viewport-capped .mc-header .mc-mega-mid {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-right {
  overflow: hidden !important;
  align-self: stretch !important;
  min-height: 100% !important;
  height: 100% !important;
}

body.page-home-v1 #mcMainNav.mc-mega-height-ready .mc-header .mc-mega-panel-block {
  overflow: visible !important;
}

body.page-home-v1 .mc-header .mc-mega-mid-cols:not(.mc-mega-mid-cols--labor) {
  display: flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
}

body.page-home-v1 .mc-header .mc-mega-mid-cols--labor {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-home-v1 .mc-header .mc-mega-mid-cols--labor > div {
  width: auto !important;
  flex: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Laptop: sűrűbb megamenü tipográfia — asztali (magasabb viewport) érintetlen. */
@media (min-width: 1025px) and (max-height: 900px) {
  body.page-home-v1 .mc-header .mc-mega-cat {
    padding: 8px 10px !important;
    gap: 10px !important;
    font-size: 13.5px !important;
  }

  body.page-home-v1 .mc-header .mc-mega-cat__icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 13.5px !important;
  }

  body.page-home-v1 .mc-header .mc-mega-left {
    padding: 10px 10px 12px !important;
  }

  body.page-home-v1 .mc-header .mc-mega-mid,
  body.page-home-v1 .mc-header .mc-mega-corp .mc-mega-mid,
  body.page-home-v1 .mc-header .mc-mega-services .mc-mega-mid {
    padding: 8px 16px 20px !important;
  }

  body.page-home-v1 .mc-header .mc-mega-mid--dense .mc-mega-link,
  body.page-home-v1 .mc-header .mc-mega-mid-cols .mc-mega-link,
  body.page-home-v1 .mc-header .mc-mega-link-cols--3 .mc-mega-link {
    padding: 4px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
  }

  body.page-home-v1 .mc-header .mc-mega-mid h5,
  body.page-home-v1 .mc-header .mc-mega-section-heading {
    font-size: 11.5px !important;
    margin: 6px 0 2px !important;
    padding: 0 0 4px !important;
  }
}

