/* HUB HEADER - SUBNAVIGATION */

.hub-header{
  background-color: #000000; /* NDWA-Black */
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: stretch;
  height: 50px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid #BBBBBB; /* NDWA-Medium-Light-Grey-Borders */
}

@media only screen and (min-width:992px){
  .hub-header{
    height: auto;
    position: relative;
    overflow: initial;
  }
}

/* HIDE LAYOUT-HEADER ON SCROLL FOR KNOW YOUR RIGHTS TEMPLATE */

body.page-template-page-know-your-rights.scroll .layout-header,
body[class*="page-template-page-know-your-rights"].scroll .layout-header{
  display: none !important;
  position: fixed !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* KEEP HUB-HEADER FIXED AT TOP ON SCROLL */

body.page-template-page-know-your-rights.scroll .hub-header,
body[class*="page-template-page-know-your-rights"].scroll .hub-header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  overflow: hidden !important;
}

@media only screen and (min-width:992px){
  body.page-template-page-know-your-rights.scroll .hub-header,
  body[class*="page-template-page-know-your-rights"].scroll .hub-header{
    height: 50px !important;
  }
  
  /* Adjust body padding when hub-header is fixed at top */
  body.page-template-page-know-your-rights.scroll,
  body[class*="page-template-page-know-your-rights"].scroll{
    padding-top: 50px !important;
  }
}

/* ---- HUB NAV STRUCTURE ---- */

.hub-title,
.hub-titleenglish-only{
  flex: 1 1 auto;
  overflow: hidden;
}

@media only screen and (min-width:992px){
  .hub-title,
  .hub-titleenglish-only{
    order: 1;
  }
}

.hub-nav{
}

@media only screen and (min-width:992px){
  .hub-nav{
    order: 2;
    background-color: #000000; /* NDWA-Black */
    flex: 1 0 auto;

    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: stretch;
  }
}

/* ---- HUB TITLE ---- */

.hub-title a,
.hub-titleenglish-only a{
  height: 50px;
  background-position: 10px center;
  background-size: auto 45%;
  background-repeat: no-repeat;
  display: block;
  color: #FFFFFF; /* NDWA-White */
  overflow: hidden;
  line-height: 50px;
  padding-left: 10px;
  text-decoration: none;
}

@media only screen and (min-width:992px){
  .hub-title a,
  .hub-titleenglish-only a{
    height: 50px;
    background-position: 20px center;
    padding-left: 20px;
  }
}

@media only screen and (min-width: 1200px){
  .hub-title a,
  .hub-titleenglish-only a{
    background-position: 25px center;
    padding-left: 25px;
  }
}

@media only screen and (min-width:992px){
  .hub-title a:hover,
  .hub-titleenglish-only a:hover{
    opacity: 0.8;
  }
}

/* ---- HUB NAV MENU ---- */

ul.menu-know-your-rights{
  display: flex;
  flex-flow: row nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.menu-know-your-rights > li{
  flex: 0 0 auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  position: relative;
}

ul.menu-know-your-rights li a{
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #FFFFFF; /* NDWA-White */
  text-decoration: none;
  height: 50px;
  line-height: 1;
}

@media only screen and (min-width:992px){
  ul.menu-know-your-rights li a{
    height: 50px;
    padding: 0 20px;
  }
}

ul.menu-know-your-rights > li > a:hover{
  color: #ff9d14; /* NDWA-Orange */
  background-color: rgba(255, 157, 20, 0.1);
}

/* ---- SUBMENU DROPDOWN ---- */

ul.menu-know-your-rights > li > ul.sub-menu{
  padding: 0;
  margin: 0;
  list-style-type: none;
  display: none;
}

@media only screen and (min-width:992px){
  ul.menu-know-your-rights > li > ul.sub-menu{
    position: absolute;
    top: 50px; /* SETTING: HEIGHT OF HUB NAV BAR */
    min-width: 275px; /* SETTING: MINIMUM WIDTH OF DROPDOWN */
    left: 0;
    box-shadow: 0 3px 4px rgba(0,0,0,0.2);
    z-index: 10000;
  }

  ul.menu-know-your-rights > li:hover > ul.sub-menu,
  ul.menu-know-your-rights > li > ul.sub-menu:hover{
    display: block;
  }
}

ul.menu-know-your-rights > li > ul.sub-menu > li{
  display: block;
}

ul.menu-know-your-rights > li > ul.sub-menu > li > a{
  display: block;
  padding: 10px 25px;
  background-color: #000000; /* NDWA-Black */
  color: #FFFFFF; /* NDWA-White */
  text-decoration: none;
}

ul.menu-know-your-rights > li > ul.sub-menu > li > a:hover{
  color: #ff9d14; /* NDWA-Orange */
  background-color: #000000; /* NDWA-Black */
}

