/**
 * Recruitment archive, single post, widgets and gallery.
 */

.tntech-jobs-main,
.tntech-job-single {
	background: #fff;
}

.tntech-jobs-main {
	background: #f5f4f0;
}

.tntech-jobs-sidebar img {
	aspect-ratio: 4 / 3;
}

.tntech-job-widget {
	color: #212529;
}

.tntech-job-widget ul,
.tntech-job-widget ol {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tntech-job-widget li + li {
	padding-top: 0.75rem;
	border-top: 1px solid rgb(0 0 0 / 8%);
}

.tntech-job-widget a {
	color: inherit;
	text-decoration: none;
}

.tntech-job-widget a:hover {
	color: #936e07;
}

.tntech-job-widget img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

.tntech-job-widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0.5rem;
}

.tntech-job-widget input[type='search'] {
	width: 100%;
	min-width: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
}

.tntech-job-widget button {
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 9999px;
	background: #f4b811;
	color: #212529;
	font-weight: 700;
	cursor: pointer;
}

.tntech-job-editor-content {
	color: #6c757d;
	font-size: 1rem;
	line-height: 1.75;
}

.tntech-job-editor-content > * + * {
	margin-top: 1.25rem;
}

.tntech-job-editor-content h2,
.tntech-job-editor-content h3 {
	color: #212529;
	font-weight: 700;
	line-height: 1.3;
}

.tntech-job-editor-content h2 {
	font-size: 1.5rem;
}

.tntech-job-editor-content h3 {
	font-size: 1.25rem;
}

.tntech-job-editor-content ul,
.tntech-job-editor-content ol {
	display: grid;
	gap: 0.5rem;
	padding-left: 1.5rem;
}

.tntech-job-editor-content ul {
	list-style: disc;
}

.tntech-job-editor-content ol {
	list-style: decimal;
}

.tntech-job-skill__stars {
	display: flex;
	justify-content: center;
	gap: 0.2rem;
	color: #d1d5db;
	font-size: 1.25rem;
	line-height: 1;
	letter-spacing: 0.02em;
}

.tntech-job-skill__stars .is-active {
	color: #f4b811;
	text-shadow: 0 1px 1px rgb(0 0 0 / 12%);
}

.tntech-job-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.tntech-job-pagination .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: 0 0.75rem;
	border-radius: 9999px;
	background: #fff;
	color: #212529;
	font-size: 0.875rem;
	font-weight: 700;
	box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.tntech-job-pagination .page-numbers.current,
.tntech-job-pagination .page-numbers:hover {
	background: #f4b811;
}

.tntech-job-gallery__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tntech-job-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: 1rem;
	background: #f5f4f0;
	box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
}

.tntech-job-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tntech-job-gallery__item:hover .tntech-job-gallery__image {
	transform: scale(1.03);
}

@media (min-width: 640px) {
	.tntech-job-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.tntech-job-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tntech-job-gallery__item:first-child {
		grid-column: span 2 / span 2;
		grid-row: span 2 / span 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tntech-job-gallery__image {
		transition: none;
	}
}
