.site-branding h1,
.site-branding h2{
	margin: 0;
}

.site-header {
	z-index: 9999;
	position: relative;
	width: 100%;
	clear: both;
	display: flex;

	&:not( .header--s4 ) > .penci-container-1080,
	&:not( .header--s4 ) > .penci-container-1170,
	&:not( .header--s4 ) > .penci-container-fluid {
		display: flex;
	}
	&.header--s6,
	&.header--s13{
		&> .penci-container-1080,
		& > .penci-container-1170,
		& > .penci-container-fluid {
			display: block;
		}
	}
}

#undefined-sticky-wrapper,
#masthead-sticky-wrapper {
	width: 100%;
	clear: both;
}

@media only screen and ( min-width: 1025px) {
	.penci-header-transparent {
		.site-header-wrapper {
			position: absolute;
			z-index: 10000;
			left: 0;
			right: 0;
		}

		.site-header-wrapper.penci-trans-nav .site-header {
			background-color: transparent !important;
			box-shadow: none;
		}

		.header__top {
			background-color: transparent;
		}
	}
}

.site-header {
	min-height: 60px;
	background: $color__white;
	position: relative;
	width: 100%;
	clear: both;
	-webkit-backface-visibility: hidden;
	transition: box-shadow 0.3s, border-color 0.3s;
	-webkit-transition: box-shadow 0.3s, border-color 0.3s;
	-moz-transition: box-shadow 0.3s, border-color 0.3s;
	box-shadow:inset 0 -1px 0 $color__border;
	-webkit-box-shadow:inset 0 -1px 0 $color__border;
	-moz-box-shadow:inset 0 -1px 0 $color__border;

	.penci-container-full {
		width: 100%;
	}

	.header-content__container {
		display: -ms-flexbox;
		display: flex;

		.main-navigation {
			z-index: 2;
			-ms-flex: 1;
			flex: 1;
		}
	}

	.site-branding a {
		position: relative;
	}

	.main-navigation {
		float: left;
	}

	.search-click {
		z-index: 100;
		top: 0;
		border: 0;
	}

	&.header--s2,
	&.header--s3:not( .header--s4 ),
	&.header--s6 {
		&:before {
			content: '';
			background: $color__border;
			height: 1px;
			position: absolute;
			width: 100%;
			top: 0;
			z-index: -1;

			.is-sticky & {
				background: transparent;
			}
		}
	}
	&.header--s1 {
		justify-content: space-between;

		.penci-header_s1-fullwidth {
			width: 100%;

			.header__search {
				margin-right: 10px;
			}
		}

		&:before {
			content: none;
		}

		.site-branding {
			order: 1;
			flex: 1 auto;
		}

		.main-navigation {
			flex: 2 auto;
			order: 2;
			text-align: center;

			ul.menu {
				display: inline-block;
				vertical-align: top;
			}

			& > ul:not(.children) > li {
				float: left;
				margin-right: 0;
				vertical-align: top;
			}
		}

		.site-description {
			display: none;
		}

		.header__social-search {
			order: 3;
			flex: 1 auto;
		}

		.show-search .search-field {
			padding-left: 20px;
		}
	}

	&.header--s5 {
		.site-description {
			display: none;
		}

		.site-branding {
			float: left;
			padding-left: 0;
			padding-right: 0;
			margin-right: 40px;
		}

		.main-navigation {
			display: inline-block;
		}
	}

	&.header--s10,
	&.header--s1,
	&.header--s5 {
		.custom-logo {
			max-height: 56px;
			padding-top: 2px;
			width: auto;
		}
	}

	&.header--s6 {
		.header-content__container {
			text-align: center;
		}

		.main-navigation > ul:not(.children) {
			display: inline-block;
			vertical-align: top;
		}

		.main-navigation,
		.header__social-search {
			float: none;
			vertical-align: top;
			display: inline-block;
		}

		.header__social-search {
			position: relative;
		}


		.search-click {
			background: transparent !important;
			width: auto;
		}

		.penci_disable_padding_menu + .header__social-search{
			margin-left: 15px;
		}
	}

	&.header--s7 {
		z-index: 10001;
		border-bottom: 0;
		min-height: 80px;

		.site-description {
			display: none;
		}

		.site-branding {
			display: flex;
			align-items: center;
			justify-content: center;
			padding-left: 0;

			.site-title {
				height: auto;
			}
		}

		.main-navigation {
			padding-left: 40px;
		}

		.custom-logo {
			max-height: 60px;
			width: auto;
		}

		.main-navigation > ul:not(.children) > li > a {
			line-height: 80px;
		}
	}

	&.header--s10,
	&.header--s11 {
		.penci-container-fluid {
			justify-content: flex-end;
		}

		.site-branding {
			float: left;
			margin-right: auto;
		}

		.header__social-search,
		.main-navigation {
			float: right;
		}

		.header__social-search {
			order: 3;
			padding-left: 30px;

		}

		.site-description {
			display: none;
		}
	}

	&.header--s11 {
		.site-branding {
			display: flex;
			align-items: center;
			justify-content: center;

			.site-title {
				height: auto;
			}
		}

		.penci-container-full {
			display: flex;
		}

		.custom-logo {
			max-height: 70px;
			width: auto;
		}

		.main-navigation .menu {
			& > li > a {
				padding-top: 24px;
				padding-bottom: 0;
				line-height: 66px;
				position: relative;

				& > .fa {
					position: absolute;
					width: 100%;
					top: 24px;
					left: 0;
					text-align: center;
					margin-right: 0;
					font-size: 16px;
				}
			}

			& > li.penci-mega-menu > a:after,
			& > li.menu-item-has-children > a:after {
				position: absolute;
				width: 100%;
				left: 0;
				margin: 0;
				text-align: center;
				bottom: 0;
				display: inline-block;
				line-height: 26px;
				font-size: 13px;
				padding-left: 0;
			}
		}

		.main-navigation.penci_enable_line_menu .menu {
			&> li:hover > a,
			&> li:active > a,
			&> li.current-menu-item > a {
				background-color: #ececec;
				color: $color__blue;
			}
		}

		.main-navigation.penci_disable_padding_menu .menu {
			&> li:hover > a,
			&> li:active > a,
			&> li.current-menu-item > a {
				background: transparent;
			}
		}

	}

	&.header--s12{
		.penci-menu-toggle-wapper {
			position: relative;
			order: 1;
			flex: 1;
		}
		.menu-toggle {

		}

		.site-branding {
			flex: 2 auto;
			order: 2;
			text-align: center;
		}

		.header__social-search {
			order: 3;
			flex: 1;
		}
	}

	&.header--s13{
		.penci-menu-toggle-wapper {
			float: right;
			position: relative;
		}

		.site-branding {
			float: left;
		}

	}
}

