/* ==========================================================================
   NextCareer Homepage V1 — scoped styles.
   Every rule is prefixed with .nch- (NextCareer Homepage) so nothing here
   can collide with Kadence's theme styles or the existing Code Snippets'
   global CSS (.nc-, .job-, .apply-button, etc.), which continue to load
   globally regardless of this page.
   ========================================================================== */

.nch-body {
	--nch-blue: #2563eb;
	--nch-blue-dark: #1d4ed8;
	--nch-blue-light: #eff6ff;
	--nch-ink: #0f172a;
	--nch-gray: #64748b;
	--nch-gray-light: #94a3b8;
	--nch-border: #e5e7eb;
	--nch-bg-soft: #f8fafc;
	--nch-white: #ffffff;
	--nch-radius: 14px;
	--nch-radius-sm: 9px;
	--nch-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	--nch-max-width: 1180px;

	margin: 0;
	color: var(--nch-ink);
	background: var(--nch-white);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.nch-body *,
.nch-body *::before,
.nch-body *::after {
	box-sizing: border-box;
}

.nch-body img {
	max-width: 100%;
	display: block;
}

/* ---------- CATEGORY COLOR SYSTEM ----------
   Pure CSS custom properties, no images. Applied via a data-color attribute
   on .nch-category-card / .nch-job-card; children inherit the three
   variables automatically (custom properties cascade), so badges/icons
   inside a colored card don't need their own data-color attribute.
   Anything with an unrecognized/missing data-color falls back to the
   neutral brand blue via the var(--x, fallback) pattern used below. */

.nch-category-card[data-color="ssc"],
.nch-job-card[data-color="ssc"] {
	--nch-cat-bg: #eaf2ff;
	--nch-cat-fg: #1d4ed8;
	--nch-cat-accent: #3b82f6;
}

.nch-category-card[data-color="banking"],
.nch-job-card[data-color="banking"] {
	--nch-cat-bg: #e9f9ef;
	--nch-cat-fg: #15803d;
	--nch-cat-accent: #22c55e;
}

.nch-category-card[data-color="railway"],
.nch-job-card[data-color="railway"] {
	--nch-cat-bg: #f3eefe;
	--nch-cat-fg: #6d28d9;
	--nch-cat-accent: #8b5cf6;
}

.nch-category-card[data-color="police"],
.nch-job-card[data-color="police"] {
	--nch-cat-bg: #fdeee6;
	--nch-cat-fg: #c2410c;
	--nch-cat-accent: #f97316;
}

.nch-category-card[data-color="defence"],
.nch-job-card[data-color="defence"] {
	--nch-cat-bg: #eef0ff;
	--nch-cat-fg: #4338ca;
	--nch-cat-accent: #6366f1;
}

.nch-category-card[data-color="teaching"],
.nch-job-card[data-color="teaching"] {
	--nch-cat-bg: #e9f9f6;
	--nch-cat-fg: #0f766e;
	--nch-cat-accent: #14b8a6;
}

.nch-container {
	max-width: var(--nch-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.nch-skip-link {
	position: absolute;
	left: -999px;
	top: auto;
	background: var(--nch-blue);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 8px 0;
	z-index: 1000;
}

.nch-skip-link:focus {
	left: 0;
	top: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- HEADER ---------- */

.nch-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--nch-white);
	border-bottom: 1px solid var(--nch-border);
}

.nch-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.nch-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	color: var(--nch-ink);
	flex-shrink: 0;
}

.nch-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--nch-blue);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.nch-logo__text {
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.01em;
}

/* Custom Logo image (Appearance > Customize > Site Identity). Height-based
   sizing with width:auto preserves the logo's original aspect ratio — never
   stretched/distorted. Sized to sit comfortably inside the desktop header
   without forcing it taller than necessary. Falls back to .nch-logo__mark /
   .nch-logo__text (above) whenever no custom logo is set, so this rule
   simply has nothing to size in that case. */
.nch-logo__image {
	display: block;
	height: 56px;
	width: auto;
	max-width: 100%;
}

.nch-nav {
	display: none;
}

.nch-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
}

