﻿/***** Start of primary nav ******/
#menu-button {
  display: none;
}
nav.mobile {
  display: none;
}

nav.primary {
  font-weight: 700;
  font-style: normal;
  align-self: center;
  padding: 25px 0 25px 150px;
  font-family: "Barlow", sans-serif;
}
nav.primary ul * {
  font-size: 16px;
}
/* nav.primary ul {} */
nav.primary ul li {
  font-style: normal;
  background-color: unset;
  padding: 5px 10px;
  position: relative;
  color: #000000;
  font-weight: 800;
  position: relative;
  transition: 0.3s ease all;
}
nav.primary ul li:hover {
  color: #ffffff;
  background-color: #cdc190;
}
/* This controls the Primary nav dropdowns for sub-links. Should not have to edit this too much */
nav.primary ul ul {
  display: none;
  position: absolute;
  left: -1px;
  top: 27px;
}
nav.primary ul ul ul {
  position: absolute;
  left: 100%;
  top: 0;
}
nav.primary ul li:hover > ul {
  position: absolute;
  left: 0;
  top: 32px;
  display: block;
  line-height: 18px;
  z-index: 100;
  width: max-content;
  padding-top: 10px;
  background-color: #ffffff;
}
nav.primary ul li ul li:hover {
  background-color: #cdc190;
  color: #ffffff;
}
nav.primary ul li ul li:hover > ul {
  margin-top: -10px;
  padding-top: 0;
}
nav.primary ul ul li {
  float: none;
  position: relative;
  margin: 5px;
  display: block;
  background-color: #ffffff;
  color: #000000;
  font-size: 17px;
}

/******** End of primary Nav ***************/


@media screen and (max-width: 1375px) {
  /*==============================
	Mobile Nav Styles			
================================*/
  nav.primary {
    display: none;
  }
  #menu-button {
    font-size: 24px;
    position: relative;
    line-height: 36px;
    z-index: 400;
    color: #000000;
    text-align: right;
    display: flex;
    align-items: flex-end;
    margin-left: auto;
  }
  #menu-button a {
    font-size: 28px;
    padding: 25px 0 25px;
    text-decoration: none;
    font-weight: normal;
  }
  nav.mobile {
    font-weight: 700;
    font-style: normal;
    display: block;
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #ffffff;
    z-index: 1000; /* needs to be higher than #menu-button, adjust as needed */
    overflow: auto;
  }
  /* MENU HEADER SOCIAL MEDIA */
  nav.mobile .social-media {
    position: absolute;
    display: inline-block;
    font-size: 16px;
    padding: 0 0 0 15px;
    color: #000000 !important;
    top: -34px;
    left: 0;
    font-size: 14px;
    font-weight: bold;
  }

  nav.mobile .social-media a:link,
  nav.mobile .social-media a:visited {
    color: #000000;
    text-decoration: none;
  }
  nav.mobile .social-media a:hover,
  nav.mobile .social-media a:active {
    color: #000000;
    text-decoration: underline;
  }

  /* MENU HEADER STYLES */
  nav.mobile .mobile_top {
    position: relative;
    display: block;
    padding: 0;
    margin: 50px 0 10px 0;
    color: #000000;
    background-color: #ffffff;
    font-size: 18px;
    font-weight: 400;
  }
  nav.mobile .sub-tab li {
    padding-left: 15px;
    border-left: 1px solid;
    margin-left: 10px;
  }

  /* MENU CLOSE 'X' BUTTON */
  nav.mobile .menu-toggle {
    position: absolute;
    padding: 2px 8px 6px;
    font-size: 24px;
    font-weight: bold;
    background: #2c2f77;
    color: #ffffff;
    text-decoration: none;
    top: -38px;
    right: 13px;
  }
  nav.mobile .menu-toggle:hover {
    /* Menu close button on hover */
    background: #ffffff;
    color: #2c2f77;
  }

  /* MENU LIST STYLE */
  nav.mobile .mobile-sub-nav {
    padding-left: 15px;
  }
  nav.mobile ul {
    list-style: none;
    font-weight: 600;
    margin: 0;
  }

  /* FIRST LEVEL */
  nav.mobile ul li {
    position: relative;
    display: block;
    font-size: 16px;
    padding: 10px 10px 5px;
    color: #000000;
    text-decoration: none;
    padding-left: 10px;
    text-align: left;
    transition: background 0.5s ease;
  }
  nav.mobile ul li ul {
    background-color: #ffffff;
    color: #000000;
  }

  nav.mobile ul li ul li:hover {
    background-color: #ffffff;
    color: #000000;
  }

  /* SECOND LEVEL */
  nav.mobile ul li li:last-child {
    border: none;
  }
  nav.mobile ul li li {
    position: relative;
    display: block;
    color: #000000;
    text-decoration: none;
  }

  /* THIRD LEVEL */
  nav.mobile ul li li li:last-child {
    border: none;
  }
  nav.mobile ul li li li {
    position: relative;
    display: block;
    color: #ffffff;
    text-decoration: none;
  }

  nav.mobile ul li .click {
    /* dropdown menu indicator arrow be sure to include this image with your image files */
    cursor: pointer;
    color: #000000;
  }
  .nav-footer {
    color: #ffffff;
    position: absolute;
    font-size: 14px;
    line-height: 16px;
    padding: 15px 10px;
    background-color: #2c2f77;
    font-family: roboto, sans-serif;
    margin-top: 30px;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    bottom: 0;
    right: 0;
    left: 0;
  }

  /* FONT AWESOME ICONS */
  nav.mobile ul li .fa {
    width: 25px;
    font-weight: 100;
    padding: 8px 3px;
    margin: 0 6px 0 0;
    text-align: center;
    background: #292929;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  }

  nav.mobile ul li .fa-chevron-down {
    color: #ffffff;
  }
}
