@media (min-width: 768px) {
    .navbar-default{
    background:none;
    border:none;
    margin-left: 50px;
    }
}
@media (max-width: 768px) {
    .navbar-default{
    background:#021e4f;
    }
    .nav li ul li{
    width:100% !important;
    }
    #s-mainmenu .home{display: none;}
}
.navbar-brand{
float: left;
font-size: 18px;
line-height: 18px;
padding: 10px;
color:#fff !important;
}
.navbar-header{
width:100%;
border-color: #000;
}
.navbar-collapse{
padding-left:0px;
padding-right:0px;

}
.navbar{
margin-bottom:0;
min-height:54px;
}
.navbar-nav{
margin:0;       
}
.navbar-nav > li > a{
padding-top:8px;
padding-bottom:8px;
font-family:Tahoma;
font-weight: bold;
text-transform: uppercase;
white-space:nowrap;
}
.nav > li > a{
padding:17px 15px;
}
.nav li {
position: relative;
background: url("../images/bg-line.png") left bottom no-repeat; 
}
/*@media (max-width: 768px) {
    .navbar{
    min-height:40px;
    }               
    .nav > li > a{
    padding:10px 14px;
    }
    .nav li {
    background: none !important; 
    }   
    .nav ul{
    opacity:0.7; filter: alpha(opacity = 70);
    }
}*/
@media (max-width: 992px) {
    .navbar-default{
    margin-left: 0;
    }
    .navbar{
    min-height:40px;
    }
    .nav > li > a{
    padding:10px 10px;
    }
    .navbar-nav > li > a{
    font-size: 12px !important;
    }
}
.navbar-nav .dropdown > a{
padding-right: 35px;
}
.navbar-toggle {
padding: 7px;
margin-top: 7px;
margin-right: 5px;
}
.navbar-default .navbar-nav > li > a{
color:#fff;
} 
.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus, .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus{
background: #021e4f url("../images/bg-menu-hover.png") center bottom repeat-x;
color:#fff;
}

.navbar-collapse .navbar-nav.navbar-right:last-child{
margin-right:0px;
}
.navbar-default .navbar-nav > .dropdown > a .caret{
border-bottom-color:#fff;
border-top-color:#fff;
right:0;
top:50%;
content:"";
position:absolute;
margin-right:15px;
}
@media (max-width: 767px) and (max-width: 992px) {
    .navbar-default .navbar-nav > .dropdown > a .caret{
    display: none;
    }
    .nav ul{
    position:relative !important;
    }
    .nav ul ul{
    position:absolute;
    }
    .nav li ul ul {
    left:0 !important;
    }    
    .navbar-default .dropdown .closed, .navbar-default .dropdown .open{
    right:0;
    top:0;
    position:absolute;
    height:30px;
    width:30px;
    cursor:pointer
    }
    .navbar-default .dropdown .closed span{
    right:0;
    top:20px;
    position:absolute;
    cursor:pointer;
    width: 0;
    height: 0;
    margin-right: 10px;
    vertical-align: middle;
    border-top: 4px solid transparent;
    border-right: 0 dotted;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #000;
    content: "";
    }
    .navbar-default .dropdown .open span{
    right:0;
    top:20px;
    position:absolute;
    cursor:pointer;
    width: 0;
    height: 0;
    margin-right: 10px;
    vertical-align: middle;
    border-top: 4px solid #000;
    border-right: 4px solid transparent;
    border-bottom: 0 dotted;
    border-left: 4px solid transparent;
    content: "";
    }
    .nav li {
    background: none; 
    }
    
}
@media (min-width: 768px) {
    .navbar-default .dropdown .closed{
    display:none;
    }
}

.nav li a{
outline:none;
}
ul.nav li.none {
background:none;
}
.nav li a span span{
display: block;
font-size:12px;
font-weight:bold;
padding:0 0px;
text-decoration:none
}
.nav li ul li a {
    display: block;
    line-height: 1.5;
    padding: 8px 14px;
    color:#fff;    
    text-decoration: none;
    text-shadow: 0 1px rgba(0, 0, 0, 0.7);
    text-transform:none;     
}
.nav ul {
    position: absolute;
    display: none;
    background: none repeat scroll 0 0 #044e7a;
    z-index:99;
    opacity:0.9; filter: alpha(opacity = 90);
}
.nav li ul li{
    background: none repeat scroll 0 0 #044e7a;
    width: 210px;    
    border:none;
    border-bottom:1px #ccc solid;
}
.nav li:hover, .nav li a.selected{
background: #021e4f url("../images/bg-menu-hover.png") center bottom repeat-x;
color: #fff;
}
.nav li ul a:hover, .nav li ul li a.selected{
background: #021e4f url("../images/bg-menu-hover.png") center bottom repeat-x;
color: #fff;
}

.nav ul ul {
top: 0;
}

.nav li ul ul {
left: 210px;
margin: 0px;
}

.nav li:hover ul ul, 
.nav li:hover ul ul ul,
.nav li:hover ul ul ul ul {
display: none;
}

.nav li:hover ul,
.nav li li:hover ul,
.nav li li li:hover ul,
.nav li li li li:hover ul {
display: block;
}