
/* AKKITA Stabilization Patch v08.1 */

/* Global overflow lock */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

#page-container,
#et-main-area,
#main-content,
.akkita-starter-wrap,
.akkita-v04,
.akx {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Desktop header lock */
@media (min-width: 981px) {
  #main-header,
  #main-header.et-fixed-header {
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    background: #0E1828 !important;
    background-color: #0E1828 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 99999 !important;
  }

  #main-header .container,
  #main-header.et-fixed-header .container {
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: 1180px !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  #main-header .logo_container,
  #main-header.et-fixed-header .logo_container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    overflow: visible !important;
  }

  #main-header #logo,
  #main-header.et-fixed-header #logo {
    display: block !important;
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    object-fit: contain !important;
  }

  #et-top-navigation,
  #main-header.et-fixed-header #et-top-navigation {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    padding: 0 !important;
    margin: 0 0 0 auto !important;
    float: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  #top-menu-nav,
  #main-header.et-fixed-header #top-menu-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #top-menu,
  #main-header.et-fixed-header #top-menu {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #top-menu li {
    display: block !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }

  #top-menu li a,
  #main-header.et-fixed-header #top-menu li a {
    display: block !important;
    color: #ffffff !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    padding: 17px 13px !important;
    opacity: 1 !important;
  }

  #top-menu li.current-menu-item > a,
  #top-menu li a:hover,
  #main-header.et-fixed-header #top-menu li.current-menu-item > a,
  #main-header.et-fixed-header #top-menu li a:hover {
    color: #269AAB !important;
  }

  #et_top_search,
  #main-header.et-fixed-header #et_top_search {
    display: block !important;
    margin: 0 0 0 24px !important;
    float: none !important;
  }

  .et_search_icon:before,
  #main-header.et-fixed-header .et_search_icon:before {
    color: #ffffff !important;
    font-size: 24px !important;
  }

  #et_mobile_nav_menu {
    display: none !important;
  }

  .akx-hero,
  .akkita-hero-v02 {
    min-height: calc(100vh - 112px) !important;
  }

  .akx-hero-copy {
    margin-left: 200px !important;
    max-width: 640px !important;
  }
}

/* Mobile header lock */
@media (max-width: 980px) {
  #main-header,
  #main-header.et-fixed-header {
    min-height: 82px !important;
    background: #0E1828 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  #main-header .container,
  #main-header.et-fixed-header .container {
    width: calc(100% - 32px) !important;
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
  }

  #main-header .logo_container {
    position: relative !important;
    height: 82px !important;
    display: flex !important;
    align-items: center !important;
  }

  #main-header #logo {
    max-height: 54px !important;
    width: auto !important;
  }

  #et-top-navigation {
    padding-top: 0 !important;
    margin-left: auto !important;
  }

  .mobile_menu_bar:before {
    color: #ffffff !important;
  }

  .akx-hero-copy {
    margin-left: 0 !important;
  }
}

/* Page/sidebar cleanup */
body.page .entry-title,
body.page h1.entry-title,
body.page .main_title,
body.page .et_post_meta_wrapper {
  display: none !important;
}

body.page #sidebar,
body.error404 #sidebar {
  display: none !important;
}

body.page #main-content .container:before,
body.error404 #main-content .container:before {
  display: none !important;
}

body.page #left-area,
body.error404 #left-area {
  width: 100% !important;
  padding: 0 !important;
}

body.page #main-content .container,
body.error404 #main-content .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Default footer collapse when custom AKKITA footer exists */
body:has(.akx-footer) #main-footer,
body:has(.akkita-footer-block) #main-footer {
  display: none !important;
}
