@font-face {
  font-family: 'RubikRegular';
  src: url('fonts/Rubik-Regular.woff') format('woff');
}

@font-face {
  font-family: 'RubikMedium';
  src: url('fonts/Rubik-Medium.woff') format('woff');
}

#header,
#footer {
  margin: 0;
  font-size: 16px;
  line-height: 120%;
  box-sizing: initial;
  background-color: #fff;
}

.container {
  max-width: 1160px;
  margin: auto;
  position: relative;
}

.brand-background {
  background-color: #d42121;
}

#header-wrap {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
  margin-bottom: 15px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#header {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  clear: both;
  font-family: 'RubikMedium;', sans-serif;
  background: #ffffff;
  z-index: 1;
  max-height: 100px;
  /*box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.12);*/
  /*box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);*/
}

@media screen and (min-width: 992px) {
  #header {
    border-top: 5px #d42121 solid;
    max-height: 110px;
  }

  #header:before {
    display: inline-block;
    position: absolute;
    top: 0px;
    bottom: 0;
    right: 0;
    left: -90px;
    width: 1000px;
    height: 114px;
    background-color: #fff;
    content: '';
    z-index: 0;
    border-top: 5px #d42121 solid;
    /*box-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);*/
  }
}

#wrapper_logo {
  display: inline-block;
  padding: 10px;
  padding-bottom: 0;
  padding-left: 10px;
  padding-top: 0;
  margin-top: 40px;
}

#wrapper_logo img {
  width: 100px;
}

#wrapper_logo:after {
  display: inline-block;
  content: '';
  background-color: #d8d8d8;
  width: 3px;
  height: 35px;
  left: 10px;
  top: -5px;
  position: relative;
}

@media screen and (min-width: 1160px) {
  #header:after {
    display: inline-block;
    position: absolute;
    top: 0px;
    right: -600px;
    width: 800px;
    height: 75px;
    background-color: #f5f5f5;
    content: '';
    z-index: 0;
    border-top: 45px #d42121 solid;
  }
}

@media screen and (min-width: 1560px) {
  #header:after {
    right: -400px;
  }
}

@media screen and (min-width: 1960px) {
  #header:after {
    right: -300px;
  }
}

@media screen and (min-width: 2160px) {
  #header:after {
    right: -200px;
  }
}

@media screen and (min-width: 2350px) {
  #header:after {
    right: -100px;
  }
}
@media screen and (min-width: 2560px) {
  #header:after {
    right: 0px;
  }
}

@media screen and (min-width: 3000px) {
  #header:after {
    width: 1000px;
  }
}

@media screen and (min-width: 640px) {
  #wrapper_logo img {
    width: 140px;
  }
}

@media screen and (min-width: 992px) {
  #wrapper_logo {
    margin-top: 0;
    padding: 30px;
    padding-top: 30px;
  }

  #wrapper_logo img {
    width: 210px;
  }
}

@media screen and (min-width: 992px) {
  #wrapper_title:before {
    vertical-align: middle;
  }

  #wrapper_title h2 {
    width: 70%;
    line-height: 28px;
    vertical-align: middle;
    margin-top: 0;
  }

  #wrapper_logo:after {
    left: 21px;
  }
}

#wrapper_title h2 {
  font-family: RubikMedium, sans-serif;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 0;
  display: inline-block;
}

@media screen and (min-width: 640px) {
  #wrapper_title h2 {
    font-size: 18px;
    width: 90%;
    line-height: 28px;
    vertical-align: middle;
    margin-top: 0;
  }
}

@media screen and (min-width: 1100px) {
  #wrapper_title h2 {
    width: 90%;
    font-size: 24px;
  }
}

#wrapper_title {
  color: #104254;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  padding-left: 10px;
  line-height: 1.25em;
  width: 100%;
}

#wrapper_title > a {
  color: inherit;
  text-decoration: unset;
}

#wrapper_title_wrap {
  height: 100%;
  top: -20px;
  line-height: 80px;
  width: 60%;
  position: relative;
  display: inline-block;
}

#wrapper_title :hover {
  color: #d42121;
}

.wrapper_bg {
  background-color: #f5f5f5;
  display: block;
  width: 100%;
  position: absolute;
  height: 38px;
}

