.bl-header-nav ul {
  list-style-type: none;
  padding-left: 0;
}

.bl-header-nav > ul {
  display: flex;
  justify-content: space-between;
}

.bl-header-nav > ul > li {
  position: relative;
  padding: 1px;
  border-style: solid;
  border-width: 0px 0px 2px 0px;
  border-color: transparent;
}

.bl-header-nav > ul > li:not(.has-child):hover {
  border-color: var( --e-global-color-40cb110 );
}

/* Hide child menu items by default */
.has-child ul {
  display: none;
}

.has-child > a {
  display: flex;
  align-items: center;
}

/* Style for when child menu is visible */
.has-child.visible ul {
  display: block;
}

.has-child > a::after {
  background-color: currentColor;
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 1em;
  margin-left: 0.25em;
  -webkit-mask-image: url('data:image/svg+xml,<svg aria-hidden="true" class="e-font-icon-svg e-fas-caret-down" viewBox="0 0 320 512" xmlns="http://www.w3.org/2000/svg"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path></svg>');
  mask-image: url('data:image/svg+xml,<svg aria-hidden="true" class="e-font-icon-svg e-fas-caret-down" viewBox="0 0 320 512" xmlns="http://www.w3.org/2000/svg"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"></path></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.has-child.visible > a::after {
  content: "";
  -webkit-mask-image: url('data:image/svg+xml,<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-caret-up\" viewBox=\"0 0 320 512\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z\"></path></svg>');
  mask-image: url('data:image/svg+xml,<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-caret-up\" viewBox=\"0 0 320 512\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z\"></path></svg>');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

}

[data-elementor-device-mode="desktop"] .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
position: absolute;
left: 0;
top: 100%;
background-color: var(--e-global-color-5408c3b);
padding: 0.5rem 0.5rem;
z-index: 999;
width: max-content;
box-shadow: 0px 16px 12px 0px rgba(0, 0, 0, 0.15);
}

.has-child ul li a {
  display: block;
  padding: 0.75rem 1rem;
}

body:not(.menu-open):is([data-elementor-device-mode="tablet"], [data-elementor-device-mode="mobile"]) .bl-header-nav {
  display: none;
}

[data-elementor-device-mode="desktop"] .bl-menu-toggle {
  display: none;
}

body.menu-open:not([data-elementor-device-mode="desktop"]) .bl-header-nav {
  --admin-bar-height: 0px;
  position: fixed;
  top: calc(90px + var(--admin-bar-height));
  left: 0;
  width: 100%;
  height: auto;
  background: var(--e-global-color-5408c3b);
  overflow: auto;
  z-index: 9999;
}

body.menu-open[data-elementor-device-mode="tablet"] .bl-header-nav {
  top: calc(120px + var(--admin-bar-height));
}

body.admin-bar.menu-open[data-elementor-device-mode="mobile"] .bl-header-nav {
  --admin-bar-height: 46px;
}

body.admin-bar.menu-open[data-elementor-device-mode="tablet"] .bl-header-nav {
  --admin-bar-height: 32px;
}

body.menu-open:not([data-elementor-device-mode="desktop"]) .bl-header-nav > ul {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  padding-block: 1.75rem 1.0rem;
}

body.menu-open .bl-header-nav > ul > li {
  padding-block: 0.75rem;
  text-align: center;
}

body.menu-open .bl-header-nav > ul > li > a {
  justify-content: center;
}

body.menu-open:not([data-elementor-device-mode="desktop"]) .bl-header-nav > ul > li.has-child.visible > a {
  padding-bottom: 0.75em;
  border-bottom: solid 1px #39526E55;
}

.bl-menu-toggle, .bl-menu-toggle:focus {
  display: flex;
  flex-direction: column;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  padding: 0.5rem;
  border:none;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--e-global-color-primary);
  line-height: 0.5;
}

.bl-menu-toggle:hover {
  background: var(--e-global-color-primary);
  color: var(--e-global-color-5408c3b);
}

.bl-menu-toggle svg {
  fill: currentColor;
}

body.menu-open .bl-menu-toggle {
  font-size: 0.68rem;
}