/**
 * Header tone (light/dark) and compact auth buttons on tablet-desktop widths.
 */

/* --- Light header: white logo + white nav (hero / subheader bg) --- */
body.rework-header-light:not(.careerfy-sticky-header) .careerfy-logo .logo--light {
	display: block !important;
}

body.rework-header-light:not(.careerfy-sticky-header) .careerfy-logo .logo--dark {
	display: none !important;
}

body.rework-header-light:not(.careerfy-sticky-header) .careerfy-navigation .level-1 > li > a,
body.rework-header-light:not(.careerfy-sticky-header) #menu-general.level-1 > li > a {
	color: #ffffff !important;
}

body.rework-header-light:not(.careerfy-sticky-header) .careerfy-navigation .level-1 > li > a:hover,
body.rework-header-light:not(.careerfy-sticky-header) #menu-general.level-1 > li > a:hover,
body.rework-header-light:not(.careerfy-sticky-header) .careerfy-navigation .level-1 > li.current-menu-item > a,
body.rework-header-light:not(.careerfy-sticky-header) #menu-general.level-1 > li.current-menu-item > a {
	color: var(--cfy-primary) !important;
}

/* --- Dark header: black logo + dark nav (no hero background) --- */
body.rework-header-dark:not(.careerfy-sticky-header) .careerfy-header-two {
	position: absolute;
	background: transparent !important;
	box-shadow: none !important;
	border-bottom: 0;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.rework-header-dark:not(.careerfy-sticky-header) .header-row {
	background-color: transparent;
}

body.rework-header-dark .careerfy-logo .logo--light {
	display: none !important;
}

body.rework-header-dark .careerfy-logo .logo--dark {
	display: block !important;
}

body.rework-header-dark .careerfy-navigation .level-1 > li > a,
body.rework-header-dark #menu-general.level-1 > li > a {
	color: var(--cfy-dark) !important;
}

body.rework-header-dark .careerfy-navigation .level-1 > li > a:hover,
body.rework-header-dark #menu-general.level-1 > li > a:hover,
body.rework-header-dark .careerfy-navigation .level-1 > li.current-menu-item > a,
body.rework-header-dark #menu-general.level-1 > li.current-menu-item > a {
	color: var(--cfy-primary) !important;
}

body.rework-header-dark.careerfy-sticky-header .careerfy-header-two {
	position: fixed;
	background-color: hsla(0, 0%, 100%, 0.72) !important;
	-webkit-backdrop-filter: saturate(180%) blur(12px) !important;
	backdrop-filter: saturate(180%) blur(12px) !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Dashboard: solid header bar (no transparent overlay over content) */
body.rework-page-dashboard:not(.careerfy-sticky-header) .careerfy-header-two {
	position: absolute;
	background-color: #f9fafb !important;
	box-shadow: none !important;
	border-bottom: 0;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body.rework-page-dashboard:not(.careerfy-sticky-header) .header-row {
	background-color: transparent;
}

/* Auth buttons: icons hidden on wide desktop, text visible */
.careerfy-user-option .login-btn i,
.careerfy-user-option .register-btn i {
	display: none;
	line-height: 1;
	font-size: 18px;
}

.careerfy-user-option .login-btn .auth-btn__label,
.careerfy-user-option .register-btn .auth-btn__label {
	display: inline;
}

/* Compact auth buttons + tighter header cluster (992–1280px) */
@media (min-width: 992px) and (max-width: 1280px) {
	.careerfy-header-search {
		flex-basis: 300px;
		max-width: 340px;
		min-width: 240px;
	}

	.careerfy-navigation .level-1.nav.navbar-nav,
	#menu-general.level-1 {
		gap: 12px;
	}

	.careerfy-user-option {
		flex-shrink: 0;
		gap: 8px;
	}

	.careerfy-user-option .login-btn i,
	.careerfy-user-option .register-btn i {
		display: inline-block;
	}

	.careerfy-user-option .login-btn .auth-btn__label,
	.careerfy-user-option .register-btn .auth-btn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.careerfy-user-option .login-btn,
	.careerfy-user-option .register-btn {
		position: relative;
		width: 40px;
		min-width: 40px;
		padding: 0;
		border-radius: 50%;
	}
}

/* --- Header notifications dropdown --- */
.jobsearch-hdernotifics-listitms {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.jobsearch-hdernotifics-listitms:before {
	border-bottom-color: #fff;
}

.jobsearch-hdernotifics-listitms:after {
	display: none;
}

.hdernotifics-title-con {
	float: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	text-transform: none;
	border-bottom: 1px solid #e2e8f0;
}

.hder-notifics-title {
	font-size: 15px;
	font-weight: 600;
	color: #1a202c;
}

.hder-notifics-count {
	float: none;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.3;
	text-transform: none;
}

.hder-notifics-count small {
	font-weight: 600;
	color: var(--cfy-primary, #0a65fc);
}

span.hder-notifics-nofound {
	float: none;
	display: block;
	padding: 28px 16px;
	font-size: 14px;
	color: #64748b;
	text-align: center;
	line-height: 1.5;
}
