// Header Logo
.logo-header {
    display: table;
    float: left;
    vertical-align: middle;
    padding: 0;
    color: #EFBB20;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 180px;
    height: 100px;
    position: relative;
    z-index: 9;
	
	@include respond('tab-port'){
		width: 180px;
		height: 80px;
	}
	@include respond('phone'){
		width: 180px;
		height:70px;
	}
	a{
		display: table-cell;
		vertical-align: middle;
	}
	img {
		max-width: 180px;
		object-fit: contain;
		@include transitionMedium;
		@include respond('tab-port'){
			width: 165px;
		}
		@include respond('phone'){
			max-width: 150px;
		}
	}
	
	// Text Logo
	span{
		font-size: 20px;
		letter-spacing: 20px;
	}
}

// Top Bar
.top-bar {
	background-color: #fff;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #d7d7d7;
	
	.dz-topbar-left {
		float: left;
		li{
			padding-right: 20px;
		}
	}
	.dz-topbar-right {
		float: right;
		li{
			padding-left: 15px;
		}
	}
	.dz-social{
		li{
			a{
				color:inherit;	
			}
		}
	}
	.dz-topbar-inner{
		margin-left:-15px;
		margin-right:-15px;
	}
	.dz-topbar-center,
	.dz-topbar-left,
	.dz-topbar-right {
		padding-left: 15px;
		padding-right: 15px;
		font-weight: 600;
		ul{
			list-style:none;
			margin:0;
			padding:0;
			li{
				display:inline-block;
				color: var(--title);
				font-weight: 400;
				font-size: 15px;
			}
			i{
				margin-right: 5px;
				color:var(--primary);
			}
		}
		.dz-social-icon{
			li{
				padding-left: 0;
			}
		}
	}
	@include respond('tab-port'){
		display:none;
	}	
}

// Quik Search
.dz-quik-search{
	background:rgba(33,37,41,0.95);
    position: fixed;
    height: 100%;
    width: 100%;
    top: -100%;
    left: 0;
    padding: 0px 30px;
    z-index: 999;
    overflow: hidden;
	display: none;
	@include transitionMedium;
	
	form{
		width:100%;
		max-width:1200px;
		margin:auto;
		position:relative;
		top:50%;
		@include transitionMedium;
		opacity:1;
		transform: translateY(-50%);
	}
	.form-control {
		padding: 15px 60px 15px 15px;
		width: 100%;
		height: 90px;
		border: none;
		background: 0 0;
		color: #fff;
		font-size: 20px;
		border-bottom: 2px solid #fff;
		border-radius: 0;
		
		 &::-webkit-input-placeholder {
			color: rgba(255,255,255,0.8);
		}

		&:-ms-input-placeholder {
			color: rgba(255,255,255,0.8);
		}

		&::placeholder {
			color: rgba(255,255,255,0.8);
		}
	}
	span{
		position:absolute;
		right:15px;
		top:50%;
		margin:-15px 0;
		height:25px;
		font-size:20px;
		cursor:pointer;
	}
	&.On{
		top: 0;
	}
}

// Site Header
.site-header {
	position:relative;
	z-index:9999;
	.main-bar {
		background: $white;
		width: 100%;
		position: relative;
		// box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.05);
	}
	.container{
		position: relative;
	}
	.extra-nav {
		float: right;
		display: flex;
		align-items: center;
		position: relative;
		z-index: 9;
		height: 100px;
		
		#quik-search-btn{
			color: #212529;
			cursor: pointer;
			margin-right: 0px;
			border: 0;
			width: 45px;
			height: 45px;
			background: #ebebeb;
			line-height: 45px;
			text-align: center;
			font-size: 18px;
			border-radius: 45px;
		}
		.btn{
			@include respond('phone'){
				padding-left:15px;
				padding-right:15px;
			}
		}
		
		ul{
			li{
				display:inline-block;
				.icon{
					padding: 0;
					background: transparent;
					min-width: 40px;
					text-align: center;
					height: 40px;
					line-height: 40px;
					border-radius: 4px;
				}
			}
		}
		.extra-cell{
			& > *{
				margin-left: 30px;
			}
			.nav-link-list{
				@include respond('tab-port'){
					display:none;
				}
			}
		}
		@include custommq($max: 1199px) {
			height:100px;
			.extra-cell{
				a{
					&.btn{
						width: 50px;
						height: 50px;
						padding: 0;
						align-items: center;
						justify-content: center;
					}
					span{
						display: none;
					}
					i{
						margin-right: 0 !important;
					}
				}
			}
		}
		@include respond('tab-port'){
			height:80px;
		}
		@include respond('phone'){
			display:none;
		}
	}
	
	.nav-link-list{
		li{
			padding-right: 5px;
			a{
				font-size: 16px;
				color: var(--title);
				font-weight: 400;
			}
			&:after{
				content: '/';
				margin-left: 5px;
				font-size: 12px;
				font-weight: 700;
				opacity: 0.5;
			}
			&:last-child{
				&:after{
					content: none;
				}
			}
			&:last-child{
				padding-right: 0;
			}
		}
	}
}