.nch-nav__item {
	list-style: none;
}

.nch-nav__link {
	text-decoration: none;
	color: var(--nch-ink);
	font-weight: 600;
	font-size: 14.5px;
}

.nch-nav__link:hover {
	color: var(--nch-blue);
}

.nch-nav__item.is-active > .nch-nav__link,
.nch-nav__item.is-active .nch-nav__link-row .nch-nav__link {
	color: var(--nch-blue);
	font-weight: 700;
}

/* Government Jobs dropdown — link + small chevron toggle sit side by side.
   Base (mobile-first) rules only here; desktop positioning and the mobile
   expandable-submenu behavior are added in their own breakpoints below, so
   this block stays the single shared foundation for both. Open/closed state
   itself is controlled only by the .is-open class (toggled by the click
   handler in homepage.js) at every breakpoint — no CSS hover/focus-within
   reveal. */
.nch-nav__link-row {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nch-nav__dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 4px;
	margin: 0;
	color: var(--nch-gray);
	cursor: pointer;
	line-height: 0;
}

.nch-nav__dropdown-toggle .nch-icon {
	width: 15px;
	height: 15px;
}

.nch-nav__item--has-dropdown.is-open .nch-nav__dropdown-toggle .nch-icon {
	transform: rotate(180deg);
}

.nch-nav__dropdown {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
}

.nch-nav__dropdown a {
	text-decoration: none;
	color: var(--nch-ink);
	font-size: 14px;
	font-weight: 500;
}

.nch-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nch-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--nch-border);
	background: var(--nch-white);
	color: var(--nch-ink);
	cursor: pointer;
	padding: 0;
}

.nch-icon-btn:hover {
	background: var(--nch-bg-soft);
}

.nch-icon {
	width: 19px;
	height: 19px;
}

.nch-search-bar {
	border-top: 1px solid var(--nch-border);
	background: var(--nch-bg-soft);
	padding: 14px 0;
}

.nch-search-bar__form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--nch-white);
	border: 1px solid var(--nch-border);
	border-radius: var(--nch-radius-sm);
	padding: 8px 14px;
}

.nch-search-bar__form .nch-icon {
	color: var(--nch-gray);
	flex-shrink: 0;
}

.nch-search-bar__form input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 14.5px;
	background: transparent;
}

.nch-search-bar__form button {
	border: none;
	background: var(--nch-blue);
	color: #fff;
	font-weight: 700;
	font-size: 13.5px;
	padding: 9px 16px;
	border-radius: 7px;
	cursor: pointer;
	flex-shrink: 0;
}

.nch-search-bar__form button:hover {
	background: var(--nch-blue-dark);
}

/* Mobile nav panel */
@media (max-width: 899px) {
	.nch-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--nch-white);
		border-bottom: 1px solid var(--nch-border);
		box-shadow: var(--nch-shadow);
	}

	.nch-nav.is-open {
		display: block;
	}

	.nch-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 20px 16px;
	}

	.nch-nav__list li {
		border-bottom: 1px solid var(--nch-border);
	}

	.nch-nav__list li:last-child {
		border-bottom: none;
	}

	.nch-nav__link {
		display: block;
		padding: 13px 4px;
	}

	.nch-nav__link-row {
		justify-content: space-between;
	}

	.nch-nav__link-row .nch-nav__link {
		flex: 1;
	}

	/* On mobile the toggle button is the actual (only) way to open the
	   category submenu — there's no hover, so this is a real tap target
	   (44px minimum touch area), not just a visual indicator like on
	   desktop. */
	.nch-nav__dropdown-toggle {
		width: 44px;
		height: 44px;
	}

	.nch-nav__item--has-dropdown.is-open .nch-nav__dropdown {
		display: block;
	}

	.nch-nav__dropdown li {
		border-bottom: none;
	}

	.nch-nav__dropdown a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 8px 4px 8px 20px;
		color: var(--nch-gray);
	}
}

