:root {
	--tk-navy: #0c1e35;
	--tk-navy-light: #183c68;
	--tk-gold: #fdd900;
	--tk-gold-dark: #f0cd00;
	--tk-text: #183c68;
	--tk-muted: #5a818f;
	--tk-border: #dbe4ee;
	--tk-bg-card: #ffffff;
	--tk-bg-page: #f7fbff;
	--tk-radius: 12px;
	--tk-font: Archivo, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/*
 * Real Pages (like Kontakt) have "mfn-post-hide-title" set, which stops
 * Betheme from rendering its default #Header_wrapper/#Subheader title +
 * breadcrumb bar — that's what lets #Content start right at the top and
 * sit seamlessly under the transparent absolute header. Our CPT archive
 * and single templates have no such meta, so Betheme renders that bar by
 * default; it pushes our own hero down and creates a visible gap. Hide it
 * to match how the rest of the site behaves.
 */
body.post-type-archive-pracovna_ponuka #Header_wrapper,
body.single-pracovna_ponuka #Header_wrapper,
body.tk-jobs-hide-subheader #Header_wrapper {
	display: none;
}

.jobs-title,
.tk-job-single-title {
	color: var(--tk-navy-light);
	font-family: var(--tk-font);
	margin-bottom: 10px;
}

.tk-job-single-title {
	/* the transparent absolute header overlaps the top of the page (see the
	   Subheader note above) — this clears it so the title isn't hidden underneath */
	margin-top: 200px;
	/* matches the theme's default h2 size — this page's h1 was rendering at
	   the (much larger) default h1 size */
	font-size: 48px;
	line-height: 1.15;
}

@media (max-width: 1024px) {
	.tk-job-single-title {
		margin-top: 170px;
	}
}

@media (max-width: 767px) {
	.tk-job-single-title {
		margin-top: 150px;
	}
}

.jobs-subtitle {
	margin-bottom: 30px;
	color: var(--tk-muted);
	font-family: var(--tk-font);
}

.jobs-subtitle a {
	color: var(--tk-navy-light);
	font-weight: 600;
}

/* hero band, styled to match the Kontakt page hero */
.tk-jobs-hero {
	background-color: var(--tk-navy);
	background-image: url(https://tk2.tvgroup.sk/wp-content/uploads/2026/08/TS_element.svg#102);
	background-repeat: no-repeat;
	background-position: bottom right;
	border-radius: 32px;
	margin: 8px 8px 4px;
	padding: 220px 5% 60px;
}

.tk-jobs-hero-text {
	max-width: 640px;
}

.tk-jobs-hero-dash {
	display: block;
	width: 36px;
	height: auto;
	margin-bottom: 16px;
}

.tk-jobs-hero .jobs-title {
	color: #ffffff;
}

.tk-jobs-hero .jobs-title .tk-accent {
	color: var(--tk-gold);
}

.tk-jobs-hero .jobs-subtitle {
	color: rgba(255, 255, 255, .75);
}

.tk-jobs-hero .jobs-subtitle a {
	color: var(--tk-gold);
}

@media (max-width: 1024px) {
	.tk-jobs-hero {
		padding-top: 180px;
		background-position: top right;
	}
}

@media (max-width: 767px) {
	.tk-jobs-hero {
		padding-top: 160px;
	}
}

.section-jobs {
	margin-top: 50px;
}

.tk-jobs-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	font-family: var(--tk-font);
}

.tk-jobs-filter {
	flex: 0 0 260px;
	background: var(--tk-bg-page);
	border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius);
	padding: 24px;
	position: sticky;
	top: 100px;
}

.tk-filter-group {
	margin-bottom: 24px;
}

.tk-filter-group h3 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--tk-navy-light);
	margin-bottom: 10px;
}

.tk-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--tk-navy-light);
	cursor: pointer;
}

.tk-mzda-range {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.tk-mzda-range input[type="number"] {
	width: 100%;
}

.tk-jobs-filter select,
.tk-jobs-filter input[type="number"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--tk-border);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: var(--tk-navy-light);
	box-sizing: border-box;
}

.tk-filter-submit {
	width: 100%;
	margin-top: 6px;
	margin-bottom: 10px;
	cursor: pointer;
	border: none;
	background: var(--tk-gold);
	color: var(--tk-navy-light);
	padding: 12px 0;
	border-radius: 73px;
	font-weight: 600;
	transition: background-color .15s ease;
}

.tk-filter-submit:hover {
	background: var(--tk-gold-dark);
}

.tk-filter-reset {
	display: block;
	text-align: center;
	font-size: 13px;
	color: var(--tk-muted);
	text-decoration: underline;
}

.tk-jobs-results {
	flex: 1;
	min-width: 0;
}

.tk-jobs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 900px) {
	.tk-jobs-grid {
		grid-template-columns: 1fr;
	}
}

