/**
 * Public / logged-out header dropdowns — fix hover gap so menus stay open
 * (Categories, Find jobs, Employers, Candidates, Notifications, Sign in).
 * Loaded after style.css and brand-overrides.css.
 */

/* Extend parent hover hit area downward into the dropdown gap */
.sticky-area-wrap .header-ct-left .categories::after,
.sticky-area-wrap .header-ct-right .account::after,
#main-nav #menu-primary-menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 19;
}

/* Categories mega menu */
.sticky-area-wrap .header-ct-left .categories .sub-categorie {
  top: 100%;
  margin-top: 0;
  padding-top: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sticky-area-wrap .header-ct-left .categories .sub-categorie::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
}

.sticky-area-wrap .header-ct-left .categories .sub-categorie .pop-up,
.sticky-area-wrap .header-ct-left .categories .sub-categorie .pop-up-content {
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.sticky-area-wrap .header-ct-left .categories:hover .sub-categorie,
.sticky-area-wrap .header-ct-left .categories:focus-within .sub-categorie,
.sticky-area-wrap .header-ct-left .categories.is-dropdown-open .sub-categorie {
  opacity: 1;
  visibility: visible;
  top: 100%;
  pointer-events: auto;
}

/* Keep closed dropdowns hidden unless hovered / opened */
#main-nav #menu-primary-menu > li.menu-item-has-children:not(:hover):not(:focus-within):not(.is-dropdown-open) .sub-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Primary nav: Find jobs / Employers / Candidates */
#main-nav #menu-primary-menu > li.menu-item-has-children .sub-menu {
  top: 100%;
  margin-top: 0;
  padding-top: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

#main-nav #menu-primary-menu > li.menu-item-has-children .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
}

#main-nav #menu-primary-menu > li.menu-item-has-children .sub-menu > li {
  background: #fff;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

#main-nav #menu-primary-menu > li.menu-item-has-children .sub-menu > li:first-child {
  border-top: 1px solid #e5e5e5;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#main-nav #menu-primary-menu > li.menu-item-has-children .sub-menu > li:last-child {
  border-bottom: 1px solid #e5e5e5;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#main-nav #menu-primary-menu > li.menu-item-has-children:hover .sub-menu,
#main-nav #menu-primary-menu > li.menu-item-has-children:focus-within .sub-menu,
#main-nav #menu-primary-menu > li.menu-item-has-children.is-dropdown-open .sub-menu,
#main-nav #menu-primary-menu .menu-item-has-children:hover .menu-bar {
  opacity: 1;
  visibility: visible;
  top: 100%;
  pointer-events: auto;
}

/* Nested flyout (Jobs Listing → layouts) */
.header-ct-center #main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub {
  position: relative;
}

.header-ct-center #main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10px;
  width: 10px;
  z-index: 21;
}

.header-ct-center #main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub-menu {
  top: 0 !important;
  left: 100%;
  margin-left: 0;
  padding-left: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.header-ct-center #main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub-menu::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
}

.header-ct-center #main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub-menu > li {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

#main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub:hover .nav-sub-menu,
#main-nav #menu-primary-menu > li .sub-menu.st1 .nav-sub:focus-within .nav-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Notifications — logged-in icon + aligned panel, no scrollbar */
.sticky-area-wrap .header-ct-right .bell.bell--icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin-right: 12px;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon::before,
.sticky-area-wrap .header-ct-right .bell.bell--icon::after {
  display: none !important;
  content: none !important;
}

.header-notif-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  line-height: 0;
  text-transform: none !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

.header-notif-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification,
#header .sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification {
  top: calc(100% + 2px);
  left: auto;
  right: 0;
  width: min(560px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 90px));
  margin-top: 0;
  padding: 0;
  padding-top: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1300;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-heading,