@media (min-width: 900px) {
	.nch-nav {
		display: block;
	}

	.nch-menu-toggle {
		display: none;
	}

	/* Government Jobs dropdown — click/tap-only on desktop too. Opens
	   exclusively via .is-open, the same class the toggle button's click
	   handler (homepage.js) and mobile both use, so there is a single
	   source of truth for open/closed state and no hover-vs-click
	   conflict. */
	.nch-nav__item--has-dropdown {
		position: relative;
	}

	.nch-nav__item--has-dropdown.is-open .nch-nav__dropdown {
		display: block;
	}

	.nch-nav__item--has-dropdown .nch-nav__dropdown {
		position: absolute;
		top: 100%;
		left: 0;
		margin-top: 12px;
		min-width: 190px;
		background: var(--nch-white);
		border: 1px solid var(--nch-border);
		border-radius: var(--nch-radius-sm);
		box-shadow: var(--nch-shadow);
		padding: 6px;
		z-index: 60;
	}

	.nch-nav__dropdown li + li {
		margin-top: 1px;
	}

	.nch-nav__dropdown a {
		display: block;
		padding: 8px 10px;
		border-radius: 6px;
	}

	.nch-nav__dropdown a:hover {
		background: var(--nch-bg-soft);
		color: var(--nch-blue);
	}
}

/* ---------- HERO ---------- */

.nch-hero {
	/* Pure CSS decorative background: layered radial glows plus a faint
	   dot-grid texture, under the base gradient. No images, no filter/blur —
	   just gradients, so it's effectively free to render. */
	position: relative;
	background-color: var(--nch-blue-light);
	background-image:
		radial-gradient(640px 380px at 85% -8%, rgba(37, 99, 235, 0.16), transparent 65%),
		radial-gradient(520px 340px at 8% 105%, rgba(139, 92, 246, 0.10), transparent 65%),
		radial-gradient(900px 500px at 50% -20%, rgba(37, 99, 235, 0.08), transparent 70%),
		linear-gradient(180deg, var(--nch-blue-light) 0%, #ffffff 100%);
	padding: 64px 0 56px;
	overflow: hidden;
}

.nch-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(560px 360px at 82% 0%, #000, transparent 70%);
	mask-image: radial-gradient(560px 360px at 82% 0%, #000, transparent 70%);
	pointer-events: none;
}

.nch-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
}

.nch-hero__eyebrow {
	display: block;
	width: fit-content;
	margin: 0 auto 16px;
	padding: 6px 14px;
	background: rgba(37, 99, 235, 0.08);
	color: var(--nch-blue-dark);
	border: 1px solid rgba(37, 99, 235, 0.16);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.nch-hero__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4.8vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 800;
	text-align: center;
}

.nch-hero__subtitle {
	margin: 0 auto 30px;
	color: var(--nch-gray);
	font-size: 17px;
	line-height: 1.7;
	max-width: 640px;
	text-align: center;
}

.nch-hero-search {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr auto;
	gap: 12px;
	background: var(--nch-white);
	border: 1px solid var(--nch-border);
	border-top: 3px solid var(--nch-blue);
	border-radius: var(--nch-radius);
	padding: 18px;
	box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
	text-align: left;
}

.nch-hero-search__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.nch-hero-search__field label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--nch-gray);
}

.nch-hero-search__control {
	position: relative;
	display: flex;
	align-items: center;
}

.nch-hero-search__control .nch-icon {
	position: absolute;
	left: 12px;
	width: 16px;
	height: 16px;
	color: var(--nch-gray);
	pointer-events: none;
}

.nch-hero-search__control:focus-within .nch-icon {
	color: var(--nch-blue);
}

.nch-hero-search__field input[type="text"],
.nch-hero-search__field select {
	height: 44px;
	padding: 0 12px 0 38px;
	border: 1px solid var(--nch-border);
	border-radius: 8px;
	font-size: 14.5px;
	background: var(--nch-white);
	width: 100%;
	box-sizing: border-box;
}

