/* =============================================================================
NAVIGATION 
================================================================================ */
header {
  position: fixed;
  top: 29px;
  /*ADD THIS TO top-nav-sticky.js*/
  left: 0;
  right: 0;
  background: rgba(34, 40, 49, 0.1);
  padding: 29px var(--space-4);
  z-index: 9999;
  opacity: 1;
  transition: top 0.3s ease, opacity 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

header.hidden {
  top: -100px;
  opacity: 0;
}

/* */
header:hover {
  background: rgba(34, 40, 49, 0.98);
  /* box-shadow: 0px 6px 5px -4px rgba(0, 0, 0, 0.50);
  -webkit-box-shadow: 0px 6px 5px -4px rgba(0, 0, 0, 0.50);
  -moz-box-shadow: 0px 6px 5px -4px rgba(0, 0, 0, 0.50); */
}

nav .info-social-top {
  position: absolute;
  width: 100%;
  height: auto;
  margin: -61px auto 0;
  left: 0;
  padding: 3px var(--space-4);
  color: white;
  background-color: var(--website-color-2);
  border-bottom: 1px solid var(--website-color-3);
  z-index: 9999;
}

nav .info-social-top ul {
  width: auto;
  max-width: var(--layout-w-1440);
  margin: 0 auto;
  justify-content: space-between;
  align-content: center;
  padding: 0;
  gap: 0;
}

nav .info-social-top ul li {
  width: 33.3%;
  margin: 0;
  padding: 2px 0;
}

nav .info-social-top ul li.nav-top-info-2 {
  text-align: center;
}

nav .info-social-top ul li.nav-top-info-3 {
  text-align: right;
}

nav .info-social-top ul li.nav-top-info-2 a {
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
  color: var(--color-white);

}

nav .info-social-top ul li.nav-top-info-2 a:hover {
  color: var(--website-color-3);
}



.logo {
  width: 100%;
  max-width: 12rem;
}

.pop-out-container {
  width: fit-content;
  height: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

a.pop-out-container,
a.pop-out-container:active {
  font-size: calc(0.825rem + 0.2vw);
  font-weight: 500;
  color: var(--color-white);
}

a.pop-out-container:hover {
  color: var(--website-color-3);
}

.pop-out-container img {
  display: block;
  position: absolute;
  width: auto;
  max-width: 7rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  /* prevent mouse events on the hidden image */
}

.pop-out-container:hover img {
  opacity: 1;
  transform: translateY(20px);
  /* adjust px value as needed */
}

nav {
  width: 100%;
  max-width: var(--layout-w-1440);
  height: 100%;
  margin: 0 auto;
}


nav #main-logo {
  background-color: transparent;
  position: relative;
  z-index: 9998;
}

#nav.flexbox-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}


.icon-social img {
  display: inline-block;
  padding: 0 var(--space-1);
  width: fit-content;
  max-width: 24px;
  height: 100%;
  max-height: 14px;
}

i.icon-user-effect {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/user-w.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 50%;
  transition-property: border;
  transition-duration: 0.4s;
  padding: 0.35rem var(--space-4);
  margin-right: var(--space-2);

}

.icon-home-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/home-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  width: 24px;
  height: 24px;
  background-color: transparent;
}

.icon-facebook-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/facebook-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  width: 24px;
  height: 16px;
  background-color: transparent;
}

.icon-instagram-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/instagram-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  width: 24px;
  height: 16px;
  background-color: transparent;
}

.icon-discord-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/discord-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  width: 24px;
  height: 24px;
  background-color: transparent;
}

.icon-whatsapp-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/whatsapp-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  width: 24px;
  height: 24px;
  background-color: transparent;
}

.icon-youtube-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/youtube-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  width: 24px;
  height: 24px;
  background-color: transparent;
}

.icon-x-twitter-white {
  display: inline-block;
  background-image: url(../images/site_imgs/icons/social/x-twitter-white.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  width: 24px;
  height: 16px;
  background-color: transparent;
}


#mobile-menu a {
  font-size: calc(0.925rem + 0.2vw);
  color: white;
  font-weight: 500;
}

#mobile-menu a:hover {
  color: var(--website-color-3) !important;
}


