header {
  z-index: 1000;
  position: relative;
  padding: 20px;
}

header a {
  color: #000;
}

header .main-container.content-area {
  height: 40px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: auto;
}

header::before {
  top: 0;
  left: 0;
  display: block;
  height: 6px;
  z-index: 1;
  width: 100%;
  position: absolute;
  content: " ";
  background: linear-gradient(
    90deg,
    #fcf7f4 0%,
    #feaec7 6.63%,
    #75d5ed 13.64%,
    #603814 19.6%,
    #603814 22.18%,
    #010101 27.38%,
    #ec222a 32.46%,
    #f79522 50.87%,
    #f7ee23 64.06%,
    #3b9a46 74.48%,
    #2364b0 88.02%,
    #6d2b7c 100%
  );
}

header .report-incident {
  margin-left: 50px;
}

header .equity-logo-link {
  position: relative;
  display: inline-block;
  width: 190px;
  height: 36px;
  background: url("../img/logo_UCLA_small.png") no-repeat 0 0;
  overflow: hidden;
  font-size: 14px;
  color: black;
  padding-left: 78px;
  font-family: "HelveticaNow";
  font-weight: normal;
  text-decoration: none;
  letter-spacing: -0.3px;
  line-height: 1;
  display: inline-flex;
  align-items: flex-end;
}

header .equity-logo-link:hover {
  opacity: 0.65;
  text-decoration: none;
}
header .main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .main-nav nav ul {
  display: flex;
  align-items: center;
}

