// Header
.site-header {
	position: relative;
	z-index: 999;
	--header-height: 90px;
	&::after{
		display: block;
		clear: both;
		content: "";
	}
	@include respond('phone'){
		--header-height: 65px;
	}
	.top-bar{
		position: relative;
		z-index: 1;
		--min-height: 40px;
		z-index: 1;
		.social-link{
			min-height: var(--min-height);
			font-size: 16px;
			*{
				color: $white;
			}
		}
		.shape-left{
			position: relative;
			z-index: 1;
			width: fit-content;
			padding-right: 100px;
			&::after{
				content: "";
				position: absolute;
				top: 0;
				height: 100%;
				background-color: var(--bs-primary);
				z-index: -1;
				transform: skewX(30deg);
				right: 0px;
				width: 80%;
			}
			&::after{
				content: "";
				position: absolute;
				height: 100%;
				background-color: var(--bs-primary);
				z-index: -1;
				right: 10%;
				width: 2000px;
			}
		}
		.contact-info{
			display: flex;
			align-items: center;
			justify-content: flex-end;
			flex-wrap: wrap;
			gap: 15px;
			font-size: 16px;
			li {
				display: inline-block;
				a {
					display: inline-flex;
					align-items: center;
					gap: 5px;
					i{
						color: var(--bs-warning);
						font-size: 14px;	
					}
				}
			}
		}
		@include respond ('phone'){
			.social-link{
				justify-content: center;
			}
			.contact-info{
				justify-content: center;
				gap: 5px;
			}
		}
	}
	.site-logo {
		display: table;
		position: relative;
		vertical-align: middle;
		float: left;
		padding: 0;
		height: var(--header-height);
		width: 150px;
		z-index: 2;
		padding: 0px 0 15px;
		
		a{
			display: table-cell;
			vertical-align: middle;
		}
		img {
			height: auto;
			width: 100%;
		}
		@include respond('phone'){
			width: 115px;
		}
	}
	.container{
		position: relative;
		
		&::after{
			display: block;
			clear: both;
			content: "";
		}
	}
	.extra-cell{
		display: flex;
		align-items: center;
		justify-content: center;
		ul{
			display: inline-flex;
			align-items: center;
			gap: 10px;
			.icon-bx{
				font-size: 16px;
				&:hover{
					background-color: $primary;
					border-color: $primary;
					color: $white;
				}
			}
		}
		@include custommq ($min: 1200x){
			display: flex;
			height: var(--header-height);
		}
		@include custommq ($max: 1200px){
			position: fixed;
			bottom: 0;
			left: 0;
			background: $white;
			width: 100%;
			padding: 10px 15px;
			text-align: center;
			box-shadow: 0 -5px 15px 0 rgba(0, 0, 0, 0.20);
			z-index: 9;
		}
	}
	.support-menu {
		display: flex;
		align-items: center;
		position: relative;
		float: right;
		z-index: 9;
		
		ul li{
			margin-left: 20px;
			display: inline-block;
		}
	}
	.main-header{
		width: 100%;
		left: 0;
		top: 0;
	}	
	&.style-2{
		padding: 0;
		.header-content{
			padding: 0 25px;
			border-radius: 0;
			box-shadow: unset;
		}
		.top-bar{
			display: none!important;
		}
	}
}


// Navbar Toggler
.navbar-toggler{
    margin: 37px 0px 37px 20px;
    padding: 0;
	float: right;
	outline: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
	align-items: center;
	
	.toggle-bar {
		height: 2px;
		width: 18px;
		display: block;
		-webkit-transition: .25s;
		transition: .25s;
		background-color: var(--bs-secondary);
		border-radius: 15px;
	}	
	@include respond('phone'){
		margin: 26px 0px 26px 20px;
	}
}