/* Hamburger and nav menu button */
.mobile-menu-wrapper {
  cursor: pointer;
}


#mobile-menu,
#mobile-menu nav {
  display: none;
}

#mobile-menu-btn-checkbox {
  display: none;
}

#mobile-menu-btn {
  display: none;
  cursor: pointer;
}

#mobile-menu-btn-checkbox:checked~#mobile-menu {
  transform: translateX(0rem);
}

#mobile-menu-btn>div {
  height: 2px;
  background-color: var(--website-color-4);
  transition: 0.5s;
  z-index: 9998;
}

.panel {
  display: none;
}

.mobile-accordion {
  display: none;
}

/* ---------- DROPDOWN / SUBMENU (REPLACEMENT) ---------- */
.dropdown-close-btn {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  color: #fff;
  top: var(--space-4);
  right: var(--space-6);
  z-index: 9999;
}
.dropdown-container.closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
nav a.btn_transparent {
  position: relative;
  padding-bottom: 55px; 
  margin-bottom: -55px;  
  display: inline-block; 
  z-index: 10000;           
}


.dropdown-bg {
  position: fixed;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
}

.dropdown-fullwidth {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: var(--space-6);
  background: rgba(34, 40, 49, .90);
  backdrop-filter: blur(8px);
}

/* container that toggles visibility */
.dropdown-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.30s ease;
  z-index: 9998;
}

.dropdown:hover>.dropdown-container,
.dropdown:focus>.dropdown-container  {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Make the actual menu content interactive only when visible */
.dropdown-container * {
  pointer-events: none;
}

.dropdown:hover>.dropdown-container *,
.dropdown:focus>.dropdown-container * {
  pointer-events: auto;
}

/* main content box inside the full width background */
.dropdown-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  margin: 0 auto;
  top: -0.5rem;
  left: 0;
  padding: var(--space-12);
  background: rgba(34, 40, 49, .80);
  background-image: url(../images/site_imgs/bg/blend-sub-nav.png);
  background-repeat: repeat-x;
  backdrop-filter: blur(8px);
  box-shadow: -1px 15px 5px -9px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: -1px 15px 5px -9px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: -1px 15px 5px -9px rgba(0, 0, 0, 0.25);
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}

/* each category column */
ul.sub-menu-group {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 188px;
  max-width: 288px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  color: var(--font-color);
}

/* category title style */
.sub-menu-title {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: capitalize;
  text-align: left;
  /* text-decoration: underline; */
}

.sub-menu-title a {
  color: var(--color-white);
  font-size: calc(1rem + 0.25vw);
  /* font-size: calc(1.125rem + 0.5vw); */
}


/* links in the column - vertical list */
.open-sub-cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  position: static;
  opacity: 1;
  visibility: visible;
  white-space: normal;
  word-wrap: break-word;
  color: var(--color-gray-300);

}

.menu-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.menu-col-sub {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-col-sub a {
  padding: 4px 0;
}

.sub-menu-group:hover .sub-menu-title a {
  color: var(--website-color-3);
}

/* link styling (unchanged logic) */
.dropdown-content a.hover-container, .dropdown-content a.logout {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-1) 0;
  border-radius: var(--border-radius-small);
  transition: background-color .2s ease, color .2s ease;
  text-align: left;
  transition: padding .2s ease-in-out;
}

 .dropdown-content a.logout {
  text-align: center;
  margin-top: var(--space-6);
  border: 1px solid var(--website-color-3);
 }


.dropdown-content a.hover-container span {
  display: inline-block;
  font-size: calc(0.825rem + 0.15vw);
  color: var(--color-gray-50);
  text-transform: capitalize;
}

/* hover states */
.dropdown-content a.hover-container:hover {
  background-color: var(--website-color-3);
  padding: var(--space-1) var(--space-2);
}
.dropdown-content a.logout:hover {
  background-color: var(--website-color-3);
}
.dropdown-content a.hover-container:hover span, .dropdown-content a.logout:hover span {
  color: var(--font-color-alt) !important;
}