.header__top {
	background: $color__white;

	&.header--s2 {
		width: 100%;
		clear: both;
		padding-top: 20px;
		padding-bottom: 20px;
		overflow: hidden;

		.header__banner {
			float: right;
			margin-left: auto;
			max-width: 728px;
			width: 100%;

			a, img {
				padding: 0;
				margin-bottom: 0;
				display: block;
			}
		}

		.header-top__container {
			box-sizing: border-box;
			display: flex;
			-webkit-flex-wrap: wrap;
			-ms-flex-wrap: wrap;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;
		}
	}

	&.header--s3,
	&.header--s4,
	&.header--s6  {
		width: 100%;
		clear: both;
		overflow: hidden;

		.site-branding {
			padding-top: 30px;
			padding-bottom: 30px;
			padding-left: 0;
			width: 100%;
			text-align: center;
			margin-right: auto;
			margin-left: auto;

			.site-title {
				@include font-size(7.2);
				line-height: 1;
			}
		}
	}

	&.header--s8,
	&.header--s9  {
		width: 100%;
		clear: both;
		overflow: hidden;

		.site-branding {
			padding-left: 0;
			width: 100%;
			text-align: center;
			margin-right: auto;
			margin-left: auto;

			.site-title {
				@include font-size(7.2);
				line-height: 1;
			}
		}
	}

	&.header--s2.header--s8 {
		.site-branding {
			order: 2;
			text-align: right;
			margin-right: 0;
			margin-left: 20px;
		}

		.header__banner {
			order: 1;
			flex: 1;
			margin-left: 0;
			margin-right: auto;
		}
	}

	&.header--s2.header--s9 {
		.site-branding {
			text-align: left;
			margin-left: 0;
			margin-right: 20px;
		}

		.header__banner {
			flex: 1;

		}
	}
}

.header__top,
.header__bottom {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.penci-topbar.header--s7 {
	&, h3, ul li {
		line-height: 54px;
		text-transform: uppercase;
	}

	.topbar_weather .penci-weather-unit {
		top: 16px;
	}

	.topbar__trending .headline-title {
		height: 54px;
		line-height: 54px;
	}
}

.header__bottom.header--s7 {
	overflow: hidden;

	.header__banner {
		margin: 20px auto;
		text-align: center;
		vertical-align: top;

		img {
			display: inline-block;
			vertical-align: top;
		}
	}
}

.penci-header-mobile .penci-header-mobile_container,
.is-sticky .site-header {
	box-shadow: 0px 1px 5px rgba(190, 190, 190, 0.46);
	-webkit-box-shadow: 0px 1px 5px rgba(190, 190, 190, 0.46);
	-moz-box-shadow: 0px 1px 5px rgba(190, 190, 190, 0.46);
	border-color: transparent !important;
}

.penci_dark_layout {
	.penci-header-mobile .penci-header-mobile_container,
	.is-sticky .site-header {
		box-shadow: 0px 1px 5px rgba(255, 255, 255, 0.08);
		-webkit-box-shadow: 0px 1px 5px rgba(255, 255, 255, 0.08);
		-moz-box-shadow: 0px 1px 5px rgba(255, 255, 255, 0.08);
	}
}

@import "topbar";
@import "logo";
@import "socail-search";
@import "login-popup";
@import "header-mobile";
@import "menu_humburger";
@import "page-header";


.penci-header-transparent .header__search .search-click {
	width: 26px;
	background-color: transparent !important;
}
.penci-header-transparent .penci-trans-nav .main-navigation > ul:not(.children) > li > a {
	background: none !important;
}

.penci-header-transparent .penci-logo-tenable {
	.custom-logo-link,
	.penci-trans-logo {
		position: absolute;
		visibility: hidden;
		opacity: 0;
		left: -9999px;
		transition: opacity 0.4s;
	}
}
.penci-header-transparent .site-header-wrapper:not(.penci-trans-nav) .custom-logo-link {
	display: block;
	position: static;
	visibility: visible;
	opacity: 1;
}
.penci-header-transparent .site-header-wrapper.penci-trans-nav .penci-trans-logo {
	display: block;
	position: static;
	visibility: visible;
	opacity: 1;
}


@media screen and (max-width: 1200px) {
	.header--s2 .site-branding {
		max-width: 300px;
	}
}


@media screen and (max-width: 1024px) {
	.site-header {
		display: none;
	}

	.penci-header-mobile {
		display: block;
	}

	.header__top,
	.header_bottom,
	.sticky-wrapper {
		display: none !important;
	}

	.mobile-sticky-wrapper {
		display: block !important;
	}
}