// Navbar Toggler
.navbar-toggler {
    border: 0 solid #efbb20;
    font-size: 16px;
    line-height: 24px;
    margin: 40px 0 39px 15px;
    padding: 0;
	float: right;
	outline: none !important;
	@include respond('tab-port'){
		margin: 15px 0 15px 15px;
	}
	@include respond('phone'){
		margin: 15px ​0 15px 15p;
	}
}

// Navicon
.navicon{
	width: 50px;
    height: 50px;
	background: var(--primary);
    box-shadow: 0 5px 15px -10px var(--primary);
	position: relative;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
	cursor: pointer;
	border-radius:var(--border-radius-base);
	@include respond('phone'){
		width: 40px;
		height: 40px;
	}
	span{
		display: block;
		position: absolute;
		height: 2px;
		width: 100%;
		border-radius: 1px;
		opacity: 1;
		background: #fff;
		left:10px;
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		-webkit-transition: .25s ease-in-out;
		-moz-transition: .25s ease-in-out;
		-o-transition: .25s ease-in-out;
		transition: .25s ease-in-out;
		
		&:nth-child(1) {
			top: 15px;
			width: 30px;
			@include respond('phone'){
				top: 11px;
				width: 20px;
			}
		}

		&:nth-child(2) {
			top: 23.5px;
			width: 25px;
			@include respond('phone'){
				top: 18.5px;
				width: 16px;
			}
		}
		&:nth-child(3) {
			top: 33px;
			width: 20px;
			@include respond('phone'){
				top: 27px;
				width: 13px;
			}
		}
		
	}
	
	&.open span:nth-child(1) {
	  top: 25px;
	  -webkit-transform: rotate(135deg);
	  -moz-transform: rotate(135deg);
	  -o-transform: rotate(135deg);
	  transform: rotate(135deg);
	  @include respond('phone'){
			top: 20px;
		}
	}
	&.open span:nth-child(2) {
		opacity: 0;
		left: -60px;
		
	}
	&.open span:nth-child(3) {
		top: 25px;
		width: 30px;
		-webkit-transform: rotate(-135deg);
		-moz-transform: rotate(-135deg);
		-o-transform: rotate(-135deg);
		transform: rotate(-135deg);
		@include respond('phone'){
			top: 20px;
			width: 20px;
		}
	}
}
// Header-tb
.header-tb .navicon span{
	background:#fff;
}

