/**
 * HD Hire Daily — Jobs directory page (page-jobs.php)
 * Mobile-first, scoped under .hd-jobs-page
 */
:root {
	--hd-orange: #ff5821;
	--hd-navy: #0a1b39;
	--hd-navy-soft: #132a52;
	--hd-bg: #f4f6f9;
	--hd-white: #fff;
	--hd-text: #1a2332;
	--hd-muted: #6b7280;
	--hd-border: #e8ecf1;
	--hd-peach: #ffe8de;
	--hd-green: #22a06b;
	--hd-tag-bg: #eef5ff;
	--hd-radius: 12px;
	--hd-radius-sm: 8px;
	--hd-font: "Poppins", system-ui, -apple-system, sans-serif;
}

.hd-jobs-page {
	font-family: var(--hd-font);
	color: var(--hd-text);
	background: var(--hd-bg);
	margin: 0;
	padding: 0;
}

.hd-jobs-page *,
.hd-jobs-page *::before,
.hd-jobs-page *::after {
	box-sizing: border-box;
}

/* Hide theme header only on this template and use custom header */
body.page-template-page-jobs .transparent-header-1,
body.page-template-page-jobs nav.mega-menu {
	display: none !important;
}

body.page-template-page-jobs .header-top-bar {
	display: none !important;
}

.hd-jobs-custom-header {
	background: #081833;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hd-jobs-custom-header__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0.45rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 70px;
}

.hd-jobs-custom-header__brand img {
	max-height: 20px;
	width: auto;
}

.hd-jobs-logo-text {
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
}

.hd-jobs-custom-header__nav {
	display: none;
}

@media (min-width: 992px) {
	.hd-jobs-custom-header__nav {
		display: block;
		width: 55%;
	}
}

.hd-jobs-main-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.15rem;
	justify-content: space-between;
}

.hd-jobs-main-menu li {
	margin: 0;
	padding: 0;
}

.hd-jobs-custom-header__nav a,
.hd-jobs-main-menu a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 500;
	padding: 0.25rem 0;
}

.hd-jobs-main-menu .current-menu-item > a,
.hd-jobs-main-menu .current_page_item > a {
	color: #fff;
	font-weight: 700;
}

.hd-jobs-custom-header__nav a.is-active {
	color: #fff;
	font-weight: 700;
}

.hd-jobs-custom-header__user {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hd-jobs-auth-link {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.82rem;
}

.hd-jobs-auth-link--primary {
	background: var(--hd-orange);
	color: #fff;
	padding: 0.42rem 0.7rem;
	border-radius: 6px;
}

.hd-jobs-user-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	text-decoration: none;
	font-size: 0.82rem;
}

.hd-jobs-bell {
	font-size: 1rem;
	opacity: 0.95;
}

.hd-jobs-user-avatar img {
	border-radius: 50%;
	display: block;
}

@media (max-width: 991px) {
	.hd-jobs-custom-header__user {
		display: none;
	}
}

/* --- Hero --- */
.hd-jobs-hero {
	position: relative;
	background: linear-gradient(135deg, var(--hd-navy) 0%, var(--hd-navy-soft) 100%);
	color: var(--hd-white);
	padding: 1.6rem 1rem 5.8rem;
	overflow: hidden;
}

.hd-jobs-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	opacity: 0.18;
	pointer-events: none;
}

.hd-jobs-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1320px;
	margin: 0 auto;
}

.hd-jobs-hero__title {
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	max-width: 34rem;
}

.hd-jobs-hero__title span {
	color: var(--hd-orange);
}

.hd-jobs-hero__sub {
	font-size: 0.95rem;
	opacity: 0.92;
	margin: 0 0 1.5rem;
	max-width: 28rem;
}

/* Search card */
.hd-jobs-search-card {
	background: var(--hd-white);
	border-radius: var(--hd-radius);
	padding: 1.25rem;
	box-shadow: 0 18px 40px rgba(10, 27, 57, 0.18);
	margin-top: 0.5rem;
	max-width: 1260px;
	margin-left: auto;
	margin-right: auto;
}

