/* ==============================
   NAUKRIGULF EXACT HEADER SYSTEM
   ============================== */
.ng-header {
  background: var(--ng-white, #fff);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  font-family: var(--ng-font-primary), sans-serif;
}

.ng-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
  justify-content: space-between;
}

.ng-logo {
  height: 30px;
  width: auto;
}
.ng-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* PRIMARY NAV */
.ng-nav-primary {
  display: flex;
  align-items: center;
  height: 100%;
}

.ng-nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.ng-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ng-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155; /* slate-700 */
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
  text-transform: uppercase;
}

.ng-nav-link:hover, .ng-nav-item.active .ng-nav-link {
  color: var(--ng-blue, #1d64f2);
  text-decoration: none;
}

.ng-caret {
  font-size: 8px;
  color: #94a3b8;
}

/* MEGA MENU */
.ng-mega-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: -120px;
  width: 760px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--ng-blue, #1d64f2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 999;
}
.ng-has-mega:hover .ng-mega-menu {
  display: block;
}

.ng-mega-inner {
  display: flex;
  gap: 0;
  padding: 24px;
}

.ng-mega-col {
  flex: 1;
  padding: 0 16px;
  border-right: 1px solid #f1f5f9;
}
.ng-mega-col:last-child {
  border-right: none;
}

.ng-mega-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.ng-mega-col ul li {
  margin-bottom: 8px;
}

.ng-mega-col ul li a {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}
.ng-mega-col ul li a:hover {
  color: var(--ng-blue, #1d64f2);
}

.ng-view-all {
  color: var(--ng-blue, #1d64f2) !important;
  font-weight: 700;
}

/* DROPDOWN */
.ng-dropdown {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 200px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 2px solid var(--ng-blue, #1d64f2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  z-index: 999;
}

.ng-has-dropdown:hover .ng-dropdown {
  display: block;
}

.ng-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
}

.ng-dropdown a:hover {
  background: #f8fafc;
  color: var(--ng-blue, #1d64f2);
}

/* RIGHT ACTIONS */
.ng-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.ng-btn-text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 12px;
  transition: color 0.15s;
}
.ng-btn-text:hover {
  color: var(--ng-blue, #1d64f2);
  text-decoration: none;
}

.ng-btn-red {
  background: var(--ng-red, #e53e3e);
  color: #fff !important;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 16px;
  font-size: 13px;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.ng-btn-red:hover {
  background: #c53030;
  text-decoration: none;
}

/* EMPLOYER BUTTON */
.ng-employer-menu {
  height: 100%;
  display: flex;
  align-items: center;
}

.ng-btn-employer {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  height: 100%;
  letter-spacing: 0.3px;
}
.ng-btn-employer:hover {
  color: var(--ng-blue, #1d64f2);
}

.ng-dropdown-right {
  left: auto;
  right: 0;
  width: 220px;
}

/* ICON INDICATORS */
.ng-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  padding: 0 8px;
  position: relative;
  transition: color 0.15s;
}
.ng-header-icon:hover {
  color: var(--ng-blue, #1d64f2);
}

.ng-icon-badge {
  position: absolute;
  top: -2px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #ef4444; /* red-500 */
  border-radius: 50%;
}

/* MOBILE TOGGLE */
.ng-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #334155;
  padding: 8px;
}

@media (max-width: 992px) {
  .ng-mobile-toggle {
    display: block;
  }
  .ng-nav-primary {
    display: none;
  }
  .ng-nav-actions {
    display: none;
  }

  /* Mobile nav open state */
  .ng-nav-primary.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 998;
    padding: 16px 16px 24px;
    gap: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    align-items: stretch;
  }

  /* Show nav actions inside the open mobile nav */
  .ng-nav-primary.open + .ng-nav-actions,
  .ng-nav-primary.open ~ .ng-nav-actions {
    display: none; /* keep hidden — actions go into nav panel via JS below */
  }
}

@media (max-width: 768px) {
  /* Mobile action buttons shown at bottom of mobile menu via .ng-mobile-actions class */
  .ng-mobile-actions {
    display: flex;
    gap: 10px;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
  }
  .ng-mobile-actions a,
  .ng-mobile-actions button {
    flex: 1;
    text-align: center;
    padding: 10px 0;
  }
}
