/**
 * Browse by Job Type widget — purple horizontal card layout (v2).
 */

.cjp-browse-by-job-type {
	--cjp-jbt-primary: #6349c2;
	--cjp-jbt-primary-light: #f3f0ff;
	--cjp-jbt-title: #1e1b4b;
	--cjp-jbt-muted: #64748b;
	--cjp-jbt-border: #e5e7eb;
	--cjp-jbt-card-bg: #ffffff;
	--cjp-jbt-wrap-bg: #ffffff;
	--cjp-jbt-radius: 16px;
	--cjp-jbt-card-radius: 12px;
}

.cjp-jbt-wrap {
	border-radius: var(--cjp-jbt-radius);
	padding: 28px 28px 32px;
	box-sizing: border-box;
}

.cjp-jbt-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.cjp-jbt-header__main {
	flex: 1;
	min-width: 0;
}

.cjp-jbt-header__title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.cjp-jbt-header__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--cjp-jbt-primary-light);
	color: var(--cjp-jbt-primary);
	flex-shrink: 0;
	line-height: 0;
}

.cjp-jbt-header__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--cjp-jbt-title);
}

.cjp-jbt-header__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--cjp-jbt-muted);
	max-width: 520px;
}

.cjp-jbt-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 10px 22px;
	border: 1.5px solid var(--cjp-jbt-primary);
	border-radius: 999px;
	background: transparent;
	color: var(--cjp-jbt-primary) !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.cjp-jbt-header__btn:hover {
	background: var(--cjp-jbt-primary);
	border-color: var(--cjp-jbt-primary);
	color: #fff !important;
	transform: translateY(-1px);
}

.cjp-jbt-grid {
	display: grid;
	gap: 16px;
}

.cjp-jbt-card {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	text-decoration: none;
	color: inherit;
	background: var(--cjp-jbt-card-bg);
	border: 1px solid #f1f5f9;
	border-radius: var(--cjp-jbt-card-radius);
	padding: 16px 18px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	min-width: 0;
}

.cjp-jbt-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(99, 73, 194, 0.1), 0 10px 28px rgba(15, 23, 42, 0.08);
	border-color: #e9e5ff;
	color: inherit;
}

.cjp-jbt-card__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--cjp-jbt-primary-light);
}

.cjp-jbt-card__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.cjp-jbt-card__img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.cjp-jbt-card__illustration {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cjp-jbt-card__illustration svg {
	display: block;
	width: 32px;
	height: 32px;
}

.cjp-jbt-card__content {
	flex: 1;
	min-width: 0;
}

.cjp-jbt-card__name {
	display: block;
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--cjp-jbt-title);
	margin-bottom: 4px;
}

.cjp-jbt-card__count {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cjp-jbt-primary);
	margin-bottom: 2px;
}

.cjp-jbt-card__tagline {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--cjp-jbt-muted);
}

.cjp-jbt-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid var(--cjp-jbt-primary);
	color: var(--cjp-jbt-primary);
	background: #fff;
	transition: background 0.2s ease, color 0.2s ease;
}

.cjp-jbt-card:hover .cjp-jbt-card__arrow {
	background-color: var(--cjp-jbt-arrow-hover-bg, var(--cjp-jbt-primary));
	border-color: var(--cjp-jbt-arrow-hover-border, var(--cjp-jbt-arrow-hover-bg, var(--cjp-jbt-primary)));
	color: var(--cjp-jbt-arrow-hover-color, #fff);
}

.cjp-jbt-card__arrow-icon {
	display: block;
}

.cjp-jbt-empty {
	margin: 0;
	color: var(--cjp-jbt-muted);
	font-size: 0.9375rem;
}

@media (max-width: 992px) {
	.cjp-jbt-wrap {
		padding: 24px 20px 28px;
	}

	.cjp-jbt-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.cjp-jbt-header__btn {
		white-space: normal;
	}
}

@media (max-width: 640px) {
	.cjp-jbt-card {
		padding: 14px 16px;
		gap: 12px;
	}

	.cjp-jbt-card__badge {
		width: 46px;
		height: 46px;
	}

	.cjp-jbt-card__img,
	.cjp-jbt-card__illustration svg {
		width: 28px;
		height: 28px;
	}

	.cjp-jbt-card__arrow {
		width: 28px;
		height: 28px;
	}
	
	.cjp-jbt-header__btn {
	    width: 100%;
        max-width: 50%;
        margin-left: auto;
	}
}