.hd-jobs-search-card__row {
	display: grid;
	gap: 0.75rem;
	align-items: stretch;
}

@media (min-width: 768px) {
	.hd-jobs-search-card__row {
		grid-template-columns: 1.15fr 1fr 0.85fr 0.85fr auto;
		align-items: end;
	}
}

.hd-jobs-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hd-jobs-field label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hd-muted);
}

.hd-jobs-field__wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius-sm);
	padding: 0.55rem 0.75rem;
	background: #fafbfc;
	transition: border-color 0.15s;
}

.hd-jobs-field__wrap:focus-within {
	border-color: var(--hd-orange);
}

.hd-jobs-field__wrap i {
	color: var(--hd-muted);
	font-size: 0.95rem;
	width: 1rem;
	text-align: center;
}

.hd-jobs-field input,
.hd-jobs-field select {
	border: 0;
	background: transparent;
	font: inherit;
	width: 100%;
	color: var(--hd-text);
	outline: none;
}

.hd-jobs-btn-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: var(--hd-orange);
	color: var(--hd-white) !important;
	font-weight: 600;
	border: 0;
	border-radius: var(--hd-radius-sm);
	padding: 0.85rem 1.5rem;
	cursor: pointer;
	text-decoration: none;
	min-height: 48px;
	transition: filter 0.15s, transform 0.1s;
	white-space: nowrap;
}

.hd-jobs-btn-search:hover {
	filter: brightness(1.06);
	color: var(--hd-white) !important;
}

.hd-jobs-popular {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.hd-jobs-popular__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--hd-muted);
	width: 100%;
}

@media (min-width: 768px) {
	.hd-jobs-popular__label {
		width: auto;
	}
}

.hd-jobs-pill {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--hd-border);
	background: var(--hd-white);
	font-size: 0.82rem;
	color: var(--hd-text);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.hd-jobs-pill:hover {
	border-color: var(--hd-orange);
	color: var(--hd-orange);
}

/* --- Main layout --- */
.hd-jobs-main {
	max-width: 1320px;
	margin: -1.4rem auto 0;
	padding: 0 1rem 3rem;
	position: relative;
	z-index: 2;
}

.hd-jobs-layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 992px) {
	.hd-jobs-layout {
		grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
		gap: 1.1rem;
		align-items: stretch;
	}

	.hd-jobs-filter-col {
		align-self: stretch;
	}
}

/* Sidebar filters (desktop) — sticky within feed column height */
.hd-jobs-sidebar,
.new-sidebar.hd-jobs-filter-sidebar-sticky {
	--hd-jobs-sticky-top: 1rem;
}

body.admin-bar .hd-jobs-sidebar,
body.admin-bar .new-sidebar.hd-jobs-filter-sidebar-sticky {
	--hd-jobs-sticky-top: calc(32px + 1rem);
}

@media (max-width: 782px) {
	body.admin-bar .hd-jobs-sidebar,
	body.admin-bar .new-sidebar.hd-jobs-filter-sidebar-sticky {
		--hd-jobs-sticky-top: calc(46px + 1rem);
	}
}

.hd-jobs-sidebar {
	background: var(--hd-white);
	border-radius: var(--hd-radius);
	border: 1px solid var(--hd-border);
	padding: 1.15rem;
	display: none;
}

@media (min-width: 992px) {
	.hd-jobs-sidebar,
	.new-sidebar.hd-jobs-filter-sidebar-sticky {
		display: flex;
		flex-direction: column;
		position: sticky;
		top: var(--hd-jobs-sticky-top);
		align-self: start;
		max-height: calc(100vh - var(--hd-jobs-sticky-top) - 1rem);
		overflow: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.hd-jobs-sidebar {
		display: flex;
	}

	.hd-jobs-sidebar__head {
		flex-shrink: 0;
	}

	.hd-jobs-sidebar > .hd-jobs-filter-panel,
	.hd-jobs-sidebar > .hd-jobs-filters-inner {
		flex: 1;
		min-height: 0;
	}

	.new-sidebar.hd-jobs-filter-sidebar-sticky .heading {
		flex-shrink: 0;
	}

	.new-sidebar.hd-jobs-filter-sidebar-sticky .hd-jobs-sidebar--embedded {
		flex: 1;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}
}

.hd-jobs-sidebar__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.hd-jobs-sidebar__head h2 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.hd-jobs-clear {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hd-orange);
	text-decoration: none;
}