.tk-job-card {
	background: var(--tk-bg-card);
	border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: box-shadow .15s ease, transform .15s ease;
}

.tk-job-card:hover {
	box-shadow: 0 10px 30px rgba(12, 30, 53, .12);
	transform: translateY(-2px);
}

.tk-job-photo {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	background: var(--tk-bg-page);
}

.tk-job-photo-placeholder {
	width: 100%;
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tk-navy-light);
	color: rgba(255, 255, 255, .5);
	font-size: 13px;
}

.tk-job-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tk-job-title {
	margin: 0 0 12px;
	font-size: 20px;
	/* Betheme's default heading letter-spacing (-2px) is tuned for large
	   display headings; at this size it makes the text look crushed */
	letter-spacing: normal;
}

.tk-job-title a {
	color: var(--tk-navy-light);
	text-decoration: none;
}

.tk-job-title a:hover {
	color: var(--tk-navy);
}

.tk-job-meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 14px;
	color: var(--tk-muted);
	line-height: 1.6;
	flex: 1;
}

.tk-job-meta strong {
	color: var(--tk-navy-light);
}

.tk-job-more {
	align-self: flex-start;
	display: inline-block;
	padding: 10px 22px;
	background: var(--tk-gold);
	color: var(--tk-navy-light) !important;
	border-radius: 73px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background-color .15s ease;
}

.tk-job-more:hover {
	background: var(--tk-gold-dark);
}

.tk-jobs-empty {
	padding: 40px;
	text-align: center;
	color: var(--tk-muted);
}

.tk-jobs-pagination {
	margin-top: 30px;
}

.tk-job-single-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.tk-job-single-media {
	flex: 0 0 380px;
}

.tk-job-single-info {
	flex: 1;
	min-width: 0;
}

.tk-job-single-photo {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--tk-radius);
}

@media (max-width: 900px) {
	.tk-job-single-layout {
		flex-direction: column;
	}

	.tk-job-single-media {
		flex: none;
		width: 100%;
	}
}

.tk-job-meta-single {
	list-style: none;
	margin: 0 0 30px;
	padding: 20px;
	background: var(--tk-bg-page);
	border-radius: var(--tk-radius);
	font-size: 15px;
	line-height: 1.8;
	color: var(--tk-navy-light);
}

.tk-job-meta-single strong {
	display: inline-block;
	min-width: 190px;
}

.tk-job-single-content {
	margin-bottom: 30px;
	color: var(--tk-muted);
}

.tk-job-single-content p {
	margin: 0 0 16px;
}

.tk-job-single-content h3,
.tk-job-single-content h4 {
	/* the block editor re-saves imported content as h3 blocks rather than
	   the h4 tags it was imported with, so style both the same way */
	font-size: 18px;
	color: var(--tk-navy-light);
	margin: 24px 0 10px;
}

.tk-job-single-content ul {
	list-style: disc;
	padding-left: 20px;
	margin: 0 0 20px;
}

.tk-job-single-content li {
	margin-bottom: 6px;
}

.tk-job-single-cta {
	margin-bottom: 20px;
}

.tk-job-single-cta .button {
	display: inline-block;
	padding: 14px 32px;
	background: var(--tk-gold);
	color: var(--tk-navy-light) !important;
	border: none;
	border-radius: 73px;
	text-decoration: none;
	font-family: var(--tk-font);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease;
}

.tk-job-single-cta .button:hover {
	background: var(--tk-gold-dark);
}

.tk-job-back a {
	color: var(--tk-muted);
	text-decoration: none;
	font-size: 14px;
}

@media (max-width: 768px) {
	.tk-jobs-layout {
		flex-direction: column;
	}

	.tk-jobs-filter {
		position: static;
		flex: none;
		width: 100%;
	}
}

/* "Mám záujem o túto ponuku" application dialog */

.tk-job-apply-dialog {
	border: none;
	border-radius: 24px;
	padding: 0;
	width: 90vw;
	max-width: 560px;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(12, 30, 53, .25);
}

.tk-job-apply-dialog::backdrop {
	background: rgba(12, 30, 53, .6);
}

.tk-job-apply-dialog-inner {
	position: relative;
	padding: 40px;
	max-height: 85vh;
	overflow-y: auto;
	font-family: var(--tk-font);
	box-sizing: border-box;
}

.tk-job-apply-heading {
	color: var(--tk-navy-light);
	font-size: 22px;
	margin: 0 0 20px;
	padding-right: 30px;
}

.tk-job-apply-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: var(--tk-bg-page);
	color: var(--tk-navy-light);
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.tk-job-apply-close:hover {
	background: var(--tk-border);
}

@media (max-width: 600px) {
	.tk-job-apply-dialog-inner {
		padding: 28px 20px;
	}
}

.tk-job-apply-dialog input[name="pozicia"] {
	background: var(--tk-bg-page) !important;
	color: var(--tk-navy-light);
	font-weight: 600;
	cursor: default;
}
