.toggle,
[id^=drop] {
	display: none;
}

/* Giving a background-color to the nav container. */
nav {
	margin: 0;
	z-index: 999;
	padding: 0;
}


/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}
.menu-wrap {
	clear: none;
	float: right;
	width: 65%;
	z-index: 900;
	padding-top: 10px;
}

#logo {
	display: block;
	float: left;
	width: 271px;
	padding-top: 0;
	padding-right: 0px;
	padding-bottom: 0;
	padding-left: 12px;
	z-index: 999;
}
#logo a:hover {
	z-index: 999;
	background-color: rgba(255,255,255,0.0);
}




.tagline {
	text-align: right;
	float: right;
	width: 100%;
	font-size: 36px;
	font-weight: 600;
	color: #0D1A44;
	padding-right: 12px;
	margin-top: 15px;
	margin-bottom: 5px;
}
.tagline img {
	margin-top: -5px;
}


/* Styling the links
nav a {
	display: block;
	font-size: 16px;
	text-decoration: none;
	padding-right: 14px;
	padding-left: 14px;
	line-height: 50px;
}*/


/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:reltive" */
nav ul {
	float: right;
	padding: 0;
	margin: 0;
	list-style: none;
	position: relative;
	z-index: 999;
	}

/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display: inline-block;
	float: left;
	color: #FFF;
	}


/* Background color change on Hover */
nav ul li.selected,
nav ul li.selected>a,
nav ul li.selected>a:after,
nav ul li:hover,
nav ul li:hover>a,
nav ul li:hover>a:after {
	background-color: #1E478A;
	color: #FFF;
}

nav ul li a {
    color: #1E478A;
    display: block;
    font-size: 16px;
    text-decoration: none;
    padding-right: 10px;
    padding-left: 10px;
    line-height: 50px;
    font-weight: 400;
}





/* Background color change on Hover */
nav ul li a:hover {
	background-color: #1E478A;
	color: #FFF;
}

nav ul li ul li:hover { background: #000000; }

/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute;
	/* has to be the same number as the "line-height" of "nav a" */
	top: 50px;

}

/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
	float: none;
	display: list-item;
	position: relative;
	background-color: #1E478A;
	color: #FFF;
	width: 200px;
}


nav ul ul li.last {
	float: right;
	left: -91px;
}



/* submenu colour */
nav ul ul li a {
	position: relative;
	color: #FFF;
	height: 50px;
}

nav ul ul li.selected,
nav ul ul li a.selected,
nav ul ul li a:hover {
	position: relative;
	color: #FFF;
	background-color: #163569;
}

/* Second, Third and more Tiers
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top: -50px;
	/* has to be the same number as the "width" of "nav ul ul li" */
	left: 200px;
}


/* Change ' +' in order to change the Dropdown symbol */
li > a:after {
	content: ' +';
	color: #232d5e;
}
li > a:only-child:after {
	content: '';
	color: #FFF;
}


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 900px) {

TABLET {
}


	#logo {
	display: block;
	width: 100%;
	text-align: center;
	float: left;
	margin-bottom: 5px;
	padding: 0;
	}


	.tagline {
	display: none;
}

	nav {
	padding: 0px;

	}


	/* Hide the navigation menu by default */
	/* Also hide the  */
	.toggle + a,
	.menu {
		display: none;
	}

	.menu-wrap {
	width: 100%;
}


	/* Stylinf the toggle lable */
	.toggle {
	display: block;
	background-color: #1E478A;
	color: #FFF;
	font-size: 16px;
	text-decoration: none;
	border: none;
	padding-right: 20px;
	padding-left: 20px;
	line-height: 50px;
	text-align: left;
	content: ' +';
	background-image: url(/images/icon-menu.png);
	background-repeat: no-repeat;
	background-position: 96% center;
	}

	.toggle:hover {
	background-color: #163569;
	}

	/* Display Dropdown when clicked on Parent Lable */
	[id^=drop]:checked + ul {
		display: block;
	}

	nav ul {
	float: left;
	width: 100%;
	}


	/* Change menu item's width to 100% */
	nav ul li {
	display: block;
	width: 100%;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #FFF;
	background-image: none;
		}

		nav ul li a {
	background-color: #1E478A;
	color: #FFF;
	padding-left: 20px;
}

	nav ul ul .toggle,
	nav ul ul a {
	padding: 0 40px;
	background-image: none;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
	background-color: #163569;
	}

	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
	color: #FFF;
	font-size: 16px;
	line-height: 50px;
	padding-top: 0px;
	padding-right: 20px;
	padding-bottom: 0px;
	padding-left: 20px;
	background-image: none;
	}


	nav ul li ul li .toggle,
	nav ul ul a {
	background-color: #1E478A;
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
	float: none;
	position: static;
	color: #ffffff;
	background-image: none;		/* has to be the same number as the "line-height" of "nav a" */
	}

	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}

	/* Fisrt Tier Dropdown */
	nav ul ul li {
	display: block;
	width: 100%;
	border-top-width: 1px;
	border-top-style: solid;
	border-bottom-style: none;
	border-top-color: #FFF;
	}
	
	nav ul ul li.last {
	float: left;
	left: 0px;
}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */

	}
	
	

}