.nch-hero-search__field input:focus,
.nch-hero-search__field select:focus {
	outline: none;
	border-color: var(--nch-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.nch-hero-search__submit {
	align-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 26px;
	border: none;
	border-radius: 8px;
	background: var(--nch-blue);
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	white-space: nowrap;
}

.nch-hero-search__submit .nch-icon {
	width: 16px;
	height: 16px;
}

.nch-hero-search__submit:hover {
	background: var(--nch-blue-dark);
}

@media (max-width: 899px) {
	.nch-hero-search {
		grid-template-columns: 1fr;
	}

	.nch-hero-search__submit {
		width: 100%;
	}
}

/* ---------- SHARED SECTION LAYOUT ---------- */

.nch-section {
	padding: 46px 0;
}

.nch-section__title {
	margin: 0 0 22px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.nch-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.nch-section__header .nch-section__title {
	margin-bottom: 0;
}

.nch-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nch-blue);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

.nch-view-all .nch-icon {
	width: 15px;
	height: 15px;
}

.nch-view-all:hover {
	color: var(--nch-blue-dark);
}

.nch-badge {
	display: inline-flex;
	padding: 5px 10px;
	background: var(--nch-cat-bg, var(--nch-blue-light));
	color: var(--nch-cat-fg, var(--nch-blue));
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
}

.nch-empty-state {
	padding: 32px;
	text-align: center;
	color: var(--nch-gray);
	background: var(--nch-bg-soft);
	border: 1px dashed var(--nch-border);
	border-radius: var(--nch-radius);
}

/* ---------- QUICK CATEGORIES ---------- */

.nch-categories {
	background: var(--nch-bg-soft);
}

.nch-categories__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.nch-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 22px 14px;
	background: var(--nch-white);
	border: 1px solid var(--nch-border);
	border-radius: var(--nch-radius);
	text-decoration: none !important;
	color: var(--nch-ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nch-category-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--nch-shadow);
	border-color: var(--nch-cat-accent, #cbd5e1);
}

.nch-category-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--nch-cat-bg, var(--nch-blue-light));
	color: var(--nch-cat-fg, var(--nch-blue));
}

.nch-category-card__icon .nch-icon {
	width: 22px;
	height: 22px;
}

.nch-category-card__label {
	font-weight: 700;
	font-size: 14px;
}

@media (min-width: 640px) {
	.nch-categories__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.nch-categories__grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* ---------- LATEST GOVERNMENT JOBS ---------- */

.nch-jobs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.nch-job-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: var(--nch-white);
	border: 1px solid var(--nch-border);
	border-top: 3px solid var(--nch-cat-accent, var(--nch-blue));
	border-radius: var(--nch-radius);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nch-job-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--nch-shadow);
}

.nch-job-card__top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.nch-job-card__location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--nch-gray);
	font-size: 12.5px;
}

.nch-job-card__location .nch-icon {
	width: 13px;
	height: 13px;
}

.nch-job-card__title {
	margin: 0 0 12px;
	font-size: 17.5px;
	line-height: 1.4;
}

.nch-job-card__title a {
	color: var(--nch-ink);
	text-decoration: none;
}

.nch-job-card__title a:hover {
	color: var(--nch-blue);
}

.nch-job-card__meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

.nch-job-card__meta > div {
	padding: 10px 12px;
	background: var(--nch-bg-soft);
	border-radius: 8px;
}

.nch-job-card__meta span {
	display: block;
	font-size: 11px;
	color: var(--nch-gray);
	margin-bottom: 3px;
}

.nch-job-card__meta strong {
	font-size: 13px;
}

/* Important deadlines get a subtle warm accent instead of the neutral gray
   used for other meta fields — a visual cue, not a computed "urgent" state. */
.nch-job-card__meta--deadline {
	background: #fef3ea !important;
}

.nch-job-card__meta--deadline span {
	color: #c2410c;
}

.nch-job-card__meta--deadline strong {
	color: #9a3412;
}

.nch-job-card__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	color: var(--nch-blue);
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
}

.nch-job-card__cta .nch-icon {
	width: 14px;
	height: 14px;
}

.nch-job-card__cta:hover {
	color: var(--nch-blue-dark);
}