header .main-nav nav a {
  color: #000;
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

header .main-nav nav a:focus {
  outline: 1px dotted currentColor;
  outline-offset: -4px;
}

header .main-nav .primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main links */
header .main-nav .primary-menu > li {
  margin-left: 7px;
  position: relative;
}

header .main-nav .primary-menu > li > a {
  color: #000;
  display: block;
  padding: 4px 14px;
}

@media (max-width: 1040px) {
  header .main-nav .primary-menu > li > a {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* Active state */
header .main-nav .primary-menu > li.current-menu-item > a,
header .main-nav .primary-menu > li.current-menu-ancestor > a,
header .main-nav .primary-menu > li.current-menu-parent > a {
  background-color: #000;
  color: #fff;
}

/* Hover state */
header .main-nav .primary-menu > li > a:hover {
  background-color: #505050;
  color: #fff;
  text-decoration: none;
}

/* Padding to move mouse over to submenu */
header .main-nav .primary-menu > li > a:hover::before {
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 100%;
  width: 100%;
}

/* Dropdown icon */
header .main-nav .primary-menu > li.menu-item-has-children > a::after {
  content: "\A";
  display: inline-block;
  width: 8px;
  height: 8px;
  text-indent: 0;
  position: relative;
  border-right: 2px currentColor solid;
  border-bottom: 2px currentColor solid;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-top: 6px;
}

/* Dropdown links */
header .main-nav .primary-menu > li > .sub-menu {
  display: none;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  left: 0px;
  margin: 0;
  padding: 14px 0px;
  position: absolute;
  top: 34px;
  width: 270px;
  z-index: 2;
}

header .main-nav .primary-menu > li > .sub-menu::after {
  border: 1px solid #e9e9e9;
  border-radius: inherit;
  bottom: 0;
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
}

@media (min-width: 1111px) {
  header .main-nav .primary-menu > li > .sub-menu {
    width: 300px;
  }
}

@media (min-width: 1280px) {
  header .main-nav .primary-menu > li > .sub-menu {
    width: 330px;
  }
}

@media (min-width: 1330px) {
  header .main-nav .primary-menu > li > .sub-menu {
    width: 370px;
  }
}

/* Submenu link */
header .main-nav .primary-menu > li > .sub-menu > li {
  position: relative;
  z-index: 1;
}

header .main-nav .primary-menu > li > .sub-menu > li > a {
  color: #000;
  padding: 8px 22px;
  position: relative;
  z-index: 1;
}

/* Hover state */
header .main-nav .primary-menu > li > .sub-menu > li > a:hover {
  background-color: #e6eff9 !important;
  text-decoration: none;
}

/* Active state */
header .main-nav .primary-menu > li > .sub-menu > li.current-menu-item > a {
  background-color: #f5f5f5;
}

/* 2nd layer submenu links */
header .main-nav .primary-menu > li > .sub-menu > li > .sub-menu {
  margin: 0;
}

header .main-nav .primary-menu > li > .sub-menu > li > .sub-menu > li > a {
  font-weight: 300;
  padding: 8px 22px 8px 38px;
}

/* Hover state */
header
  .main-nav
  .primary-menu
  > li
  > .sub-menu
  > li
  > .sub-menu
  > li
  > a:hover {
  background-color: #e6eff9 !important;
  text-decoration: none;
}

/* Active state */
header
  .main-nav
  .primary-menu
  > li
  > .sub-menu
  > li
  > .sub-menu
  > li.current-menu-item
  > a {
  background-color: #f5f5f5;
}

header ul li:before {
  display: none;
}

/* Mobile nav */
header .mobile-nav {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Main link */
header .mobile-nav .primary-menu > .menu-item > a {
  font-family: Helvetica Neue;
  font-style: normal;
  font-weight: 500;
  font-size: 35px;
  line-height: 31px;
  color: #000;
  padding: 0.6em 20px;
  text-decoration: none;
}

/* Submenu */
header .mobile-nav .primary-menu > .menu-item > .sub-menu {
  margin: 0;
}

/* Submenu Links */
header .mobile-nav .primary-menu > .menu-item > .sub-menu .menu-item a {
  font-family: Helvetica Neue;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  padding: 16px 0 14px 33px;
}

/* Hover state */
header .mobile-nav .primary-menu > .menu-item > .sub-menu .menu-item a:hover {
  background-color: #e6eff9 !important;
  color: #000;
  text-decoration: none;
}

/* Active state */
header
  .mobile-nav
  .primary-menu
  > .menu-item
  > .sub-menu
  .menu-item.current-menu-item
  a {
  background-color: #f5f5f5;
}

/* Second submenu */
header
  .mobile-nav
  .primary-menu
  > .menu-item
  > .sub-menu
  .menu-item
  > .sub-menu {
  margin-left: 25px;
}

/* Second submenu links */
header
  .mobile-nav
  .primary-menu
  > .menu-item
  > .sub-menu
  .menu-item
  > .sub-menu
  .menu-item
  a {
  font-weight: 300;
}

.report-incident {
  background: #ffee8d;
  color: black;
  font-weight: 500;
  font-size: 14px;
  line-height: 0.9;
  padding: 12px 20px;
  text-decoration: none !important;
}

.report-incident:hover {
  background-color: #000;
  color: #fff;
}

.report-incident:focus {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  outline: 1px dotted #fff !important;
  outline-offset: -6px;
}

#skip-nav-desktop-search {
  display: none !important;
}

@media (min-width: 991px) {
  #skip-nav-mobile-search {
    display: none !important;
  }

  #skip-nav-desktop-search {
    display: block !important;
  }
}

@media screen and (max-width: 1400px) {
  header nav {
    margin-left: 23px;
  }

  header nav #menu-primary > li.menu-item {
    margin-left: 15px;
  }
}

@media only screen and (max-width: 1240px) {
  header nav #menu-primary > li.menu-item {
    margin-left: 12px;
  }
}

