/**
 * UAE Jobs Workflow frontend.
 */

.ujw-workflow,
.ujw-workflow * {
	box-sizing: border-box;
}

.ujw-workflow {
	--ujw-accent: #2563eb;
	--ujw-panel: #f4f6f8;
	--ujw-card: #ffffff;
	--ujw-border: #e1e6eb;
	--ujw-text: #1d2327;
	--ujw-muted: #7a8490;
	width: 100%;
	margin: 0 0 6px;
	padding: 12px 0 7px;
	background: var(--ujw-panel);
	color: var(--ujw-text);
	font-family: inherit;
}

/* Keep the start/city panel visually connected to the article below it. */
.ujw-stage-city {
	margin-bottom: 4px;
	padding-bottom: 6px;
}

.ujw-shell {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 12px;
}

.ujw-heading {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--ujw-text);
	font-size: clamp(18px, 2vw, 21px);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.ujw-country-badge {
	display: table;
	margin: 0 auto 7px;
	padding: 4px 10px;
	border: 1px solid color-mix(in srgb, var(--ujw-accent) 25%, #dbe2ea);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ujw-accent) 7%, #fff);
	color: var(--ujw-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.ujw-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 9px;
	margin: 0;
	padding: 0;
}

.ujw-country-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ujw-country-option {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 86px;
	padding: 15px 17px;
	border: 1px solid var(--ujw-border);
	border-radius: 10px;
	background: var(--ujw-card);
	color: var(--ujw-text);
	text-decoration: none !important;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ujw-country-option:hover {
	border-color: var(--ujw-accent);
	box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
	color: var(--ujw-text);
	transform: translateY(-1px);
}

.ujw-country-option:focus-visible {
	outline: 3px solid var(--ujw-accent);
	outline-offset: 2px;
}

.ujw-country-flag {
	font-size: 30px;
	line-height: 1;
}

.ujw-country-option strong,
.ujw-country-option small {
	display: block;
}

.ujw-country-option strong {
	font-size: 16px;
}

.ujw-country-option small {
	margin-top: 5px;
	color: var(--ujw-muted);
	font-size: 12px;
}

.ujw-country-arrow {
	margin-left: auto;
	color: var(--ujw-accent);
	font-size: 21px;
	font-weight: 700;
}

.ujw-card {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 80px;
	margin: 0;
	padding: 15px 16px;
	border: 1px solid var(--ujw-border);
	border-radius: 9px;
	background: var(--ujw-card);
	box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
	color: var(--ujw-text);
	text-decoration: none !important;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ujw-card:hover {
	border-color: color-mix(in srgb, var(--ujw-accent) 42%, var(--ujw-border));
	box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
	color: var(--ujw-text);
	transform: translateY(-1px);
}

.ujw-card:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ujw-accent) 35%, transparent);
	outline-offset: 2px;
}

.ujw-card strong,
.ujw-card small {
	display: block;
}

.ujw-card strong {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ujw-card small {
	margin-top: 7px;
	color: var(--ujw-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

.ujw-card-copy {
	display: block;
	min-width: 0;
	margin-right: auto;
}

.ujw-city-icon {
	flex: 0 0 auto;
	margin-right: 13px;
	font-size: 21px;
	line-height: 1;
}

.ujw-city-pin {
	flex: 0 0 auto;
	margin-left: 16px;
	font-size: 20px;
	line-height: 1;
}

.ujw-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 80px;
	min-height: 44px;
	margin-left: 18px;
	padding: 10px 15px;
	border-radius: 8px;
	background: var(--ujw-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.ujw-card-qualification {
	min-height: 58px;
}

.ujw-right-meta {
	flex: 0 0 auto;
	margin: 0 0 0 auto !important;
	padding-left: 18px;
	color: var(--ujw-muted);
	text-align: right;
}

.ujw-card-experience {
	min-height: 82px;
}

.ujw-count {
	color: var(--ujw-accent) !important;
}

/* When injected before an archive loop that is itself a grid, span every column. */
.site-main > .ujw-workflow,
.content-area > .ujw-workflow,
main > .ujw-workflow {
	grid-column: 1 / -1;
}

/* Optional reference-style native WordPress result grid. */
body.ujw-result-cards .site-main {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

body.ujw-result-cards .site-main > :is(.page-header, .archive-header, .archive-description, .navigation, .paging-navigation, .posts-navigation, .ujw-workflow),
body.ujw-result-cards .site-main > nav {
	grid-column: 1 / -1;
}

body.ujw-result-cards .site-main > article {
	display: flex;
	min-width: 0;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: #eaf4fb;
	box-shadow: none;
	overflow: hidden;
}

body.ujw-result-cards .site-main > article > :is(.inside-article, .entry-content-wrap) {
	width: 100%;
	height: 100%;
	padding: 20px;
	background: #eaf4fb;
}

body.ujw-result-cards .site-main > article:not(:has(> .inside-article, > .entry-content-wrap)) {
	padding: 20px;
}

body.ujw-result-cards .site-main > article :is(.post-image, .featured-image, .post-thumbnail) {
	display: none;
}

body.ujw-result-cards .site-main > article :is(.entry-title, .post-title) {
	margin: 0 0 14px;
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 700;
	line-height: 1.35;
}

body.ujw-result-cards .site-main > article :is(.entry-title, .post-title) a {
	color: #111827;
	text-decoration: none;
}

body.ujw-result-cards .site-main > article :is(.entry-summary, .entry-content) {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.65;
}

body.ujw-result-cards .site-main > article :is(.entry-meta, .post-meta) {
	margin-top: auto;
	color: #667085;
	font-size: 12px;
}

body.ujw-result-cards .site-main > article > :is(.inside-article, .entry-content-wrap) {
	display: flex;
	flex-direction: column;
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
	.ujw-country-badge {
		border-color: #dbe2ea;
		background: #fff;
	}

	.ujw-card:hover {
		border-color: var(--ujw-accent);
	}

	.ujw-card:focus-visible {
		outline-color: var(--ujw-accent);
	}
}

@media (max-width: 600px) {
	.ujw-country-options {
		grid-template-columns: minmax(0, 1fr);
	}

	body.ujw-result-cards .site-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.ujw-workflow {
		padding-top: 12px;
	}

	.ujw-shell {
		padding-right: 10px;
		padding-left: 10px;
	}

	.ujw-heading {
		margin-bottom: 13px;
		font-size: 18px;
	}

	.ujw-card {
		min-height: 72px;
		padding: 13px 14px;
	}

	.ujw-card-qualification {
		min-height: 56px;
	}

	.ujw-card strong {
		font-size: 14px;
	}

	.ujw-apply {
		min-width: 72px;
		min-height: 40px;
		margin-left: 12px;
		padding: 9px 12px;
	}

	.ujw-city-icon {
		margin-right: 10px;
	}

	.ujw-city-pin {
		margin-left: 10px;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.ujw-country-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.ujw-result-cards .site-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
