/****************************************
* Header
****************************************/

header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,.8);
  background-repeat: ;
  background-size: ;
  background-position: ;
  box-shadow: none;
  width: 100%;
  max-width: 1008px;
  height: auto;
}

.action-bar-active header {
  top: 32px;
}

.billboard {
  padding-top: calc(138px + 2rem);
}

header .grid.main {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  padding: 1rem 2rem;
}

header a#logo img {
  width: auto;
  max-height: 85px;
  margin: 0;
}

header .navigation-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
}

/****************************************
* Navigation
****************************************/

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

nav li:last-of-type {
  margin-left: 2rem;
}

nav a {
  font-family: Montserrat;
  color: #ed6a31;
  font-size: 17px;
  font-weight: 400;
  line-height: 1em;
  letter-spacing: 0;
}

nav a:hover {
  color: #000000;
}

nav .login {
  padding: .5rem .75rem;
  border-radius: 20px;
}

.school-area {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-top: .5rem;
}

.school-area form {
  display: inline-block;
  width: 100%;
}

.school-area form .wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  background-color: #000000;
  padding: 1rem 2rem;
}

.school-area form label {
  display: inline-block;
  margin-right: .5rem;
  font-weight: 700;
  color: #ffffff;
}

.school-area .styled-select {
  position: relative;
  flex-grow: 1;
}

.school-area .styled-select .down-arrow {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%) rotate(45deg);
  border: solid ;
  border-width: 0 3px 3px 0;
  padding: 3px;
}

.school-area .styled-select select {
  appearance: none;
  -moz-appearance: none;
  margin: 0;
  background-color: #ffffff;
  border: none;
  width: 100%;
  padding: 5px 28px 5px 10px;
  font-weight: 700;
  color: ;
  text-overflow: ellipsis;
  cursor: pointer;
}

/****************************************
* Mobile
****************************************/

@media (max-width: 1007px) {

  /****************************************
  * Header
  ****************************************/

  header .grid.main {
    flex-direction: column;
    grid-gap: 0;
  }

  header .grid.main {
    padding: 0 1rem;
    min-height: 56px;
  }

  header .navigation-side {
    display: block;
    width: 100%;
  }

  header {
    transform: none;
    padding: 1rem 0;
    min-height: 90px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  header .logo-side {
    display: flex;
    flex-grow: 1;
    align-items: center;
    max-width: 100%;
    padding: 0 5rem 0 1rem;
  }

  header a#logo img {
    max-height: 55px !important;
  }

  .billboard {
    padding-top: calc(90px + 2rem);
  }

  /****************************************
  * Navigation
  ****************************************/

  nav {
    position: absolute;
    top: 74px;
    right: 0;
    background: #FFFFFF ;
    box-shadow: 0px 3px 5px -5px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-height: 0;
    overflow: hidden;
  }

  nav.off {
    max-height: 0 !important;
  }

  nav.animatable {
    transition: max-height 0.5s ease-out;
  }

  nav ul > li,
  nav ul > li > a,
  nav ul > li > a.button {
    font-size: 16px;
    color: ;
  }

  nav ul > li > a:hover,
  nav ul > li > a.button:hover {
    color: ;
  }

  nav ul > li > a.button {
    display: inline-block;
  }

  nav ul > li > a {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
  }

  #nav-toggle {
    position: absolute;
    padding: 1rem;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    border-radius: 3px;
    color: #ffffff;
    background: #ed6a31;
    font-weight: 400;
    font-size: 16px;
    line-height: 1em;
    font-family: Montserrat;
    text-transform: uppercase;
    letter-spacing: 0;
    cursor: pointer;
    width: 49px;
    text-align: center;
  }

  nav div.navigation {
    padding: 1rem 1rem .5rem 1rem;
    max-height: calc(100vh - 91px); /* 91px = mobile header height */
    overflow: auto;
  }

  nav div.navigation ul {
    display: block;
  }

  nav div.navigation ul > li {
    margin-bottom: 0.5rem;
    text-align: center;
  }

  nav div.navigation > ul > li {
    margin: 0 0 0.5rem 0;
  }

  nav .school-area {
    justify-content: center;
    margin: 0;
  }

  nav form .wrapper {
    display: block;
  }

  nav form label {
    margin: 0 0 .25rem 0;
    width: 100%;
    text-align: center;
  }

  nav .styled-select select {
    text-align: center;
  }
}

/****************************************
* Large Phone
****************************************/

@media(min-width: 567px) and (max-width: 1007px) {
  header nav {
    max-width: 278px;
  }

  nav div.navigation {
    padding: 1rem;
  }
}

/****************************************
* Tablet
****************************************/

@media(min-width: 768px) {
  .billboard {
    padding-top: calc(138px + 4rem);
  }
}