/* ==========================================================================
   Job Cards — Styles
   Namespaced with "job-card-" prefixes to avoid theme collisions.
   ========================================================================== */

.job-card-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.job-card-wrapper *,
.job-card-wrapper *::before,
.job-card-wrapper *::after {
	box-sizing: border-box;
}

/* Grid layout ------------------------------------------------------------ */

.job-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	width: 100%;
}

@media (max-width: 992px) {
	.job-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (max-width: 600px) {
	.job-card-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Card --------------------------------------------------------------------
   The whole card is an <a> element, styled to remove default link
   appearance while remaining fully accessible/keyboard-focusable.
   -------------------------------------------------------------------------- */

.job-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.job-card:hover,
.job-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
	border-color: #d1d5db;
}

.job-card:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.job-card:active {
	transform: translateY(-1px);
}

/* Image -------------------------------------------------------------------- */

.job-card-image-wrap {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background-color: #f3f4f6;
}

.job-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.job-card:hover .job-card-image,
.job-card:focus-visible .job-card-image {
	transform: scale(1.04);
}

/* Fallback placeholder when no featured image is set */

.job-card-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	color: #9ca3af;
}

.job-card-placeholder-icon {
	font-size: 40px;
	line-height: 1;
}

/* Content -------------------------------------------------------------------- */

.job-card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 22px 22px;
}

.job-card-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: #111827;
}

.job-card-description {
	margin: 0 0 16px;
	font-size: 14px;
     font-weight: 600 !important;
	line-height: 1.5 !important;
	color: #4b5563;
       

	/* Visually clamp to 2 lines without altering the underlying content */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* "View Job" indicator -------------------------------------------------- */

.job-card-view-link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #2563eb;
}

.job-card-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.job-card:hover .job-card-arrow,
.job-card:focus-visible .job-card-arrow {
	transform: translateX(4px);
}

/* Empty state -------------------------------------------------------------- */

.job-card-empty {
	padding: 24px;
	text-align: center;
	color: #6b7280;
	background-color: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
}

/* Reduced motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.job-card,
	.job-card-image,
	.job-card-arrow {
		transition: none !important;
	}

	.job-card:hover,
	.job-card:focus-visible {
		transform: none !important;
	}

	.job-card:hover .job-card-image,
	.job-card:focus-visible .job-card-image {
		transform: none !important;
	}

	.job-card:hover .job-card-arrow,
	.job-card:focus-visible .job-card-arrow {
		transform: none !important;
	}
}