/* CliniLaunch Featured Opportunities */

.clx-opportunities {
	--clx-bg: #f4f5f8;
	--clx-ink: #16213a;
	--clx-muted: #6b7280;
	--clx-line: #e7e9ee;
	--clx-green: #1a9e6b;
	--clx-badge-bg: #e4f6ec;
	--clx-badge-ink: #1a9e6b;
	--clx-tag-bg: #eef0f4;
	--clx-tag-ink: #384154;
	--clx-radius: 14px;

	background: var(--clx-bg);
	padding: 56px 24px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--clx-ink);
}

.clx-opportunities * {
	box-sizing: border-box;
}

.clx-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

.clx-heading {
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.clx-subheading {
	font-size: 1.05rem;
	color: var(--clx-muted);
	margin: 0;
	line-height: 1.6;
}

.clx-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 980px) {
	.clx-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.clx-grid {
		grid-template-columns: 1fr;
	}
	.clx-opportunities {
		padding: 40px 16px;
	}
	.clx-heading {
		font-size: 1.7rem;
	}
}

.clx-card {
	background: #ffffff;
	border: 1px solid var(--clx-line);
	border-radius: var(--clx-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.clx-card:hover {
	box-shadow: 0 8px 24px rgba(22, 33, 58, 0.07);
	transform: translateY(-2px);
}

.clx-badge {
	display: inline-block;
	background: var(--clx-badge-bg);
	color: var(--clx-badge-ink);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.clx-company {
	margin: 0 0 4px;
	font-size: 0.92rem;
	color: var(--clx-muted);
}

.clx-title {
	margin: 0 0 12px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
}

.clx-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
}

.clx-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.86rem;
	color: var(--clx-muted);
}

.clx-icon {
	width: 14px;
	height: 14px;
	display: inline-block;
	background-color: var(--clx-muted);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	flex: none;
}

.clx-icon-pin {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.clx-icon-briefcase {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}

.clx-icon-clock {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.clx-salary {
	color: var(--clx-green);
	font-weight: 700;
	font-size: 1.02rem;
	margin: 0 0 14px;
}

.clx-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.clx-tag {
	background: var(--clx-tag-bg);
	color: var(--clx-tag-ink);
	font-size: 0.8rem;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 999px;
}

.clx-apply-by {
	font-size: 0.86rem;
	color: var(--clx-muted);
	margin: 0;
}

.clx-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--clx-line);
	margin-top: 18px;
	padding-top: 16px;
}

.clx-posted {
	font-size: 0.82rem;
	color: var(--clx-muted);
}

.clx-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.clx-bookmark {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--clx-line);
	background: #fff;
	border-radius: 10px;
	color: var(--clx-ink);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clx-bookmark:hover {
	border-color: #cfd3dc;
}

.clx-bookmark.is-saved {
	color: var(--clx-green);
	border-color: var(--clx-badge-bg);
	background: var(--clx-badge-bg);
}

.clx-bookmark.clx-loading {
	opacity: 0.6;
	pointer-events: none;
}

.clx-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 20px;
	border: 1px solid var(--clx-ink);
	border-radius: 10px;
	color: var(--clx-ink);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	background: #fff;
	transition: background 0.15s ease, color 0.15s ease;
}

.clx-view-btn:hover {
	background: var(--clx-ink);
	color: #fff;
}

.clx-empty {
	text-align: center;
	color: var(--clx-muted);
}

/* Single job page card */
.clx-single {
	max-width: 720px;
	margin: 0 auto 32px;
	background: var(--clx-bg);
	padding: 24px;
	border-radius: var(--clx-radius);
}

.clx-single .clx-card {
	box-shadow: none;
}

/* Toast for login-required prompt */
.clx-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	background: var(--clx-ink);
	color: #fff;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 0.9rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 9999;
}

.clx-toast a {
	color: #fff;
	text-decoration: underline;
}

.clx-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

/* ============================================
   Single job page — rich layout (breadcrumb,
   header with avatar/badges, About/Responsibilities,
   sidebar "Ready to apply?" card)
   ============================================ */

