/* BCD mobile header fix 1788793519513 */
@media (max-width: 1584px) {
  .et-l--header .bcd-header-accent-row { display: none !important; }
  .et-l--header .et_pb_section_1_tb_header:not(.bcd-header-desktop) { display: none !important; }

  .et-l--header .bcd-header-logo,
  .et-l--header .bcd-header-desktop .bcd-header-logo.et_pb_image {
    width: 148px !important;
    max-width: min(148px, 58vw) !important;
  }
  .et-l--header .bcd-header-logo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .et-l--header .bcd-header-menu .et_pb_menu__menu,
  .et-l--header .bcd-header-menu .et-menu-nav {
    display: none !important;
  }

  /* Keep the hamburger trigger visible — do NOT size the whole nav to 40px */
  .et-l--header .bcd-header-menu .et_mobile_nav_menu,
  .et-l--header .bcd-header-menu .mobile_nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .et-l--header .bcd-header-menu .mobile_menu_bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 100000 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background-color: #00529c !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer !important;
  }
  .et-l--header .bcd-header-menu .mobile_menu_bar:before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 12px !important;
    margin: 0 auto !important;
    background:
      linear-gradient(#fff,#fff) 0 0/100% 2px no-repeat,
      linear-gradient(#fff,#fff) 0 5px/100% 2px no-repeat,
      linear-gradient(#fff,#fff) 0 10px/100% 2px no-repeat !important;
  }

  /*
   * Open panel must be FIXED to the viewport.
   * Absolute + left:0 was relative to the hamburger column (~185px in),
   * so pills and Dipi expand chevrons sat half off-screen.
   */
  .et-l--header .bcd-header-menu .mobile_nav.opened .et_mobile_menu,
  .et-l--header .bcd-header-menu ul.et_mobile_menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100vh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
    padding: 72px 5% 32px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    transform: none !important;
  }

  .et-l--header .bcd-header-menu .et_mobile_menu li,
  .et-l--header .bcd-header-menu .et_mobile_menu li a {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #22304B !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: normal !important;
  }

  .et-l--header .bcd-header-menu .et_mobile_menu > li > a {
    background: #ffffff !important;
    color: #22304B !important;
    border-radius: 999px !important;
    padding: 14px 48px 14px 20px !important;
    margin: 0 0 10px !important;
  }

  /* Keep Dipi collapse chevron (::after) inside the visible pill */
  .et-l--header .bcd-header-menu .et_mobile_menu .menu-item-has-children > a:after {
    right: 16px !important;
    left: auto !important;
    pointer-events: none !important;
  }

  /* Expanded children (Dipi removes .dipi-collapse-closed) */
  .et-l--header .bcd-header-menu .et_mobile_menu .sub-menu:not(.dipi-collapse-closed) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .et-l--header .bcd-header-menu .et_mobile_menu .sub-menu a {
    background: rgba(255,255,255,0.92) !important;
    color: #22304B !important;
    border-radius: 999px !important;
    padding: 12px 44px 12px 20px !important;
    margin: 0 0 8px 12px !important;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    font-size: 15px !important;
  }

  .et-l--header .bcd-header-menu .et_mobile_menu .sub-menu .sub-menu a {
    margin-left: 24px !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    font-size: 14px !important;
  }

  .et-l--header .bcd-header-give,
  .et-l--header a.et_pb_button_0_tb_header {
    background-color: #E8EEF4 !important;
    color: #22304B !important;
    border-radius: 50px !important;
  }
  .et-l--header .bcd-header-give:after,
  .et-l--header a.et_pb_button_0_tb_header:after {
    display: none !important;
    content: none !important;
  }
}
