﻿/* MOBILE BUTTON */
.mobile-btn {
	display: none;
	background: #0755ad;
	color: #fff;
	border: 0;
	padding: 10px 15px;
	font-size: 16px;
	cursor: pointer;
}

/* OFFCANVAS BACKDROP */
.menu-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 1040;
	display: none;
}

	.menu-overlay.show {
		display: block;
	}

/* OFFCANVAS */
.mobile-offcanvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 320px;
	max-width: 85%;
	height: 100%;
	background: #fff;
	z-index: 1050;
	transform: translateX(-100%);
	transition: transform .35s ease;
	overflow-y: auto;
	visibility: hidden;
}

	.mobile-offcanvas.show {
		transform: translateX(0);
		visibility: visible;
	}

/* OFFCANVAS HEADER */
.mobile-header {
	background: #0755ad;
	color: #fff;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

	.mobile-header h5 {
		margin: 0;
		font-size: 20px;
	}

.close-menu {
	border: 0;
	background: transparent;
	color: white;
	font-size: 28px;
	cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu,
.mobile-submenu {
	list-style: none;
	padding: 0;
	margin: 0;
}

	.mobile-menu li a {
		display: block;
		padding: 15px 20px;
		color: #222;
		text-decoration: none;
		font-size: 14px;
		border-bottom: 1px solid #eee;
		cursor: pointer;
	}

		.mobile-menu li a:hover {
			background: #f3f5f8;
			color: #0755ad;
		}

/* MOBILE SUBMENU */
.mobile-submenu {
	display: none;
	background: #f5f6f8;
}

	.mobile-submenu li a {
		padding-left: 35px;
	}

	.mobile-submenu .mobile-submenu {
		background: #e9edf2;
	}

		.mobile-submenu .mobile-submenu li a {
			padding-left: 50px;
		}

/* ARROW */
.has-sub > a:after {
	content: "+";
	float: right;
	font-size: 20px;
	line-height: 17px;
}

.has-sub.open > a:after {
	content: "−";
}

.has-sub.open > .mobile-submenu {
	display: block;
}

/* RESPONSIVE */
@media(max-width: 991px) {

	.desktop-menu {
		display: none !important;
	}
	#header nav #logo-container {
		margin-top: 7px;
		margin-left: 0;
	}
	.mobile-btn {
		display: block;
	}

	.navbar {
		min-height: 60px;
	}
	.mobile-menu li a {
		display: block;
		padding: 15px 20px;
		color: #222;
		text-decoration: none;
		font-size: 14px;
		border-bottom: 1px solid #eee;
		cursor: pointer;
	}
	nav {
		height: auto;
		line-height: 40px;
	}
	.mobile-menu li a i {
		height: auto;
	}
	nav ul li {
		float: none;
	}
	.has-sub > a:after {
		margin-top: 10px;
	}
}