// Nav Menu List
.navbar{
    padding: 0;
	
	.site-logo{
		@include respond('tab-port-min'){
			display: none;
		}
		@include respond('tab-port'){
			height: auto;
			width: 100%;
			padding: 20px 40px;
			display: flex;
			text-align: center;
			margin-bottom: 20px;
			justify-content: center;
			border-bottom: 1px solid rgba(0, 0, 0, 0.05);
		}
	}
	.nav{
		float: right;
		padding: 0;
		
		&>li {
			margin: 0px;
			font-weight: 400;
			position: relative;
			
			&.menu-down-item{
				& > a{
					&:after{
						content: "\f078";
						font-family: "fontawesome";
						font-weight: 700;
						font-size: 12px;
						margin-left: 5px;
					}
					@include respond('tab-port'){
						&:after{
							float: right;
						}
					}
				}
			}
			@include respond('tab-port'){	
				border-bottom: 1px solid rgba(0, 0, 0, 0.05);
				width: 100%;	
			}
			&>a,.nav-link {
				font-size: 15px;
				color: $secondary;
				text-transform: uppercase;
				padding: 37px 15px;
				cursor: pointer;
				font-weight: 500;
				display: inline-block;
				position: relative;
				line-height: 1;
				font-family: $font-family-title;
				&:hover,
				&.active{
					color: $primary;
				}
				@include respond('tab-port'){
					padding: 8px 20px;
					display: block;	
					line-height: 30px;
				}
			}
			.sub-menu{
				background-color: $white;
				display: block;
				left: 0;
				list-style: none;
				opacity: 0;
				padding: 15px 0;
				position: absolute;
				visibility: hidden;
				min-width: 190px;
				width: fit-content;
				z-index: 10;
				margin-top: 20px;
				box-shadow:0px 1px 40px 0px rgba(0, 0, 0, 0.1);
				@include transSlow;
				
				@include respond('tab-port'){	
					display: none;
					position: static;
					visibility: visible;
					width: auto;
					background-color: rgba(var(--bs-primary-rgb), 0.10);
					box-shadow: none;
					margin: 0;
					border-top:1px solid rgba(255, 255, 255, 0.1);
					padding:0;
					padding: 10px 15px 20px;
				}
				li {
					position: relative;
					a {
						color: var(--title);
						display: block;
						font-size: 15px;
						padding:10px 20px;
						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;
						
						@include respond('tab-port'){
							padding: 8px 15px;
							border-radius: 6px;
							&:after{
								font-family: FontAwesome;
								width: auto;
								height: auto;
								top: 1px;
								color: $dark;
								font-size: 16px;
								position: absolute;
								left: 0;
								font-weight: 700;
							}
						}
						&.active{
							color: $white;
							background-color: var(--bs-primary);
						}
					}
					&:hover > a{
						color: $white;
						background-color: var(--bs-primary);
					}
				}
				li > .sub-menu {
					left: 220px;
					@include transMedium;
				}
			}
			&:hover{
				& > .sub-menu{
					opacity: 1;
					visibility: visible;
					margin-top: 0;
					@include transMedium;
					
					li:hover > .sub-menu{
						opacity: 1;
						visibility: visible;
						margin-top: 0;
						top: -1px;
					}
				}
			}	
			&.show{
				.sub-menu{
					display:block;
					opacity:1;
				}
			}
		}
		@include respond('tab-port'){
			float: none;
			width: 100%;
		}
	}
	@include respond('tab-port'){
		overflow-y: scroll;
		position: fixed;
		width: 250px;
		left:-250px;
		height:100vh !important;
		-webkit-transition: all 0.2s;
		-ms-transition: all 0.2s;
		transition: all 0.2s;
		top:0;
		background-color: $white;
		margin:0;
		z-index: 99999;
		display: block !important;
		
		&.show {
			left: -1px;
		}
	}
}
.header-content{
	@include respond('tab-port-min'){	
		display: flex;
        background: $white;
        padding: 0 25px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 20px -10px rgba(6, 187, 204, 0.50);
	}
	@include respond('tab-port'){	
        background: $white;
        padding: 0 25px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 20px -10px rgba(6, 187, 204, 0.50);
	}
	&::after{
		display: block;
		clear: both;
		content: "";
	}
}
.header-bg-primary{
	.header-content{
		background-color: var(--bs-primary);
		
		@include respond('tab-port-min'){
			.navbar .nav > li > a {
				color: $white;
			}
		}
		.navbar-toggler .toggle-bar {
			background-color: $white;
		}
	}
	&.sticky.main-header{
		background-color: var(--bs-primary);
	}
}


.sticky{
	.site-logo{
		@include transSlow;
	}
	&.main-header{
		position: fixed;
		top: 0;
		left: 0;
		box-shadow:0 0 50px 0 rgba(0, 0, 0, 0.1);
		animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		-ms-animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		-webkit-animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		-moz-animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		-o-animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		-khtml-animation: 0.5s ease 0s normal forwards 1 running headerSticky;
		padding: 0 0;
		background-color: $white;
		border: 0;
	}
	.header-content{
		box-shadow: none;
		padding: 0 0;
	}
}


// Sticky Header
@-moz-keyframes headerSticky {
	0%{
		margin-top: -150px;
	}
	100%{
		margin-top: 0;
	}
}
@-ms-keyframes headerSticky {
	0%{
		margin-top: -150px;
	}
	100%{
		margin-top: 0;
	}
}
@-webkit-keyframes headerSticky{
	0%{
		margin-top: -150px;
	}
	100%{
		margin-top: 0;
	}
}
@keyframes headerSticky{
	0%{
		margin-top: -150px;
	}
	100%{
		margin-top: 0;
	}
}



.header-overlay{
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.dark-overlay.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
}
.dark-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    -webkit-transition: all 0.5s;
    -ms-transition: all 0.5s;
    transition: all 0.5s;
    z-index: 9999;
    visibility: hidden;
}