.clx-single-page {
	--clx-purple-bg: #eef0fb;
	--clx-purple-ink: #4c4fd1;
	--clx-orange-bg: #fdeee3;
	--clx-orange-ink: #e2691a;

	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #16213a;
	box-sizing: border-box;
}

.clx-single-page * {
	box-sizing: border-box;
}

.clx-breadcrumb {
	font-size: 0.86rem;
	color: #8b93a7;
	margin-bottom: 20px;
}

.clx-breadcrumb a {
	color: #8b93a7;
	text-decoration: none;
}

.clx-breadcrumb a:hover {
	text-decoration: underline;
}

.clx-breadcrumb-sep {
	margin: 0 6px;
}

.clx-breadcrumb-current {
	color: #384154;
	font-weight: 500;
}

.clx-job-header {
	display: flex;
	gap: 20px;
	background: #fff;
	border: 1px solid #e7e9ee;
	border-radius: 16px;
	padding: 28px;
	margin-bottom: 24px;
}

.clx-avatar {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #eef0f4;
	color: #16213a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	font-weight: 700;
}

.clx-header-main {
	flex: 1;
	min-width: 0;
}

.clx-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.clx-pill {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
}

.clx-pill-green {
	background: #e4f6ec;
	color: #1a9e6b;
}

.clx-pill-purple {
	background: var(--clx-purple-bg);
	color: var(--clx-purple-ink);
}

.clx-pill-orange {
	background: var(--clx-orange-bg);
	color: var(--clx-orange-ink);
}

.clx-job-title {
	font-size: 1.7rem;
	font-weight: 800;
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.clx-job-company {
	font-size: 1rem;
	color: #6b7280;
	margin: 0 0 14px;
}

.clx-job-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}

.clx-job-meta-row .clx-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.86rem;
	color: #6b7280;
}

.clx-job-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.clx-apply-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 22px;
	background: #ea580c;
	color: #fff;
	font-weight: 700;
	font-size: 0.94rem;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.clx-apply-now:hover {
	background: #c2440a;
	color: #fff;
}

.clx-apply-now-block {
	display: flex;
	width: 100%;
	margin: 12px 0 16px;
}

.clx-save-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid #e7e9ee;
	background: #fff;
	color: #16213a;
	font-weight: 600;
	font-size: 0.94rem;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.clx-save-btn:hover {
	border-color: #cfd3dc;
}

.clx-save-btn.is-saved {
	color: #1a9e6b;
	border-color: #e4f6ec;
	background: #e4f6ec;
}

.clx-save-btn.clx-loading {
	opacity: 0.6;
	pointer-events: none;
}

.clx-apply-note {
	font-size: 0.8rem;
	color: #9aa1b1;
	margin: 10px 0 0;
}

.clx-job-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
}

@media (max-width: 800px) {
	.clx-job-body {
		grid-template-columns: 1fr;
	}
	.clx-job-header {
		flex-direction: column;
	}
}

.clx-job-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.clx-content-card {
	background: #fff;
	border: 1px solid #e7e9ee;
	border-radius: 16px;
	padding: 24px 28px;
}

.clx-content-card h2 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 12px;
}

.clx-rich-text {
	color: #384154;
	line-height: 1.7;
	font-size: 0.96rem;
}

.clx-rich-text ul {
	margin: 0;
	padding-left: 20px;
}

.clx-rich-text li {
	margin-bottom: 8px;
}

.clx-tags-single {
	margin-bottom: 0;
}

.clx-job-sidebar {
	position: sticky;
	top: 24px;
}

.clx-sidebar-card {
	background: #fff;
	border: 1px solid #e7e9ee;
	border-radius: 16px;
	padding: 24px;
}

.clx-sidebar-card h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.clx-sidebar-card > p {
	font-size: 0.88rem;
	color: #6b7280;
	margin: 0;
}

.clx-sidebar-card hr {
	border: none;
	border-top: 1px solid #e7e9ee;
	margin: 16px 0;
}

.clx-quick-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.clx-quick-facts li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: #384154;
}
