/* ==========================================
   Mobile Menu Styles - End
   ========================================== */

/* ==========================================
   Desktop Menu Styles - Start 
   ========================================== */
.main-navigation {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.header-nav {
	display: flex;
}

.primary-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0 15px 0 7px !important;
}

/* Top Level Menu Items */
.top-level-link, .top-level-link:hover {
	display: block;
	padding: 39px 10px !important;
	color: #333;
	text-decoration: none;
	font-weight: 700 !important;
	position: relative;
	font-size: 15px;
	line-height: 22px;
	text-shadow: rgba(0, 0, 0, .1) 1px 1px 1px;
	letter-spacing: normal;
	font-family: "Istok+Web", sans-serif;
}

/* Mega Menu Structure */
.mega-menu-wrapper {
	position: fixed !important;
	left: 0;
	width: 96% !important;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	display: none;
	z-index: 1000;
	margin: 0 30px;
	border: 1px solid #eee;
	border-top: 2px solid #ffc20e;
	padding: 0 10px;
}

.mega-menu-wrapper.active {
	display: block;
}

.mega-menu-content {
	max-width: 1200px;
	margin: 0 !important;
	padding: 0 15px !important;
}

.mega-menu {
	display: flex !important;
	gap: 0 !important;
	list-style: none;
	padding: 0;
}

/* Submenu Styles */
.sub-menu {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
	display: block;
}

.sub-menu li {
	padding: 5px 0;
}

.sub-menu a {
	color: #666;
	text-decoration: none;
	font-size: 14px;
	display: block;
	padding: 5px 10px !important;
	transition: color .3s;
}

.sub-menu a:hover {
	color: #ffd700;
}

/* Active States */
.menu-item-has-children > a.active, .current-menu-item > a.active, .current-menu-parent > a.active {
	color: #ffd700;
}

/* .current-menu-item > a,
.current-menu-parent > a {
    color: #ffd700;
} */

/* Hide Mobile Elements */
.menu-toggle {
	display: none;
}

/* Sticky Menu Styles */
.sticky-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	transform: translateY(-100%);
	transition: transform .3s ease-in-out;
	z-index: 1000;
}

.sticky-header.show {
	transform: translateY(0);
}

.header-container {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999999;
	background-color: white;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, .2);
}

.header-search {
	padding: 5px 5px 0;
	border-right: 1px solid rgba(67, 141, 100, .13);
	border-left: 1px solid rgba(67, 141, 100, .13);
}

.header-search-icon {
	border: none;
	background: transparent;
	cursor: pointer;
}

.header-search .fa-search {
	font-size: 20px;
	line-height: 20px !important;
	color: #000 !important;
}

.mega-menu-wrapper .mega-menu > li > a > i {
	display: flex !important;
	display: inline-block;
	border: 1px solid #bbb;
	padding: 10px;
	margin-right: 5px;
	color: #555;
	justify-content: center;
	align-items: center;
}

.mega-menu-wrapper .mega-menu > li:not(:first-child) {
	position: relative;
	border-left: 1px solid #f2f2f2;
	height: 100%;
}

.mega-menu-wrapper .mega-menu > li:last-child {
	border-right: none;
	border-bottom: none !important;
}

.mega-menu > li {
	padding: 30px 20px !important;
}

.mega-menu .sub-menu li {
	padding: 0;
}

.mega-menu > li > a {
	font-size: 13px;
	line-height: 16.9px;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	display: flex;
	font-family: "Istok+Web", sans-serif;
}

.mega-menu .sub-menu li a {
	display: flex;
	font-size: 13px;
	font-weight: 300;
	color: #555;
	line-height: normal;
	align-items: baseline;
	font-family: "Open+Sans", sans-serif;
}

.mega-menu .sub-menu li a i {
	margin-right: 16px;
}

.header-container .menu-item:hover {
	box-shadow: inset 0 2px 0 #ffc20e;
}

.sub-menu .menu-item:hover {
	box-shadow: none;
}

.mega-menu li a:hover {
	border-top: none !important;
	color: #555 !important;
}

.mega-menu .menu-item:hover {
	box-shadow: none;
}

.mega-menu .sub-menu li a:hover {
	color: #ffc20e !important;
}

.header-search #search-form {
	opacity: 0;
	z-index: -2;
	position: absolute;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	top: 0;
	left: 0;
}

.header-search #search-form input::placeholder {
	color: #ffc20e;
	opacity: 1;
	font-size: 28px;
	line-height: 40px;
	text-shadow: rgba(0, 0, 0, .1) 1px 1px 1px;
	letter-spacing: 1px;
}

.header-search #search-form input {
	height: 100px !important;
	padding: 10px 80px 10px 50px;
	border: none !important;
	font-size: 28px;
	line-height: 40px;
	text-shadow: rgba(0, 0, 0, .1) 1px 1px 1px;
	letter-spacing: 1px;
	color: #000;
	transition: all .3s ease;
}

.fa-times {
	position: absolute;
	right: 50px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 37.5px;
	color: #666;
	display: none;
	z-index: 11;
}

.logo {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-right: 5px;
}

.logo img {
	object-fit: contain;
}

