/*--------------------------------------------------------------
7. Header
----------------------------------------------------------------*/
.cs_animo_links {
  > li {
    > a {
      line-height: 16px;
      transition: initial;

      .cs_animo_text {
        display: flex;
        overflow: hidden;
        text-shadow: 0 16px 0 currentColor;
        transition: all 0.4s ease;

        span {
          display: block;
          backface-visibility: hidden;
          transition: all 0.4s ease;
          $i: 1;

          @while $i < 50 {
            &:nth-child(#{$i}) {
              transition-delay: $i / 35 + s;
            }

            $i: $i + 1;
          }
        }
      }
      &:hover {
        span {
          transform: translateY(calc(16px * -1));
        }
        .cs_animo_text {
          transform: translateY(-2px);
        }
      }
    }
  }
}
.cs_site_header {
  position: relative;
  z-index: 101;
}

.cs_site-branding {
  display: inline-block;
  max-width: 180px;
}
.cs_site_header {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0px;
  transition: all 0.4s ease;
}
.cs_site_header.cs_style1 {
  .cs_main_header_in,
  .cs_top_header_in {
  /*  display: flex; */
  display: block;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 90px;
    position: relative;
  }
  .cs_main_header_right {
  /*  display: flex;
    align-items: center;*/
    height: 100%;
    display: block;
        height: 100%;
        float: right;
  }
}
.cs_nav + .cs_toolbox {
  margin-left: 55px;
}
.cs_site_header.cs_style1 {
  &.cs_sticky_active {
    background-color: $white;
    box-shadow: 0 10px 10px -10px rgba(33, 43, 53, 0.1);
  }

  .cs_icon_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
    color: $primary;
    margin-right: -10px;
    .cs_icon_btn_in {
      width: 25px;
      height: 20px;
      line-height: 0;
      cursor: pointer;
      position: relative;
      text-align: left;
      overflow: hidden;
      span {
        display: inline-block;
        position: absolute;
        height: 3px;
        width: 100%;
        border-radius: 0;
        background-color: currentColor;
        color: inherit;
        vertical-align: top;
        transition: 0s ease-in-out;
        border-radius: 6px;
        transition: 0.3s ease-in-out;
        &:nth-child(1) {
          transform: translate(0, -7px);
          width: calc(100% - 10px);
        }
        &:nth-child(2) {
          transform: translate(0, 0);
          width: 100%;
        }
        &:nth-child(3) {
          transform: translate(0, 7px);
          width: calc(100% - 7px);
        }
        &:nth-child(4) {
          transform: translate(0, 14px);
          width: calc(100% - 13px);
        }
      }
    }
    &:hover {
      .cs_icon_btn_in {
        span {
          transition: 0.3s ease-in-out;
          &:nth-child(1) {
            transform: translate(0, 0);
          }
          &:nth-child(2) {
            transform: translate(0, 7px);
            width: 100%;
          }
          &:nth-child(3) {
            transform: translate(0, 14px);
          }
          &:nth-child(4) {
            transform: translate(0, 21px);
          }
        }
      }
    }
  }

  .cs_action_box {
    display: flex;
    align-items: center;
    .cs_action_value {
      margin-left: 15px;
    }
    > * {
      &:not(:last-child) {
        margin-right: 35px;
      }
    }
  }
  .cs_btn {
    padding: 13px 15px;
  }
}

.cs_site_header_full_width .container {
  max-width: 100%;
  padding: 0 100px;
}