.hd-jobs-clear:hover {
	text-decoration: underline;
}

.hd-jobs-filter-block {
	border-bottom: 1px solid var(--hd-border);
	padding: 0.85rem 0;
}

.hd-jobs-filter-block:last-of-type {
	border-bottom: 0;
}

.hd-jobs-filter-block summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 0.92rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hd-jobs-filter-block summary::-webkit-details-marker {
	display: none;
}

.hd-jobs-filter-block summary::after {
	content: "\f107";
	font-family: FontAwesome;
	font-weight: 900;
	color: var(--hd-muted);
	transition: transform 0.2s;
}

.hd-jobs-filter-block[open] summary::after {
	transform: rotate(-180deg);
}

.hd-jobs-check-list {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.hd-jobs-check-list li {
	margin-bottom: 0.45rem;
}

.hd-jobs-check-list label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	cursor: pointer;
}

.hd-jobs-check-list input[type="checkbox"] {
	accent-color: var(--hd-orange);
	width: 1rem;
	height: 1rem;
}

.hd-jobs-check-list .count {
	margin-left: auto;
	color: var(--hd-muted);
	font-size: 0.8rem;
}

.hd-jobs-check-list--scroll {
	max-height: 220px;
	overflow-y: auto;
	padding-right: 0.35rem;
}

.hd-jobs-check-list--scroll::-webkit-scrollbar {
	width: 6px;
}

.hd-jobs-check-list--scroll::-webkit-scrollbar-thumb {
	background: #d7dde6;
	border-radius: 10px;
}

.hd-jobs-salary-slider-wrap {
	margin-top: 0.75rem;
}

.hd-jobs-salary-slider-wrap input[type="range"] {
	width: 100%;
	accent-color: var(--hd-orange);
}

.hd-jobs-salary-hint {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--hd-muted);
	margin-top: 0.25rem;
}

.hd-jobs-sidebar select {
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.5rem 0.65rem;
	border-radius: var(--hd-radius-sm);
	border: 1px solid var(--hd-border);
	font: inherit;
	background: #fafbfc;
}

.hd-jobs-save-filters {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.65rem;
	border: 1px solid var(--hd-orange);
	color: var(--hd-orange);
	background: transparent;
	border-radius: var(--hd-radius-sm);
	font-weight: 600;
	cursor: pointer;
	font: inherit;
}

.hd-jobs-save-filters:hover {
	background: rgba(255, 88, 33, 0.06);
}

/* Feed column */
.hd-jobs-feed {
	min-width: 0;
	background: #fff;
	border: 1px solid var(--hd-border);
	border-radius: 12px;
	padding: 0.7rem 0.9rem 1rem;
}