@media (min-width: 640px) {
	.nch-jobs__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.nch-jobs__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- ADVERTISEMENT ---------- */

.nch-ad-slot {
	padding: 10px 0 0;
}

.nch-ad-slot__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	border: 1px dashed var(--nch-gray-light);
	border-radius: var(--nch-radius-sm);
	background: var(--nch-bg-soft);
	color: var(--nch-gray);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---------- FUTURE OPPORTUNITY SECTIONS ---------- */

.nch-future {
	background: var(--nch-bg-soft);
}

.nch-future__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.nch-future-card {
	position: relative;
	padding: 24px;
	background: var(--nch-white);
	border: 1px solid var(--nch-border);
	border-radius: var(--nch-radius);
	scroll-margin-top: 90px;
}

.nch-future-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--nch-blue-light);
	color: var(--nch-blue);
	margin-bottom: 14px;
}

.nch-future-card__icon .nch-icon {
	width: 21px;
	height: 21px;
}

.nch-future-card h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.nch-future-card p {
	margin: 0 0 14px;
	color: var(--nch-gray);
	font-size: 14px;
	line-height: 1.6;
}

.nch-future-card__tag {
	display: inline-flex;
	padding: 5px 10px;
	background: var(--nch-bg-soft);
	border: 1px solid var(--nch-border);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: var(--nch-gray);
}

.nch-future-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nch-blue);
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
}

.nch-future-card__cta .nch-icon {
	width: 14px;
	height: 14px;
}

.nch-future-card__cta:hover {
	color: var(--nch-blue-dark);
}

@media (min-width: 640px) {
	.nch-future__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- BREADCRUMB ----------
   Shared by Government Job detail and Results/Answer Key detail pages
   (each adds its own breadcrumb markup in its own detail-head render
   function, both reusing this one rule set instead of duplicating it). */

.nch-breadcrumb {
	max-width: 900px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--nch-gray);
}

.nch-breadcrumb a {
	color: var(--nch-gray);
	text-decoration: none;
	font-weight: 600;
}

.nch-breadcrumb a:hover {
	color: var(--nch-blue);
}

.nch-breadcrumb__sep {
	color: var(--nch-gray-light);
}

.nch-breadcrumb__current {
	color: var(--nch-ink);
	font-weight: 700;
}

/* ---------- SHARED SITE WRAPPER (Jobs listing + detail pages) ----------
   Only used by templates/site-wrapper.php. The existing [nextcareer_jobs]
   shortcode already sets its own max-width/padding (.nc-jobs-page), so this
   wrapper stays light — its main job is giving individual Government Job
   posts (which have no container of their own) a readable content width,
   since they no longer get one from Kadence's theme markup on this
   template. */

.nch-site-main {
	min-height: 40vh;
}

.nch-site-content {
	padding: 20px 20px 60px;
}

/* ---------- FOOTER ---------- */

.nch-footer {
	background: var(--nch-ink);
	color: #cbd5e1;
	padding: 46px 0 0;
	margin-top: 10px;
}

.nch-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nch-footer__brand p {
	margin: 10px 0 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: #94a3b8;
	max-width: 320px;
}

.nch-logo__text--footer {
	color: #ffffff;
	font-size: 19px;
}

