/* Job Offer Board
   Most looks are set in Dashboard > Job Offers > Settings.
   For extra tweaks, override variables on .sps in your theme or Elementor custom CSS. */

.sps {
	--sps-accent: #0f6b5c;
	--sps-btn-text: #fff;
	--sps-radius: 14px;
	--sps-ratio: 4/3;
	--sps-line: rgba(128, 128, 128, .28);
	--sps-soft: rgba(128, 128, 128, .09);
	--sps-cols: 4;
	--sps-top: 0px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px 40px;
	color: inherit;
}
.sps *, .sps *::before, .sps *::after { box-sizing: inherit; }

.sps-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Search bar ---- */
.sps-bar { padding: 14px 0; }
.sps-bar--sticky {
	position: sticky;
	top: var(--sps-top);
	z-index: 50;
	background: var(--sps-bar-bg, Canvas);
	border-bottom: 1px solid var(--sps-line);
	margin: 0 -16px;
	padding: 12px 16px;
}
.sps-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sps-input, .sps-select, .sps-go {
	font: inherit;
	font-size: 16px; /* stops iOS zooming on focus */
	min-height: 48px;
	border-radius: 999px;
	margin: 0;
}
.sps-input, .sps-select {
	border: 1px solid var(--sps-line);
	background: var(--sps-soft);
	color: inherit;
	padding: 0 20px;
}
.sps-input { flex: 1 1 100%; min-width: 0; }
.sps-select { flex: 1 1 0; min-width: 0; padding-right: 14px; }
.sps-go {
	flex: 0 0 auto;
	border: 0;
	background: var(--sps-accent);
	color: var(--sps-btn-text);
	font-weight: 600;
	padding: 0 28px;
	cursor: pointer;
}
.sps-input:focus-visible, .sps-select:focus-visible {
	outline: 2px solid var(--sps-accent);
	outline-offset: 1px;
	background: transparent;
}
.sps-go:hover { filter: brightness(1.08); }
.sps-go:focus-visible, .sps-more:focus-visible, .sps-reset:focus-visible,
.sps-seemore:focus-visible {
	outline: 3px solid var(--sps-accent);
	outline-offset: 2px;
}
@media (min-width: 640px) {
	.sps-input { flex: 1 1 320px; }
	.sps-select { flex: 0 0 220px; }
}

.sps-status { margin: 16px 0 14px; font-size: .95rem; opacity: .75; }

/* ---- Job grid: 2 columns on phones, then 3, then your chosen count ---- */
.sps-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.sps-grid[hidden] { display: none; }
@media (max-width: 359px) {
	.sps-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 700px) {
	.sps-grid {
		grid-template-columns: repeat(min(3, var(--sps-cols)), minmax(0, 1fr));
		gap: 18px;
	}
}
@media (min-width: 1024px) {
	.sps-grid { grid-template-columns: repeat(var(--sps-cols), minmax(0, 1fr)); gap: 22px; }
}
.sps.is-loading .sps-grid { opacity: .5; transition: opacity .15s; }

/* ---- Card. The button link is stretched over the whole card, so the
        whole card is clickable while See more stays a separate button. ---- */
.sps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--sps-line);
	border-radius: var(--sps-radius);
	overflow: hidden;
	color: inherit;
	background: transparent;
	transition: border-color .15s, box-shadow .15s;
}
.sps-card--link:hover {
	border-color: var(--sps-accent);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .09);
}
.sps-media {
	aspect-ratio: var(--sps-ratio);
	background: var(--sps-soft);
	overflow: hidden;
}
.sps-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sps-media--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(2.5rem, 8vw, 3.75rem);
	line-height: 1;
	color: var(--sps-accent);
	font-weight: 700;
}
.sps-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	padding: 12px 12px 14px;
}
.sps-cat-label { font-size: .8rem; opacity: .65; }
.sps-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sps-type {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--sps-soft);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.5;
	opacity: .9;
	white-space: nowrap;
}
.sps-type--remote { color: var(--sps-accent); background: color-mix(in srgb, var(--sps-accent) 12%, transparent); }
.sps-type--closed { background: #b42318; color: #fff; opacity: 1; }
.sps-title { margin: 0; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.sps-sub { margin: 0; font-size: .84rem; line-height: 1.4; opacity: .72; overflow-wrap: anywhere; }
.sps-dot { margin: 0 5px; }
.sps-text {
	margin: 0;
	font-size: .9rem;
	line-height: 1.45;
	opacity: .78;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sps-full { display: none; font-size: .9rem; line-height: 1.55; opacity: .85; overflow-wrap: anywhere; }
.sps-full p { margin: 0 0 .7em; }
.sps-full p:last-child { margin-bottom: 0; }
.sps-card.is-open .sps-full { display: block; }
.sps-card.is-open .sps-text { display: none; }
.sps-grid.has-open { align-items: start; }
.sps-seemore {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	margin: 0;
	padding: 4px 0;
	min-height: 32px;
	border: 0;
	background: none;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	color: var(--sps-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.sps-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}
.sps-meta {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 10px;
	font-size: .82rem;
	line-height: 1.4;
}
.sps-salary { font-weight: 700; font-size: .95rem; }
.sps-level, .sps-deadline { opacity: .72; }
.sps-btn {
	margin-left: auto;
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid var(--sps-accent);
	border-radius: 999px;
	background: var(--sps-accent);
	color: var(--sps-btn-text);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.sps-btn::after { content: ""; position: absolute; inset: 0; }
.sps-btn:focus-visible { outline: none; }
.sps-btn:focus-visible::after { outline: 3px solid var(--sps-accent); outline-offset: -3px; border-radius: var(--sps-radius); }
.sps--outline .sps-btn { background: transparent; color: var(--sps-accent); }
@media (min-width: 700px) {
	.sps-body { padding: 14px 16px 16px; }
	.sps-title { font-size: 1.05rem; }
}

/* ---- Empty state and Show more ---- */
.sps-empty {
	text-align: center;
	padding: 48px 16px;
	border: 1px dashed var(--sps-line);
	border-radius: var(--sps-radius);
}
.sps-empty[hidden], .sps-more-wrap[hidden] { display: none; }
.sps-empty-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.sps-empty p { margin: 0 0 14px; opacity: .8; }
.sps-more-wrap { text-align: center; margin-top: 26px; }
.sps-more, .sps-reset {
	font: inherit;
	min-height: 46px;
	padding: 0 28px;
	border-radius: 999px;
	border: 1px solid var(--sps-accent);
	background: transparent;
	color: var(--sps-accent);
	font-weight: 600;
	cursor: pointer;
}
.sps-more:hover, .sps-reset:hover { background: var(--sps-accent); color: var(--sps-btn-text); }
.sps-more[disabled] { opacity: .5; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
	.sps * { transition: none !important; }
}
