/**
 * Tobalt Job Vacancies — frontend styles
 * Author: Tobalt — https://tobalt.lt
 *
 * CSS variables expose every color decision so themes can override per-site.
 */

:root {
	--tb-vac-bg-card:   #e8f5f4;
	--tb-vac-accent:    #1ab5a8;
	--tb-vac-header-bg: #6b6b6b;
	--tb-vac-text:      #2d2d2d;
	--tb-vac-muted:     #666;
	--tb-vac-border:    #e0e0e0;
	--tb-vac-cta-all:   #ff5733;
	--tb-vac-bullet:    #1ab5a8;
}

/* ══════════════════════════════════════════════════════
   LIST + CARDS (CPO LT style)
   ══════════════════════════════════════════════════════ */
.tb-vac-list {
	max-width: 960px;
	margin: 0 auto;
	color: var(--tb-vac-text);
	font-family: inherit;
}

.tb-vac-list-head { margin-bottom: 16px; }

.tb-vac-list-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.tb-vac-list-count {
	color: var(--tb-vac-muted);
	font-weight: 500;
	margin-right: 4px;
}

.tb-vac-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tb-vac-card {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	background: var(--tb-vac-bg-card);
	border-radius: 4px;
}

.tb-vac-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.tb-vac-card-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--tb-vac-text);
	text-decoration: none;
	line-height: 1.3;
}

.tb-vac-card-title:hover { text-decoration: underline; }

.tb-vac-card-subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--tb-vac-muted);
	font-weight: 400;
}

.tb-vac-card-meta {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--tb-vac-muted);
}

.tb-vac-card-ongoing {
	display: inline-block;
	color: var(--tb-vac-accent);
	font-weight: 600;
}

/* CTA links — visual styling handed off to Elementor's button classes
   (`elementor-button elementor-button-link elementor-size-sm` on the anchor).
   Plugin owns layout-only properties so the card grid still aligns the CTA
   to the right edge regardless of theme. */
.tb-vac-card-cta {
	flex: 0 0 auto;
}

.tb-vac-empty,
.tb-vac-empty-contact,
.tb-vac-followup {
	margin: 16px 0;
	color: var(--tb-vac-muted);
	font-size: 14px;
}

.tb-vac-show-all {
	margin-top: 24px;
	text-align: center;
}

/* Visual styling provided by the Elementor button classes on the anchor. */

@media (max-width: 768px) {
	.tb-vac-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.tb-vac-card-cta { width: 100%; }
}

/* ══════════════════════════════════════════════════════
   SINGLE — modern + clean (v1.1.0)
   White card, left-aligned, soft pill badges, accent-line headings.
   ══════════════════════════════════════════════════════ */
.tb-vac-single {
	max-width: 760px;
	margin: 32px auto 64px;
	padding: 8px 24px;
	color: var(--tb-vac-text);
	font-family: inherit;
}

/* Subtle "back to listings" link at top. */
.tb-vac-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	color: var(--tb-vac-muted);
	font-size: 14px;
	text-decoration: none !important;
	transition: color .15s ease;
}
.tb-vac-back:hover { color: var(--tb-vac-accent); }
.tb-vac-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* Header — no dark fill, just typography hierarchy. */
.tb-vac-single-header {
	margin-bottom: 36px;
}

/* `!important` on text colors because Elementor Kit's
   `.elementor-kit-XX h1` (~11 specificity) overrides plain class rules. */
.tb-vac-single-title {
	margin: 0 0 8px !important;
	color: var(--tb-vac-text) !important;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.tb-vac-single-subtitle {
	margin: 0 0 24px !important;
	color: var(--tb-vac-muted) !important;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
}

/* Meta as soft pill badges. */
.tb-vac-meta-strip {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tb-vac-meta-strip li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #f3f8f8;
	color: var(--tb-vac-text) !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.tb-vac-meta-strip svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	stroke: var(--tb-vac-accent);
	fill: none;
}

.tb-vac-salary-note {
	display: inline;
	margin-left: 6px;
	font-size: 12px;
	color: var(--tb-vac-muted);
	font-weight: 400;
	font-style: italic;
}

/* Body — hairline divider between header + content. */
.tb-vac-single-body {
	padding-top: 32px;
	border-top: 1px solid var(--tb-vac-border);
}

.tb-vac-intro {
	margin-bottom: 36px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--tb-vac-text);
}

.tb-vac-intro p { margin: 0 0 12px; }
.tb-vac-intro p:last-child { margin-bottom: 0; }

.tb-vac-section {
	margin: 0 0 36px;
}

/* Section heading with a short accent underline. */
.tb-vac-section h3 {
	position: relative;
	margin: 0 0 16px !important;
	padding-bottom: 8px;
	font-size: 19px;
	font-weight: 700;
	color: var(--tb-vac-text) !important;
	letter-spacing: -0.005em;
}

.tb-vac-section h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 2px;
	background: var(--tb-vac-accent);
	border-radius: 2px;
}

.tb-vac-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.65;
	font-size: 16px;
	color: var(--tb-vac-text);
}

.tb-vac-bullets li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
}

/* Custom checkmark-style bullets. */
.tb-vac-bullets li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tb-vac-accent);
}

.tb-vac-equality {
	margin: 36px 0 16px;
	padding: 16px 18px;
	background: #fafafa;
	border-radius: 8px;
	font-size: 13px;
	color: var(--tb-vac-muted);
	line-height: 1.55;
}

.tb-vac-closing {
	margin: 24px 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--tb-vac-text);
}

/* Apply card — prominent, modern, distinct from page chrome. */
.tb-vac-cta-card {
	margin-top: 36px;
	padding: 24px 28px;
	background: linear-gradient( 135deg, #f3fafa 0%, #ecf6f5 100% );
	border-radius: 12px;
	border: 1px solid #d6ecea;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
}

.tb-vac-cta-deadline {
	margin: 0;
	color: var(--tb-vac-text);
	font-size: 16px;
	line-height: 1.4;
}

/* Single-page apply CTA — visual styling from Elementor button classes.
   Plugin owns the inline-flex + gap so the trailing arrow SVG sits next to
   the label regardless of which theme button preset is in play. */
.tb-vac-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tb-vac-cta-btn svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
}

@media (max-width: 600px) {
	.tb-vac-single { padding: 8px 16px; }
	.tb-vac-single-title { font-size: 26px; }
	.tb-vac-meta-strip li { width: 100%; justify-content: flex-start; }
	.tb-vac-cta-card { flex-direction: column; align-items: stretch; text-align: left; }
	.tb-vac-cta-btn { justify-content: center; }
}
