nav#main {
    margin: 0;
    height: auto;
    z-index: 100;
    float: none;
    display: inline-block;
    top: 0;
    position: relative;
    transition: all 0.2s ease-in-out;
    padding-left: 0;
    margin-left: 0;
    width: auto;
    vertical-align: middle;}
    
nav ul#menu { list-style: none; margin: 0 auto; float: none; display: inline-block; }

nav ul#menu  li {      
   float: none; 
   position: relative;
   display: inline-block;
   padding: 0; } 
nav ul#menu  li.nav-menu { display: none; }
nav ul#menu  li:last-child { border-right: 0; }

nav ul#menu li a {
   height: auto;
   padding: .25em 1em;
   background-color: none;
   font-size: 150%;
   font-weight: 400;
   line-height: 1;
   color: #06369d;
   display: inline-block;
   text-transform: none;
   letter-spacing: 0;
   -webkit-transition: all .35s ease-in-out;
   -moz-transition:    all .35s ease-in-out;
   -o-transition:      all .35s ease-in-out;
   -ms-transition:     all .35s ease-in-out;
   transition:         all .35s ease-in-out; }
      
   nav ul#menu li a:hover { color: #06369d; }  
   nav ul#menu li a:hover:after {          
      content: "";
      background: #aaa;
      position: absolute;
      bottom: 0;
      left: 0;
      height: 5px;
      width: 80%;
      margin: -3px 10%; }  

nav ul#menu li a:active { color: #aaa; }
/*#40f259*/

nav header ul#menu > li:hover a.dropdown {
   background-color: #aaa;
   color: #FFF; } 
/*#159bc2*/
  
header .button {
   vertical-align: middle;
   position: absolute;
   top: 33px;
   right: 0;
   margin-right: 0;
   transform: translate(0, 0); }
    

/* Submenu
------------------------------------ */
nav ul#menu ol { 
   background: #159bc2;
   list-style: none;
   width: 300px;
   margin: 0;
   padding: 6px;
   display: none;
   position: absolute;
   left: 0px;
   top: 44px;
   z-index: 100;
   font-size: 20px !important;
   line-height: 1 !important;
   text-transform: none !important;
   -webkit-transition: all .35s ease-in-out;
   -moz-transition:    all .35s ease-in-out;
   -o-transition:      all .35s ease-in-out;
   -ms-transition:     all .35s ease-in-out;
   transition:         all .35s ease-in-out;
   -webkit-box-shadow: 1px 5px 5px 0 rgba(0,0,0,.2);
   box-shadow: 1px 5px 5px 0 rgba(0,0,0,.2); }


nav ul#menu li:hover ol, nav#main li.over ol { display: block; }

nav ul#menu ol li {
   background-image: none;
   padding: 2px !important;
   text-align: left; 
   float: none;
   display: block; }

nav ul#menu ol li a {
   background-color: rgba(255,255,255,.2);
   width: auto;
   height: auto;
   padding: 10px 7px !important;
   display: block;
   color: #fff !important;
   font-size: 20px !important;
   line-height: 1 !important;
   float: none;   
   text-indent: 0;
   -webkit-transition: all .35s ease-in-out;
   -moz-transition:    all .35s ease-in-out;
   -o-transition:      all .35s ease-in-out;
   -ms-transition:     all .35s ease-in-out;
   transition:         all .35s ease-in-out; }

nav ul#menu ol li a:hover { 
   padding: 10px 7px !important;
   background-color: rgba(255,255,255,.6) !important;    
   color: #fff !important; }
nav ul#menu ol li a:active { 
   background-color: #ff0036 !important; 
   color: #fff !important;  }

body.trilogy-hub-form header nav#main,
body.trilogy-hub-form header nav#extras { display: none !important; }


/* --- Connect --- */
ul#social {
   position: relative;
   list-style: none;
   float: none;
   width: auto;
   margin: 0;
   top: 3px;
   display: inline-block;}

ul#social  li {      
   float: none; 
   position: relative;
   display: inline-block;
   padding: 0;
   width: 40px;
   height: 40px;}
   
ul#social a { 
   height: 40px;
   width: 40px;
   color: #f5f1de;
   font-family: 'trilogyicons'; 
   font-size: 22px;
   text-transform: lowercase;
   font-weight: 300;   
   margin: 0;
   padding: 9px;
   text-align: center;
   position: relative;
   top: 0;
   -webkit-transition: all .35s ease-in-out;
   -moz-transition:    all .35s ease-in-out;
   -o-transition:      all .35s ease-in-out;
   -ms-transition:     all .35s ease-in-out;
   transition:         all .35s ease-in-out; }


