// main: ../main.less, out: false, compress: false, sourceMap: false
// main: ../theme.less, out: false, compress: false, sourceMap: false

/*
 * Header
 ********************************/
.main-header {
	background-color: @default;
	color: #fff;
	position: fixed;
	width: 100%;
	z-index: 99999;
	top: 0px;
	
	.theme-logo {
		width: 100px;
		height: 100px;
		align-items: stretch;
		display: flex;

		img {
			width: 100%;
			display: block;
			max-width: 100%;
			opacity: 0;
		}
	}

	.menu-wrp {
		position: relative;

		.search-handle,
		.widget-handle {
			display: none;
		}


	}

	.profile-info-wrp {
		border-right: 1px solid rgba(255, 255, 255, 0.1);
		padding: 0 30px;
		display: flex;
		justify-content: center;
		/* flex-start | flex-end | center | baseline | stretch */
		align-items: center;
	}

	.profile-info {
		list-style-type: none;
		margin: 0px;
		padding: 0px;
		h1, p {
			margin: 0px;
			color: inherit;
		}
		.main-title {
			font-size: 22px;
		}
	}

	.about-info {
		margin-left: 20px;

		p {
			margin: 0px;
		}
	}

	
}

/*
 * Header search
 ********************************/
.header-search-wrp {
	position: relative;

	.header-search {
		position: absolute;
		left: 100px;
		width: ~"calc(100% - 100px)";
	}
}

.header-search.off {
	height: 0;
	opacity: 0;
}

.header-search.on {
	height: 100px;
	opacity: 1;
}

.header-search {
	background-color: @dark;
	overflow: hidden;
	.transition(0.3s);

	.search-frm {
		height: 100%;

		button {
			width: 100px;
			height: 100%;
			position: absolute;
			right: 0px;
			top: 0px;
			font-size: 20px;
			border: none;
			background-color: transparent;
			color: #fff;
			.transition(0.3s);
	
			&:hover {
				background-color: @default;
			}
	
			&:focus {
				outline: none;
			}
		}

		input {
			width: 100%;
			height: 100%;
			border: none;
			background-color: transparent;
			color: #fff;
			padding: 20px 30px;
			font-size: 20px;
			.transition(0.3s);
	
			&:focus {
				outline: none;
			}
		}
	}
}

/* Main menu
/******************************/
.main-menu {
	position: absolute;
	left: 100px;
	right: 100px;
	height: 100%;
	background-color: @dark;
	.transition(0.3s);
	text-align: center;

	&.off {
		opacity: 0;
		top: -100%;
	}

	&.on {
		opacity: 1;
		top: 0px;
	}

	.about-info {
		display: none;
	}
}

.ckav-menu {
	list-style: none;
	display: inline-flex;
	flex-direction: row;
	margin: 0px auto;
	padding: 0;
	text-align: left;
	height: 100%;
	flex-wrap: wrap;
	ul {
		list-style: none;
	}

	li a:hover {
		opacity: 1;
	}

	.menu-item {
		position: relative;
		//.transition(0.3s);
		/* flex-start | flex-end | center | space-between | space-around */
		justify-content: center;
		/* flex-start | flex-end | center | baseline | stretch */
		align-items: center;
		display: flex;
		padding: 0 1px;
		line-height: 1.3;

		>a,
		>span {
			font-size: 13px;
			font-family: @menu-font;
			font-weight: @menu-font-weight;
			text-transform: uppercase;
			letter-spacing: 1px;
			.transition(0.3s);
			max-width: 100%;
			white-space: normal;
			display: block;
			padding: 4px 20px;
			position: relative;
			border: 1px solid transparent;
			
			>.description {
				font-family: @body-font;
				text-transform: none;
				display: block;
				font-style: italic;
				letter-spacing: 0;
				font-size: 12px;
				opacity: 0.6;
			}
		}

		&.active:hover>a,
		>a:hover,
		&.active:hover>span,
		>span:hover {
			background-color: @primary;
			border-radius: 50px;
		}

		&.has-dropdown>a,
		&.has-dropdown>span {
			padding-right: 35px;
			position: relative;
		}

		>.sub {
			position: absolute;
			z-index: 99;
			opacity: 0;
			//transition-property: none !important;
			.transition(0.3s);
			visibility: hidden;
			display: none;
			background-color: @dark;
			border-top: 2px solid @default;
			margin-top: -15px;
			line-height: 1.6;

			&:not([class*="pd-"]) {
				padding: 15px 10px;
			}

			>li>a,
			.dropdown>li>a,
			>li>span,
			.dropdown>li>span {
				.transition(0.3s);
				left: 0;
				height: auto;
				font-size: 13px;
				padding: 6px 15px;
				display: block;
				position: relative;

				&:hover {
					left: 5px;
				}
			}
		}

	}

	.has-dropdown {
		position: relative;

		>.dropdown {
			.transition(0.3s);
			left: 100%;
			top: 0;
			padding: 15px 10px;
			position: absolute;
			z-index: 99;
			opacity: 0;
			display: none;
			visibility: hidden;
			margin-top: 0px;
			min-width: 200px;
			background-color: @dark;
			border-top: 2px solid @default;
			margin-top: -15px;
		}
		>.r.dropdown {
			left: auto;
			right: 100%;
		}

		&.active {
			>.sub {
				display: block;
				opacity: 1;
				visibility: visible;
				top: 100%;
				left: 0px;
				margin-top: 0;
			}

			>.sub:not([class*="min-px-w"]) {
				min-width: 200px;
			}

			>.dropdown {
				display: block;
				opacity: 1;
				visibility: visible;
				margin-top: 0;
			}
		}
	}

	.sub-r {
		right: 0;
		left: auto !important;
	}


	/*----------  Mobile menu handler ----------*/

	.has-dropdown>a:after,
	.has-dropdown>span:after {
		font-family: "Font Awesome 5 Free";
		font-style: normal;
		font-weight: 900;
		content: "\f105";
	}

	.has-dropdown>a:after,
	.has-dropdown>span:after,
	.sub-handler {
		position: absolute;
		.v-align();
		right: 15px;
		font-size: 13px;
	}

	.menu-item.has-dropdown>a:after,
	.menu-item.has-dropdown>span:after {
		content: "\f107";
	}

	.sub-handler {
		display: none;
		top: 1px;
		right: 0px;
		width: 30px;
		height: 30px;
		transform: none;
		text-align: center;
		line-height: 30px;
		z-index: 9999;
		cursor: pointer;
	}

	.menu-item {
		.has-dropdown {
			>.sub-handler {
				top: 6px;
			}
		}

		>.sub-handler {
			top: 6px;
		}
	}
}