.cs_site_header_style1 {
  border-bottom: 1px solid #1a188d;

  .cs_main_header_right {
    display: flex;
    align-items: center;
  }

  .cs_nav + .cs_header_toolbox.cs_center {
    margin-left: 35px;
  }

  .cs_nav .cs_nav_list > li.current-menu-item > a:before {
    bottom: -4px;
    background-color: $white;
  }
}
.cs_side_header {
  position: fixed;
  top: 0;
  right: 0px;
  width: 100%;
  z-index: 1000;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  > .container {
    height: 100%;
  }
  .cs_side_header_overlay {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 100%;
    transform: scale(0.04), translateY(9999px);
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background: #191919;
    cursor: zoom-out;
  }
  .cs_close {
    opacity: 0;
    transform: rotate(-180deg) scale(0.2);
  }
  &.active {
    opacity: 1;
    visibility: visible;
    .cs_side_header_overlay {
      animation: hanburgerEffect 0.8s ease-out forwards;
      height: 100%;
    }
    .cs_close {
      opacity: 1;
      transition-delay: 1s;
      transform: rotate(0deg) scale(1);
    }
    .cs_side_header_shape {
      opacity: 1;
      top: -200px;
      right: -200px;
      transition-delay: 0.3s;
      @media (max-width: 1199px) {
        top: -150px;
        right: -150px;
      }
    }
  }
}
.cs_side_header_shape {
  position: absolute;
  height: 500px;
  width: 500px;
  border-radius: 50%;
  background-color: #5a5959;
  right: -400px;
  top: -400px;
  transition: all 0.4s ease;
  opacity: 0;
  z-index: 2;
  @media (max-width: 1199px) {
    width: 260px;
    height: 260px;
  }
}
.cs_close {
  position: fixed;
  right: 110px;
  top: 110px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  z-index: 2;
  z-index: 100;
  transition: all 0.4s ease;
  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    left: 0;
    top: 48%;
    margin-left: 0;
    margin-top: 0;
    transform: rotate(-45deg);
    transition: all 0.4s ease;
  }
  &::before {
    transform: rotate(45deg);
  }
  &:hover {
    transform: scale(1.05);
    &::before,
    &::after {
      background-color: #ff4a17;
    }
  }
  @media (max-width: 1199px) {
    right: 20px;
    top: 20px;
  }
}
.cs_side_header_in {
  position: relative;
  z-index: 10;
  transition: all 0.4s ease;
  transition-delay: 0.6s;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 230px;
  @media (max-width: 1199px) {
    padding-top: 100px;
    padding-bottom: 50px;
  }
}
.cs_nav_2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.6em;
  @media (max-width: 991px) {
    font-size: 24px;
  }
  .cs_animo_links {
    > li {
      > a {
        line-height: 1.6em;
        text-transform: uppercase;

        .cs_animo_text {
          text-shadow: 0 40px 0 currentColor;
        }
        &:hover {
          .cs_animo_text span {
            transform: translateY(calc(40px * -1));
          }
        }
      }
    }
  }
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    ul {
      padding-left: 25px;
      display: none;
      li {
        margin-top: 10px;
      }
    }
  }
  a {
    &:hover {
      color: #fff;
    }
  }
  .cs_nav_list {
    > li {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      > a {
        order: 1;
      }
      > ul {
        order: 3;
        width: 100%;
      }
      > span {
        order: 2;
      }
      &:not(:last-child) {
        margin-bottom: 50px;
        @media (max-width: 991px) {
          margin-bottom: 15px;
        }
      }
    }
  }
  .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    > a {
      order: 1;
    }
    > ul {
      order: 3;
      width: 100%;
    }
    > span {
      order: 2;
    }
  }
  .cs_munu_dropdown_toggle {
    display: inline-flex;
    height: 9px;
    width: 9px;
    border: 2px solid #fff;
    transform: rotate(45deg);
    border-left: none;
    border-top: none;
    border-left: none;
    border-top: none;
    position: relative;
    top: -2px;
    margin-left: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    &.active {
      transform: rotate(-135deg);
      top: 2px;
    }
    @media (max-width: 1199px) {
      padding: 0 !important;
      span {
        display: none;
      }
    }
  }
}
@keyframes hanburgerEffect {
  0% {
    opacity: 0;
    transform: scale(0.04) translateY(300%);
  }

  40% {
    transition: ease-out;
    transform: scale(0.04) translateY(0);
  }

  60% {
    opacity: 1;
    transform: scale(0.02) translateY(0);
  }

  61% {
    transform: scale(0.04);
  }

  99.9% {
    height: 0;
    padding-bottom: 100%;
    border-radius: 100%;
  }

  to {
    transform: scale(2);
    height: 100%;
    padding-bottom: 0;
    border-radius: 0;
  }
}
@media screen and (max-width: 1199px) {
  .cs_main_header .container {
    max-width: 100%;
  }

  .cs_site_header.cs_style1 {
    .cs_nav {
      display: flex;
    }
  }
}

.cs_nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs_sticky_header {
  position: fixed !important;
  width: 100%;
  z-index: 999;
}
.cs_gescout_sticky {
  position: fixed !important;
  top: -110px;
  opacity: 0;
  transition: all 0.4s ease;
  background-color: #fff;
}

.cs_gescout_show {
  top: 0 !important;
  opacity: 1;
  box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
}

