/*--------------------------------------------------------------
7. Header
----------------------------------------------------------------*/
.cs_site_header {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0px;
  z-index: 101;
  transition: all 0.4s ease;
}

.cs_site_header.cs_style_1 {
  background-color: var(--web-wash);
  .cs_main_header_in {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
  }

  .cs_main_header_in {
    height: 100px;
  }

  .cs_main_header_right {
    display: flex;
    align-items: center;
    height: 100%;
    @media (max-width: 1199px) {
      padding-right: 45px;
    }
  }

  .cs_nav_list {
    > li {
      > a {
        text-transform: uppercase;
      }
    }
  }

  &.cs_transparent_header {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    @media (min-width: 1200px) {
      .cs_nav_list {
        > li {
          > a {
            color: #fff;
            &:hover {
              color: var(--accent);
            }
          }
        }
      }
    }
    .cs_btn.cs_style_2 {
      border-radius: 5px;
      border-color: #fff;
      color: #fff;
      &:hover {
        background-color: var(--accent);
        border-color: var(--accent);
      }
    }
  }

  &.cs_type_1 {
    background-color: transparent;
    border-bottom: 1px solid var(--ternary);
  }
}

.cs_site_header.cs_style_1 {
  &.cs_sticky_active {
    background-color: var(--web-wash);
    box-shadow: 0 10px 10px -10px rgba(33, 43, 53, 0.1);
  }
}

.cs_site_header.cs_style_2 {
  .cs_main_header_in {
    display: flex;
    justify-content: space-between;
    height: 100px;
    align-items: center;
  }
  .cs_main_header_left {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  @media (max-width: 991px) {
    .cs_header_number {
      color: #fff;
    }
    .cs_btn.cs_style_2 {
      border-color: #fff;
      color: #fff;
      &:hover {
        border-color: var(--accent);
      }
    }
  }
  &.cs_type_1 {
    border-bottom: 1px solid var(--secondary);
    .cs_header_info_box {
      color: #fff;
    }
    .cs_header_number_icon {
      color: var(--accent);
    }
    .cs_btn.cs_style_2 {
      border-color: #fff;
      color: #fff;
      &:hover {
        border-color: var(--accent);
      }
    }
  }
}

.cs_header_info_box {
  display: flex;
  align-items: center;
  gap: 30px 50px;
  flex-wrap: wrap;
  @media (max-width: 1199px) {
    gap: 30px 30px;
  }
}

.cs_header_number {
  display: flex;
  align-items: center;
  gap: 15px;
  @media (max-width: 767px) {
    display: none;
  }
}

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

/* Start Hamburger Menum */
.cs_hamburger_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  color: currentColor;
  background-color: transparent;
  outline: none;
  padding: 0;
  color: #fff;
  .cs_hamburger_btn_in {
    width: 30px;
    height: 22px;
    line-height: 0;
    cursor: pointer;
    position: relative;
    text-align: left;
    overflow: hidden;
    span {
      display: inline-block;
      position: absolute;
      height: 2px;
      width: 100%;
      border-radius: 0;
      background-color: currentColor;
      color: inherit;
      vertical-align: top;
      transition: 0.3s ease-in-out;
      border-radius: 3px;
      left: 0;
      &:nth-child(1) {
        transform: translate(0, -10px);
        width: calc(100% - 5px);
      }
      &:nth-child(2) {
        transform: translate(0, 0);
      }
      &:nth-child(3) {
        transform: translate(0, 10px);
        width: calc(100% - 10px);
      }
      &:nth-child(4) {
        transform: translate(0, 20px);
        width: calc(100% - 20px);
      }
    }
  }
  &:hover {
    .cs_hamburger_btn_in {
      span {
        transition: 0.3s ease-in-out;
        &:nth-child(1) {
          transform: translate(0, 0);
        }
        &:nth-child(2) {
          transform: translate(0, 10px);
        }
        &:nth-child(3) {
          transform: translate(0, 20px);
        }
        &:nth-child(4) {
          transform: translate(0, 30px);
        }
      }
    }
  }
}
.cs_hamburger_active {
  overflow: hidden;
}
.cs_hamburger_header {
  position: fixed;
  z-index: 99999;
  background-color: #1b1b1bf5;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  .cs_social_btns.cs_style_1 {
    a {
      border-color: var(--accent);
      color: #fff;
      &:hover {
        transform: initial;
        background-color: var(--accent);
      }
    }
  }
  &.active {
    opacity: 1;
    visibility: visible;
  }
}