.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-content,
.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-button {
  background: #fff;
  margin: 0;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-heading {
  flex-shrink: 0;
  padding: 16px 18px 12px;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  box-shadow: none;
  background: #fff;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px 10px;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  background: #f4f6f5;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sticky-area-wrap .header-ct-right .bell.bell--icon .sub-notification-button {
  flex-shrink: 0;
  padding: 12px 18px 16px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.sticky-area-wrap .header-ct-right .bell.bell--icon:hover .sub-notification,
.sticky-area-wrap .header-ct-right .bell.bell--icon:focus-within .sub-notification,
.sticky-area-wrap .header-ct-right .bell.bell--icon.is-dropdown-open .sub-notification {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 2px);
  pointer-events: auto;
}

/* Avatar-only account when logged in */
.sticky-area-wrap .header-ct-right .account.account--avatar-only {
  padding-right: 8px;
  gap: 0;
}

.sticky-area-wrap .header-ct-right .account.account--avatar-only .name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sticky-area-wrap .header-ct-right .account.account--avatar-only .sub-account {
  left: auto;
  right: 0;
  width: 220px;
}

.sticky-area-wrap .header-ct-right .account.account--guest {
  gap: 8px;
  padding-right: 12px;
}

.sticky-area-wrap .header-ct-right .account .header-guest-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #e8eeec;
  line-height: 0;
  flex-shrink: 0;
}

.sticky-area-wrap .header-ct-right .account.account--guest .name {
  font-size: 14px;
  font-weight: 600;
  color: #e8eeec;
  white-space: nowrap;
}

/* Sign in / account menu */
.sticky-area-wrap .header-ct-right .account .sub-account {
  top: 100%;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  width: 220px;
  left: auto;
  right: 0;
}

.sticky-area-wrap .header-ct-right .account .sub-account::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.sticky-area-wrap .header-ct-right .account .sub-account-item {
  background: transparent;
  padding: 0;
}

.sticky-area-wrap .header-ct-right .account .sub-account-item:first-child,
.sticky-area-wrap .header-ct-right .account .sub-account-item:last-child {
  border-radius: 0;
}

.sticky-area-wrap .header-ct-right .account:hover .sub-account,
.sticky-area-wrap .header-ct-right .account:focus-within .sub-account,
.sticky-area-wrap .header-ct-right .account.is-dropdown-open .sub-account {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sticky-area-wrap .header-ct-right .account.is-dropdown-open .sub-account,
.sticky-area-wrap .header-ct-right .account:hover .sub-account,
.sticky-area-wrap .header-ct-right .account:focus-within .sub-account {
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.sticky-area-wrap .header-ct-right .bell:not(:hover):not(:focus-within):not(.is-dropdown-open) .sub-notification,
.sticky-area-wrap .header-ct-right .account:not(:hover):not(:focus-within):not(.is-dropdown-open) .sub-account {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-area-wrap .header-ct-left .categories:not(:hover):not(:focus-within):not(.is-dropdown-open) .sub-categorie {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-area-wrap .header-ct-right .bell .header-notif-trigger {
  position: relative;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c2433;
}

.sticky-area-wrap .header-ct-right .bell .header-notif-icon {
  display: block;
  color: #f5b301;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.sticky-area-wrap .header-ct-right .bell .header-notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-item--btn {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-transform: none;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-item--btn.is-unread .content .name {
  font-weight: 700;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-read-all {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  padding: 10px 0;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-read-all:disabled {
  opacity: 0.45;
  cursor: default;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-item.sub-notification-card-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-transform: none;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-item.sub-notification-card-row:last-child {
  margin-bottom: 2px;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row__dot {
  width: 8px;
  height: 8px;
  margin-top: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row__dot.is-read {
  background: transparent;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row .time::before {
  display: none;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 14px 14px 12px;
  border: 1px solid #e4ebe7;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row--jobs.is-unread .sub-notification-card {
  background: #eaf6ee;
  border-color: #d7eadc;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row--candidates.is-unread .sub-notification-card {
  background: #ffffff;
  border-color: #eadff0;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row:hover .sub-notification-card {
  border-color: #c9d6d0;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d7eadc;
  color: #1e8e3e;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__icon--candidates {
  border-color: #eadff0;
  color: #7b1fa2;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row .time {
  padding-left: 0;
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #6b7280;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 18px;
  white-space: nowrap;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__badge--jobs {
  background: #e3f2fd;
  color: #1976d2;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card__badge--candidates {
  background: #f3e5f5;
  color: #7b1fa2;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row .name {
  display: block;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  text-transform: none;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-card-row .status {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #4b5563;
  text-transform: none;
}

.sticky-area-wrap .header-ct-right .bell .sub-notification-item:not(.sub-notification-card-row) {
  padding: 12px 4px;
  margin: 0;
  border: 0;
  color: #6b7280;
  font-size: 13px;
}