.hd-jobs-tabs {
	display: flex;
	gap: 0.25rem;
	border-bottom: 2px solid var(--hd-border);
	margin-bottom: 0.85rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hd-jobs-tabs::-webkit-scrollbar {
	display: none;
}

.hd-jobs-tab {
	flex: 1;
	min-width: 0;
	text-align: center;
	padding: 0.65rem 0.5rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--hd-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

@media (min-width: 576px) {
	.hd-jobs-tab {
		font-size: 0.9rem;
		padding: 0.75rem 0.75rem;
	}
}

.hd-jobs-tab i {
	font-size: 0.95rem;
}

.hd-jobs-tab.is-active {
	color: var(--hd-orange);
	border-bottom-color: var(--hd-orange);
}

.hd-jobs-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.hd-jobs-toolbar__count {
	font-weight: 600;
	font-size: 0.95rem;
}

.hd-jobs-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
}

.hd-jobs-toolbar__sort select {
	padding: 0.45rem 0.65rem;
	border-radius: var(--hd-radius-sm);
	border: 1px solid var(--hd-border);
	font: inherit;
	background: var(--hd-white);
	min-width: 150px;
}

/* Promo banner */
.hd-jobs-promo {
	display: none;
	align-items: center;
	background: var(--hd-peach);
	border-radius: var(--hd-radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	position: relative;
	align-items: center;
	gap: 1rem;
	border: 1px solid rgba(255, 88, 33, 0.15);
}

.hd-jobs-promo.is-visible {
	display: flex;
	flex-wrap: wrap;
}

@media (min-width: 768px) {
	.hd-jobs-promo {
		flex-wrap: nowrap;
	}
}

.hd-jobs-promo__text {
	flex: 1;
	min-width: 200px;
}

.hd-jobs-promo__text strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.25rem;
	color: var(--hd-navy);
}

.hd-jobs-promo__text span {
	font-size: 0.88rem;
	color: var(--hd-muted);
}

.hd-jobs-promo__btn {
	background: var(--hd-orange);
	color: var(--hd-white) !important;
	padding: 0.55rem 1.1rem;
	border-radius: var(--hd-radius-sm);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.88rem;
	white-space: nowrap;
}

.hd-jobs-promo__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--hd-muted);
	font-size: 1.1rem;
	line-height: 1;
	padding: 0.25rem;
}

/* Job cards */
.hd-jobs-card {
	background: var(--hd-white);
	border: 1px solid var(--hd-border);
	border-radius: 10px;
	padding: 1rem 1rem 0.85rem;
	margin-bottom: 0.75rem;
	display: grid;
	gap: 0.75rem;
	position: relative;
	transition: box-shadow 0.15s;
}

@media (min-width: 768px) {
	.hd-jobs-card {
		grid-template-columns: 72px 1fr auto;
		align-items: start;
		padding: 1.15rem 1.15rem 0.85rem;
	}
}

.hd-jobs-card:hover {
	box-shadow: 0 8px 24px rgba(10, 27, 57, 0.08);
}

.hd-jobs-card__logo {
	width: 64px;
	height: 64px;
	border-radius: var(--hd-radius-sm);
	border: 1px solid var(--hd-border);
	overflow: hidden;
	flex-shrink: 0;
	background: #f8f9fb;
}

.hd-jobs-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hd-jobs-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
}

.hd-jobs-badge {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
}

.hd-jobs-badge--featured {
	background: var(--hd-orange);
	color: var(--hd-white);
}

.hd-jobs-badge--urgent {
	background: rgba(34, 160, 107, 0.15);
	color: var(--hd-green);
}

.hd-jobs-card__title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.hd-jobs-card__title a {
	color: var(--hd-navy);
	text-decoration: none;
}

.hd-jobs-card__title a:hover {
	color: var(--hd-orange);
}

.hd-jobs-card__company {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	font-size: 0.88rem;
	margin-bottom: 0.35rem;
}

.hd-jobs-card__company a {
	color: var(--hd-text);
	text-decoration: none;
}

.hd-jobs-card__company .verified {
	color: #2563eb;
}

.hd-jobs-card__meta {
	font-size: 0.82rem;
	color: var(--hd-muted);
	margin: 0 0 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.hd-jobs-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.hd-jobs-tag {
	font-size: 0.72rem;
	padding: 0.2rem 0.55rem;
	background: var(--hd-tag-bg);
	color: var(--hd-navy-soft);
	border-radius: 4px;
	font-weight: 500;
}

.hd-jobs-card__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.65rem;
	min-width: 150px;
	justify-content: flex-end;
}

@media (max-width: 767px) {
	.hd-jobs-card__aside {
		grid-column: 1 / -1;
		padding-top: 0.5rem;
		border-top: 1px solid var(--hd-border);
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
	}
}

.hd-jobs-card__salary {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--hd-orange);
}

.hd-jobs-card__apply .btn,
.hd-jobs-card__apply a.btn {
	border-radius: var(--hd-radius-sm) !important;
	background: var(--hd-orange) !important;
	border-color: var(--hd-orange) !important;
	color: var(--hd-white) !important;
	font-weight: 600;
	padding: 0.5rem 1.15rem !important;
	display: inline-block;
	white-space: nowrap;
}

