/**
 * Navigation menu specific css
 */
#nav {
    clear: left;
    width: 100%;
    background: #035CA0;
    height: 75px;
    font-family: 'Avenir', 'Open Sans', sans-serif;
    font-weight: 300;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.page-at-top {

}

.page-in-motion {
    opacity: 0.95;
}

#nav,
#nav ul,
#nav li,
#nav a {
    margin: 0;
    padding: 0;
    line-height: 1;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

#nav ul {
    position: relative;
    width: 1100px;
}

#nav ul li {
    list-style: inside none;
    padding: 0;
    margin: 0;
    float: left;
    display: block;
}

#nav ul li:first-child {
      padding-right: 35px;
}

#nav ul li.has-image {
    z-index: 25;
}

#nav ul li.has-image .menu-item-title {
    display: none;
}

#nav ul li ul li.has-image .menu-item-title {
    display: block;
    text-shadow: none;
}

#nav ul li.has-image a {
    padding: 0;
    margin: 0;
}

#nav ul li a, #nav ul li span {
    margin: 15px 7px 0;
    padding: 15px 11.5px;
    color: #fff;
    font-size: 14px;
    display: block;
    text-align: center;
    transition: all .25s linear;
    -moz-transition: all .25s linear;
    -webkit-transition: all .25s linear;
    border-radius: 5px;
}

#nav ul li.menu-item-has-children:hover a:after {
    top: 0;
    bottom: 0;
}

#nav ul li.menu-item-has-children:hover a:before {
    top: 19px;
}

#nav ul li.menu-item-has-children:hover a {
    z-index: 999;
}

#nav ul li.menu-item-has-children:hover ul,
#nav ul li.menu-item-has-children:hover div {
    display: block;
}

#nav ul li a:hover, #nav ul li.current-menu-item a{
    background: #004B84;
}

#nav ul li.home-link a, #nav ul li.home-link a:hover {
    background: #035CA0 !important;
}

#nav ul li.home-link img {
    width: 145px;
    height: auto;
}

#nav ul li ul,
#nav ul li div {
    display: none;
    position: absolute;
    z-index: 10000;
}
/*#nav ul li ul.image-sub-menu {
    width: auto;
    left:0;
    right:0;
}*/

#nav ul li ul.two-children {
    width:660px;
    margin-left:23.5%;
    left:0;
}
#nav ul li ul.three-children {
    width:auto;
    left:0;
    right:0;
}


#nav ul li ul.text-sub-menu {
    width:209px;
}
#nav ul li ul.sub-menu {
    background: #fff;
    margin-top:20px;
    border-radius: 5px;
}

#nav ul li ul li {
    display: block;
    list-style: inside none;
    padding: 1% 0% 1% 1.5%;
    margin: 0;
    position: relative;
    float: left;
    z-index:11;
}

#nav ul li ul li a {
    outline: none;
    display: block;
    text-align: center;
    position: relative;
    margin: 0;
    color: #673b33;
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);

    border-radius: 5px;
}
#nav ul li ul.image-sub-menu li a{
    height: 120px;
}
#nav ul li ul.text-sub-menu li a{
    background: #035CA0;
    color:#fff;
    text-align: left;
    width:180px;
}

#nav ul li ul li:first-child {
    padding-right: 1%;
}

#nav ul li ul li:last-child {
    padding-right: 0px;
}

#nav ul li ul li a {

}

#nav ul li ul li a .menu-item-title {
    color: #fff;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    left: 5%;
    padding: 10px 0;
    text-align: left;
    font-size: 22px;
    width: 55%;
}

#nav ul li ul li a:hover {
    opacity:0.9;

}

#nav ul li ul li a img {
    position: absolute;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
}

#nav ul li ul li a .menu-item-title {
    display: block;
    clear: left;
}

#nav ul li ul.three-children li.has-image {
    width: 31.3%;
}
#nav ul li ul.two-children li.has-image {
    width: 47.8%;
}

#nav ul li ul li.has-image img {

}

.arrow-up-wrapper {
    width:100%;
    display:block;
    position: absolute;
    z-index: 10;
    top:-30px;
    height:30px;
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    position: relative;
    z-index: 10;
    top:-2px;
    border-bottom: 30px solid #fff;
    cursor: pointer;
}

/*
 * Mobile Navigation Menu
 */
#nav-responsive-top {
    background: #035CA0;
    padding: 5px 0;
    height: 63px;
}

#nav-responsive, .nav-responsive-btn {
    font-family: 'Avenir', 'Open Sans', sans-serif;
    font-weight: normal;
}

#nav-responsive {
    background: #035CA0;
    font-size: 16px;
    left: 0;
    position: absolute;
    top: 63px;
    width: 100%;
    display: none;
    overflow: hidden;
    z-index: 1000;
}

#nav-responsive .menu-main-menu-container {
    margin-top: 10px;
}

.nav-responsive-btn {
    cursor: pointer;
    float: right;
    margin: 5px 0;
    position: absolute;
    right: 0;
    top: 13px;
    z-index: 999;
    color: #fff;
    padding: 5px 15px;
    font-size: 30px;
}

.nav-responsive-btn i {
    padding: 0 5px;
}

#nav-responsive ul {
    margin-left: 0px;
    list-style: none;
    padding: 0px;
}

#nav-responsive ul li {
    position: relative;
    margin-bottom: 0px;

}

.nav-menu-logo {
/* JOFUS : fixing menu logo on mobile
    width: 220px */
    width: 110px;
    padding: 0px 20px 
}

#nav-responsive ul li a {
    display: block;
    padding: 10px 15px 10px 35px;
    color: #fff;
    border-bottom: 1px solid #D9CAAB;
}

#nav-responsive ul li ul li a {
    padding: 10px 15px 10px 55px;
}

#nav-responsive .menu-item-logo {
    display: none;
}

#nav-responsive ul li img {
    display: none;
}

#nav-responsive .sub-menu {
    margin: 0;
}

#nav-responsive ul ul {
    background-color: rgba(255, 255, 255, 0.11);
    display: none;
    padding: 0px;
}

#nav-responsive ul ul li {

}

#nav-responsive ul ul li a {
    font-size: 14px;
}

#nav-responsive .mobile-nav-arrow {
    position: absolute;
    top: 0px;
    right: 0px;
    border-left: 1px dotted rgba(255, 255, 255, 0.11);
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    line-height: 30px;
    padding: 10px 20px;
}

/* Colours */
#nav .bg-orange a, #nav .bg-orange a:hover {
    background: #DE8A0E !important;
}

#nav .bg-blue a, #nav .bg-blue a:hover {
    background: #035CA0 !important;
}

#nav .bg-green a, #nav .bg-green a:hover {
    background: #5BA641 !important;
}

/************************************************************
 BUTTONS
************************************************************/

#nav .orange-btn a {
    background: #DE8A0E;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}

#nav .bordered-btn a {
    border-radius: 5px;
    border: 1px solid #FFFFFF;
}