// Header Nav
.header-nav {
    padding: 0;
	
	@include respond('tab-port'){
		overflow-y: scroll;
		position: fixed;
		width: 60px;
		left:-280px;
		height:100vh !important;
		@include transitionMedium;
		top:0;
		background-color: $white;
		margin:0;
		z-index:99;
	}
	&.show {
		@include respond('tab-port'){
			left: -1px;
			@include transitionSlow;
			margin:0;
			width: 280px;
		}
	}
	.logo-header{
		@include respond('tab-port'){
			padding: 30px 20px;
			float: none;
			height: auto;
			width: 240px;
		}
	}
	.nav{
		float: right;
		padding: 10px 0;
		font-size: 0;
			
		&>li {
			margin: 0px;
			font-weight: 400;
			position: relative;
			&.has-mega-menu {
				position: inherit;
			}
			@include respond('tab-port'){	
				border-bottom: 1px solid #eee;	
				width: 100%;	
			}
			&.sub-menu-down{
				&>a {
					&:after{
						content:"\f078";
						font-size: 9px;
						margin-left: 5px;
						margin-top: 0;
						vertical-align: middle;
						font-weight: 900;
						font-family: "Font Awesome 5 Free";
							
						@include respond('tab-port'){
							content: "\f054";
							background-color: var(--primary);
							color: #fff;
							height: 30px;
							line-height: 30px;
							right: 0;
							text-align: center;
							width: 30px;
							z-index: 3;
							float: right;
							font-size: 12px;
							margin: 0;
							border-radius: 4px;
						}
						&:before {
							@include respond('tab-port'){
								content: "\f054";
							}
						}
					}
				}
				@include respond('tab-port'){
					&.open{
						&>a {
							&:after{
								content:"\f078";
								background: #333;
							}
						}
					}
				}
			}
			&>a {
				color: #777;
				font-size: 18px;
				padding: 30px 15px;
				cursor: pointer;
				font-weight: 400;
				display: inline-block;
				position: relative;
				border-width: 0 0 0 1px;
				line-height: 1.1;
				text-transform: uppercase;
				font-family:var(--font-family-base);
					@include respond('tab-land'){
						font-size: 16px;
					}
				
				@include custommq($max: 1199px){
					padding: 40px 15px;
				}
				@include respond('tab-port'){	
					padding: 8px 0;
					display: block;	
					line-height: 30px;
					font-size: 16px;
				}
				
				span{
					display:inline-block;
				}
			}
			.mega-menu,
			.sub-menu {
				background-color: $white;
				display: block;
				left: 0;
				list-style: none;
				opacity: 0;
				padding: 10px 0;
				position: absolute;
				visibility: hidden;
				width: 220px;
				z-index: 10;
				border-radius:var(--border-radius-base);
				margin-top: 20px;
				box-shadow:0px 1px 40px 0px rgba(0, 0, 0, 0.1);
				text-align: left;
				@include transitionSlow;
				@include respond('tab-port'){	
					display: none;
					position: static;
					visibility: visible;
					width: auto;
					background: transparent;
					box-shadow: none;
					margin: 0;
					border-top:1px solid #eee;
					padding:10px 0;
					@include transitionNone;
					& > li > a i{
						color: var(--primary)!important;
						height: 30px;
						line-height: 30px;
						right: 0;
						text-align: center;
						width: 30px;
						z-index: 3;
						font-size: 14px!important;
						margin: 0!important;	
						background: var(--rgba-primary-2);
						border-radius: 4px;
					}
				}
				li {
					position: relative;
					a {
						color: #777;
						display: block;
						font-size: 15px;
						padding:8px 25px;
						line-height: 1.3;
						text-transform: capitalize;
						position:relative;
						transition: all 0.15s linear;
						-webkit-transition: all 0.15s linear;
						-moz-transition: all 0.15s linear;
						-o-transition: all 0.15s linear;
						font-weight: 500;
						
						&:after {
							content: "";
							position: absolute;
							width: 0;
							height: 2px;
							background: var(--primary);
							left: 20px;
							top: 16px;
							transition: all .5s;
							-moz-transition: all .5s;
							-webkit-transition: all .5s;
							-ms-transition: all .5s;
							-o-transition: all .5s;
						}
						
						@include respond('tab-port'){
							padding: 2px 0 1px 16px;
							display: block;
							line-height: 30px;
							position: relative;
							
							&:after{
								content: "\f054";
								font-family: "Font Awesome 5 Free";
								width: auto;
								height: auto;
								background: 0 0!important;
								top: 3px;
								color: #262F5A;
								font-size: 12px;
								position: absolute;
								left: 0;
								font-weight: 700;
							}
						}
					}
					&:hover > a{
						color:var(--primary);
						padding: 8px 20px 8px 37px;
						@include respond('tab-port'){
							padding: 2px 0 1px 16px;
							background:transparent;
						}
						&:after {
							width: 10px;
						}
					}
				}
				li>.sub-menu {
					left: 220px;
					@include transitionMedium;
					
					@include respond('tab-port'){
						display:none;
					}
				}
				@include respond('tab-port'){
					.mega-menu,
					.sub-menu{
						border-top:0;
						padding-left: 20px;
						li  a:after{
							width: 5px;
							content: "";
							height: 5px;
							background: #262F5A !important;
							border-radius: 4px;
							top: 13px;
						}
					}
				}
			}
			.sub-menu{
				li > a > i {
					color: inherit;
					display: block;
					float: right;
					font-size: 14px;
					opacity: 1;
					margin-top: 4px;
				}				
				&.open{
					& > a > i:before{
						content:"\f078";
					}
				}
				& > li.open > a i:before{
					content: "\f107";
				}
			}
			.mega-menu {
				display: flex;
				right: 0px;
				width: 100%;
				z-index: 9;
				padding: 0;
				&>li {
					display: block;
					padding: 30px 0 25px;
					position: relative;
					vertical-align: top;
					width: 25%;
					@include respond('tab-port'){
						width: 100%;
						padding:0;
					}
					&>a {
						color: $dark;
						display: block;
						padding: 0 20px;
						font-size: 16px;
						font-weight: 600;
						border-bottom: 1px solid rgba(0,0,0,0.1);
						padding-bottom: 15px;
						&>i{
							font-size: 14px;
							margin-right: 5px;
							text-align: center;
							width: 15px;
						}
						@include respond('tab-port'){
							display:none;
						}
					}
					&:after {
						content: "";
						background-color: rgba(0, 0, 0, 0.1);
						position: absolute;
						right: 0px;
						top: 0px;
						display: block;
						width: 1px;
						height: 100%;
						@include respond('tab-port'){
							content:none;
						}
					}
					&:last-child:after {
						display: none;
					}
					&:hover > a{
						background-color: transparent;
					}
					li i{
						font-size: 14px;
						margin-right: 5px;
						text-align: center;
						width: 15px;
					}
					
				}
				@include respond('tab-port'){	
					display: none;
					padding:10px 0;
				}
			}
			&.active{
				&>a{
					color: var(--title);
				}
			}
			&:hover{
				&>a{
					color:var(--primary);
					
				}
				&>.mega-menu,
				&>.sub-menu{
					opacity: 1;
					visibility: visible;
					margin-top: 0;
					@include transitionSlow;
					@include respond('tab-port'){
						@include transitionNone;
					}
					li:hover > .sub-menu{
						opacity: 1;
						visibility: visible;
						margin-top: 0;
						top: -1px;
					}
				}
			}
			&.open{
				.mega-menu,
				.sub-menu{
					display:block;
					opacity:1;
					@include transitionNone;
				}
				.open{
					&.menu-item-has-children > a:before{
						transform: rotate(90deg);
						-moz-transform: rotate(90deg);
						-webkit-transform: rotate(90deg);
						-ms-transform: rotate(90deg);
						-o-transform: rotate(90deg);
					}
					.mega-menu,
					.sub-menu{
						display:block;
						opacity:1;
						@include transitionNone;
					}
				}
			}
		}
		@include respond('laptop'){
			&>li:nth-last-child(3),
			&>li:nth-last-child(2),
			&>li:last-child{
				.sub-menu .sub-menu{
					left:-220px;
				}
			}
		}
		@include custommq($max: 1199px) {
			padding:0;
			&>li:last-child{
				.sub-menu{
					left:auto;
					right:0;
				}
			}
		}
		@include respond('tab-port'){
			float: none;
			padding: 0 20px;	
		}
	}
	.dz-social-icon{
	    display: none;
		text-align:center;
		ul{
			margin: 0 -2px;
		}
		li {
			display:inline-block;
			padding: 0 2px;
		}
		a{
			width: 35px;
			height: 35px;
			padding: 0;
			color: var(--primary);
			border: 1px solid lightgrey;
			line-height: 33px;
			text-align: center;
			border-radius: var(--border-radius-base);
			font-size: 15px;

			&:hover {
				background-color: var(--primary);
				color:white;
				box-shadow: 0px 5px 15px var(--rgba-primary-4);
			}
		}
		@include respond('tab-port'){
			display:block;
			padding:30px 10px 20px;
		}
	}
}

