/**
 * Careers module styles.
 *
 * Used by the "Careers Listing" Elementor widget and the single career
 * template. Mobile-first. Values mirror the Fiveight Elementor design
 * (Career/News pages, news cards and "See all news" buttons):
 * Libre Franklin, black text, red #D32828 accents (kit colour "7236961"),
 * beige #DECCC2 tags, outline pill buttons.
 */

/* ---------- Brand tokens ---------- */

.fv-careers,
.fv-careers-single {
	--fv-careers-red: var(--e-global-color-7236961, #d32828);
	--fv-careers-black: #000;
	--fv-careers-beige: #deccc2;
	--fv-careers-grey: #d9d9d9;
	--fv-careers-font: "Libre Franklin", sans-serif;
	font-family: var(--fv-careers-font);
	color: var(--fv-careers-black);
}

/* ---------- Shared: meta, tag, button ---------- */

.fv-careers-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	color: var(--fv-careers-black);
	font-size: 14px;
	font-weight: 300;
	line-height: 21px;
}

.fv-careers-location {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 13px;
	background-color: var(--fv-careers-beige);
}

.fv-careers-button,
.fv-careers-load-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px 9px;
	border: 1px solid var(--fv-careers-red);
	border-radius: 100px;
	background-color: transparent;
	color: var(--fv-careers-red);
	font-family: var(--fv-careers-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 21px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fv-careers-button:hover,
.fv-careers-button:focus,
.fv-careers-load-more:hover,
.fv-careers-load-more:focus {
	background-color: var(--fv-careers-red);
	color: #fff;
	text-decoration: none;
}

.fv-careers-button:focus-visible,
.fv-careers-load-more:focus-visible,
.fv-careers-pagination a.page-numbers:focus-visible,
.fv-careers-back a:focus-visible,
.fv-careers-title a:focus-visible {
	outline: 2px solid var(--fv-careers-red);
	outline-offset: 3px;
}

.fv-careers-icon {
	flex-shrink: 0;
	display: block;
	transition: transform 0.3s ease;
}

.fv-careers-button:hover .fv-careers-icon,
.fv-careers-button:focus .fv-careers-icon {
	transform: translateX(3px);
}

/* ---------- Listing widget ---------- */

.fv-careers-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.fv-careers-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border: 1px solid var(--fv-careers-grey);
	border-radius: 28px;
	background-color: #fff;
	transition: border-color 0.3s ease;
}

.fv-careers-card:hover,
.fv-careers-card:focus-within {
	border-color: var(--fv-careers-red);
}

.fv-careers-card .fv-careers-meta {
	order: -1; /* Tag sits above the title, like the news cards. */
}

.fv-careers-title {
	margin: 0;
	color: var(--fv-careers-black);
	font-family: var(--fv-careers-font);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
}

.fv-careers-title a {
	color: inherit;
	text-decoration: none;
}

.fv-careers-title a:hover,
.fv-careers-title a:focus {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--fv-careers-red);
	text-underline-offset: 4px;
}

.fv-careers-excerpt {
	margin: 0;
	color: var(--fv-careers-black);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.fv-careers-actions {
	margin-top: auto;
	padding-top: 8px;
}

.fv-careers-empty {
	margin: 0;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
}

/* ---------- Pagination (matches the News page "Load more") ---------- */

.fv-careers-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin-top: 40px;
}

.fv-careers-load-more:hover .fv-careers-icon,
.fv-careers-load-more:focus .fv-careers-icon {
	transform: translateY(3px);
}

.fv-careers-load-more.is-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: progress;
}

.fv-careers-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--fv-careers-red);
	border-radius: 100px;
	background-color: transparent;
	color: var(--fv-careers-red);
	font-family: var(--fv-careers-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fv-careers-pagination a.page-numbers:hover,
.fv-careers-pagination a.page-numbers:focus,
.fv-careers-pagination .page-numbers.current {
	background-color: var(--fv-careers-red);
	color: #fff;
	text-decoration: none;
}

.fv-careers-pagination .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	border-color: transparent;
	color: var(--fv-careers-black);
}

@media (min-width: 768px) {
	.fv-careers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.fv-careers-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fv-careers-card {
		padding: 32px;
	}

	.fv-careers-title {
		font-size: 24px;
		line-height: 31px;
	}
}

/* ---------- Single job ---------- */

/* Boxed to the Elementor content width, with the site's 6% side padding. */
.fv-careers-single .fv-careers-container {
	width: 100%;
	max-width: var(--fv-careers-container-width, 1400px);
	margin-inline: auto;
}

/* Hero: matches the Career/News page header. */
.fv-careers-hero {
	padding: 50px 6% 40px;
	border-bottom: 1px solid var(--fv-careers-red);
}

.fv-careers-back {
	margin: 0 0 24px;
	font-size: 16px;
	font-weight: 300;
	line-height: 21px;
}

.fv-careers-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fv-careers-red);
	text-decoration: none;
}

.fv-careers-back a:hover,
.fv-careers-back a:focus {
	color: var(--fv-careers-red);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.fv-careers-single-title {
	margin: 0 0 26px;
	color: var(--fv-careers-black);
	font-family: var(--fv-careers-font);
	font-size: 45px;
	font-weight: 400;
	line-height: 1.2;
}

.fv-careers-hero .fv-careers-meta {
	font-size: 16px;
}

/* Body */
.fv-careers-body {
	padding: 50px 6% 70px;
}

.fv-careers-section {
	max-width: 900px; /* Readable line length. */
	margin-bottom: 50px;
}

.fv-careers-section-title {
	margin: 0 0 20px;
	color: var(--fv-careers-black);
	font-family: var(--fv-careers-font);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
}

.fv-careers-content {
	color: var(--fv-careers-black);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8;
}

.fv-careers-content p {
	margin: 0 0 1em;
}

.fv-careers-content ul,
.fv-careers-content ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.fv-careers-content li {
	margin-bottom: 0.35em;
}

.fv-careers-content li::marker {
	color: var(--fv-careers-red);
}

.fv-careers-content a {
	color: var(--fv-careers-red);
}

.fv-careers-content strong,
.fv-careers-content b {
	font-weight: 600;
}

.fv-careers-content > :last-child {
	margin-bottom: 0;
}

.fv-careers-closed {
	display: inline-block;
	margin: 0;
	padding: 12px 20px;
	border-radius: 13px;
	background-color: var(--fv-careers-beige);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.fv-careers-hero {
		padding: 85px 6% 50px;
	}

	.fv-careers-single-title {
		font-size: 57px;
		line-height: 1.2;
	}

	.fv-careers-body {
		padding: 70px 6% 90px;
	}

	.fv-careers-section-title {
		font-size: 36px;
	}

	.fv-careers-content {
		font-size: 18px;
	}
}

@media (min-width: 1025px) {
	.fv-careers-hero {
		padding: 105px 6% 70px;
	}

	.fv-careers-single-title {
		font-size: 72px;
		line-height: 85px;
	}
}