#mobile-menu .logout {
  width: fit-content;
  text-decoration: none;
  font-weight: 500;
  margin: var(--space-6) auto 0;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--website-color-3);
  border-radius: var(--border-radius-small);
}
/* make the whole dropdown visually contained (prevents floating) */
.dropdown-bg,
.dropdown-container,
.dropdown-content {
  pointer-events: auto;
}
.dropdown-content {
  overflow: auto;         
  scrollbar-width: none;  
  -ms-overflow-style: none;
}

.dropdown-content::-webkit-scrollbar {
  display: none;           
}





/*CLIENT DASHBOARD IMAGES */
.dropdown-content .sub-img {
  display: none;
  width: 100%;
  height: 100%;
  background-size: cover;
  flex-shrink: 0;
  border-radius: var(--border-radius-small);
  border: .1rem solid rgba(90, 90, 90, 0.5);
  transition: transform 0.2s ease, border 0.4s ease;
}

.dropdown-content .sub-img:hover {
  border: 0.2rem solid rgba(252, 245, 150, 0.75);
}

.dropdown-content .sub-img.nav-thumb{
  max-width: auto;
}

.dropdown-content .sub-img.is-active {
  display: block;
}



/* =============================================================================
MEDIA RESPONSIVE 
================================================================================ */

@media (max-width: 48rem) {
  /* 768px */

  nav .info-social-top ul {
    padding: 0;
  }

  nav .info-social-top ul li {
    width: 49.9%;
  }

  nav .info-social-top ul li.nav-top-info-1,
  nav .info-social-top ul li.nav-top-info-2

  /*,nav .info-social-top ul li.nav-top-info-3 */
    {
    display: none;
  }

  nav .info-social-top ul {
    justify-content: end !important;
  }


  nav img#main-logo {
    width: 100%;
    max-width: 8rem;
    height: 100%;
  }

  .logo {
    max-width: 7rem;
  }

  /* .spacer_nav {
    width: 100%;
    height: 80.19px;
  } */

  nav .flexbox-row {
    align-items: center;
    text-align: left;
  }

  nav a,
  nav button {
    text-align: center;
  }

  #nav.non-mobile {
    display: none;
  }

  #mobile-menu-btn {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;

  }
  #mobile-menu-btn {
    position: relative;
    cursor: pointer;
    z-index:999999
}
  #mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    bottom: 0;
    height: calc(100vh);
    width: 100%;
    background-color: rgba(34, 40, 49, 0.98);
    z-index: 99999;
    transition-timing-function: cubic-bezier(10, 2, 3, 1);
    transform: translateX(60rem);
    transition: 0.5s;
  }

  #mobile-menu ul {
    margin-top: 0;

  }

  #mobile-menu .nav-items li {
    margin: var(--space-4) 0;
  }

  .mobile-accordion {
    display: block;
  }

  .mobile-accordion a:after {
    /* content: "\002B"; */
    color: var(--color-gray-50);
    margin-left: var(--space-2);
  }

  /* .active a:after {
     content: "\2212"; 
  }*/

  #mobile-menu .nav-items a,
  #mobile-menu .nav-items .mobile-accordion span,
  #mobile-menu .nav-items button {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-white);
  }


  #mobile-menu .panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    transition: max-height 0.2s ease-out;
  }

  #mobile-menu .panel .sub-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) auto;
    height: 100%;
    width: 250px;
    overflow: auto;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  #mobile-menu .panel .sub-menu-title {
    background-color: var(--website-color-3);
    border-radius: var(--border-radius-small);
    color: #000;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
    padding: var(--space-2);
    margin: var(--space-2) auto var(--space-1);
  }

  #mobile-menu .panel .sub-menu-title {
    width: fit-content;
    background-color: var(--website-color-3);
    border-radius: var(--border-radius-small);
    color: #000;
    text-align: center;
    font-weight: 700;
    text-transform: capitalize;
    padding: var(--space-1) var(--space-4);
    margin: var(--space-2) auto var(--space-1);
  }

    #mobile-menu .panel .sub-cat-name {
      display: inline-block;
      font-weight: 400;
      font-size: calc(0.825rem + 0.2vw);
      text-transform: capitalize;
      margin: var(--space-2) auto;
  }
  
  /* #mobile-menu .panel a {
    display: block;
    width: 75%;
    color: var(--color-white);
    text-decoration: none;
  } */
}