.cs_hamburger_header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.cs_hamburger_menu {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
  ul {
    list-style: none;
    padding: 0;
    margin: auto 0;
  }
  .menu-item-has-children {
    ul {
      display: none;
    }
  }
  .cs_menu_dropdown_toggle {
    display: block;
    cursor: pointer;
    margin-top: 5px;
    @media (max-width: 1199px) {
      position: initial;
      height: initial;
      width: initial;
      padding: 0;
    }
    &::before {
      content: '';
      position: absolute;
      height: 100%;
      width: 100%;
      left: 0;
      top: 0;
      height: 50px;
    }
    span {
      width: 0px;
      height: 0px;
      display: block;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-top: 6px solid #fff;
      &::before,
      &::after {
        display: none;
      }
    }
  }
  .menu-item-has-children {
    display: flex;
    align-items: center;
    gap: 0 23px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    &:hover {
      > a {
        color: var(--accent);
      }
    }
    > * {
      &:first-child {
        order: 1;
      }
      &:nth-child(2) {
        order: 3;
      }
      &:nth-child(3) {
        order: 2;
      }
    }
    > {
      ul {
        width: 100%;
      }
    }
  }
  .cs_nav_list {
    > li {
      &:not(:last-child) {
        margin-bottom: 28px;
      }
      > ul {
        font-size: 65%;
        line-height: 1.6em;
        .cs_menu_dropdown_toggle {
          display: block;
          cursor: pointer;
          &::before {
            height: 39px;
          }
        }
      }
      img {
        display: none;
      }
    }
    ul {
      padding-left: 25px;
      padding-top: 10px;
      li {
        &:not(:last-child) {
          margin-bottom: 10px;
        }
      }
    }
  }
}
.cs_close_hamburger {
  background-color: transparent;
  border: navajowhite;
  padding: 0;
  transition: all 0.4s ease;
  cursor: pointer;
  &:hover {
    opacity: 0.75;
    transform: rotate(90deg) scale(1.05);
  }
}
.cs_hamburger_header_info {
  height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  @media (max-width: 991px) {
    display: none;
  }
}
.cs_hamburger_header_info_in {
  padding: 0px 0 50px;
  margin-top: auto;
  margin-bottom: auto;
}
/* End Hamburger Menum */