ul#social a:hover { color: #0d2547; background: #f5f1de; }
ul#social a:active { background: #30e3ea; color: white; }


/* Section Nav
------------------------------------ */

#snav { 
   text-align: left;
   background: #0d2547;
   width: 86%;
   padding: 7%;
   right: 0;
   margin: 0 0 1em 0;
   height: auto;
   position: relative;}

#snav ul { list-style: none; }   
#snav li { margin: 0 auto; }  
#snav li a { 
   position: relative;
   background: rgba(48,227,234,0);
   padding: 0.25em 5px; 
   margin: 1px 0;
   border-bottom: 1px #30e3ea solid;
   display: block;
   font: 400 22px/1 'Roboto Slab', serif;
   letter-spacing: 1px;
   text-transform: uppercase !important;
   color: white;    
   -webkit-transition: all .25s ease-in-out;
   -moz-transition:    all .25s ease-in-out;
   -o-transition:      all .25s ease-in-out;
   -ms-transition:     all .25s ease-in-out;
   transition:         all .25s ease-in-out; }  
#snav li a:hover { 
  background: rgba(48,227,234,.6);  }
#snav li a:active { 
  background: rgba(48,227,234,1); }

#snav li a:before { font-family: 'trilogyicons'; font-size: 10px; color: #30e3ea; content: ">"; position: relative; top: -2px; left: 0px;}

#snav li.active a, #snav li.active a:before, #snav li a:before:hover { color: #fff; }
#snav li.active a:hover  { color: #fff; }

#snav li:last-child a { border-bottom: 0; }


/* --- Device and Mobile Menu --- */
nav ul#menu li#top-menu  { 
   display: none !important;
   background: none;
    height: 100%;
    width: auto;
    position: relative;
    top: 0px;
    right: 0px;
    color: #0032a0;
    border-right: 0;}
   
#home-button a,
nav ul#menu li#top-menu  > a {
   background-repeat: no-repeat;
   width: 70px;
   height: 100%;
   position: relative; }
   
header.sticky #home-button a, header.sticky nav ul#menu li#top-menu  > a { width: 50px; }
      
#home-button > a {  
   background-image: url(/theme/mobile/img/home.png);
   background-position: center center; }
   
nav ul#menu li#top-menu  > a { 
   width: auto;
    height: auto;
    padding: 0 !important;
    font-size: 50px;
    vertical-align: middle;
    line-height: 50px;
    color: #0032a0;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
    webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    background: none;
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    -ms-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;}
    
nav ul#menu li#top-menu  > a:hover { 
   color: #40f259 !important;
   background: none; }
   
nav ul#menu li#top-menu > a span.icon:before {
   font-family: 'trilogyicons';
   font-size: 50px;
   vertical-align: middle;
   line-height: 50px;
   content: "M";}
   
nav ul#menu li#top-menu > a:hover span.icon:before { color: #0032a0 !important; }
nav ul#menu li#top-menu a:hover:after { display: none; }
   
nav ul#menu li#top-menu.active a span.icon:before,
nav ul#menu li#top-menu a:active span.icon:before { color: #0032a0 !important; font-size: 30px; padding: 10px; background-color: none; content: "x"; }

nav ul#menu li#top-menu.active a:hover span.icon:before { color: #0032a0 !important; font-size: 30px; padding: 10px; background-color: none;  }


nav ul#menu li#top-menu #top-dropdown {
   background-color: #0032a0;
   padding: .75em;
   width: calc(80vw - 1.5em);
   height: auto;
   display: none; 
   margin: 0;
   position: absolute;
   top: 68px; 
   right: 0px;
   left: initial;
   z-index: 9999; }
      
nav ul#menu li#top-menu #top-dropdown li { 
   width: 100%;
   padding: 0 !important;
   border-right: 0;
   background: none;
   margin: 0 0 .75em 0;}
   
nav ul#menu li#top-menu #top-dropdown li:last-child { margin-bottom: 0; }
   
nav ul#menu li#top-menu #top-dropdown li a { 
   width: 94%;
   background: none !important;
   color: white;
   height: auto;
    padding: .5em 3% !important;
    line-height: 1 !important;
    webkit-border-radius: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px #5473b6 solid; }
nav ul#menu li#top-menu #top-dropdown li:last-child a {}

nav ul#menu li#top-menu #top-dropdown li a:active {   
   background: rgba(255,255,255,.4) !important;
   color: #fff !important; }
   
nav ul#menu li#top-menu #top-dropdown li.close a { 
   background: none; 
   color: #fff; }
nav ul#menu li#top-menu #top-dropdown li.close a:active { background: none; }