@media screen and (max-width: 1110px) {
  header .report-incident {
    padding: 12px 12px;
    margin-left: 26px;
  }
  header .main-container {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 990px) {
  header .main-container .main-nav {
    display: none;
  }

  header .main-container .left {
    width: 100%;
  }

  header .main-container.content-area {
    margin: 0 auto;
  }

  header .mobile-nav {
    display: block;
  }

  header .mobile-nav .left {
    width: 50%;
  }

  header .mobile-nav .left a .drop-arrow {
    margin-left: 4px;
  }

  header .mobile-nav .right {
    width: 50%;
  }

  header .mobile-nav .right a {
    background: #ffd100;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
  }

  header .mobile-nav .right a:hover {
    background: #ffe500;
  }

  header .mobile-nav a.menu-btn {
    font-weight: 500;
    font-size: 14px;
    display: block;
    height: 36px;
    line-height: 36px;
    padding: 0 34px 0 23px;
    cursor: pointer;
  }

  header .mobile-nav a.menu-btn .show {
    display: none;
  }

  header .mobile-nav a.menu-btn.show .hide {
    display: none;
  }

  header .mobile-nav a.menu-btn.show .show {
    display: inline;
  }

  header .mobile-nav a.menu-btn:hover {
    text-decoration: none;
  }

  header .mobile-nav a.menu-btn .bar {
    height: 2px;
    width: 25px;
    display: block;
    position: absolute;
    background: black;
    right: 0;
    top: 50%;
  }

  header .mobile-nav a.menu-btn .bar.bar-1 {
    top: 50%;
  }

  header .mobile-nav a.menu-btn .bar.bar-2 {
    transform: translateY(-6px);
  }

  header .mobile-nav a.menu-btn .bar.bar-3 {
    transform: translateY(6px);
  }

  header .mobile-nav nav {
    margin-left: 0px;
    margin-top: 0;
    display: none;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100% - 80px - 36.59px);
    overflow: auto;
    width: 100%;
    z-index: 100;
  }

  header .mobile-nav nav.show {
    display: block;
  }

  header .mobile-nav .primary-menu > li {
    border-top: 1px solid #bcbcbc;
  }
  header .mobile-nav .primary-menu > li:first-child {
    border-top: none;
  }
  header .mobile-nav .primary-menu > li.menu-item-has-children:after {
    display: none;
  }

  header .mobile-nav .primary-menu li {
    padding: 0px 0px 0px 0px;
    cursor: pointer;
    position: relative;
  }

  header .mobile-nav .primary-menu li a {
    display: block;
    text-align: left;
  }

  header .mobile-nav .primary-menu li a:hover {
    text-decoration: none;
  }

  header .mobile-nav .primary-menu li button.submenu-btn {
    width: 50px;
    height: 60px;
    text-indent: 100px;
    overflow: hidden;
    display: block;
    position: absolute;
    right: 5px;
    top: 5px;
    white-space: nowrap;
    z-index: 1;
    background: none;
  }

  header .mobile-nav .primary-menu li button.submenu-btn:focus {
    outline: 1px dotted black;
  }

  header .mobile-nav .primary-menu li button.submenu-btn::before {
    content: "\A";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 4px solid #e2e2e2;
    transform: rotate(-45deg);
    right: 15px;
    top: 21px;
    border-width: 0 3px 3px 0;
  }

  header .mobile-nav .primary-menu > li::after {
    display: block;
  }

  header .mobile-nav .primary-menu > li:first-child {
    border-top: none;
  }

  header .mobile-nav .primary-menu > li > ul {
    display: none;
  }

  header .mobile-nav .primary-menu li.give-now {
    padding: 0;
    border-top: none;
  }

  header .mobile-nav .primary-menu li.give-now a {
    padding-top: 13px;
    padding-bottom: 13px;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    -khtml-border-radius: 0;
  }

  header .mobile-nav .primary-menu .sub-menu.show {
    display: block;
  }
}

@media screen and (max-width: 300px) {
  header {
    padding: 20px 8px;
  }

  header .equity-logo-link {
    transform: scale(0.7);
    transform-origin: left;
    width: 70%;
    overflow: visible;
  }

  header .equity-logo-link .logo {
    position: absolute;
    bottom: -30px;
    left: 0;
  }

  header .mobile-nav a.menu-btn {
    transform: scale(0.8);
    transform-origin: right;
  }

  header .mobile-nav nav {
    top: 120px;
  }

  header nav a {
    font-size: 1rem !important;
  }
}