// Header Transparent{
.header-transparent{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	
	.top-bar,
	.main-bar{
		background: transparent;
	}
	.extra-nav #quik-search-btn{
		color:#fff;
	}
	
	.navbar-toggler{
		span{
			background:$white;
		}
	}
	.is-fixed{
		.extra-nav #quik-search-btn{
			color: #777;
		}
	}
	
	.main-bar{
		.container,
		.container-fluid{
			& > .logo-header.logo-dark{
				display: none;
			}
		}
	}
	.is-fixed .main-bar{
		.container,
		.container-fluid{
			& > .logo-header{
				&.logo-dark{
					display: table;
				}
				&.logo-light{
					display: none;
				}
			}
		}
	}
	
	// Top Bar
	.top-bar{
		border-color:$white;
		.dz-topbar-left,
		.dz-topbar-right{
			li,
			i{
				color: $white;
			}
		}
	}
	
	@include respond('tab-port-min'){
		.is-fixed{
			.nav{
				&>li {
					&>a {
						color: $dark;
					}
				}
			}
		}
		.nav{
			&>li {
				&>a {
					color: $dark;
				}
			}
		}
	}
}

// Is Fixed
.is-fixed{
	.main-bar {
		position: fixed;
		top: 0;
		left: 0;
		box-shadow: 0 0 50px 0 rgba(0,0,0,.1);
		background: $white;
		transition: all 0.5s;
	}
}
.header-bottom{
	display: none;
}