.mobile-logo {
	display: none;
}

.desktop-logo {
	height: 100px;
	transition: all .3s ease;
}

.tablet-logo {
	display: none;
}

.mega-menu > li {
	width: 45%;
}

@media (max-width: 1400px) {
	.mega-menu {
		flex-wrap: wrap;
		width: 75%;
		gap: 20px !important;
	}
	
	.mega-menu-wrapper .mega-menu > li {
		flex: 1 1 calc(50% - 10px);
		min-width: 250px;
	}
	
	.mega-menu > li {
		padding: 10px 15px !important;
	}
	
	.language {
		width: 132px;
	}
	
	.top-level-link, .top-level-link:hover {
		font-size: 14px;
	}
	
	.desktop-logo {
		height: 70px;
	}
	
	.logo {
		padding: 0;
	}
}

@media screen and (max-width: 991px) {
	.header-container {
		height: 60px;
	}
	
	.main-navigation {
		justify-content: space-around;
	}
	
	.primary-menu > li > a, .top-level-link, .top-level-link:hover {
		padding: 14px 5px !important;
		display: block;
		position: relative;
		font-weight: 500;
		color: #fff;
	}
	
	.mega-menu-wrapper.active {
		position: relative !important;
	}
	
	.mega-menu {
		flex-direction: column;
		width: 100%;
		gap: 0 !important;
	}
	
	.mega-menu-wrapper {
		border-top-color: rgba(255, 255, 255, .1) !important;
		background-color: #292929 !important;
		margin: 0 !important;
		width: 100% !important;
		padding: 0 15px;
		border: none;
	}
	
	.mega-menu > li {
		padding: 11px 0 !important;
	}
	
	.sub-menu {
		background-color: #292929 !important;
	}
	
	.mega-menu .sub-menu li a {
		color: #fff;
	}
	
	.sub-menu li {
		padding: 5px 0 !important;
	}
	
	.mega-menu-wrapper .mega-menu > li > a, .mega-menu-wrapper .mega-menu > li > a > i {
		color: #fff;
	}
	
	.primary-menu {
		width: 90% !important;
		left: 0 !important;
		right: 0 !important;
		margin: 0 auto !important;
		border-right: none;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	.header-search {
		padding-top: 10px;
		border-right: none;
		border-left: none;
	}
	
	.mega-menu-wrapper .mega-menu > li {
		border-right: none;
	}
	
	.header-container .menu-item:hover {
		box-shadow: none;
	}
	
	.sub-menu {
		padding-left: 5px !important;
	}
	
	.fa-times {
		font-size: 25px;
	}
	
	.header-search #search-form input {
		height: 60px;
	}
	
	.desktop-logo img {
		width: auto !important;
		width: fit-content;
		height: 50px;
		object-fit: contain;
	}
	
	.header-nav {
		margin-right: -65px;
		gap: 20px;
	}
	
	.menu-toggle {
		display: flex !important;
		flex-direction: column;
		position: relative !important;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1001;
		padding: 10px;
		background: transparent;
		border: none;
		cursor: pointer;
	}
	
	.menu-toggle span {
		display: block;
		width: 25px;
		height: 3px;
		margin: 4px 0;
		background-color: #333;
		transition: all .3s ease;
		border-radius: 2px;
	}
	
	/* Hamburger Animation */
	.menu-toggle.active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	
	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	
	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	
	/* Mobile Menu Container */
	.primary-menu {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 60px);
		padding: 0;
		overflow-y: auto;
		z-index: 999;
		background-color: #292929 !important;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
	}
	
	.primary-menu.show {
		display: block;
	}
	
	/* Mobile Menu Items */
	.primary-menu li {
		display: block;
		position: relative;
		border-bottom: 2px solid rgba(255, 255, 255, .1) !important;
	}
	
	.primary-menu li:last-child {
		border-bottom: none !important;
	}
	
	/* Mobile Mega Menu */
	.mega-menu-wrapper {
		position: static;
		width: 100%;
		box-shadow: none;
		background: #f5f5f5;
	}
	
	.mega-menu {
		display: block;
		padding: 0;
	}
	
	.mega-menu > li {
		width: 100%;
		padding: 0;
		border-bottom: 1px solid #eee;
	}
	
	/* Mobile Submenu */
	.sub-menu {
		display: none;
		background: #f9f9f9;
	}
	
	.submenu-open > .sub-menu {
		display: block;
	}
	
	/* Expand/Collapse Indicator */
	.menu-item-has-children > a::after {
		content: "+";
		position: absolute;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		transition: transform .3s ease;
		color: rgba(255, 255, 255, .3);
	}
	
	.menu-item-has-children.submenu-open > a::after {
		content: "-";
	}
	
	.menu-item-has-children.submenu-open > a::after {
		top: 25px !important;
	}
	
	/* Animation */
	.mega-menu-wrapper, .sub-menu {
		transition: all .3s ease-in-out;
	}
	
	.mega-menu-content {
		padding: 0 0 0 15px !important;
	}
	
	.menu-toggle {
		padding-top: 20px;
	}
	
	.tablet-logo {
		display: none !important;
	}
	
	.desktop-logo {
		display: block !important;
	}
}

