/* Modern Job Board - styles */

.mjb-hero,
.mjb-results-wrap,
.mjb-single-job {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2d3142;
}

.mjb-hero *,
.mjb-results-wrap *,
.mjb-single-job * {
	box-sizing: border-box;
}

/* ---------- HERO / SEARCH ---------- */
.mjb-hero {
	background: linear-gradient(180deg, #fbfbfc 0%, #ffffff 100%);
	border: 1px solid #ececef;
	border-radius: 16px;
	padding: 56px 24px;
	margin-bottom: 32px;
	text-align: center;
}

.mjb-hero-inner {
	max-width: 880px;
	margin: 0 auto;
}

.mjb-hero-title {
	font-size: 2.25rem;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1f2330;
	line-height: 1.2;
}

.mjb-hero-subtitle {
	font-size: 1.05rem;
	color: #6b7280;
	margin: 0 0 32px;
}

.mjb-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	background: #fff;
	padding: 8px;
	border-radius: 12px;
	box-shadow: 0 2px 18px rgba(20, 20, 43, 0.07);
}

.mjb-search-field {
	flex: 1 1 200px;
}

.mjb-search-field input,
.mjb-search-field select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	color: #2d3142;
	appearance: none;
}

.mjb-search-field input:focus,
.mjb-search-field select:focus {
	outline: none;
	border-color: #2ea16f;
	box-shadow: 0 0 0 3px rgba(46, 161, 111, 0.12);
}

.mjb-search-btn {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 28px;
	background: #2ea16f;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.mjb-search-btn:hover {
	background: #258a5f;
}

/* ---------- RESULTS / CARDS ---------- */
.mjb-results-wrap {
	max-width: 1000px;
	margin: 0 auto;
}

.mjb-results {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mjb-card {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid #ececef;
	border-radius: 12px;
	padding: 18px 20px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.mjb-card:hover {
	box-shadow: 0 6px 24px rgba(20, 20, 43, 0.08);
	border-color: #d8f0e3;
	transform: translateY(-1px);
}

.mjb-card-logo {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mjb-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mjb-logo-placeholder {
	font-weight: 700;
	font-size: 1.2rem;
	color: #9aa0ad;
	text-transform: uppercase;
}

.mjb-logo-placeholder-lg {
	font-size: 1.8rem;
}

.mjb-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.mjb-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1f2330;
}

.mjb-card-company {
	font-size: 0.9rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 8px;
}

.mjb-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 0.85rem;
	color: #6b7280;
}

.mjb-card-location {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #2ea16f;
	font-weight: 600;
}

.mjb-badge {
	background: #f1f4f9;
	color: #4b5563;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.78rem;
	font-weight: 600;
}

.mjb-expiry {
	font-size: 0.78rem;
	color: #b45309;
	font-weight: 600;
}

.mjb-badge-expired {
	background: #fde8e8;
	color: #b42318;
}

.mjb-apply-closed {
	display: inline-block;
	color: #b42318;
	font-weight: 600;
	font-size: 1rem;
}

.mjb-card-side {
	flex: 0 0 auto;
	text-align: right;
	white-space: nowrap;
}

.mjb-card-salary {
	font-weight: 700;
	color: #1f2330;
	font-size: 0.95rem;
	margin-bottom: 4px;
}

.mjb-card-posted {
	font-size: 0.78rem;
	color: #9aa0ad;
}

.mjb-no-results {
	text-align: center;
	padding: 48px 20px;
	color: #6b7280;
	background: #fafafb;
	border-radius: 12px;
}

.mjb-load-more-wrap {
	text-align: center;
	margin-top: 20px;
}

.mjb-load-more-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #2d3142;
	font-weight: 600;
	cursor: pointer;
}

.mjb-load-more-btn:hover {
	border-color: #2ea16f;
	color: #2ea16f;
}

.mjb-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid #e5e7eb;
	border-top-color: #2ea16f;
	border-radius: 50%;
	animation: mjb-spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes mjb-spin {
	to { transform: rotate(360deg); }
}

/* ---------- SINGLE JOB PAGE ---------- */
.mjb-single-job {
	max-width: 800px;
	margin: 0 auto;
}

.mjb-job-header {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #ececef;
}

.mjb-job-header-logo {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: #f4f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mjb-job-header-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mjb-job-title {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1f2330;
}

.mjb-job-company {
	font-size: 1rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 10px;
}

.mjb-job-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mjb-job-salary-pill {
	background: #e9f8f0;
	color: #1f7a4d;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.85rem;
}

.mjb-job-description {
	font-size: 1rem;
	line-height: 1.7;
	color: #353a47;
	margin-bottom: 32px;
}

.mjb-job-description h2,
.mjb-job-description h3 {
	color: #1f2330;
}

.mjb-apply-section {
	text-align: center;
	padding: 28px 0 36px;
	border-top: 1px solid #ececef;
	border-bottom: 1px solid #ececef;
	margin-bottom: 36px;
}

.mjb-apply-btn {
	display: inline-block;
	background: #2ea16f;
	color: #fff !important;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none !important;
	padding: 16px 48px;
	border-radius: 10px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.mjb-apply-btn:hover {
	background: #258a5f;
	transform: translateY(-1px);
}

.mjb-related-jobs {
	margin-top: 8px;
}

.mjb-related-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1f2330;
}

.mjb-related-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px) {
	.mjb-hero {
		padding: 36px 16px;
		border-radius: 12px;
	}

	.mjb-hero-title {
		font-size: 1.5rem;
	}

	.mjb-hero-subtitle {
		font-size: 0.95rem;
		margin-bottom: 22px;
	}

	.mjb-search-form {
		flex-direction: column;
		box-shadow: none;
		border: 1px solid #ececef;
	}

	.mjb-search-field {
		flex: 1 1 100%;
	}

	.mjb-search-btn {
		width: 100%;
	}

	.mjb-card {
		flex-wrap: wrap;
		padding: 14px;
	}

	.mjb-card-side {
		flex: 1 1 100%;
		text-align: left;
		margin-top: 8px;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.mjb-job-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mjb-job-meta-row {
		justify-content: center;
	}

	.mjb-apply-btn {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.mjb-card-logo {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}

	.mjb-card-title {
		font-size: 0.98rem;
	}
}
