/* ============================================
   HEADER
   ============================================ */

/* Hide Astra default header */
.site-header,
.ast-header-wrap,
.main-header-bar {
  display: none !important;
}
/* Global container used by NexDesk header/footer + sections */
.nx-container{
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Custom Header */
.nx-header {
  background: white;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.nx-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nx-header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.nx-header-logo:hover {
  opacity: 0.8;
}

.nx-header-logo .nx-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nx-header-logo .nx-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #171717;
  white-space: nowrap;
}

/* Navigation Menu */
.nx-header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.nx-nav-menu,
.nx-nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nx-nav-menu li {
  margin: 0;
  position: relative;
}

.nx-nav-menu a {
  color: #737373;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nx-nav-menu a:hover {
  color: #3b82f6;
}

.nx-nav-menu .current-menu-item > a,
.nx-nav-menu .current_page_item > a {
  color: #3b82f6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .nx-header-wrap {
    gap: 1rem;
  }
  
  .nx-nav-menu {
    gap: 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .nx-header-logo .nx-logo-text {
    display: none; /* Hide text on very small screens, keep only icon */
  }
  
  .nx-nav-menu {
    gap: 0.75rem;
  }
  
  .nx-nav-menu a {
    font-size: 0.8125rem;
  }
}