/* General menu styling */
.nav {position: relative; margin: 0; padding: 0; line-height: 20px; z-index:999;}
	/* The main navigation link containers */
	.nav>li {display: block; float: left; margin: 0; padding: 0;}
		/* The main navigation links */
		.nav>li>a {
			/* Layout */
			display: block;
			position: relative;
			padding: 10px 20px; 
			/* Text */
			font-family:Arial;
			color: #0c4da2;
			font-size: 14px;
			font-weight:700;
			text-decoration: none;
		}
		/* Changing the color on hover */
		.nav>li>a:hover, .nav>li:hover>a {color: #999999;}
		/* The links which contain dropdowns menu are wider, because they have a little arrow */
		.nav>.dropdown>a {padding: 10px 30px 10px 12px;}
		/* The arrow indicating the dropdown */
		.dropdown>a::after {
			 content: "";
			 position: absolute;
			 top: 17px;
			 right: 15px;
			 width: 5px;
			 height: 5px;
			 -webkit-transform: rotate(45deg);
			 -ms-transform: rotate(45deg);
			 -moz-transform: rotate(45deg);
			 -o-transform: rotate(45deg);
			 border-bottom: 1px solid #0c4da2;
			 border-right: 1px solid #0c4da2;
			}
		/* Changing the color of the arrow on hover */	
		.dropdown>a:hover::after, .dropdown:hover>a::after {border-color: #999999;}
		/* The submenus */
		.nav ul {position: absolute; margin: 0;	padding: 0; list-style: none; display: block;}
		/* General layout settings for the link containers of the submenus */
		.nav ul li {
			position: absolute;
			top: -9999px; /* Hiding them */
			height: 0px; 
			display: block;
			margin: 0;
			padding: 0;

			/* Making them to expand their height with a transition, for a slide effect */
			-webkit-transition: height .2s ease-in;
			-moz-transition: height .2s ease-in;
			-o-transition: height .2s ease-in;
			-ms-transition: height .2s ease-in;
		}
		/* Displays the submenu links, by expading their containers (with a transition, previously defined) and by repositioning them */
		.dropdown:hover>ul>li {height: 30px; position: relative; top: auto;}
			/* The submenu links */
			.nav ul li a {
				/* Layout */
				padding: 5px 0px 5px 15px;
				width: 170px;
				display: block;
				position: relative;
				/* Text */
				font-family:Arial;
				text-align:left;
				color: #0c4da2;
				text-decoration: none;
				font-size: 14px;
				background:#efefef;
				border-bottom:1px solid #e0e0e0;
				border-left:1px solid #e0e0e0;
				border-right:1px solid #e0e0e0;
				border-top:1px solid #e0e0e0;
				border-top-style:dotted;
			}
			/* Changing the link's color and background on hover */
			.nav ul li:hover>a, .nav ul li a:hover { color: #0c4da2;	background: #fff; rgba(0, 0, 0, .75);}
			/* Making the level 2 (or higher) submenus to appear at the right of their parent */
			.nav ul .dropdown:hover ul {left: 160px; top: 0px;}
			/* The submenu links have a different arrow which indicates another dropdown submenu */
			.nav ul .dropdown a::after{
				width: 5px;
				height: 5px;
				left: 2px;
				border-bottom: 0;
				border-right: 1px solid #0c4da2;
				border-top: 1px solid #0c4da2;
				top: 12px;
			}
			/* Changing the color of the arrow on hover */
			.nav ul .dropdown:hover>a::after, .nav ul .dropdown>a:hover::after {border-right: 1px solid #0c4da2; border-top: 1px solid #0c4da2;}