
/* =========================================================================== */
/* 4.1 Header Menu    */
/* =========================================================================== */
.cs_theme_header.cs-nav .cs-nav_list .current-menu-item.active.current > a {
  color: var(--themecolor) !important;
}

@media screen and (min-width: 1200px) {
  .menu-dropdown-toggle_1 {
    right: 0px !important;
  }
  .menu-dropdown-toggle_1:before, .menu-dropdown-toggle_1:after {
    content: "";
    display: inline-block;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 1px;
    width: var(--theme-dropwdown-menu-toggle-width);
    background-color: var(--white-color);
    transition: all 0.3s ease-in-out;
  }
  .menu-dropdown-toggle_1:before:hover, .menu-dropdown-toggle_1:after:hover {
    background-color: var(--themecolor);
  }
  .menu-dropdown-toggle_1:before {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .menu-dropdown-toggle_1.active:before {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}
.right-side-menu {
  position: relative;
  width: var(--theme-sidemenu-width);
  height: var(--theme-sidemenu-height);
  background-color: var(--theme-offcanvas-bg-color);
  border-left: var(--theme-stickyy-header-border-bottom);
  flex: none;
  color: var(--body-color);
  margin-left: auto;
  padding-top: var(--theme-sidemenu-padding);
  z-index: 99;
  transition: all 0.4s ease;
}

.cs_theme_header.cs-nav .cs-nav_list > .current-menu-ancestor > a,
.cs_theme_header.cs-nav .cs-nav_list > .current-menu-parent > a {
  color: var(--theme-menu-item-color) !important;
}

.cs-nav_list li a {
  font-family: var(--heading-font-family);
}

.cs-nav + .cs-toolbox {
  margin-left: 55px;
}

.cs-site_header.cs-sticky-active {
  background-color: var(--theme-sticky-header-bg);
  box-shadow: var(--theme-sticky-header-shadow);
}

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

@media screen and (min-width: 1200px) {
  .cs-nav_list {
    color: var(--theme-sub-menu-item-color);
  }
  .cs-nav_list ul {
    color: var(--theme-sub-menu-item-color);
  }
  .cs-nav_list ul li ::before,
  .cs-nav_list ul li ::after {
    margin-right: 20px;
  }
  .cs-main_header {
    position: relative;
  }
  .cs-main_header_center,
  .cs-top_header_center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .cs-site_header .cs-main_header_center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: calc(100% - 300px);
  }
  .cs-nav {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1.6em;
    font-size: 16px;
  }
  .cs-nav .cs-nav_list {
    display: flex !important;
    flex-wrap: wrap;
    height: inherit;
  }
  .cs-nav .cs-nav_list > li {
    margin-right: var(--theme-menu-item-gap-right);
    text-transform: var(--theme-menu-item-text-transform);
  }
  .cs-nav .cs-nav_list > li:last-child {
    margin-right: 0;
  }
  .cs-nav .cs-nav_list > li > a {
    display: inline-flex;
    position: relative;
    height: inherit;
    align-items: center;
    color: var(--theme-menu-item-color);
  }
  .cs-nav .cs-nav_list > li > a:hover {
    color: var(--theme-menu-item-hover-color);
  }
  .cs-nav .cs-nav_list > li > ul {
    left: 0;
    top: calc(100% + 30px);
    margin-top: calc(var(--theme-menu-height) / 6);
  }
  .cs-nav .cs-nav_list > li:hover > ul {
    top: calc(100% + 0px);
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease;
  }
  .cs-nav .cs-nav_list > li.menu-item-has-children {
    padding-right: var(--theme-space-level-0-3);
  }
  .cs-nav .cs-nav_list > li.menu-item-has-children > a {
    position: relative;
  }
  .cs-nav .cs-nav_list li:not(.cs-mega_menu) {
    position: relative;
  }
  .cs-nav .cs-nav_list ul {
    min-width: var(--theme-sub-menu-width);
    display: inline-block;
    background-color: var(--theme-sub-menu-bg-color);
    position: absolute;
    border-top: var(--theme-sub-menu-border-top);
    padding: var(--theme-sub-menu-wrap-padding);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    border-radius: var(--theme-sub-menu-border-radius);
    transition: all 0.4s ease;
    box-shadow: var(--theme-box-shadow);
    border: 1ps solid var(--theme-border-color);
  }
  .cs-nav .cs-nav_list ul li:hover ul {
    top: 0px;
  }
  .cs-nav .cs-nav_list ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transition: all 0.4s ease;
    margin-left: var(--theme-space-level-3);
  }
  .cs-nav .cs-nav_list ul a {
    line-height: inherit;
    color: var(--theme-sub-menu-item-color);
  }
  .cs-nav .cs-nav_list ul a:hover {
    color: var(--theme-sub-menu-item-hover-color);
    background-color: var(--theme-sub-menu-bg-hover-color);
  }
  .cs-nav .cs-nav_list ul ul {
    top: 15px;
    left: 100%;
  }
  .menu_toggle,
  .menu-dropdown-toggle {
    display: none;
  }
  .cs-nav_black_section ul {
    position: relative;
    list-style: none;
    line-height: 65px;
    padding: 0px;
  }
  .cs-nav_black_section ul li {
    margin: var(--theme-sub-menu-list-item-top-padding);
    font-size: 55px;
    text-transform: var(--theme-menu-item-text-transform);
    font-weight: var(--theme-menu-item-font-weight);
  }
  .menu-item-has-black-section {
    position: relative;
  }
  .menu-item-has-black-section span {
    cursor: pointer;
  }
  .menu-item-has-black-section > a {
    position: relative;
  }
  .menu-item-has-black-section > ul {
    padding-left: 40px;
    display: none;
    list-style: none;
    line-height: 30px;
  }
  .menu-item-has-black-section > ul li {
    margin-top: var(--theme-sub-menu-list-item-top-padding);
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper {
    width: calc(var(--theme-sub-menu-width) * 3) !important;
    right: 75%;
    transform: translateX(-50%);
    display: flex !important;
    position: absolute;
    padding: 50px 50px 50px;
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper a img {
    border-radius: 5px;
    border: 1px solid rgba(181, 181, 181, 0.1);
    transition: all 0.5s ease;
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper a:hover img {
    border-color: rgba(255, 255, 255, 0.6);
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper > li {
    flex: 1;
    padding: 10px 0;
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper > li > a:hover {
    background-color: transparent;
  }
  .cs-nav .cs-nav_list .cs-mega_wrapper > li ul {
    position: initial;
    border: none;
    padding: 0;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
  }
  .cs-nav .cs-nav_list .cs-mega_menu ul .menu-dropdown-toggle,
  .cs-nav .cs-nav_list .cs-mega_menu ul .menu-dropdown-toggle_1 {
    display: none;
  }
  .cs-nav .cs-nav_list .cs-mega_menu:hover .cs-mega_wrapper li ul {
    opacity: 1;
    visibility: visible;
    padding: 0px;
    margin: 0px;
  }
  .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;
  }
}
@media screen and (max-width: 1199px) {
  .cs-nav .cs-nav_list .cs-mega_wrapper {
    width: 100% !important;
  }
  .cs-nav .cs-nav_list {
    position: absolute;
    width: 100vw;
    left: var(--theme-mobile-menu-left-position);
    background-color: var(--theme-mobile-menu-bg-color);
    padding: 10px 0;
    display: none;
    top: 0%;
    padding-top: var(--theme-mobile-menu-padding-top);
    border-top: var(--theme-mobile-menu-border-top);
    border-bottom: var(--theme-mobile-menu-border-bottom);
    overflow: auto;
    max-height: calc(100vh - 80px);
    line-height: 1.6em;
  }
  .cs-nav .cs-nav_list ul {
    padding-left: var(--theme-mobile-menu-item-padding-left);
    display: none;
  }
  .cs-nav .cs-nav_list a {
    display: block;
    padding: 8px 20px;
    text-transform: var(--theme-menu-item-text-transform);
    color: var(--theme-mobile-menu-item-color);
  }
  .cs-nav .cs-nav_list a:hover {
    color: var(--theme-mobile-menu-item-hover-color);
  }
  .cs-nav .menu-item-has-children {
    position: relative;
    padding-right: 20px;
  }
  /*Mobile Menu Button*/
  .menu_toggle {
    display: inline-block;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    top: 35px;
    margin-right: var(--theme-space-level-3);
  }
  .menu_toggle span,
  .menu_toggle span:before,
  .menu_toggle span:after {
    width: 100%;
    height: 2px;
    background-color: var(--theme-menu-toggle-color);
    display: block;
  }
  .menu_toggle span {
    margin: 0 auto;
    position: relative;
    top: 12px;
    transition-duration: 0s;
    transition-delay: 0.2s;
  }
  .menu_toggle span:before {
    content: "";
    position: absolute;
    margin-top: -9px;
    transition-property: margin, transform;
    transition-duration: 0.2s;
    transition-delay: 0.2s, 0s;
  }
  .menu_toggle span:after {
    content: "";
    position: absolute;
    margin-top: 9px;
    transition-property: margin, transform;
    transition-duration: 0.2s;
    transition-delay: 0.2s, 0s;
  }
  .text_underline_animation:hover::after {
    display: none;
  }
  .cs-site_header .menu_toggle {
    top: 50%;
    right: 0px;
    margin-top: -13px;
  }
  .cs-nav .cs-nav_list a {
    position: relative;
    text-transform: var(--theme-menu-item-text-transform);
    color: var(--theme-mobile-menu-item-color);
  }
  .cs-nav .cs-nav_list a:hover {
    color: var(--theme-mobile-menu-item-hover-color);
  }
  .menu-dropdown-toggle {
    position: absolute;
    height: var(--theme-dropwdown-menu-toggle-height);
    width: var(--theme-dropwdown-menu-toggle-width);
    right: 0px;
    top: 5px;
    margin-right: var(--theme-space-level-3);
    margin-top: var(--theme-space-level-0-1);
  }
  .menu-dropdown-toggle:before, .menu-dropdown-toggle:after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 2px;
    width: var(--theme-dropwdown-menu-toggle-width);
    background-color: var(--white-color);
    transition: all 0.3s ease;
  }
  .menu-dropdown-toggle:before {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .menu-dropdown-toggle.active:before {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .cs-toggle_active span {
    background-color: rgba(0, 0, 0, 0);
    transition-delay: 0.2s;
  }
  .cs-toggle_active span:before {
    margin-top: 0;
    transform: rotate(45deg);
    transition-delay: 0s, 0.2s;
  }
  .cs-toggle_active span:after {
    margin-top: 0;
    transform: rotate(-45deg);
    transition-delay: 0s, 0.2s;
  }
}