.cs_site_branding {
  display: inline-block;
  img {
    max-height: 75px !important;
/*    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5)); */

  }
}

@media screen and (min-width: 1200px) {
  .cs_main_header {
    position: relative;

    .container-fluid {
      padding-right: 40px;
      padding-left: 40px;
    }
  }

  .cs_main_header_center,
  .cs_top_header_center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .cs_site_header.cs_style1 {
    .cs_main_header_center {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      width: 100%;
      max-width: calc(100% - 300px);
    }
    .cs_main_header_left {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .cs_nav {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.6em;
    font-size: 14px;
    font-weight: 500;
    color: $primary;

    .cs_nav_list {
      display: flex !important;
      flex-wrap: wrap;
      height: inherit;

      > li {
        margin-right: 50px;
        height: inherit;

        &:last-child {
          margin-right: 0;
        }

        > a {
          padding: 10px 0;
          display: inline-flex;
          position: relative;
          height: inherit;
          align-items: center;
          text-transform: uppercase;
        }

        > ul {
          left: 0;
          top: calc(100% + 15px);
        }

        &:hover {
          > ul {
            top: 100%;
            opacity: 1;
            visibility: visible;
            transition: all 0.4s ease;
          }
        }
        &.menu-item-has-children {
          > a {
            position: relative;
            &::after {
              content: '';
              display: inline-block;
              height: 8px;
              width: 8px;
              border: 2px solid $secondary;
              transform: rotate(45deg);
              border-left: 0;
              border-top: 0;
              margin-left: 6px;
              position: relative;
              top: -2px;
              border-radius: 0px 0px 2px 0px;
            }
          }
        }
      }

      li:not(.cs_mega_menu) {
        position: relative;
      }

      ul {
        width: 260px;
        background-color: #fff;
        position: absolute;
        box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
        border-top: 2px solid $primary;
        padding: 10px 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        display: block !important;
        border-radius: 0px 0px 5px 5px;
        transition: all 0.1s ease;

        li {
          &:hover {
            ul {
              top: 0px;
            }

            > ul {
              opacity: 1;
              visibility: visible;
              transition: all 0.4s ease;
            }
          }
        }

        a {
          display: block;
          line-height: inherit;
          padding: 10px 20px;
        }

        ul {
          top: 15px;
          left: 100%;
        }
      }
    }
  }
  .cs_menu_toggle,
  .cs_munu_dropdown_toggle {
    display: none;
  }

  .cs_nav .cs_nav_list {
    .cs_mega_menu {
      position: relative;
    }
    .cs_mega_wrapper {
      width: 475px !important;
      left: 0;
      display: flex !important;
      position: absolute;
      padding: 5px 15px 10px;

      a {
        padding: 7px 10px;
      }

      > li {
        flex: 1;
        padding: 10px 0;

        > a {
          font-size: 18px;
          font-weight: 600;
          pointer-events: none;
          &:hover {
            background-color: transparent;
          }
        }

        ul {
          position: initial;
          border: none;
          padding: 0;
          width: 100%;
          box-shadow: none;
          background-color: transparent;
          a {
            transition: all 0.4s ease;
            &:hover {
              letter-spacing: 1px;
            }
          }
        }
      }
    }

    .cs_mega_menu {
      &:hover {
        .cs_mega_wrapper {
          li ul {
            opacity: 1;
            visibility: visible;
          }
        }
      }
    }
  }

  .cs_nav
    .cs_nav_list
    > li
    ul:not(.cs_mega_wrapper)
    .menu-item-has-children
    > a {
    position: relative;
  }
}

@media screen and (max-width: 1400px) {
  .cs_nav .cs_nav_list .cs_mega_wrapper {
    width: 1116px !important;
  }

  .cs_site-branding {
    max-width: 190px;
  }

  .cs_site_header_full_width .container {
    max-width: 100%;
  }
}

@media screen and (max-width: 1199px) {
  .cs_nav .cs_nav_list .cs_mega_wrapper {
    width: 100% !important;
  }
  .cs_site_header_full_width .container {
    padding: 0 15px;
  }
  .cs_munu_dropdown_toggle {
    position: absolute;
    height: 40px;
    width: 100%;
    top: 0;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 28px 18px;
    cursor: pointer;
    z-index: 3;

    span {
      display: block;
      position: relative;
      height: 10px;
      width: 10px;
      &:before,
      &:after {
        content: '';
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 2px;
        width: 10px;
        background-color: $primary;
        transition: all 0.3s ease;
      }

      &:before {
        transform: translate(-50%, -50%) rotate(90deg);
      }
    }

    &.active {
      span {
        &:before {
          transform: translate(-50%, -50%) rotate(0deg);
        }
      }
    }
  }
  .menu-item-has-children {
    .menu-item-has-children {
      .cs_munu_dropdown_toggle {
        padding: 20px 18px;
      }
    }
  }
  .cs_site_branding {
    position: relative;
    z-index: 101;
  }
  .cs_nav {
    .cs_nav_list {
      position: fixed;
      width: 100vw;
      left: -100vw;
      background-color: #fff;
      color: $primary;
      padding: 10px 0;
      top: 0;
      overflow: auto;
      min-height: 100vh;
      line-height: 1.6em;
      padding-top: 80px;
      transition: all 0.4s ease;
      &.cs_active {
        left: 0vw;
      }

      ul {
        padding-left: 15px;
        display: none;
      }

      a {
        display: block;
        padding: 12px 15px;
        line-height: 16px;
      }
      > li {
        > a {
          font-size: 24px;
          line-height: 32px;
        }
      }
    }

    .menu-item-has-children {
      position: relative;
    }
  }
  .cs_animo_links > li > a {
    .cs_animo_text {
      text-shadow: 0 32px 0 currentColor;
    }
    &:hover span {
      transform: translateY(-32px);
    }
  }

  /*Mobile Menu Button*/
  .cs_menu_toggle {
    display: inline-block;
    width: 30px;
    height: 27px;
    cursor: pointer;
    position: absolute;
    top: 27px;
    right: 30px;
    color: $primary;

    span,
    span:before,
    span:after {
      width: 100%;
      height: 2px;
      background-color: currentColor;
      display: block;
    }

    span {
      margin: 0 auto;
      position: relative;
      top: 12px;
      transition-duration: 0s;
      transition-delay: 0.2s;

      &:before {
        content: '';
        position: absolute;
        margin-top: -9px;
        transition-property: margin, transform;
        transition-duration: 0.2s;
        transition-delay: 0.2s, 0s;
      }

      &:after {
        content: '';
        position: absolute;
        margin-top: 9px;
        transition-property: margin, transform;
        transition-duration: 0.2s;
        transition-delay: 0.2s, 0s;
      }
    }
  }

  .cs_site_header.cs_style1 .cs_menu_toggle {
    top: 50%;
    right: 0px;
    margin-top: -13px;
  }

  .cs_toggle_active {
    span {
      background-color: rgba(0, 0, 0, 0);
      transition-delay: 0.2s;

      &:before {
        margin-top: 0;
        transform: rotate(45deg);
        transition-delay: 0s, 0.2s;
      }

      &:after {
        margin-top: 0;
        transform: rotate(-45deg);
        transition-delay: 0s, 0.2s;
      }
    }
  }

  .cs_header_toolbox {
    margin-right: 50px;
  }

  .cs_nav .cs_nav_list a {
    position: relative;
  }

  .cs_site_header.cs_style1 .cs_main_header_in {
    height: 80px;
  }

  .cs_hamburger span {
    height: 3px;
  }

  .cs_site_header .current-menu-item > a:before {
    display: none;
  }
  .cs_site_header.cs_style1 .cs_main_header_center {
    .cs_site_branding {
      position: absolute;
      left: 0px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .cs_site_header.cs_style1 {
    top: 0;
  }
  .cs_toolbox {
    margin-right: 0px;
  }
  .cs_site_header.cs_style1 .cs_icon_btn {
    width: 38px;
    height: 38px;
  }
  .cs_has_main_nav {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .cs_site_header .container {
    max-width: 100%;
  }
  .cs_site_header.cs_style1 {
    .cs_action_box > *:not(:last-child) {
      margin-right: 25px;
    }
  }
  .cs_site_header.cs_style1 .cs_btn {
    padding: 8px;
  }
}
@media screen and (max-width: 575px) {
  .cs_site-branding {
    max-width: 150px;
  }

  .cs_hamburger_wrap .cs_hamburger {
    margin-right: 0;
  }
  .cs_site_header.cs_style1 .cs_btn {
    span {
      display: none;
    }
    svg {
      margin-right: 0;
      width: 20px;
      height: 20px;
    }
  }
}

@media screen and (max-width: 450px) {
}
