/*
	IGGO Burger for mobile
	Offcanvas Responsive Menu
*/


/* Small: Phones */
	@media (max-width: 1279px) {

	/* Global
	---------------------------------------------------------------------------------------------------------------------- */
		nav { position: relative; }

		header .container { z-index: 950; padding-left: 0; }

		html.noscroll { overflow: hidden !important; height: 100%; }
		body.noscroll { overflow: hidden !important; height: 100%; position: relative; }


	/* Search Toggle
	---------------------------------------------------------------------------------------------------------------------- */
		header .search { margin: 0; position: static; padding: 0; float: right; width: 50px; }
		header .toggle-search { height: 50px; background: rgba(0,104,152,0); float: left; height: 50px; line-height: 50px; text-align: center; width: 100%; position: relative; z-index: 125; outline: none; font-size: 18px; transition: all 0.25s ease-in-out 0s; }
		header .toggle-search.active { background: rgba(0,104,152,1); }

		#searchform { visibility: hidden; position: absolute; top: 0; left: 0; background: rgba(0,104,152,1); padding: 8px 15px; width: 100%; transition: all 0.25s ease-in-out 0s; opacity: 0; transform: translate3d(0, 0px, 0); -webkit-transform: translate3d(0, 0px, 0); z-index: 100; }
		#searchform.active { display: block; transform: translate3d(0, 50px, 0); -webkit-transform: translate3d(0, 50px, 0); opacity: 1; visibility: visible; }
		#searchform button { right: 15px; }


	/* Navbar Toggle
	---------------------------------------------------------------------------------------------------------------------- */
		.navbar-toggle { float: left; width: 45px; padding-left: 15px; background: none; border: none; margin: 0 10px 0 0; height: 50px; transition: all 0.05s linear 0s; outline: none; z-index: 110; position: relative; }
		.navbar-toggle:active { background: rgba(0,0,0,0.3); }
		.navbar-toggle .icon-bar { background: #FFF; box-shadow: 0 1px 0 rgba(0,0,0,0.3); float: left; width: 100%; height: 3px; margin: 2px 0; transform: translate3d(-70%, 0, 0); -webkit-transform: translate3d(-70%, 0, 0); transition: all 0.25s ease-in-out 0s; }
		.navbar-toggle.collapsed .icon-bar { transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0); }

		.navbar-toggler { background: none; display: block; float: left; width: 50px; height: var(--header-height); border: none; transition: all 0.05s linear 0s; outline: none; z-index: 110; position: relative; border-radius: 0; padding: 5px 14px; cursor: pointer; }
		.navbar-toggler:active { background: rgba(0,0,0,0.15); }

		.icon-bar { background: #212121; float: left; width: 100%; height: 2px; margin: 2px 0; transition: all 0.2s ease-in-out 0s; }
		.top-bar { transform: rotate(45deg); -webkit-transform: rotate(45deg); transform-origin: 10% 10%; -webkit-transform-origin: 10% 10%; }
		.middle-bar { opacity: 0; }
		.bottom-bar { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform-origin: 10% 90%; -webkit-transform-origin: 10% 90%; }

		.collapsed .top-bar { transform: rotate(0); -webkit-transform: rotate(0); }
		.collapsed .middle-bar { opacity: 1; }
		.collapsed .bottom-bar { transform: rotate(0); -webkit-transform: rotate(0); }

		.nav-overlay { background: rgba(0,0,0,0.75); }


	/* Navbar
	---------------------------------------------------------------------------------------------------------------------- */
		nav#mobile { display: block; }
		nav#mobile li { list-style: none; }

		#mainmenu-collapse {
			position: fixed;
			overflow-y: auto;
			display: block !important;
			top: 0;
			width: 75%;
			padding: var(--header-height) 0 0;
			height: 100% !important;
			background: var(--secondary);
			border-top: none;
			margin: 0 !important;
			transform: translate3d(0, 0, 0);
			-webkit-transform: translate3d(0, 0, 0);
			transition: height 0.01s, transform 0.25s ease-in-out 0s !important;
			z-index: 105;
			}

		#mainmenu-collapse.disabled { transform: translate3d(-100%, 0, 0); -webkit-transform: translate3d(-100%, 0, 0); }


	/* All levels
	---------------------------------------------------------------------------------------------------------------------- */
		nav { font-size: 14px; }
		nav .svg-inline--fa { float: left; width: 0.75rem; text-align: left; color: #FEEA00; }
		nav .nav .text { float: right; width: calc(100% - 0.75rem); color: #FFF; }

		nav#mobile ul > li { clear: both; float: left; width: 100%; }
		nav#mobile ul > li > a { float: left; width: 100%; padding: 1rem 1rem; transition: all 0.05s linear 0s; }
		nav#mobile ul > li > a:hover,
		nav#mobile ul > li > a:focus { text-decoration: none; }
		nav#mobile ul > li > a:active { background: rgba(255,255,255,0.15); color: #FFF; }


	/* Level 1
	---------------------------------------------------------------------------------------------------------------------- */
		ul.nav > li { clear: both; float: left; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.15); list-style: none; }
		ul.nav > li > a { float: left; width: 100%; transition: all 0.05s linear 0s; padding: 0.875rem 1rem; color: #FFF; text-transform: uppercase; }

		ul.nav > li.selected { border-bottom: 1px solid rgba(0,0,0,0.35); }

		ul.nav > li > a:hover,
		ul.nav > li > a:focus,
		ul.nav > li:hover > a,
		ul.nav > li:focus > a { background: none; cursor: pointer; text-decoration: none; }
		ul.nav > li > a:active { background: rgba(0,0,0,0.2); }

    ul.nav > li.menu-item-has-children { position: relative; }
    ul.nav > li.menu-item-has-children > button { cursor: pointer; border: none; border-left: 1px solid rgba(0,0,0,0.20); position: absolute; top: 0px; right: 0px; height: 53px; width: 50px; background-color: #2074a9; }
    ul.nav > li.menu-item-has-children > button:after { content: ''; position: absolute; right: 19px; bottom: 45%; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid white; clear: both; }

	/* Level 2
	---------------------------------------------------------------------------------------------------------------------- */
		ul.nav > li > ul { position: relative; top: auto; left: auto; margin: 0; clear: both; float: left; width: 100%; display: none; background: none !important; transition: all 0.25s ease-in-out 0s; padding: 0; }
		ul.nav > li.selected > ul { display: block !important; visibility: visible; opacity: 1; }
		ul.nav > li > ul > li { clear: both; float: left; width: 100%; background: rgba(0,0,0,0.2); padding: 0; border-top: 1px solid rgba(0,0,0,0.25); }
		ul.nav > li > ul > li > a { float: left; width: 100%; text-align: left; padding: 0.75rem 1rem; margin: 0; transition: all 0.05s linear 0s; color: #FFF; }

		ul.nav > li > ul > li > a:active { background: rgba(0,0,0,0.3); }
		ul.nav > li > ul > li > a:hover,
		ul.nav > li > ul > li > a:focus { text-decoration: none; }


	/* Level 3
	---------------------------------------------------------------------------------------------------------------------- */
		ul.nav > li > .sub-menu > li > .sub-menu { display: none; }
		ul.nav > li > .sub-menu > li.selected > .sub-menu { display: block !important; }
		ul.nav > li > ul > li > ul > li { clear: both; float: left; width: 100%; background: rgba(0,0,0,0.2); margin: 0; padding: 0; border-top: 1px solid rgba(0,0,0,0.4); }
		ul.nav > li > ul > li > ul > li > a { float: left; width: 100%; padding: 0.75rem 1rem 0.75rem 2rem; margin: 0; transition: all 0.05s linear 0s; }

		ul.nav > li > ul > li > ul > li > a:active { background: rgba(0,0,0,0.3); }
		ul.nav > li > ul > li > ul > li > a:hover,
		ul.nav > li > ul > li > ul > li > a:focus,
		ul.nav > li > ul > li > ul > li > a:hover .title,
		ul.nav > li > ul > li > ul > li > a:focus .title { text-decoration: none; }

	}


	@media (min-width: 1280px) {
		nav#mobile,
		.navbar-toggler { display: none; }
	}