/* ==========================================
   Desktop Menu Styles - End
   ========================================== */

/* ==========================================
   Mobile Menu Styles - Start
   ========================================== */
@media screen and (max-width: 768px) {
	/* Mobile Navigation Container */
	.main-navigation {
		padding: 10px 0;
		min-height: 75px !important;
	}
	
	.language {
		padding-bottom: 8px;
	}
	
	.menu-primary-menu-container ul li a {
		color: #fff;
		text-decoration: none;
		align-items: center;
	}
	
	.desktop-logo {
		display: block !important;
	}
	
	.tablet-logo {
		display: none !important;
	}
	
	/* Hamburger Menu */
	.menu-toggle {
		display: flex;
		flex-direction: column;
		position: relative !important;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1001;
		padding: 10px;
		background: transparent;
		border: none;
		cursor: pointer;
	}
	
	.menu-toggle span {
		display: block;
		width: 25px;
		height: 3px;
		margin: 4px 0;
		background-color: #333;
		transition: all .3s ease;
		border-radius: 2px;
	}
	
	/* Hamburger Animation */
	.menu-toggle.active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	
	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	
	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	
	/* Mobile Menu Container */
	.primary-menu {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		padding: 0;
		overflow-y: auto;
		z-index: 999;
		background-color: #292929 !important;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
	}
	
	.primary-menu.show {
		display: block;
	}
	
	/* Mobile Menu Items */
	.primary-menu li {
		display: block;
		position: relative;
		border-bottom: 2px solid rgba(255, 255, 255, .1) !important;
	}
	
	.primary-menu li:last-child {
		border-bottom: none !important;
	}
	
	/* Mobile Mega Menu */
	.mega-menu-wrapper {
		position: static;
		width: 100%;
		box-shadow: none;
		background: #f5f5f5;
	}
	
	.mega-menu {
		display: block;
		padding: 0;
	}
	
	.mega-menu > li {
		width: 100%;
		padding: 0;
		border-bottom: 1px solid #eee;
	}
	
	/* Mobile Submenu */
	.sub-menu {
		display: none;
		background: #f9f9f9;
	}
	
	.submenu-open > .sub-menu {
		display: block;
	}
	
	/* Expand/Collapse Indicator */
	.menu-item-has-children > a::after {
		content: "+";
		position: absolute;
		right: 15px;
		top: 50%;
		transform: translateY(-50%);
		transition: transform .3s ease;
		color: rgba(255, 255, 255, .3);
	}
	
	.menu-item-has-children.submenu-open > a::after {
		content: "-";
	}
	
	.menu-item-has-children.submenu-open > a::after {
		top: 25px !important;
	}
	
	/* Animation */
	.mega-menu-wrapper, .sub-menu {
		transition: all .3s ease-in-out;
	}
	
	.mega-menu-content {
		padding: 0 0 0 15px !important;
	}
	
	.menu-toggle {
		padding-top: 8px;
	}
	
	.fa-bars {
		font-size: 14px;
	}
	
	.header-search {
		padding-top: 0px;
	}
}

/* Adjust mobile styles for sticky header */
@media screen and (max-width: 768px) {
	.sticky-header .primary-menu {
		top: 60px;
	}
	
	.sticky-header .menu-toggle {
		top: 20px;
	}
}

/* Add padding to body when sticky header is active */
body.has-sticky-header {
	padding-top: 60px;
}

@media screen and (max-width: 479px) {
	.primary-menu {
		width: 100% !important;
	}
	
	.header-search {
		padding-top: 0px;
		padding-right: 0;
	}
	
	.sub-menu {
		padding: 0 5px !important;
	}
	
	.mega-menu .sub-menu li a i {
		margin-right: 5px;
	}
	
	.mega-menu .sub-menu li {
		border-top: 1px solid rgba(255, 255, 255, .1) !important;
		border-bottom: none;
	}
	
	.mega-menu-wrapper {
		border-right: none;
		border-left: none;
		border-bottom: none;
	}
	
	.mega-menu {
		padding-top: 7px !important;
	}
	
	.fa-bars {
		font-size: 20px;
		margin-left: 45px !important;
	}
	
	.language {
		padding-bottom: 15px;
	}
	
	.header-nav {
		margin-right: -25px;
	}
	
	.mobile-logo {
		display: block;
		height: 45px;
		padding-bottom: 10px;
	}
	
	.desktop-logo {
		display: none !important;
	}
	
	.tablet-logo {
		display: none !important;
	}
	
	.menu-toggle {
		padding-top: 10px;
	}
	
	.fa-times {
		top: 30px;
	}
}

@media screen and (max-width: 1024px) {
	.desktop-logo {
		display: none;
	}
	
	.tablet-logo {
		display: block;
	}
	
	.tablet-logo {
		height: 40px;
	}
	
	.logo {
		padding-left: 5px;
		padding-right: 0;
	}
}

@media screen and (min-width: 1600px) {
	.logo {
		padding-left: 15px;
		padding-right: 0;
	}
	
	.mega-menu > li {
		width: 50%;
	}
}