@media screen and (min-width: 992px) {
  .wrapper_bg {
    background-color: transparent;
  }
}

#wrapper_link a {
  color: white;
  height: 20px;
  display: block;
  background-color: #d42121;
  text-decoration: none;
  padding: 8px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  font-size: 12px;
  font-family: RubikMedium, sans-serif;
  line-height: 19px;
}

#wrapper_link a:hover {
  background-color: #104254;
}

@media screen and (min-width: 992px) {
  #wrapper_link a {
    left: inherit;
    right: 0 !important;
    top: 0;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 16px;
    line-height: 18px;
  }
}

#wrapper_link a:after {
  display: inline-block;
  content: '';
  width: 15px;
  height: 15px;
  background: url('white-arrow-icon.png');
  background-size: contain;
  margin-left: 10px;
}

#external_link a {
  color: white;
  background-color: #f5f5f5;
  text-decoration: none;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 0;
  color: #104254;
  z-index: 2;
  font-family: RubikRegular, sans-serif;
  font-size: 12px;
}

@media screen and (min-width: 992px) {
  #external_link a {
    left: inherit;
    width: 200px;
    top: 32px;
    padding: 30px;
    padding-right: 80px;
    font-size: 16px;
  }
}

#external_link a:after {
  display: inline-block;
  content: '';
  width: 15px;
  height: 15px;
  background: url('blue-arrow-icon.png');
  background-size: contain;
  margin-left: 10px;
}

#external_link :hover {
  color: #d42121;
}

#footer {
  background-color: #242424;
  width: 100%;
  color: white;
  font-size: 16px;
  margin-top: 70px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 5px #d42121 solid;

  width: 100%;
}

#footer h3 {
  margin-top: 0;
}

#footer a,
#bottom_footer a {
  color: #d5d5d5;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}

#footer a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

#footer ul {
  padding-left: 0;
}

#footer li {
  padding-bottom: 5px;
  background: url('caret.svg') no-repeat;
  background-position: -5px 2px;
  background-size: 15px 15px;
  padding-left: 20px;
  list-style-type: none;
  line-height: 120%;
}

#footer-logo {
  background-color: #242424;
  width: 205px;
  height: 30px;
  display: inline-block;
  float: left;
  margin-top: -15px;
  margin-left: -20px;
  padding: 20px;
  border-top: #d42121 4px solid;
}

.footer-column.first {
  width: 200px;
  margin-top: -10px;
}
.footer-column.second {
  width: 160px;
  margin-top: -10px;
}

#bottom_footer {
  padding: 24px;
  background-color: black;
  color: white;
  font-family: RubikRegular, sans-serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

#bottom_footer ul {
  padding: 0;
  margin: 0;
  display: inline-block;
  list-style: none;
}

#bottom_footer li {
  display: block;
  margin-left: 0;
  font-size: 14px; /* Counteracting a 3rd Party Style */
}

#bottom_footer a:hover {
  text-decoration: underline;
}

#bottom_footer li:before {
  content: '•';
  color: white;
  font-size: 25px;
  line-height: 16px;
  margin-right: 12px;
  position: relative;
  top: 4px;
}

.footer-column {
  display: inline-block;
  padding: 20px;
  padding-top: 0;
}

.copyright {
  display: block;
}

@media screen and (min-width: 640px) {
  .footer-column.first {
    width: 300px;
    margin-top: 10px;
  }

  .footer-column.second {
    width: 300px;
    position: relative;
    top: 10px;
  }

  #footer {
    border-top: none;
  }

  #footer-logo {
    margin-top: -100px;
  }

  .copyright {
    display: inline-block;
    margin-left: 20px;
  }

  #bottom_footer li {
    display: inline-block;
    margin-left: 8px !important;
  }
}

@media screen and (min-width: 992px) {
  #footer-logo {
    margin-top: -84px;
    margin-left: 0;
    padding-left: 0px;
    padding-right: 48px;
    padding-top: 26px;
  }

  #footer-logo:before {
    content: '';
    position: absolute;
    top: -74px;
    bottom: 0;
    right: 0;
    left: -980px;
    width: 1000px;
    background-color: #252525;
    z-index: 0;
    border-top: #d42121 4px solid;
  }
}