@media screen and (max-width: 1199px) {
  .cs_main_header .container {
    max-width: 100%;
  }

  .cs_site_header.cs_style_1 {
    .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;
  &.cs_site_header.cs_style_1 {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    &.cs_transparent_header {
      background-color: rgba(0, 0, 0, 0.8);
    }
  }
}

.cs_gescout_show {
  top: 0 !important;
  opacity: 1;
  box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
  &.cs_site_header.cs_style_2 {
    background-color: var(--primary);
    .cs_main_header_in {
      height: 90px;
    }
    .cs_header_info_box {
      color: #fff;
    }
    .cs_btn.cs_style_2 {
      border-color: #fff;
      color: #fff;
      &:hover {
        border-color: var(--accent);
      }
    }
  }
}

.cs_site_branding {
  display: inline-block;
  + .cs_nav {
    margin-left: 80px;
    @media (max-width: 1600px) {
      margin-left: 40px;
    }
  }
}

.cs_main_header {
  .container-fluid {
    padding-right: 100px;
    padding-left: 100px;
    @media (max-width: 1600px) {
      padding-right: 60px;
      padding-left: 60px;
    }
    @media (max-width: 1400px) {
      padding-right: 30px;
      padding-left: 30px;
    }
    @media (max-width: 1199px) {
      padding-right: 15px;
      padding-left: 15px;
    }
  }
}

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

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

  .cs_site_header.cs_style_1 {
    .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;

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

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

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

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

        > ul {
          left: 0;
          top: calc(100% + 15px);
          transition: all 0.4s ease;
          pointer-events: none;
        }

        &:hover {
          > ul {
            top: 100%;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
          }
        }
        &.menu-item-has-children {
          > a {
            position: relative;
            &::after {
              content: '';
              display: inline-block;
              height: 6px;
              width: 6px;
              border: 2px solid currentColor;
              transform: rotate(45deg);
              border-left: 0;
              border-top: 0;
              margin-left: 6px;
              position: relative;
              top: -1px;
              border-radius: 0px 0px 2px 0px;
            }
          }
        }
        ul {
          font-size: 15px;
          font-weight: 400;
          line-height: 1.6em;
        }
      }

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

      ul {
        width: 230px;
        background-color: var(--web-wash);
        position: absolute;
        border-top: 2px solid var(--accent);
        box-shadow: 0px 1px 2px 0px rgba(2, 0, 181, 0.1);
        padding: 10px 0;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        display: block !important;
        border-radius: 0 0 5px 5px;

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

            > ul {
              opacity: 1;
              visibility: visible;
            }
          }
        }

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

        ul {
          top: 15px;
          left: 100%;
        }
      }
    }
    + .cs_toolbox {
      margin-left: 40px;
    }
  }
  .cs_menu_toggle,
  .cs_menu_dropdown_toggle {
    display: none;
  }

  .cs_nav .cs_nav_list {
    .cs_mega_menu {
      position: relative;
    }
    .cs_mega_wrapper {
      width: 1296px !important;
      display: flex !important;
      position: fixed;
      top: 100px !important;
      left: 50%;
      transform: translateX(-50%);
      padding: 5px 15px 10px;
      border-top: 2px solid var(--accent);
      border-radius: 0 0 5px 5px;

      a {
        padding: 7px 10px;
      }

      .menu-item-has-children {
        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;
          }
        }
      }
      &.cs_with_thumb {
        display: grid !important;
        grid-gap: 20px;
        grid-template-columns: repeat(5, 1fr);
        padding: 25px 25px 20px 25px;
        img {
          border: 1px solid var(--border);
          border-radius: 7px;
          transition: all 0.3s ease;
          width: 100%;
          margin-bottom: 8px;
        }
        a {
          padding: 0;
          display: block;
          text-align: center;
          text-transform: uppercase;
          font-size: 14px;
          line-height: 1.6em;
          font-weight: 500;
          &:hover {
            img {
              border-color: #d5d4d4;
            }
          }
        }
      }
    }

    .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_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_menu_dropdown_toggle {
    position: absolute;
    height: 40px;
    width: 100%;
    top: 0;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 23px 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: currentColor;
        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_menu_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: var(--web-wash);
      color: var(--primary);
      padding: 10px 0;
      top: 0;
      overflow: auto;
      height: 100vh;
      line-height: 1.6em;
      padding-top: 80px;
      img {
        display: none;
      }
      &.cs_active {
        left: 0vw;
      }

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

      a {
        display: block;
        padding: 10px 15px;
        font-size: 16px;
        font-weight: 500;
      }
      > li {
        > a {
          font-size: 18px;
          line-height: 22px;
        }
      }
    }

    .menu-item-has-children {
      position: relative;
    }
  }
  .cs_transparent_header {
    .cs_nav_list {
      background-color: #1b1b1b;
      color: #fff;
    }
  }

  /*Mobile Menu Button*/
  .cs_menu_toggle {
    display: inline-block;
    width: 30px;
    height: 27px;
    cursor: pointer;
    position: absolute;
    top: 27px;
    right: 30px;
    color: var(--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_transparent_header {
    .cs_menu_toggle {
      color: #fff;
    }
  }
  .cs_site_header.cs_style_1 {
    .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_nav .cs_nav_list a {
    position: relative;
  }

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

  .cs_site_header .current-menu-item > a:before {
    display: none;
  }
  .cs_site_header.cs_style_1 .cs_main_header_center {
    .cs_site_branding {
      position: absolute;
      left: 0px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  .cs_site_header.cs_style_1 {
    top: 0;
  }

  .cs_has_main_nav {
    display: none;
  }
  .cs_site_header .cs_btn.cs_style_2 {
    padding: 5px 15px;
  }
}

@media screen and (max-width: 991px) {
  .cs_site_header .container {
    max-width: 100%;
  }
  .cs_site_header.cs_style_1 {
    .cs_action_box > *:not(:last-child) {
      margin-right: 25px;
    }
  }
}

@media screen and (max-width: 575px) {
  .cs_site_header {
    .cs_btn.cs_style_2 {
      display: none;
    }
  }
}
