/*
 * Header (Header Footer Elementor template) — the three states of the live header, measured:
 *   lgx-hdr-bar      pages with "Header background: Show": 70px bar in the flow, page menu colour
 *   lgx-hdr-overlay  other pages + 404: 104px, transparent, over the banner, white links
 *   lgx-hdr-static   posts + archives: 104px in the flow, #333 links
 * Any scroll makes it a fixed white bar (live "navbar_fixed").
 */
body.ehf-header #masthead { position: relative; z-index: 20; width: 100%; transition: all .2s linear; }
body.ehf-header.lgx-hdr-overlay #masthead { position: absolute; top: 0; left: 0; }
body.ehf-header #masthead.lgx-stuck { position: fixed; top: 0; left: 0; background: #fff; box-shadow: 0 4px 6px 0 rgba(12, 0, 46, .06); }
body.admin-bar #masthead.lgx-stuck { top: 32px; }

@media (min-width: 1025px) {
	.lgx-hdr-overlay #masthead .elementor-top-section > .elementor-container,
	.lgx-hdr-static #masthead .elementor-top-section > .elementor-container { min-height: 104px; }
	.lgx-hdr-overlay #masthead.lgx-stuck .elementor-top-section > .elementor-container,
	.lgx-hdr-static #masthead.lgx-stuck .elementor-top-section > .elementor-container { min-height: 88px; }

	/* top-level links */
	#masthead .lgx-hdr-nav .hfe-nav-menu > li > a.hfe-menu-item,
	#masthead .lgx-hdr-nav .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item {
		padding-top: 0;
		padding-bottom: 0;
		line-height: normal;
		color: var(--lgx-menu, #333) !important;
		transition: color .3s;
	}
	.lgx-hdr-overlay #masthead:not(.lgx-stuck) .lgx-hdr-nav .hfe-nav-menu > li > a.hfe-menu-item,
	.lgx-hdr-overlay #masthead:not(.lgx-stuck) .lgx-hdr-nav .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { color: var(--lgx-menu, #fff) !important; }
	#masthead.lgx-stuck .lgx-hdr-nav .hfe-nav-menu > li > a.hfe-menu-item,
	#masthead.lgx-stuck .lgx-hdr-nav .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { color: var(--lgx-menu-sticky, var(--lgx-menu, #051441)) !important; }
	#masthead .lgx-hdr-nav .hfe-nav-menu > li > .hfe-has-submenu-container .sub-arrow { display: none; }

	/* dropdowns: 35px under the link, 40px to the left, fade + 20px rise in .3s */
	#masthead .lgx-hdr-nav .hfe-nav-menu > li > ul.sub-menu {
		top: calc(100% + 35px);
		left: -40px;
		width: max-content;
		min-width: 200px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: -1px 2px 19px 3px rgba(14, 0, 40, .05);
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
		transform: translateY(20px);
		transition: all .3s ease-in;
	}
	#masthead .lgx-hdr-nav .hfe-nav-menu > li > ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 35px; }
	#masthead .lgx-hdr-nav .hfe-nav-menu > li:hover > ul.sub-menu,
	#masthead .lgx-hdr-nav .hfe-nav-menu > li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: none; }
	#masthead .lgx-hdr-nav ul.sub-menu > li { padding: 0 30px; border: 0 !important; background: #fff; }
	#masthead .lgx-hdr-nav ul.sub-menu > li:last-child { padding-bottom: 10px; margin-bottom: -8px; }
	#masthead .lgx-hdr-nav .badge { display: inline-block !important; }

	/* "Get Started": fixed 120px button in every language */
	#masthead .elementor-widget-button .elementor-button { width: 120px; padding-left: 5px; padding-right: 5px; }
	#masthead.lgx-stuck .elementor-widget-button .elementor-button { box-shadow: none; }
	#masthead .lgx-hdr-nav ul.sub-menu > li > a.hfe-sub-menu-item {
		display: block;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		color: #051441 !important;
		font-size: 14px;
		font-weight: 400;
		line-height: 36px;
		white-space: nowrap;
		transition: color .2s linear;
	}
	#masthead .lgx-hdr-nav ul.sub-menu > li > a.hfe-sub-menu-item:hover { color: #1e73be !important; }
}

/* "Newest" pill in menu titles */
.badge {
	display: inline-block;
	padding: .35em .65em;
	border-radius: 4px;
	color: #fff;
	font-size: .75em;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
}
.badge.bg-danger { background-color: #dc3545; }