.hd-jobs-card__fav {
	position: static;
	line-height: 1;
}

.hd-jobs-card__fav a {
	color: var(--hd-muted);
	font-size: 1.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hd-jobs-card__fav a.saved,
.hd-jobs-card__fav a:hover {
	color: var(--hd-orange);
}

.hd-jobs-card__footer {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.78rem;
	color: var(--hd-muted);
	padding-top: 0.65rem;
	border-top: 1px solid var(--hd-border);
}

/* Features strip */
.hd-jobs-features {
	max-width: 1320px;
	margin: 0 auto 2rem;
	padding: 1.5rem 1rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 768px) {
	.hd-jobs-features {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.hd-jobs-feature {
	text-align: center;
	padding: 0.75rem;
}

.hd-jobs-feature i {
	font-size: 1.5rem;
	color: var(--hd-orange);
	margin-bottom: 0.5rem;
	display: block;
}

.hd-jobs-feature strong {
	display: block;
	font-size: 0.88rem;
	margin-bottom: 0.25rem;
	color: var(--hd-navy);
}

.hd-jobs-feature span {
	font-size: 0.78rem;
	color: var(--hd-muted);
	line-height: 1.35;
}

/* Pagination */
.hd-jobs-pagination {
	margin-top: 1.5rem;
}

.hd-jobs-pagination ul.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-jobs-pagination ul.pagination li a,
.hd-jobs-pagination ul.pagination li span {
	display: inline-block;
	padding: 0.45rem 0.75rem;
	border-radius: var(--hd-radius-sm);
	border: 1px solid var(--hd-border);
	background: var(--hd-white);
	color: var(--hd-text);
	text-decoration: none;
	font-size: 0.88rem;
}

.hd-jobs-pagination ul.pagination li span.current {
	background: var(--hd-orange);
	border-color: var(--hd-orange);
	color: var(--hd-white);
}

/* Mobile: filter FAB + drawer */
.hd-jobs-fab {
	display: flex;
	position: fixed;
	right: 1rem;
	bottom: 5.5rem;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hd-orange);
	color: var(--hd-white);
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(255, 88, 33, 0.45);
	border: 0;
	cursor: pointer;
	z-index: 1002;
	font-size: 1.35rem;
}

@media (min-width: 992px) {
	.hd-jobs-fab {
		display: none;
	}
}

.hd-jobs-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(10, 27, 57, 0.55);
	z-index: 1003;
	opacity: 0;
	transition: opacity 0.25s;
}

.hd-jobs-drawer-overlay.is-open {
	display: block;
	opacity: 1;
}

.hd-jobs-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(100%, 400px);
	height: 100%;
	background: var(--hd-white);
	z-index: 1004;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.hd-jobs-drawer.is-open {
	transform: translateX(0);
}

.hd-jobs-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 0.75rem;
	border-bottom: 1px solid var(--hd-border);
	position: sticky;
	top: 0;
	background: var(--hd-white);
	z-index: 1;
}

.hd-jobs-drawer__head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.hd-jobs-drawer__close {
	background: transparent;
	border: 0;
	font-size: 1.35rem;
	cursor: pointer;
	color: var(--hd-muted);
	line-height: 1;
	padding: 0.25rem;
}

.hd-jobs-drawer__body {
	padding: 0.75rem 1rem 6rem;
	flex: 1;
}

.hd-jobs-drawer .hd-jobs-filter-panel__actions {
	display: none;
}

.hd-jobs-drawer__footer {
	position: sticky;
	bottom: 0;
	padding: 1rem;
	background: var(--hd-white);
	border-top: 1px solid var(--hd-border);
	display: grid;
	gap: 0.5rem;
}

.hd-jobs-drawer__footer .hd-jobs-btn-search {
	width: 100%;
}

/* Mobile bottom bar + nav */
.hd-jobs-mobile-cta {
	display: none;
	position: fixed;
	bottom: 3.75rem;
	left: 0;
	right: 0;
	background: var(--hd-navy);
	color: var(--hd-white);
	padding: 0.5rem 0.75rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	z-index: 1001;
	font-size: 0.78rem;
}

