/*
 * Elementor element IDs
 *            English    Amharic
 * pill       d297347    4cbd903
 * menu box   b24fdc5    e9642e9
 * menu       9cf8d32    b9e2015
 * language   906f75b    fa13f29
 * header     da1059d    77374d3
 * logo box   2c4baf9    85edd8a
 * Below 1025px (end of this file) the header is one glass bar with a dropdown panel.
 */
@media (min-width: 1025px) {

	/* The pill */
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903) {
		position: relative;
		align-self: center;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		min-height: 62px;
		padding: 6px 14px !important;
		border-radius: 999px !important;
		background: transparent !important;
		isolation: isolate;
	}

	/* Frosted fill. On a pseudo-element so it cannot affect dropdown positioning. */
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903)::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .16));
		box-shadow: 0 3px 12px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .14);
		-webkit-backdrop-filter: blur(16px) saturate(140%);
		backdrop-filter: blur(16px) saturate(140%);
		pointer-events: none;
	}

	/* Thin border fading from gold (left) to white (right) */
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903)::before {
		content: "";
		display: block;
		position: absolute;
		inset: 0;
		width: auto;
		height: auto;
		padding: 1px;
		border: 0;
		border-radius: inherit;
		background: linear-gradient(90deg, #b68e50, rgba(182, 142, 80, .35) 45%, rgba(255, 255, 255, .9));
		-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		-webkit-mask-composite: xor;
		mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
		pointer-events: none;
	}

	body .elementor-element:is(.elementor-element-b24fdc5, .elementor-element-e9642e9) {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}
	body .elementor-element:is(.elementor-element-906f75b, .elementor-element-fa13f29) {
		flex: 0 0 auto;
		width: auto;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) > .elementor-widget-container {
		margin: 0;
		padding: 0;
	}

	/* Menu items */
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) :is(.elementor-widget-container, .elementor-nav-menu--main) {
		width: 100%;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-nav-menu {
		display: flex;
		flex: 1 1 100%;
		flex-wrap: nowrap;
		justify-content: space-evenly;
		width: 100%;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item {
		padding: 10px 8px !important;
		color: #fff !important;
		font-size: 14px;
		font-weight: 700;
		text-transform: uppercase;
		white-space: nowrap;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item:hover,
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item:focus-visible {
		color: #f0d7a6 !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item::after {
		background-color: #e3c58f !important;
		height: 2px !important;
	}

	/* No arrows on the top level, as in the design. Submenus still open. */
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item .sub-arrow {
		display: none;
	}

	/* Language switcher */
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle a,
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle .cpel-switcher__code,
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle .cpel-switcher__icon {
		background: transparent !important;
		color: #fff !important;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903) {
		margin-right: 12px;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-nav-menu--main .elementor-item {
		padding: 10px 4px !important;
		font-size: 11.5px;
	}
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 1024px) {

	/*
	 * The bar is 66px tall with 12px above. The bottom margin keeps the total equal to
	 * the amount each homepage hero is pulled up by (English 149px, Amharic 135px).
	 */
	body .elementor-element:is(.elementor-element-da1059d, .elementor-element-77374d3) {
		position: relative;
		margin: 12px 0 71px !important;
		padding: 0 12px !important;
		z-index: 9999;
	}
	body .elementor-element.elementor-element-77374d3 {
		margin-bottom: 57px !important;
	}
	body .elementor-element:is(.elementor-element-da1059d, .elementor-element-77374d3) > .e-con-inner {
		position: relative;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		height: 66px;
		margin: 0;
		padding: 0 10px 0 14px;
		border: 1px solid rgba(227, 197, 143, .45);
		border-radius: 20px;
		background: rgba(3, 58, 10, .82);
		box-shadow: 0 3px 12px rgba(0, 0, 0, .1);
	}

	/* Logo */
	body .elementor-element:is(.elementor-element-2c4baf9, .elementor-element-85edd8a) {
		flex: 0 1 auto;
		width: auto !important;
		min-width: 0;
		margin: 0;
		padding: 0 !important;
	}
	body .elementor-element:is(.elementor-element-2c4baf9, .elementor-element-85edd8a) :is(.elementor-widget, .elementor-widget-container) {
		margin: 0;
		padding: 0;
	}
	body .elementor-element:is(.elementor-element-2c4baf9, .elementor-element-85edd8a) img {
		display: block;
		width: auto !important;
		max-width: 100%;
		max-width: 48vw;
		height: 50px !important;
		object-fit: contain;
		object-position: left center;
	}

	/* Inner pages: fills the strip above their green title area. */
	body:not(.home) .elementor-element:is(.elementor-element-da1059d, .elementor-element-77374d3)::before {
		content: "";
		display: block;
		position: absolute;
		top: -12px;
		right: 0;
		left: 0;
		width: auto;
		height: 40px;
		background: #004608;
		z-index: -1;
	}

	/* Remove the theme's underline effect inside the panel. */
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a::before,
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a::after {
		display: none !important;
	}

	/* Language and menu button, on the right */
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903) {
		display: flex;
		flex: 0 0 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-end;
		gap: 6px;
		width: auto !important;
		min-height: 0;
		margin: 0;
		padding: 0 !important;
		border: 0;
		background: transparent !important;
	}
	/* Not positioned, so the menu panel is placed against the whole bar. */
	body .elementor-element:is(.elementor-element-d297347, .elementor-element-4cbd903),
	body .elementor-element:is(.elementor-element-b24fdc5, .elementor-element-e9642e9, .elementor-element-9cf8d32, .elementor-element-b9e2015),
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) > .elementor-widget-container {
		position: static !important;
		transform: none;
	}
	body .elementor-element:is(.elementor-element-b24fdc5, .elementor-element-e9642e9) {
		order: 2;
		flex: 0 0 auto;
		width: auto !important;
		padding: 0 !important;
	}
	body .elementor-element:is(.elementor-element-906f75b, .elementor-element-fa13f29) {
		order: 1;
		flex: 0 0 auto;
		width: auto !important;
		padding: 0 !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015, .elementor-element-0962461, .elementor-element-8b94aa2),
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) > .elementor-widget-container {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle a,
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle .cpel-switcher__code,
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__toggle .cpel-switcher__icon {
		background: transparent !important;
		color: #fff !important;
		font-size: 14px;
	}

	/* Menu button */
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(227, 197, 143, .7);
		border-radius: 14px;
		background: rgba(255, 255, 255, .1) !important;
		color: #fff !important;
		font-size: 22px;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-menu-toggle svg {
		fill: #fff !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-menu-toggle.elementor-active {
		background: #b68e50 !important;
	}

	/* Dropdown panel under the bar */
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		position: absolute !important;
		top: calc(100% + 8px) !important;
		right: 0 !important;
		left: 0 !important;
		width: auto !important;
		max-width: 560px;
		max-height: 0;
		margin: 0 0 0 auto !important;
		overflow: hidden;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px) !important;
		border: 1px solid rgba(227, 197, 143, .45) !important;
		border-radius: 20px !important;
		background: rgba(2, 44, 8, .97) !important;
		box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
		z-index: 9999;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) .elementor-menu-toggle.elementor-active + nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: visible;
		opacity: 1;
		transform: none !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container > ul.elementor-nav-menu {
		margin: 0;
		padding: 8px;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a {
		display: flex;
		align-items: center;
		justify-content: space-between !important;
		min-height: 48px;
		padding: 10px 16px !important;
		border: 0;
		border-radius: 12px !important;
		background: transparent !important;
		color: #fff !important;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.35;
		white-space: normal;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a:hover,
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a:focus-visible {
		background: rgba(255, 255, 255, .1) !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container a.elementor-item-active {
		background: rgba(182, 142, 80, .22) !important;
		color: #f0d7a6 !important;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container .sub-arrow {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		min-width: 44px;
		margin: 0;
		padding: 0;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container .sub-arrow svg {
		width: 12px;
		fill: #e3c58f;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container ul.sub-menu {
		position: static !important;
		width: auto !important;
		margin: 2px 0 6px 16px !important;
		padding: 0 0 0 8px;
		border: 0 !important;
		border-left: 2px solid #b68e50 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none;
	}
	body .elementor-element:is(.elementor-element-9cf8d32, .elementor-element-b9e2015) nav.elementor-nav-menu__container ul.sub-menu a {
		min-height: 44px;
		color: rgba(255, 255, 255, .86) !important;
		font-size: 14px;
		font-weight: 500;
	}
}

@media (max-width: 380px) {
	body .elementor-element:is(.elementor-element-2c4baf9, .elementor-element-85edd8a) img {
		height: 38px !important;
	}
	body .elementor-element:is(.elementor-element-0962461, .elementor-element-8b94aa2) .cpel-switcher__flag {
		display: none;
	}
}