.nch-footer__col h4 {
	margin: 0 0 14px;
	color: #ffffff;
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.nch-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nch-footer__col a {
	color: #cbd5e1;
	text-decoration: none;
	font-size: 14px;
}

.nch-footer__col a:hover {
	color: #ffffff;
}

.nch-footer__bottom {
	padding: 20px 0;
}

.nch-footer__bottom p {
	margin: 0;
	font-size: 12.5px;
	color: #94a3b8;
}

.nch-footer__disclosure {
	margin-bottom: 8px !important;
	max-width: 640px;
	line-height: 1.5;
}

/* PHASE 7 (2026-07-24): Privacy Policy / Terms & Conditions / Disclaimer —
   readable-width body + heading, matching the same pattern used for
   Results/Diploma/Success Stories/Career News detail pages. */
.nch-static-page__title {
	max-width: 760px;
	margin: 32px auto 12px;
	padding: 0 20px;
	font-size: 28px;
	line-height: 1.25;
}

.nch-static-page-body {
	max-width: 760px;
	margin: 0 auto 48px;
	padding: 0 20px;
	color: var(--nch-ink, #1f2937);
	font-size: 15px;
	line-height: 1.7;
}

.nch-static-page-body h2 {
	margin-top: 28px;
	font-size: 19px;
}

@media (min-width: 900px) {
	.nch-footer__grid {
		grid-template-columns: 2fr repeat(3, 1fr);
	}
}

/* ==========================================================================
   HOMEPAGE SEO CONTENT SECTION (2026-07-31) ------------------------------
   Static SEO content block that sits below "More Ways to Plan Your Career"
   and above the shared footer on the Homepage only (see
   nextcareer_homepage_render_homepage_seo_content() in
   nextcareer-homepage.php, and templates/homepage-seo-content.php for the
   markup). The outer <section class="nch-section"><div class="nch-container">
   wrapper already used by every other homepage section supplies the width
   (matches .nch-container exactly, no new width rule needed) and vertical
   rhythm (.nch-section's existing 46px/28px padding) for free — only the
   prose typography below is new. Direct port of the already-proven
   .nc-jobs-seo / .nc-jobs-seo-toc / .nc-jobs-faq rules in jobs-pages.css,
   renamed to this block's own .nch-home- prefix so nothing collides with
   the Government Jobs listing page's SEO block (jobs-pages.css is never
   enqueued on the homepage, and vice versa).
   ========================================================================== */
.nch-home-seo {
	color: var(--nch-ink);
	font-size: 16px;
	line-height: 1.8;
}

.nch-home-seo h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 40px 0 18px;
	color: var(--nch-ink);
}

.nch-home-seo > h2:first-of-type {
	margin-top: 0;
}

.nch-home-seo h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 26px 0 12px;
	color: var(--nch-ink);
}

.nch-home-seo p {
	margin: 0 0 20px;
}

.nch-home-seo ul,
.nch-home-seo ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.nch-home-seo li {
	margin-bottom: 10px;
}

.nch-home-seo a {
	color: var(--nch-blue);
	text-decoration: underline;
}

/* "On this page" jump navigation — sits above the first heading, links to
   each H2 section's id. */
.nch-home-seo-toc {
	background: var(--nch-bg-soft);
	border: 1px solid var(--nch-border);
	border-radius: var(--nch-radius, 10px);
	padding: 20px 24px;
	margin: 0 0 36px;
}

.nch-home-seo-toc__label {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nch-gray);
}

.nch-home-seo-toc ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nch-home-seo-toc li {
	margin: 0;
}

.nch-home-seo-toc a {
	font-size: 14px;
	font-weight: 600;
	color: var(--nch-blue);
	text-decoration: none;
}

.nch-home-seo-toc a:hover,
.nch-home-seo-toc a:focus-visible {
	text-decoration: underline;
}

/* FAQ accordion — native <details>/<summary>, no JS. Only the FAQ section
   uses this collapsible pattern; every other section on this page stays
   fully expanded plain text/lists. Collapsed answer text stays in the DOM,
   so it's still crawled/indexed normally. */
.nch-home-faq {
	margin-top: 4px;
	border-top: 1px solid var(--nch-border);
}

.nch-home-faq__item {
	border-bottom: 1px solid var(--nch-border);
	padding: 18px 0;
}

.nch-home-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	color: var(--nch-ink);
	list-style: none;
}

.nch-home-faq__question::-webkit-details-marker {
	display: none;
}

.nch-home-faq__question::after {
	content: "+";
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	color: var(--nch-blue);
}

.nch-home-faq__item[open] .nch-home-faq__question::after {
	content: "\2212";
}

.nch-home-faq__question:focus-visible {
	outline: 2px solid var(--nch-blue);
	outline-offset: 3px;
}

.nch-home-faq__answer {
	margin: 12px 0 0;
	color: var(--nch-ink);
}

