/**
 * Jobs Module Styles - فرصت‌های شغلی
 * Bootstrap 5 + Custom styling
 */
 
/* ========== Archive Jobs ========== */
.archive-jobs .jobs-banner {
	background: linear-gradient(135deg, var(--primary-color, #11889E) 0%, #0d6b7d 100%);
	color: #fff;
	padding: 3rem 0;
	position: relative;
}

.archive-jobs .jobs-banner .jobs-page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.archive-jobs .jobs-banner .jobs-page-subtitle {
	opacity: 0.9;
	margin: 0;
}


/* Job Cards - Improved Design */
.job-card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #eef1f4;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
	box-shadow: 0 12px 40px rgba(17, 136, 158, 0.12);
	border-color: rgba(17, 136, 158, 0.2);
}

.job-card-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 1.75rem;
	min-height: 120px;
}

.job-card-image {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f7fa;
}

.job-card-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.job-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.job-card:hover .job-card-image img {
	transform: scale(1.08);
}

.job-card-icon {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(17, 136, 158, 0.08) 0%, rgba(17, 136, 158, 0.04) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color, #11889E);
}

.job-card-content {
	flex: 1;
	min-width: 0;
}

.job-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.job-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35em 0.75em;
	border-radius: 8px;
}

.job-badge-work {
	background: rgba(17, 136, 158, 0.1);
	color: var(--primary-color, #11889E);
}

.job-badge-contract {
	background: #f0f2f5;
	color: #5a6474;
}

.job-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.job-card-title a {
	color: #1a1d21;
	text-decoration: none;
	transition: color 0.2s ease;
}

.job-card-title a:hover {
	color: var(--primary-color, #11889E);
}

.job-card-excerpt {
	font-size: 0.9rem;
	color: #6b7280;
	line-height: 1.55;
	margin: 0 0 0.75rem;
}

.job-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.job-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: #6b7280;
}

.job-meta-item svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.job-card-action {
	flex-shrink: 0;
}

.job-card-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--primary-color, #11889E) 0%, #0d6b7d 100%);
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(17, 136, 158, 0.25);
}

.job-card-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(17, 136, 158, 0.35);
}

.job-card-btn svg {
	transition: transform 0.2s ease;
}

.job-card:hover .job-card-btn svg {
	transform: translateX(-3px);
}

[dir="rtl"] .job-card:hover .job-card-btn svg {
	transform: translateX(3px);
}

.job-card-animate {
	animation: jobCardFadeIn 0.5s ease forwards;
}

@keyframes jobCardFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Job card responsive */
@media (max-width: 767px) {
	.job-card-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		padding: 1.25rem;
	}

	.job-card-image {
		width: 100%;
		height: 140px;
	}

	.job-card-icon {
		width: 56px;
		height: 56px;
	}

	.job-card-action {
		width: 100%;
	}

	.job-card-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Empty state */
.jobs-empty svg {
	opacity: 0.7;
}


/* ========== Single Job - هماهنگ با صفحه محصول و صفحه اصلی ========== */
.single-job-page .job-hero-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	padding: 2rem 0 3rem;
}

.single-job-page .job-main-image {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	aspect-ratio: 4/3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
}

.single-job-page .job-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-job-page .job-badge-modern {
	font-size: 0.8rem;
	padding: 0.4rem 1rem;
}

.single-job-page .job-details-section {
	background: #fff;
	padding: 4rem 0 2rem;
}

.single-job-page .content-header .title-decoration {
	margin: 0.75rem 0 0 0;
}

.single-job-page .job-specs-wrapper {
	margin-top: 0;
}

/* Application Form Card */
.single-job-page .job-application-form-wrapper {
	top: 100px;
}

.single-job-page .job-apply-card {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 2px solid #f0f0f0;
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
}

.single-job-page .job-apply-card:hover {
	border-color: rgba(17, 136, 158, 0.2);
	box-shadow: 0 8px 32px rgba(17, 136, 158, 0.08);
}

.single-job-page .job-apply-message {
	padding: 1.25rem;
	border-radius: 12px;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.single-job-page .job-apply-message svg {
	flex-shrink: 0;
	color: var(--primary-color, #11889E);
}

.single-job-page .job-apply-info {
	background: rgba(17, 136, 158, 0.08);
	border: 1px solid rgba(17, 136, 158, 0.2);
	color: #1a1a1a;
}

.single-job-page .job-apply-warning {
	background: rgba(255, 193, 7, 0.12);
	border: 1px solid rgba(255, 193, 7, 0.3);
	color: #856404;
}

.single-job-page .form-control-modern {
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 0.75rem 1rem;
	transition: all 0.2s ease;
}

.single-job-page .form-control-modern:focus {
	border-color: var(--primary-color, #11889E);
	box-shadow: 0 0 0 3px rgba(17, 136, 158, 0.12);
}

.single-job-page .job-application-form #job-form-submit {
	display: inline-flex;
}

.single-job-page .job-application-form #job-form-submit .btn-loading {
	display: inline-flex;
	align-items: center;
}

/* Form message animation */
#job-form-message.alert-success,
#job-form-message.alert-danger {
	animation: formMessageFade 0.4s ease;
}

