.header {position: fixed; width: 100%; top: 0; left: 0; z-index: 999;}
.header.header-scroll {
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,.2);
	-moz-box-shadow: 0 0 10px rgba(0,0,0,.2);
	box-shadow: 0 0 10px rgba(0,0,0,.2);
}
.sub-header ul {height:100%;}
.sub-header ul li, .sub-header ul li a {display: inline-block; font-size: 0.9rem; line-height: 1;}
.sub-header ul li a {padding:10px 15px;}
.sub-header .cntct {padding-right:10px;}
.sub-header .menu {padding-left:10px;}
.sub-header ul li a img {max-width: 30px; border-radius: 100%;}
.main-header .sub-menu, .main-header .sub-menu li a .expand-ul {display: none;}
.main-header .sub-menu li.menu-item-has-children a .expand-ul {display: block;}
.main-header .sub-menu li {width:100%;display:block;}
.logo a img {filter:grayscale(100) contrast(200%);}
.logo a img{
	width: 115px;
	filter:0;
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

.pulse-menu a{
	animation: pulse 1s infinite;
}
@keyframes pulse {
	0% {
	  color: #0682f5 !important;
	}
	50%{
	  opacity: 0;
	}
	100% {
	  color: #0682f5 !important;
	}
  }
/* Desktop */ 

@media only screen and (min-width: 1435px) {
	.sub-header > div {
		-webkit-justify-content: space-between;
		-ms-justify-content: space-between;
		justify-content: space-between;
	}
	.main-header .nav {position:relative;right:5%;}
	.main-header .centerlogo .nav {right:0;}
	.main-header .centerlogo.horiz-center .nav li.lastone {margin-right:120px;}
	.main-header .centerlogo.horiz-center .nav li.firstone {margin-left:120px;}
	.main-header .centerlogo.flex-space .span{flex-grow:1;}
	.main-header > ul {height:100%;}
	.main-header .nav > ul > li, .main-header .nav > ul > li a {display: inline-block; line-height: 1; position: relative;}
	.main-header .nav > ul > li a {padding:40px 15px; letter-spacing: 0.1rem; color: #000;}

	.main-header .nav>ul>li>a::before, .main-header .nav>ul>li.current-menu-item>a:before, .main-header .nav ul li.current-menu-ancestor>a:before{
		content: "";
		position: absolute;
		left: 10%;
		bottom: 30px;
		width: 0;
		height: 2px;
		background-color: #fedd02;
		transition: width 0.3s ease; /* Adjust the duration and easing as needed */
	}
	.main-header .nav>ul>li>a:hover:before, .main-header .nav>ul>li.current-menu-item>a:before, .main-header .nav ul li.current-menu-ancestor>a:before{width: 80%;}
	.main-header .nav>ul>li .sub-menu li a:hover, .main-header .nav>ul>li .sub-menu .current-menu-item a{
		color: #fedd02;
	}
	.main-header .meny-kontakt a:hover::before, .main-header .nav>ul>li.meny-kontakt.current-menu-item>a:before{
		content: none !important;
	}
	.main-header .meny-kontakt a{
		border: 1px solid #ccc;
		padding: 15px 30px !important;
		border-radius: 10px;
		text-transform: uppercase;
		font-weight: 600;
	}
	.main-header .meny-kontakt a:hover{
		background-color: #fedd02;
		border: 1px solid #fedd02;
		color: #132517;
	}
	.main-header .meny-kontakt{
		margin-left: 15px;
	}
	.logo {position:relative;left:5%;}
	.centerlogo .logo {position:absolute;left:50%;margin-left:-56px;height:100%; padding: 10px 0px; z-index: 20;}
	.hamburger-outer {display: none;}
	.main-header ul li.menu-item-has-children:hover .sub-menu {
		-webkit-box-shadow: 0 5px 5px rgba(0,0,0,.2);
		-moz-box-shadow: 0 5px 5px rgba(0,0,0,.2);
		box-shadow: 0 5px 5px rgba(0,0,0,.2);
		position: absolute; 
		display: block; 
		background:#fff; 
		left:0;
	}
	.main-header .nav > ul > li .sub-menu li a {padding:15px;}
	.expand-ul {margin-left:10px; display: none;}
	.main-header .nav>ul>li.mega-menu.menu-item-has-children:hover>.sub-menu {
		left: 5%;
		right: 5%;
		max-width: 100%;
		position: fixed;
		align-items: flex-start;
		background-color: #f6f6f6;
		overflow-y: scroll;
		display: -webkit-flex;
		display: -ms-flexbox;
		display: flex;
		align-items: flex-start;
		-ms-align-items: flex-start;
	}
	.main-header .nav>ul>li.mega-menu.menu-item-has-children>.sub-menu>li a{
		padding: 30px;
	}

	.main-header .nav>ul>li.mega-menu.menu-item-has-children>.sub-menu>li a:hover{
		background-color: #fff7c0;
		color: #000;
	}

	.main-header .nav>ul>li.mega-menu.menu-item-has-children:hover>.sub-menu>li {
		width: 33.33%;
		border-bottom: 1px solid #ccc;
		border-right: 1px solid #ccc;
	}
	.mega-inner-title .hyph{
		font-weight: 800;
		margin-bottom: 10px;
		display: block;
	}
	.mega-inner{
		width: 25%;
	}
	.mega-inner-title{
		width: 75%;
		padding-left: 20px;
	}
}

/* Mobile / iPad */

@media only screen and (max-width: 1434px) {
	.sub-header > div {
		-webkit-justify-content: center;
		-ms-justify-content: center;
		justify-content: center;
	}
	.logo {position:relative;left:5%;}
	.centerlogo .logo {left:0;}
	.main-header .centerlogo.flex-space {
		-webkit-justify-content: center;
		-ms-justify-content: center;
    	justify-content: center;
	}
	.main-header .menu li {position: relative; display:block; width:100%; }
	.main-header .menu li a {position:relative; display:block; padding:10px 20px; border-top: 1px solid #eee;}
	.sub-menu {background:#eee;}
	.sub-menu .expand-ul {background: transparent;}
	.expand-ul {
		cursor: pointer;
		position: absolute;
		right: 0;
		top: 0;
		width:50px;
		padding: 16px;
		font-size: 1rem;
		color: #333;
		background: #eee;
		z-index: 999;
	}
	.hamburger-outer {
		position: absolute;
		height: 100%;
		top: 0;
		right: 0;
		z-index: 100;
		border-radius: 0;
		padding: 10px;
	}
	.c-hamburger {
		position: relative;
		overflow: hidden;
		margin: 0;
		float: right;
		top: 0;
		z-index: 99;
		padding: 0;
		width: 40px;
		height: 30px;
		font-size: 0;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		box-shadow: none;
		border-radius: none;
		border: none;
		background: transparent;
		outline: none;
		cursor: pointer;
	}
	.c-hamburger span {
		display: block;
		position: absolute;
		top: 14px;
		left: 0;
		width: 30px;
		height: 2px;
		border-radius: 2px;
		background: #000;
	}
	.c-hamburger--htx span:before, .c-hamburger--htx span:after {transition-duration: 0.3s, 0.3s; transition-delay: 0.3s, 0s;}
	.c-hamburger--htx span:before {transition-property: top, transform;}
	.c-hamburger--htx span:after {transition-property: bottom, transform;}
	.c-hamburger span:before {top: -10px;}
	.c-hamburger span:after {bottom: -10px;}
	.c-hamburger span:before, .c-hamburger span:after {
		position: absolute;
		display: block;
		left: 0;
		width: 40px;
		height: 2px;
		background: #000;
		content: "";
		border-radius: 2px;
	}
	.c-hamburger--htx.is-active span {background: none;}
	.c-hamburger--htx.is-active span:before, .c-hamburger--htx.is-active span:after {transition-delay: 0s, 0.3s;}
	.c-hamburger--htx.is-active span:before {top: 0; transform: rotate(45deg);}
	.c-hamburger--htx.is-active span:after {bottom: 0; transform: rotate(-45deg);}
	.main-header .menu li:first-of-type{border-top: none;}
	.nav {
		position: fixed;
		width: 100%;
		height: 445px;
		top: 81px;
		left: 105%;
		z-index: 99;
		background: #fff;
		border-top: 1px solid #eaeaea;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		-webkit-box-shadow: 0 10px 10px rgba(0,0,0,.2);
		-moz-box-shadow: 0 10px 10px rgba(0,0,0,.2);
		box-shadow: 0 10px 10px rgba(0,0,0,.2);
		-webkit-transition: all 0.25s ease;
		-moz-transition: all 0.25s ease;
		-ms-transition: all 0.25s ease;
		-o-transition: all 0.25s ease;
		transition: all 0.25s ease;
	}
	.nav.active {left: 0;}
	.nav ul {height: 100%;}
	.logo a img{
		width: 80px;
		padding: 15px 0px;
	}
	.mega-inner{display: none;}
	.mega-inner-title{width: 100%;}
	.mega-inner-title .desc{display: none;}
	.mega-inner-title .hyph{padding: 0px 40px;}

}