.site-header {
  background-color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.5rem;
}

.site-branding {
  width: auto;
  height: var(--height-header);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation {
  display: flex;
  align-items: center;
  height: 72px;
  background: #02a9dc;
  margin-top: 12px;
}

.nav-item .nav-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  position: relative;
}

.nav-icon {
  display: block;
  width: 30px;
  height: 26px;
  margin-bottom: 5px;
  background-repeat: no-repeat;
  background-position: center top;
}

.nav-item:hover .nav-link {
  color: #3ffcfe;
}

.nav-item:hover .nav-icon {
  background-position: center bottom;
}

.list-button-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-direction: column;
  width: 100%;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.nav-item {
  position: relative;
}

.sub-nav {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(12, auto);

  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  color: #333;
  visibility: hidden;
  white-space: nowrap;
  padding: 3px;
}

.sub-nav::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #02a9dc;
}

.sub-nav::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 2px solid #02a9dc;
  background: #fff;
  z-index: -1;
}

.sub-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  font-size: 12px;
  border-bottom: 1.5px dotted #333;
  margin: 4px;
  margin-top: 0px;
  gap: 3px;
}

.sub-nav-item:hover {
  color: #02a9dc;
}

.sub-nav-item .nav-icon {
  margin-bottom: 0 !important;
  width: 24px;
  height: 24px;
  background-size: cover;
}

.sub-nav-item:last-child {
  border-bottom: none;
}

.nav-item:hover .sub-nav {
  visibility: visible;
}

.modal.open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

/*==================== RESPONSIVE ====================*/
@media screen and (min-width: 768px) {
  .main-navigation {
    margin-top: 0;
  }
  .site-header {
    flex-direction: row;
  }

  .list-button-header {
    flex-direction: row;
    width: max-content;
  }
}

@media screen and (min-width: 1024px) {
  .slider-nav {
    overflow-x: visible;
  }
}

@media screen and (max-width: 1023px) {
  .sub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    padding: 10px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-template-rows: none;
    z-index: 100;
  }

  .sub-nav.open {
    display: grid;
    visibility: visible;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  .sub-nav::before,
  .sub-nav::after {
    display: none;
  }
}