@media (max-width: 991px) {
	.hd-jobs-mobile-cta {
		display: flex;
	}
}

.hd-jobs-mobile-cta a {
	color: var(--hd-orange);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.hd-jobs-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--hd-white);
	border-top: 1px solid var(--hd-border);
	padding: 0.35rem 0 0.5rem;
	z-index: 1001;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 991px) {
	.hd-jobs-bottom-nav {
		display: block;
	}
}

.hd-jobs-bottom-nav__inner {
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	max-width: 520px;
	margin: 0 auto;
}

.hd-jobs-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	font-size: 0.62rem;
	color: var(--hd-muted);
	text-decoration: none;
	padding: 0.2rem 0.35rem;
	min-width: 0;
}

.hd-jobs-bottom-nav a i {
	font-size: 1.15rem;
}

.hd-jobs-bottom-nav a.is-active {
	color: var(--hd-orange);
	font-weight: 600;
}

@media (max-width: 991px) {
	body.hd-jobs-page-active {
		padding-bottom: 7.5rem;
	}
}

.hd-jobs-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--hd-muted);
}

.hd-jobs-empty i {
	font-size: 2.5rem;
	color: var(--hd-border);
	margin-bottom: 0.75rem;
	display: block;
}

/* Horizontal scroll popular on very small screens */
.hd-jobs-popular-scroll {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

@media (min-width: 768px) {
	.hd-jobs-popular-scroll {
		flex-wrap: wrap;
		overflow: visible;
		width: auto;
	}
}

.hd-jobs-salary-range-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hd-jobs-salary-range-row .hd-jobs-salary-select {
	flex: 1;
	min-width: 120px;
}

.hd-jobs-salary-sep {
	color: var(--hd-muted);
	font-size: 0.85rem;
}

.hd-jobs-field select[multiple] {
	min-height: 2.75rem;
}

.hd-nav-industry-menu {
	display: inline-flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hd-nav-industry-menu__controls {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.hd-nav-industry-menu__select {
	min-width: 160px;
	max-width: 220px;
}

.hd-nav-industry-menu__go {
	border: 0;
	background: var(--hd-accent, #ff5821);
	color: #fff;
	border-radius: 6px;
	padding: 0.35rem 0.75rem;
	cursor: pointer;
	font-size: 0.85rem;
}

.hd-industry-search-go-wrap {
	margin-top: 0.5rem;
}

.dashboard-edit-profile .hd-emp-sub-office-row {
	flex-wrap: wrap;
}

.hd-search-filter-accordion .hd-jobs-salary-range-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hd-search-filter-accordion .hd-jobs-salary-range-row select {
	flex: 1;
	min-width: 0;
}

.hd-search-filter-accordion .select2-container {
	width: 100% !important;
}

.dashboard-edit-profile .hd-emp-sub-office-row__label {
	flex: 0 0 100%;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px;
}

/* —— HD custom filter panel (Find Jobs + Search) —— */
.hd-jobs-filter-panel {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 0;
}

.hd-jobs-filter-panel__sections {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 0.15rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hd-jobs-filter-panel__sections::-webkit-scrollbar {
	width: 6px;
}

.hd-jobs-filter-panel__sections::-webkit-scrollbar-thumb {
	background: rgba(15, 23, 42, 0.18);
	border-radius: 999px;
}

.hd-jobs-filter-panel .hd-jobs-filter-section {
	padding: 0.9rem 0 !important;
	border-bottom: 1px solid var(--hd-border, #e8ecf1);
}

.hd-jobs-filter-panel .hd-jobs-filter-section:first-child {
	padding-top: 0.25rem !important;
}

.hd-jobs-filter-field--keyword {
	margin-bottom: 0;
}

.hd-jobs-filter-keyword-input {
	min-height: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.88rem;
}

.hd-jobs-filter-panel .hd-jobs-filter-section:last-child {
	border-bottom: 0;
	padding-bottom: 0 !important;
}

.hd-jobs-filter-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--hd-text, #0f172a);
	margin: 0 0 0.55rem;
	line-height: 1.3;
}

.hd-jobs-filter-field {
	position: relative;
}

.hd-jobs-filter-field--qual {
	z-index: 1;
}

.hd-jobs-filter-panel .hd-jobs-filter-control,
.hd-jobs-filter-panel select.form-control,
.hd-jobs-filter-panel .select2-container {
	width: 100% !important;
}

.hd-jobs-filter-panel select.hd-jobs-filter-control,
.hd-jobs-filter-panel .hd-jobs-salary-select {
	min-height: 46px;
	height: 46px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0 12px;
	font-size: 0.88rem;
	color: #0f172a;
	background: #fff;
	box-shadow: none;
	appearance: auto;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--single,
.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple {
	min-height: 46px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hd-jobs-filter-panel .select2-container--default.select2-container--focus .select2-selection--single,
.hd-jobs-filter-panel .select2-container--default.select2-container--focus .select2-selection--multiple,
.hd-jobs-filter-panel .select2-container--default.select2-container--open .select2-selection--single,
.hd-jobs-filter-panel .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: var(--hd-orange, #ff5821);
	box-shadow: 0 0 0 3px rgba(255, 88, 33, 0.12);
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	padding: 0 12px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 44px;
	font-size: 0.88rem;
	color: #0f172a;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
	right: 8px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple {
	padding: 4px 8px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	min-height: 34px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin: 0;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 6px;
	font-size: 0.78rem;
	padding: 2px 6px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple .select2-search__field {
	margin: 0;
	font-size: 0.88rem;
	min-height: 28px;
}

.hd-jobs-filter-panel .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
	color: #94a3b8;
	font-size: 0.88rem;
	line-height: 34px;
}

.hd-jobs-filter-panel .hd-jobs-salary-range-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.5rem;
}

.hd-jobs-filter-panel .hd-jobs-salary-sep {
	font-size: 0.82rem;
	color: var(--hd-muted, #64748b);
	text-align: center;
}

.hd-jobs-filter-panel__actions {
	flex-shrink: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	padding: 0.85rem 0 0;
	margin-top: 0.35rem;
	border-top: 1px solid var(--hd-border, #e8ecf1);
	background: #fff;
}

.hd-jobs-filter-panel__clear {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hd-muted, #64748b);
	text-decoration: none;
	text-align: center;
	padding: 0.35rem 0;
}

.hd-jobs-filter-panel__clear:hover {
	color: var(--hd-orange, #ff5821);
}

.hd-jobs-filter-panel .hd-jobs-filter-apply {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 0;
	border-radius: 8px;
	padding: 0.72rem 1rem;
	font-weight: 700;
	font-size: 0.92rem;
	background: var(--hd-orange, #ff5821);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(255, 88, 33, 0.28);
}

.hd-jobs-filter-panel .hd-jobs-filter-apply:hover {
	filter: brightness(1.03);
}

.hd-jobs-filter-panel .hd-jobs-save-filters {
	width: 100%;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 8px;
	padding: 0.6rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hd-muted, #64748b);
	cursor: pointer;
}

.hd-jobs-sidebar--embedded {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	display: block;
	min-height: 0;
}

.hd-jobs-sidebar--embedded .hd-jobs-filter-panel {
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--hd-border, #e8ecf1);
	padding: 0.75rem 1rem 1rem;
	box-shadow: none;
	flex: 1;
	min-height: 0;
}

@media (min-width: 992px) {
	.new-sidebar.hd-jobs-filter-sidebar-sticky {
		padding-bottom: 0.75rem;
	}

	.n-search-page .row > .col-xxl-4.hd-jobs-filter-col,
	.n-search-page .row > .col-lg-4.hd-jobs-filter-col {
		align-self: stretch;
	}
}

.new-sidebar .hd-jobs-sidebar--embedded {
	margin-top: 0.25rem;
}

.new-sidebar .hd-jobs-filter-panel__actions {
	padding-bottom: 0.5rem;
}
