#section-carier {
	background: #000;
	color: #fff;
	padding: 25px 0 50px 0;
	display: flex;
	justify-content: center;
}

.carier-container {
	max-width: 1300px;
	width: 100%;
	padding: 0 40px;
	text-align: center;
}

.carier-container .headline {
	text-transform: uppercase;
	margin-bottom: 1rem;
	margin-top: -1rem;
}

.carier-intro {
	max-width: 800px;
	margin: 0 auto 40px auto;
	font-size: 1rem;
	color: #ddd;
	line-height: 1.6;
}

.carier-filter {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

.carier-filter span {
	font-weight: 600;
	text-transform: uppercase;
	color: #aaa;
}

.carier-filter .city {
	background: transparent;
	border: none;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.carier-filter .city.active[data-city="jihlava"],
.carier-filter .city:hover[data-city="jihlava"] {
	background: var(--color-red);
	color: #fff;
}

.carier-filter .city.active[data-city="pelhrimov"],
.carier-filter .city:hover[data-city="pelhrimov"] {
	background: var(--color-purple);
	color: #fff;
}

.carier-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.carier-card {
	background: #111;
	border-radius: 12px;
	padding: 30px 25px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: left;
	max-width: 350px;
	min-height: 320px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carier-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.carier-card[data-city="jihlava"] {
	border-top: 5px solid var(--color-red);
}

.carier-card[data-city="pelhrimov"] {
	border-top: 5px solid var(--color-purple);
}

.carier-card h3 {
	font-size: 1.3rem;
	margin-bottom: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.carier-locations {
	font-size: 0.9rem;
	color: #bbb;
	margin-bottom: 1rem;
}

.carier-text {
	font-size: 0.95rem;
	color: #ccc;
	flex-grow: 1;
	margin-bottom: 20px;
}

.carier-btn {
	background: #fff;
	color: #000;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 8px;
	text-align: center;
	transition: all 0.25s ease;
	border: none;
	cursor: pointer;
}

.carier-btn:hover {
	background: var(--carier-hover-color);
	color: #fff;
}

.carier-contact {
	margin-top: 60px;
	text-align: center;
	background: #0d0d0d;
	padding: 40px 20px;
	border-radius: 16px;
	width: calc(100% - 40px);
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: border-top 0.3s ease;
}

.carier-contact p {
	color: #ccc;
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
}

.carier-contact a {
	font-weight: 600;
	text-decoration: none;
	transition: color 0.25s ease;
}

.carier-contact.red a {
	color: var(--color-red);
}

.carier-contact.purple a {
	color: var(--color-purple);
}

.carier-contact a:hover {
	color: #fff;
}

.job-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.job-modal.visible {
	opacity: 1;
}

.job-modal-content {
	background: #0e0e0e;
	color: #fff;
	max-width: 720px;
	width: 90%;
	padding: 50px 55px;
	border-radius: 20px;
	position: relative;
	overflow-y: auto;
	max-height: 85vh;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
	animation: modalFadeIn 0.35s ease;
	font-family: "Poppins", sans-serif;
	border-top: 6px solid transparent;
}

.job-modal-content {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	/* X stays in place */
}

.job-modal-header {
	position: sticky;
	top: 0;
	background: #0e0e0e;
	padding: 0;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
}

.job-modal-body {
	overflow-y: auto;
	padding: 0 0 20px 0;
}

.job-modal-footer {
	margin-top: 18px;
	display: flex;
	justify-content: flex-start;
	padding-top: 12px;
}

.job-contact-btn {
	display: inline-block;
	background: #fff;
	color: #000;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.22s ease;
	border: none;
	cursor: pointer;
}

/* hover ladí s barvou města (používá proměnnou, kterou už máš nastavenou v renderPositions) */
.job-modal.jihlava .job-contact-btn:hover {
	background: var(--color-red);
	color: #fff;
}

.job-modal.pelhrimov .job-contact-btn:hover {
	background: var(--color-purple);
	color: #fff;
}

/* trochu oddělíme tlačítko od textu v body */
.job-modal-body .job-modal-footer {
	padding-bottom: 8px;
}

/* Accent top bar by city */
.job-modal.jihlava .job-modal-content {
	border-top-color: var(--color-red);
}

.job-modal.pelhrimov .job-modal-content {
	border-top-color: var(--color-purple);
}

/* Close button */
.close-modal {
	font-size: 32px;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.25s ease;
}

.job-modal.jihlava .close-modal {
	color: var(--color-red);
}

.job-modal.pelhrimov .close-modal {
	color: var(--color-purple);
}

.close-modal:hover {
	transform: scale(1.15);
	color: #fff;
}

/* Headings and content */
.job-modal-content h3 {
	font-size: 1.8rem;
	font-weight: 800;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.job-modal {
	color: white;
}

.job-modal-content h4 {
	margin-top: 1.4rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	border-left: 3px solid currentColor;
	padding-left: 8px;
}

.job-modal-content p,
.job-modal-content ul li {
	color: #ccc;
	line-height: 1.65;
	font-size: 0.95rem;
}

.job-modal-content p strong {
	color: #fff;
	font-weight: 600;
}

.job-modal-content ul {
	margin: 0.6rem 0 1rem 1.2rem;
	list-style: disc;
}

/* Scrollbar style */
.job-modal-content::-webkit-scrollbar {
	width: 8px;
}

.job-modal-content::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 10px;
}

/* Animations */
@keyframes modalFadeIn {
	from {
		transform: translateY(30px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (max-width: 800px) {
	.job-modal-content {
		padding: 50px 25px;
	}
}

@media (max-width: 600px) {
	.job-modal-content h3 {
		font-size: 1.4rem;
	}

	.job-modal-content {
		max-height: 90vh;
		padding: 25px;
	}

	.job-modal-body {
		padding: 0;
	}
}