.ras-jobs-wrapper {
	--ras-jobs-primary: #C0392B;
	font-family: 'DM Sans', sans-serif;
	color: #0f172a;
	width: 100%;
	max-width: 100%;
}

.ras-jobs-wrapper *,
.ras-jobs-wrapper *::before,
.ras-jobs-wrapper *::after {
	box-sizing: border-box;
}

.ras-jobs-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 30px;
	line-height: 1.2;
	margin: 0 0 18px;
	color: #0f172a;
}

.ras-jobs-layout {
	display: grid;
	gap: 20px;
}

.ras-jobs-layout-top {
	grid-template-columns: 1fr;
}

.ras-jobs-layout-sidebar {
	grid-template-columns: 300px 1fr;
	align-items: start;
}

.ras-jobs-main {
	min-width: 0;
}

.ras-jobs-filter-bar {
	background: linear-gradient(135deg, #1e293b, #334155, #4f46e5);
	border-radius: 16px;
	padding: 18px;
	margin: 0 0 18px;
}

.ras-jobs-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ras-jobs-filter-field {
	min-width: 0;
}

.ras-jobs-filter-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 11px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.78);
}

.ras-jobs-filter-input {
	width: 100%;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(15, 23, 42, 0.45);
	color: #fff;
	padding: 10px 12px;
	font-size: 14px;
	min-height: 42px;
	outline: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ras-jobs-filter-input:focus,
.ras-jobs-filter-field.is-active .ras-jobs-filter-input {
	border-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.ras-jobs-filter-input option {
	color: #111827;
}

.ras-jobs-filter-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 14px;
}

.ras-jobs-btn {
	border: 0;
	border-radius: 10px;
	padding: 11px 14px;
	cursor: pointer;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ras-jobs-btn:hover {
	transform: translateY(-1px);
}

.ras-jobs-btn-primary {
	background: var(--ras-jobs-primary);
	color: #fff;
	box-shadow: 0 8px 16px rgba(192, 57, 43, 0.28);
}

.ras-jobs-btn-secondary {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.ras-jobs-results-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 8px 0 14px;
}

.ras-jobs-count-badge {
	font-size: 14px;
	font-weight: 700;
	background: #f1f5f9;
	padding: 8px 12px;
	border-radius: 999px;
	color: #0f172a;
}

.ras-jobs-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ras-jobs-sort-wrap label {
	font-size: 13px;
	color: #475569;
}

.ras-jobs-sort-select {
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 8px 10px;
	background: #fff;
	min-height: 40px;
}

.ras-jobs-results {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.ras-jobs-card {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
	border-left: 4px solid transparent;
}

.ras-jobs-card:hover {
	border-left-color: var(--ras-jobs-primary);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.ras-jobs-card-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: linear-gradient(145deg, #a855f7, #4f46e5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 26px;
	font-weight: 700;
}

.ras-jobs-card-content {
	min-width: 0;
}

.ras-jobs-card-title {
	margin: 0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 17px;
	line-height: 1.3;
	color: #0f172a;
	word-break: break-word;
}

.ras-jobs-company-name {
	margin: 5px 0 8px;
	font-size: 13px;
	color: #475569;
}

.ras-jobs-meta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	min-width: 0;
}

.ras-jobs-tag {
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ras-jobs-tag-location,
.ras-jobs-tag-exp,
.ras-jobs-tag-zone {
	background: #f1f5f9;
	color: #1e293b;
}

.ras-jobs-tag-salary {
	background: #ecfdf5;
	color: #15803d;
}

.ras-jobs-tag-industry {
	background: #eef2ff;
	color: #4338ca;
}

.ras-jobs-tag-channel {
	background: #f3e8ff;
	color: #7e22ce;
}

.ras-jobs-tag-vacancies {
	background: #fff7ed;
	color: #c2410c;
}

.ras-jobs-card-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.ras-jobs-posted-date {
	font-size: 12px;
	color: #64748b;
}

.ras-jobs-pagination-wrap {
	margin-top: 18px;
}

.ras-jobs-pagination {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	overflow-x: auto;
	padding: 8px 0 4px;
	-webkit-overflow-scrolling: touch;
}

.ras-jobs-page-link {
	border: 1px solid #d7dde8;
	background: #fff;
	color: #0f172a;
	padding: 8px 11px;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 700;
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.ras-jobs-page-link.is-active {
	background: var(--ras-jobs-primary);
	border-color: var(--ras-jobs-primary);
	color: #fff;
	box-shadow: 0 10px 18px rgba(192, 57, 43, 0.22);
}

.ras-jobs-page-link:hover:not(.is-active):not(.is-disabled) {
	border-color: #b8c2d6;
	background: #f8fafc;
}

.ras-jobs-page-nav {
	font-size: 20px;
	line-height: 1;
	font-weight: 600;
}

.ras-jobs-page-ellipsis {
	color: #64748b;
	font-size: 14px;
	padding: 0 2px;
}

.ras-jobs-page-link.is-disabled,
.ras-jobs-page-link:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ras-jobs-empty-state {
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	padding: 36px 20px;
	border-radius: 16px;
}

.ras-jobs-empty-icon {
	font-size: 34px;
	margin-bottom: 12px;
}

.ras-jobs-empty-message {
	margin: 0 0 14px;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.ras-jobs-login-prompt {
	background: #fff5f5;
	border: 1px solid #fecaca;
	padding: 14px;
	border-radius: 12px;
	margin-bottom: 14px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.ras-jobs-login-prompt p {
	margin: 0;
	flex: 1;
	color: #7f1d1d;
}

.ras-jobs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.ras-jobs-modal.is-open {
	display: block;
}

.ras-jobs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ras-jobs-modal-dialog {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 100%);
	width: min(94%, 520px);
	background: #fff;
	border-radius: 18px 18px 0 0;
	padding: 22px;
	box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.25);
	animation: rasJobsSlideUp 0.25s ease forwards;
}

@keyframes rasJobsSlideUp {
	from {
		transform: translate(-50%, 100%);
	}
	to {
		transform: translate(-50%, 0);
	}
}

.ras-jobs-modal-close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #475569;
}

.ras-jobs-modal-dialog h3 {
	margin: 0 0 14px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 20px;
}

.ras-jobs-apply-options-text {
	margin: 0 0 12px;
	color: #334155;
	font-size: 14px;
}

.ras-jobs-apply-options-grid {
	display: grid;
	gap: 10px;
}

.ras-jobs-apply-option-btn.ras-jobs-btn-secondary {
	background: #f1f5f9;
	color: #0f172a;
	border: 1px solid #d7dde8;
}

.ras-jobs-back-to-options {
	border: 0;
	background: transparent;
	color: #334155;
	font-weight: 700;
	font-size: 13px;
	padding: 0;
	margin: 0 0 10px;
	cursor: pointer;
}

.ras-jobs-form-group {
	margin-bottom: 12px;
}

.ras-jobs-form-group label {
	display: block;
	font-size: 13px;
	color: #334155;
	margin-bottom: 6px;
}

.ras-jobs-form-group input {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
}

.ras-jobs-form-message {
	font-size: 13px;
	margin-bottom: 12px;
	min-height: 18px;
}

.ras-jobs-form-message.is-success {
	color: #166534;
}

.ras-jobs-form-message.is-error {
	color: #991b1b;
}

@media (max-width: 1024px) {
	.ras-jobs-filter-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ras-jobs-layout-sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.ras-jobs-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ras-jobs-filter-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ras-jobs-results-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.ras-jobs-sort-wrap {
		justify-content: space-between;
	}

	.ras-jobs-card {
		grid-template-columns: 52px 1fr;
		gap: 12px;
		padding: 14px;
	}

	.ras-jobs-card-right {
		grid-column: span 2;
		align-items: flex-start;
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
		gap: 10px;
		flex-wrap: wrap;
	}

	.ras-jobs-posted-date {
		order: 2;
	}

	.ras-jobs-card-right .ras-jobs-btn {
		order: 1;
	}
}

@media (max-width: 560px) {
	.ras-jobs-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ras-jobs-filter-actions {
		grid-template-columns: 1fr;
	}

	.ras-jobs-filter-actions .ras-jobs-btn,
	.ras-jobs-login-prompt .ras-jobs-btn {
		width: 100%;
	}

	.ras-jobs-title {
		font-size: 26px;
	}

	.ras-jobs-sort-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.ras-jobs-sort-select {
		width: 100%;
	}

	.ras-jobs-card-title {
		font-size: 16px;
	}

	.ras-jobs-card-icon {
		width: 52px;
		height: 52px;
		font-size: 24px;
	}

	.ras-jobs-modal-dialog {
		width: 100%;
		border-radius: 16px 16px 0 0;
		padding: 18px 14px;
	}
}

@media (max-width: 420px) {
	.ras-jobs-filter-grid {
		grid-template-columns: 1fr;
	}

	.ras-jobs-card {
		grid-template-columns: 1fr;
	}

	.ras-jobs-card-icon {
		display: none;
	}

	.ras-jobs-card-right {
		grid-column: auto;
	}
}
