/* =========================================================================== */
/* 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;
    cursor: pointer;
  }

  .menu-dropdown-toggle_1:before {
    content: "";
    display: inline-block;
    position: absolute;
    right: 2px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--white-color);
    border-bottom: 1.5px solid var(--white-color);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu-dropdown-toggle_1:after {
    display: none;
  }

  .menu-dropdown-toggle_1:hover:before {
    border-color: var(--themecolor);
  }

  .menu-dropdown-toggle_1.active:before {
    transform: translateY(-35%) rotate(-135deg);
  }
}

.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+.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;
}

span.menu_toggle.cs-toggle_active {
  background-color: var(--body-color);
}

@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 {
    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;
    grid-template-columns: none !important;
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
  }

  /* Hide dropdown toggle arrows inside mega menu on mobile */
  .cs-nav .cs-nav_list .cs-mega_wrapper .menu-dropdown-toggle,
  .cs-nav .cs-nav_list .cs-mega_wrapper .menu-dropdown-toggle_1 {
    display: none !important;
  }

  /* Force mega menu sub-menus (columns) to be visible */
  .cs-nav .cs-nav_list .cs-mega_wrapper>li ul {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-left: 15px !important;
  }

  /* ── Body scroll lock ── */
  .cs-mobile-menu-body-lock {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* ── Fullscreen overlay nav list ── */
  .cs-nav .cs-nav_list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--theme-mobile-menu-bg-color, #0a0a0a);
    padding: 80px 0 40px;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    line-height: 1.6em;
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
    transition:
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      visibility 0s linear 0.45s;
  }

  .cs-nav .cs-nav_list.cs-mobile-menu-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    transition:
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      visibility 0s linear 0s;
  }

  /* ── Sub-menus ── */
  .cs-nav .cs-nav_list ul {
    padding-left: var(--theme-mobile-menu-item-padding-left, 20px);
    display: none;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    min-width: 0 !important;
    border-radius: 0 !important;
  }

  /* ── Menu item links ── */
  .cs-nav .cs-nav_list a {
    display: block;
    padding: 12px 24px;
    text-transform: var(--theme-menu-item-text-transform, none);
    color: var(--theme-mobile-menu-item-color, rgba(255, 255, 255, 0.85));
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.25s ease, background-color 0.25s ease;
    position: relative;
  }

  .cs-nav .cs-nav_list>li>a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .cs-nav .cs-nav_list a:hover,
  .cs-nav .cs-nav_list a:active {
    color: var(--theme-mobile-menu-item-hover-color, #ffffff);
    background-color: rgba(255, 255, 255, 0.04);
  }

  .cs-nav .menu-item-has-children {
    position: relative;
    padding-right: 0;
  }

  /* ── Mega menu items on mobile ── */
  .cs-nav .cs-nav_list .cs-mega_wrapper>li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: static !important;
  }

  .cs-nav .cs-nav_list .cs-mega_wrapper>li>a {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--theme-mobile-menu-item-color, rgba(255, 255, 255, 0.5)) !important;
    pointer-events: none !important;
    padding: 12px 24px 4px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    line-height: 1.4 !important;
    height: auto !important;
  }

  .cs-nav .cs-nav_list .cs-mega_wrapper>li ul li a {
    font-size: 15px !important;
    color: var(--theme-mobile-menu-item-color, rgba(255, 255, 255, 0.85)) !important;
    padding: 10px 24px 10px 36px !important;
    display: block !important;
    transform: none !important;
    background: transparent !important;
  }

  .cs-nav .cs-nav_list .cs-mega_wrapper>li ul li a:hover {
    color: #ffffff !important;
    transform: none !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
  }

  /* ── Hamburger toggle button ── */
  .menu_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -18px;
    z-index: 10001;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: transparent;
    padding: 0;
  }

  .menu_toggle span,
  .menu_toggle span:before,
  .menu_toggle span:after {
    width: 24px;
    height: 2px;
    background-color: var(--theme-menu-toggle-color, #ffffff);
    display: block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .menu_toggle span {
    margin: 0 auto;
    position: relative;
  }

  .menu_toggle span:before {
    content: "";
    position: absolute;
    margin-top: -8px;
  }

  .menu_toggle span:after {
    content: "";
    position: absolute;
    margin-top: 8px;
  }

  .text_underline_animation:hover::after {
    display: none;
  }

  .cs-site_header .menu_toggle {
    top: 50%;
    right: 0px;
    margin-top: -18px;
  }

  /* ── Hamburger → X animation ── */
  .cs-toggle_active span {
    background-color: transparent;
  }

  .cs-toggle_active span:before {
    margin-top: 0;
    transform: rotate(45deg);
    background-color: var(--theme-menu-toggle-color, #ffffff);
  }

  .cs-toggle_active span:after {
    margin-top: 0;
    transform: rotate(-45deg);
    background-color: var(--theme-menu-toggle-color, #ffffff);
  }

  /* ── Dropdown toggle arrows ── */
  .menu-dropdown-toggle {
    position: absolute;
    height: 44px;
    width: 44px;
    right: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-dropdown-toggle:before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--theme-mobile-menu-item-color, rgba(255, 255, 255, 0.5));
    border-bottom: 1.5px solid var(--theme-mobile-menu-item-color, rgba(255, 255, 255, 0.5));
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    position: static;
    left: auto;
    top: auto;
  }

  .menu-dropdown-toggle:after {
    display: none;
  }

  .menu-dropdown-toggle.active:before {
    transform: rotate(-135deg);
    border-color: var(--theme-mobile-menu-item-hover-color, #ffffff);
  }

  /* ── Backdrop overlay ── */
  .cs-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    -webkit-tap-highlight-color: transparent;
  }

  .cs-mobile-backdrop.cs-backdrop-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
  }
}