// Mobile Nav
@include respond('tab-port'){
	.mo-left{
		.header-nav{
			overflow-y: scroll;
			position: fixed;
			width: 280px;
			left:-280px;
			height:100vh !important;
			transition:all 0.5s;
			-webkit-transition:all 0.5s;
			-moz-transition:all 0.5s;
			-o-transition:all 0.5s;
			top:0;
			background-color:#fff;
			margin:0;
			z-index:99;
			&.nav-dark{
				background-color:#202020;
			}
			&.show {
				left: -1px;
				transition:all 0.8s;
				-webkit-transition:all 0.8s;
				-moz-transition:all 0.8s;
				-o-transition:all 0.8s;
				margin:0;
			}
			.logo-header {
				display: block !important;
				float: none;
				height: auto!important;
				max-width: 100%;
				padding: 25px 20px;
				width: 100%!important;
				img{
					max-width: unset;
					width: 180px;
					vertical-align: middle;
				}
			}
			li{
				&.open{
					a{
						position:relative;
					}
				}
			}
			.header-bottom{
				margin: 30px 20px 0;
				display: block;
				.btn-login{
					justify-content: center;
					display: block;
					
					i{
						transform: scale(1.2);
					}
				}
			}
		}	
		.navbar-toggler{
			&.open{
				z-index: 99;
				&:after {
					background-color: rgba(0, 0, 0, 0.6);
					content: "";
					left: 0;
					position: fixed;
					right: -20px;
					top: -63px;
					transform: scale(100);
					-o-transform: scale(100);
					-moz-transform: scale(100);
					-webkit-transform: scale(100);
					width: 100%;
					z-index: -1;
					transition: all 0.5s;
					transform-origin: top right;
					margin: 0 0px 0px 20px;
					-webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6);
					box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6);
				}
				span{
					background:#fff;
				}
			}
		}
	}
}
.text-black{
	.nav{
		&>li {
			&>a {
				color: $dark;
			}
		}
	}
	.navbar-toggler{
		span{
			background:$dark;
		}
	}
}

/* Start Header is-fixed Animation */
.main-bar{
	-webkit-transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
    -khtml-transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
    -moz-transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
    -ms-transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
    -o-transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;
    transition: all 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) 0s;	
}
.is-fixed .main-bar{
	-webkit-animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
	-khtml-animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
	-moz-animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
	-ms-animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
	-o-animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
	animation: 0.95s ease 0s normal forwards 1 running headerSlideDown;
}
@-moz-keyframes headerSlideDown {
	0% {
		margin-top: -150px;
	}
	100% {
		margin-top: 0;
	}
}
@-ms-keyframes headerSlideDown {
	0% {
		margin-top: -150px;
	}
	100% {
		margin-top: 0;
	}
}
@-webkit-keyframes headerSlideDown {
	0% {
		margin-top: -150px;
	}
	100% {
		margin-top: 0;
	}
}
@keyframes headerSlideDown {
	0% {
		margin-top: -150px;
	}
	100% {
		margin-top: 0;
	}
}
/* Header is-fixed Animation End */