.menu.inline-block {
	width: auto;
}


/*
 * Side sticky bar
 ********************************/
.side-header {
	background-color: @default;
	color: #fff;
	position: fixed;
	width: 100px;
	height: ~"calc(100% - 100px)";
	left: 0;
	top: 100px;
	z-index: 9999;
	opacity: 0;

	.social-profile {
		position: absolute;
		transform: translateX(-50%);
		left: 50%;
		bottom: 30px;

		a {
			display: block;
			width: 30px;
			height: 30px;
			text-align: center;
			font-size: 16px;
			margin: 15px 0 0 0;
		}
	}
}

.sticky-sidebar {
	.transition(0.3s);
	position: absolute;
	height: 100%;
	width: 0px;	
	left: 100px;
	top: 0px;
	overflow: hidden;

	> aside {
		.transition(0.3s);
		position: absolute;
		padding: 40px;
		height: 100%;
		overflow-y: auto;
		background-color: @white;
		color: #666;
		width: 350px;
		left: 0px;
	}

	&.off {
		width: 0px;	
		opacity: 0;
	}

	&.on {
		width: 350px;
		opacity: 1;
		box-shadow: 10px 0 30px 0 rgba(0, 0, 0, 0.1);
	}

	/*== Display header information in small screens ===============*/
	.sidebar-info {
		margin-bottom: 40px;
		display: none;
		.theme-logo {
			display: block;
			margin-bottom: 20px;
		}
		ul {
			list-style-type: none;
			margin: 0px;
			padding: 0;
			li {
				padding: 10px 0;
				border-bottom: 1px solid rgba(0, 0, 0, 0.1);
				.content-title {
					margin: 0px;
				}
				p {
					margin: 0;
				}
			}
		}
		.sidebar-social {
			a {
				display: inline-flex;
				margin: 10px;
			}
		}
	}
}

/* All icon links 
/******************************/
.menu-handle,
.search-handle,
.widget-handle {
	.transition(0.3s);
	width: 100px;
	height: 100px;
	color: #fff;
	border: none;
	background-color: transparent;
	i {
		font-size: 20px;
	}
	&:focus,
	&:active {
		outline: none;
	}
}

.menu-handle {
	background-color: @dark;
	&:hover {
		background-color: @primary;
	}
}

.widget-handle,
.search-handle {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	&:hover {
		background-color: @dark;
	}
}

.menu-handle.on,
.widget-handle.on,
.search-handle.on {
	background-color: @primary;

	i {
		font-size: 50px;
	}
}

/* Layout 2
/******************************/
@media (min-width: 992px) {
	body.layout-2 {
		.main-header {
			background-color: transparent;
	
			.profile-info-wrp,
			.about-info-wrp {
				display: none;
			}
		}
		.menu-handle{
			.transition(0s);
		}
		.menu-handle:not(.on) {
			width: 60px;
			height: 60px;
			transform: translate(-20px, 20px);
			border-radius: 60px;
		}
		.sticky-sidebar {
			position: fixed;
			top: 0;
		}
		.header-search {
			position: fixed;
			top: 0;
			display: flex;
			height: 0;
			//background-color: rgba(0, 0, 0, 0.8);
			
			.search-frm {
				width: 80%;
				margin: auto;
				border: 1px solid rgba(255, 255, 255, 0.4);
				height: auto;
			}
			&.on {
				height: 100%;
			}
		}
	}
}

/* Layout 3
/******************************/
body.layout-3 {
	.main-header {
		.theme-logo {
			width: 60px;
    		height: 60px;
		}
		.about-info p {
			line-height: 1.4;
    		font-size: 12px;
		}
		.profile-info {
			.main-title {
				font-size: 18px;
			}
			p {
				line-height: 1.3;
				font-size: 12px;
			}
		}
	}
	.menu-handle, 
	.search-handle, 
	.widget-handle {
		width: 60px;
    	height: 60px;
	}
	.side-header {
		width: 60px;
	}
}