/* --------------------------------
   Primary style
-------------------------------- */
@media only screen and (max-width: 964px) {
  html,
  body {
    /* you need to set this to assign to the main element a min height of 100% */
    height: 100%;
  }
  /* --------------------------------
     Modules - reusable parts of our design
     -------------------------------- */
  .cd-img-replace {
    /* replace text with a background-image */
    display: inline-block;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  /* --------------------------------
     Main components
     -------------------------------- */
  .cd-main-content {
    backface-visibility: hidden;
    /* set a min-height and a z-index to be sure that the main element
       completely covers the lateral menu
     */
    min-height: 100%;
    padding-top: 50px;
    position: relative;
    /* Force Hardware Acceleration */
    transform: translateZ(0);
    transition-duration: 0.4s;
    transition-property: 0;
    transition-property: 0;
    transition-property: transform;
    z-index: 2;
  }
  /* style menu items which have a submenu  */
  /* search in mobile nav */
  /* SEARCH MAGNIFYING GLASS */
}
@media only screen and (max-width: 964px) and (max-width: 964px) {
  .cd-main-content {
    top: -15px;
  }
}
@media only screen and (max-width: 964px) {
  .cd-main-content.lateral-menu-is-open {
    /* translate to show the lateral menu - all content needs to be put in the
       .cd-main-content to translate
     */
    transform: translateX(-260px);
  }
  header {
    backface-visibility: hidden;
    background: #2b4f8b;
    background-image: url("../images/mobile_header_bg.jpg");
    background-repeat: repeat-x;
    background-size: contain;
    height: 60px;
    left: 0;
    position: fixed;
    top: 0;
    transform: translateZ(0);
    transition-duration: 0.4s;
    transition-property: 0;
    transition-property: 0;
    transition-property: transform;
    width: 100%;
    z-index: 9999;
  }
  header.lateral-menu-is-open {
    /* translate to show the lateral menu */
    transform: translateX(-260px);
  }
  header.is-fixed {
    position: fixed;
  }
  .umb_small {
    margin-left: 10px;
    margin-top: 5px;
    width: 162px;
  }
}
@media only screen and (max-width: 964px) and (min-width: 964px) {
  html * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  *,
  :after,
  :before {
    box-sizing: border-box;
    box-sizing: border-box;
    box-sizing: border-box;
  }
  header {
    height: 70px;
  }
}
@media only screen and (max-width: 964px) {
  #cd-top-nav {
    display: none;
    height: 100%;
    position: absolute;
    right: 120px;
    top: 0;
  }
  #cd-top-nav ul {
    height: 100%;
    padding-top: 18px;
  }
  #cd-top-nav li {
    display: inline-block;
    margin-right: 1em;
  }
  #cd-top-nav a {
    color: #fff;
    display: inline-block;
    font-weight: 600;
    padding: 0.5em;
    text-transform: uppercase;
  }
  #cd-top-nav a.current {
    background-color: #242e30;
  }
  .no-touch #cd-top-nav a:hover {
    color: rgba(255, 255, 255, 0.7);
  }
}
@media only screen and (max-width: 964px) and (min-width: 964px) {
  #cd-top-nav {
    display: block;
  }
}
@media only screen and (max-width: 964px) {
  #cd-menu-trigger {
    background-color: #000034;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
  }
  #cd-menu-trigger .cd-menu-text {
    color: #fff;
    display: none;
    font-weight: 600;
    height: 100%;
    text-transform: uppercase;
  }
  #cd-menu-trigger .cd-menu-icon {
    background-color: #fff;
    bottom: auto;
    /* this span is the central line in the menu menu */
    display: inline-block;
    height: 2px;
    left: 50%;
    position: absolute;
    right: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 18px;
    /* these are the upper and lower lines in the menu menu */
  }
  #cd-menu-trigger .cd-menu-icon:before,
  #cd-menu-trigger .cd-menu-icon:after {
    background-color: inherit;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    width: 100%;
  }
  #cd-menu-trigger .cd-menu-icon:before {
    bottom: 5px;
  }
  #cd-menu-trigger .cd-menu-icon:after {
    top: 5px;
  }
  #cd-menu-trigger.is-clicked .cd-menu-icon {
    background-color: rgba(255, 255, 255, 0);
  }
  #cd-menu-trigger.is-clicked .cd-menu-icon:before,
  #cd-menu-trigger.is-clicked .cd-menu-icon:after {
    background-color: #fff;
  }
  #cd-menu-trigger.is-clicked .cd-menu-icon:before {
    bottom: 0;
    transform: rotate(45deg);
  }
  #cd-menu-trigger.is-clicked .cd-menu-icon:after {
    top: 0;
    transform: rotate(-45deg);
  }
}
@media only screen and (max-width: 964px) and (min-width: 964px) {
  #cd-menu-trigger {
    padding-left: 1.25em;
    width: 110px;
  }
  #cd-menu-trigger .cd-menu-text {
    display: inline-block;
    line-height: 70px;
  }
  #cd-menu-trigger .cd-menu-icon {
    left: auto;
    right: 1.25em;
    transform: translateX(0);
  }
}
@media only screen and (max-width: 964px) {
  #cd-lateral-nav {
    backface-visibility: hidden;
    background-color: #242e30;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
    /* this creates the subtle slide in animation of the navigation */
    transform: translateX(80px);
    transition: transform 0.4s 0s, visibility 0s 0.4s;
    visibility: hidden;
    width: 260px;
    /* the secondary navigation is covered by the main element */
    z-index: 1;
  }
  #cd-lateral-nav .cd-navigation {
    margin: 10px 0 16px;
    padding: 0;
  }
  #cd-lateral-nav .sub-menu {
    display: none;
    padding: 0 10px 20px 15px;
  }
  #cd-lateral-nav a {
    color: #e4eff9;
    display: block;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-weight: 400;
    line-height: 1em;
    padding: 10px 16px 10px 32px;
    text-decoration: none;
  }
  #cd-lateral-nav a.current {
    background-color: #2b4f8b;
    color: #fff;
  }
  .no-touch #cd-lateral-nav a:hover {
    color: #fff;
  }
}
@media only screen and (max-width: 964px) and (min-width: 964px) {
  #cd-lateral-nav .cd-navigation {
    margin: 20px 0;
  }
}
@media only screen and (max-width: 964px) {
  #cd-lateral-nav.lateral-menu-is-open {
    /* smooth the scrolling on touch devices - webkit browsers */
    -webkit-overflow-scrolling: touch;
    transform: translateX(0px);
    transition-duration: 0.4s;
    transition-property: 0;
    transition-property: 0;
    transition-property: transform;
    visibility: visible;
  }
  #cd-lateral-nav .item-no-children > a {
    font-weight: 400;
    position: relative;
    text-transform: uppercase;
  }
  #cd-lateral-nav .item-has-children > a {
    font-weight: 400;
    position: relative;
    text-transform: uppercase;
  }
  #cd-lateral-nav .item-has-children > a:after {
    background: url("../images/icons/cd-arrow.svg") no-repeat center center;
    background-size: 8px 11px;
    bottom: auto;
    content: "";
    display: block;
    height: 11px;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    transition-duration: 0.2s;
    transition-property: 0;
    transition-property: 0;
    transition-property: transform;
    width: 8px;
  }
  #cd-lateral-nav .item-has-children > a.submenu-open:after {
    transform: translateY(-50%) rotate(90deg);
  }
  #cd-lateral-nav .socials {
    padding: 0 32px;
  }
  #cd-lateral-nav .socials:after {
    clear: both;
    content: "";
    display: table;
  }
  #cd-lateral-nav .socials a {
    background-color: #fff;
    background-image: url("../images/icons/cd-socials.svg");
    background-repeat: no-repeat;
    background-size: 128px 64px;
    border-radius: 0.25em;
    float: left;
    height: 32px;
    margin-right: 0.5em;
    padding: 0;
    width: 32px;
  }
  #cd-lateral-nav .socials a.cd-twitter {
    background-position: 0 0;
  }
  #cd-lateral-nav .socials a.cd-facebook {
    background-position: -32px 0;
  }
  #cd-lateral-nav .socials a.cd-rss {
    background-position: -64px 0;
  }
  #cd-lateral-nav .socials a.cd-youtube {
    background-position: -96px 0;
  }
  .no-touch #cd-lateral-nav .socials a:hover {
    background-color: #4e6361;
  }
  .no-touch #cd-lateral-nav .socials a:hover.cd-twitter {
    background-position: 0 -32px;
  }
  .no-touch #cd-lateral-nav .socials a:hover.cd-github {
    background-position: -32px -32px;
  }
  .no-touch #cd-lateral-nav .socials a:hover.cd-facebook {
    background-position: -64px -32px;
  }
  .no-touch #cd-lateral-nav .socials a:hover.cd-google {
    background-position: -96px -32px;
  }
  #cd-lateral-nav .socials a:hover {
    background-color: #7099c3;
  }
  #mobile_search_area {
    clear: both;
    display: block;
    margin-bottom: 30px;
  }
  #mobile_search_box {
    display: block;
    padding: 0px;
    position: relative;
  }
  #mobile_search_box input {
    background: none no-repeat scroll 0.3em center/16px 16px #888;
    border: medium none;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 80%;
    height: 25px;
    margin: 0px 0px 0px 33px;
    opacity: 0.6;
    padding: 2px 0px 2px 22px;
    position: absolute;
    width: 130px;
  }
  #mobile_search_box button {
    background-color: #2b4f8b;
    border: 0px none;
    color: #dee9f4;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    height: 29px;
    margin: 0 0 0 190px;
    opacity: 0.9;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 63px;
  }
  .mglass {
    background-color: #fff;
    border-bottom-right-radius: 0.3em;
    border-top-right-radius: 0.3em;
    height: 0.2em;
    margin-left: 2.7em;
    margin-top: 1.2em;
    position: absolute;
    transform: rotate(45deg);
    width: 0.45em;
  }
  .mglass:before {
    border: 0.13em solid #fff;
    border-radius: 50%;
    content: "";
    display: block;
    height: 0.5em;
    left: -0.7em;
    position: absolute;
    top: -0.35em;
    width: 0.5em;
  }
}