/* ==========================================================================
   MOBILE COMPACTNESS PASS — @media (max-width: 767px) only.
   Pure density/spacing reduction; no colors, structure, or content order
   changed. Desktop/tablet (>=768px) rules above are untouched. Reusable
   mobile spacing scale used across every NextCareer module in this pass:
     page/section vertical rhythm: 20-28px
     card padding: 14-16px
     card internal gaps: 8-10px
     field/button height floor: 44px (never reduced)
   ========================================================================== */
@media (max-width: 767px) {

	/* Header */
	.nch-header__inner {
		min-height: 60px;
		gap: 10px;
	}

	.nch-logo {
		gap: 8px;
	}

	.nch-logo__mark {
		width: 30px;
		height: 30px;
		font-size: 12px;
		border-radius: 8px;
	}

	.nch-logo__text {
		font-size: 16px;
	}

	.nch-logo__image {
		height: 42px;
	}

	.nch-header__actions {
		gap: 2px;
	}

	.nch-search-bar {
		padding: 10px 0;
	}

	/* Hero */
	.nch-hero {
		padding: 26px 0 22px;
	}

	.nch-hero__eyebrow {
		font-size: 11.5px;
		margin-bottom: 10px;
	}

	.nch-hero__title {
		margin-bottom: 10px;
	}

	.nch-hero__subtitle {
		margin-bottom: 18px;
		font-size: 14.5px;
		line-height: 1.6;
	}

	.nch-hero-search {
		padding: 12px;
		gap: 10px;
	}

	/* Shared section rhythm */
	.nch-section {
		padding: 28px 0;
	}

	.nch-section__title {
		font-size: 21px;
		margin-bottom: 16px;
	}

	.nch-section__header {
		margin-bottom: 16px;
	}

	/* Homepage SEO content block — same mobile scale-down already proven on
	   the Government Jobs listing page's .nc-jobs-seo (see jobs-pages.css). */
	.nch-home-seo {
		font-size: 15px;
		line-height: 1.7;
	}

	.nch-home-seo h2 {
		font-size: 19px;
		margin: 30px 0 12px;
	}

	.nch-home-seo h3 {
		font-size: 16px;
		margin: 20px 0 8px;
	}

	.nch-home-seo-toc {
		padding: 16px 18px;
		margin-bottom: 26px;
	}

	.nch-home-seo-toc ul {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.nch-home-faq__question {
		font-size: 15px;
	}

	.nch-home-faq__item {
		padding: 14px 0;
	}

	/* Quick categories */
	.nch-categories__grid {
		gap: 10px;
	}

	.nch-category-card {
		padding: 14px 10px;
		gap: 7px;
	}

	.nch-category-card__icon {
		width: 38px;
		height: 38px;
	}

	.nch-category-card__label {
		font-size: 12.5px;
	}

	/* Job preview cards (homepage) */
	.nch-jobs__grid {
		gap: 12px;
	}

	.nch-job-card {
		padding: 14px;
	}

	.nch-job-card__top {
		margin-bottom: 8px;
	}

	.nch-job-card__title {
		margin-bottom: 8px;
		font-size: 16px;
	}

	.nch-job-card__meta {
		gap: 8px;
		margin-bottom: 12px;
	}

	.nch-job-card__meta > div {
		padding: 8px 10px;
	}

	/* Ad slot */
	.nch-ad-slot__box {
		min-height: 64px;
		font-size: 11px;
	}

	/* Future opportunity cards */
	.nch-future__grid {
		gap: 12px;
	}

	.nch-future-card {
		padding: 16px;
	}

	.nch-future-card__icon {
		width: 36px;
		height: 36px;
		margin-bottom: 10px;
	}

	.nch-future-card p {
		margin-bottom: 10px;
	}

	/* Site wrapper (Jobs/News/Results/Diploma/Success Stories detail pages) */
	.nch-site-content {
		padding: 14px 16px 40px;
	}

	/* Breadcrumb */
	.nch-breadcrumb {
		margin-bottom: 12px;
		font-size: 12px;
	}

	/* Footer */
	.nch-footer {
		padding-top: 28px;
	}

	.nch-footer__grid {
		gap: 22px;
		padding-bottom: 22px;
	}

	.nch-footer__bottom {
		padding: 14px 0;
	}
}