@keyframes formMessageFade {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* RTL adjustments */
[dir="rtl"] .job-card-btn svg {
	transform: scaleX(-1);
}

@media (max-width: 991px) {
	.single-job-page .job-application-form-wrapper {
		position: static;
	}
}



/* ========== Page Template - Modern Minimal ========== */
.page-jobs-minimal {
	--jobs-accent: var(--primary-color, #11889E);
	--jobs-text: #1a1a1a;
	--jobs-muted: #6b7280;
	--jobs-border: #e5e7eb;
}

.container-narrow {
	max-width: 720px;
	margin-inline: auto;
}

/* Hero */
.page-jobs-hero {
	padding: 4rem 0 2rem;
	text-align: center;
}

.page-jobs-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	color: var(--jobs-text);
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
}

.page-jobs-lead {
	color: var(--jobs-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

/* Filter chips */
.page-jobs-filters {
	padding: 0 0 2.5rem;
}

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.filter-chip {
	display: inline-block;
	padding: 0.4rem 1rem;
	font-size: 0.875rem;
	color: var(--jobs-muted);
	text-decoration: none;
	border: 1px solid var(--jobs-border);
	border-radius: 2rem;
	transition: all 0.2s ease;
}

.filter-chip:hover {
	color: var(--jobs-accent);
	border-color: var(--jobs-accent);
}

.filter-chip.active {
	color: #fff;
	background: var(--jobs-accent);
	border-color: var(--jobs-accent);
}

.filter-divider {
	width: 1px;
	height: 1.5rem;
	background: var(--jobs-border);
	margin: 0 0.25rem;
	align-self: center;
}

/* Jobs list */
.page-jobs-list {
	padding-bottom: 4rem;
}

.page-jobs-count {
	font-size: 0.875rem;
	color: var(--jobs-muted);
	margin-bottom: 1.5rem;
}

.jobs-list-minimal {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--jobs-border);
	border-radius: 8px;
	overflow: hidden;
}

.job-item-minimal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 1.25rem;
	background: #fff;
	transition: background 0.2s ease;
}

.job-item-minimal:hover {
	background: #fafafa;
}

.job-item-content {
	flex: 1;
	min-width: 0;
}

.job-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	color: var(--jobs-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.job-item-meta span:not(.job-location)::after {
	content: "·";
	margin-inline-start: 0.5rem;
	color: var(--jobs-border);
}

.job-item-meta span:last-child::after {
	display: none;
}

.job-item-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
	line-height: 1.4;
}

.job-item-title a {
	color: var(--jobs-text);
	text-decoration: none;
	transition: color 0.2s;
}

.job-item-title a:hover {
	color: var(--jobs-accent);
}

.job-item-excerpt {
	font-size: 0.875rem;
	color: var(--jobs-muted);
	line-height: 1.5;
	margin: 0 0 0.5rem;
}

.job-item-deadline {
	font-size: 0.75rem;
	color: var(--jobs-muted);
}

.job-item-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	color: var(--jobs-muted);
	border: 1px solid var(--jobs-border);
	border-radius: 50%;
	transition: all 0.2s ease;
}

.job-item-link:hover {
	color: #fff;
	background: var(--jobs-accent);
	border-color: var(--jobs-accent);
}

[dir="rtl"] .job-item-link svg {
	transform: scaleX(-1);
}

/* Pagination */
.page-jobs-pagination {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	gap: 0.25rem;
}

.page-jobs-pagination a,
.page-jobs-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	font-size: 0.875rem;
	color: var(--jobs-muted);
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
}

.page-jobs-pagination a:hover {
	background: #f3f4f6;
	color: var(--jobs-accent);
}

.page-jobs-pagination .current {
	background: var(--jobs-accent);
	color: #fff;
}

/* Empty state */
.page-jobs-empty {
	text-align: center;
	padding: 4rem 2rem;
}

.page-jobs-empty p {
	color: var(--jobs-muted);
	margin-bottom: 1rem;
}

.page-jobs-back {
	display: inline-block;
	font-size: 0.875rem;
	color: var(--jobs-accent);
	text-decoration: none;
}

.page-jobs-back:hover {
	text-decoration: underline;
}

.title-decoration{
	margin: .5rem 0;
}

/* Responsive */
@media (max-width: 576px) {
	.page-jobs-hero {
		padding: 2.5rem 0 1.5rem;
	}

	.job-item-minimal {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.job-item-link {
		align-self: flex-end;
	}

	.filter-chips {
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
	}
}
