/* Afik Jobs — Plugin Styles */
/* RTL, #EE9300 accent, brand font Fb Philosof (inherited from site's existing font files) */

@font-face {
	font-family: 'Fb Philosof';
	src: url('/wp-content/uploads/2020/09/fbphilosof-regularwebfont.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Fb Philosof';
	src: url('/wp-content/uploads/2020/09/fbphilosof-boldwebfont.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.afik-jobs-wrap {
	direction: rtl;
	font-family: 'Fb Philosof', Arial, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
}

/* ── Page Header ── */
.afik-jobs-page-header {
	text-align: center;
	margin: 0 0 28px;
}
.afik-jobs-page-title {
	font-family: 'Fb Philosof', Arial, sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
	line-height: 1.3;
}
.afik-jobs-page-sub {
	font-size: 16px;
	color: #EE9300;
	font-weight: 700;
	margin: 0;
}

/* ── Guest Banner ── */
.afik-jobs-guest-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff8ee;
	border: 1px solid #EE9300;
	border-radius: 8px;
	padding: 14px 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.afik-jobs-guest-banner strong {
	flex: 1;
	font-size: 15px;
}
.afik-jobs-lock {
	font-size: 20px;
}

/* ── CTA Button ── */
.afik-jobs-cta-btn {
	display: inline-block;
	background: #EE9300;
	color: #fff !important;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}
.afik-jobs-cta-btn:hover {
	background: #d47f00;
}

/* ── Tabs ── */
.afik-jobs-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e8e8e8;
	padding-bottom: 0;
}
.afik-jobs-tab {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	padding: 10px 16px 12px;
	color: #555;
	transition: color 0.15s, border-color 0.15s;
	display: flex;
	align-items: center;
	gap: 6px;
}
.afik-jobs-tab:hover {
	color: #EE9300;
}
.afik-jobs-tab.active {
	color: #EE9300;
	border-bottom-color: #EE9300;
	font-weight: 700;
}
.afik-jobs-tab-count {
	background: #f0f0f0;
	border-radius: 12px;
	padding: 1px 8px;
	font-size: 12px;
	color: #777;
}
.afik-jobs-tab.active .afik-jobs-tab-count {
	background: #fff0d9;
	color: #EE9300;
}

/* ── Sub-tabs (secondary pill row) ── */
.afik-jobs-subtabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -12px 0 24px;
}
.afik-jobs-subtabs:empty {
	margin: 0;
}
.afik-jobs-subtab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #f5f5f5;
	border: 1.5px solid #e6e6e6;
	border-radius: 20px;
	padding: 7px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #555;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1;
}
.afik-jobs-subtab:hover:not(.active) {
	border-color: #EE9300;
	color: #EE9300;
}
.afik-jobs-subtab.active {
	background: #EE9300;
	border-color: #EE9300;
	color: #fff;
}
.afik-jobs-subtab-count {
	font-size: 11px;
	font-weight: 700;
	background: rgba(0,0,0,0.06);
	color: inherit;
	border-radius: 10px;
	padding: 1px 7px;
}
.afik-jobs-subtab.active .afik-jobs-subtab-count {
	background: rgba(255,255,255,0.28);
}

/* ── Grid ── */
.afik-jobs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

/* ── Job Card ── */
.afik-job-card {
	position: relative;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}
.afik-job-card:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,0.10);
	transform: translateY(-2px);
}
.afik-job-card-inner {
	padding: 20px;
}
.afik-job-title {
	font-family: 'Fb Philosof', Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1a1a1a;
	line-height: 1.35;
}
.afik-job-company {
	display: block;
	font-size: 14px;
	color: #EE9300;
	font-weight: 700;
	margin-bottom: 10px;
}
.afik-job-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #666;
	margin-bottom: 12px;
}
.afik-job-source {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f4f4f4;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 12px;
	color: #555;
}
.afik-job-source img {
	border-radius: 3px;
	display: block;
}
.afik-job-snippet {
	font-size: 13px;
	color: #444;
	line-height: 1.55;
	margin: 0 0 16px;
}
.afik-job-apply-btn {
	display: inline-block;
	background: #1a1a1a;
	color: #fff !important;
	padding: 11px 28px;
	border: 0;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}
.afik-job-apply-btn:hover {
	background: #EE9300;
}

/* ── Blurred Card ── */
.afik-job-blurred .afik-job-card-inner {
	filter: blur(5px);
	user-select: none;
	pointer-events: none;
}
.afik-job-blur-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.6);
}

/* ── Pagination ── */
.afik-jobs-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
}
.afik-jobs-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: #fff;
	border: 1.5px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #444;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1;
}
.afik-jobs-page-btn:hover:not(.active):not(.disabled) {
	border-color: #EE9300;
	color: #EE9300;
}
.afik-jobs-page-btn.active {
	background: #EE9300;
	border-color: #EE9300;
	color: #fff;
	cursor: default;
}
.afik-jobs-page-btn.disabled {
	opacity: 0.4;
	cursor: default;
}
.afik-jobs-page-arrow {
	font-size: 18px;
	min-width: 36px;
}
.afik-jobs-page-ellipsis {
	color: #aaa;
	font-size: 14px;
	padding: 0 4px;
	line-height: 36px;
}
.afik-jobs-page-info {
	width: 100%;
	text-align: center;
	font-size: 13px;
	color: #999;
	margin: 6px 0 0;
}

/* ── Empty State ── */
.afik-jobs-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #888;
	padding: 40px 0;
	font-size: 15px;
}

/* ── Loading Spinner (AJAX) ── */
.afik-jobs-loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 24px;
	color: #888;
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.afik-jobs-grid {
		grid-template-columns: 1fr;
	}
	.afik-jobs-tabs {
		gap: 4px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.afik-jobs-tab {
		font-size: 13px;
		padding: 8px 10px 10px;
		white-space: nowrap;
	}
	.afik-jobs-subtabs {
		gap: 6px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}
	.afik-jobs-subtab {
		white-space: nowrap;
		flex: 0 0 auto;
	}
	.afik-jobs-page-title {
		font-size: 23px;
	}
	.afik-job-apply-btn {
		display: block;
		text-align: center;
		padding: 13px;
		font-size: 16px;
	}
	.afik-jobs-guest-banner {
		flex-direction: column;
		text-align: center;
	}
}

/* ── Leads Modal ── */
body.afik-jobs-modal-open {
	overflow: hidden;
}
.afik-jobs-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	direction: rtl;
	font-family: 'Fb Philosof', Arial, sans-serif;
}
.afik-jobs-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.afik-jobs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.6);
}
.afik-jobs-modal-box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	border-top: 5px solid #EE9300;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 34px 28px 26px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	animation: afik-modal-in 0.22s ease;
}
@keyframes afik-modal-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
.afik-jobs-modal-close {
	position: absolute;
	top: 10px;
	left: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 0;
	transition: color 0.15s;
}
.afik-jobs-modal-close:hover {
	color: #EE9300;
}
.afik-jobs-modal-title {
	font-family: 'Fb Philosof', Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.3;
	text-align: center;
}
.afik-jobs-modal-sub {
	font-size: 15px;
	color: #555;
	line-height: 1.55;
	margin: 0 0 22px;
	text-align: center;
}
.afik-jobs-modal-form {
	direction: rtl;
}
.afik-jobs-modal-form .ff-btn-submit,
.afik-jobs-modal-form .frm_button_submit,
.afik-jobs-modal-form button[type="submit"],
.afik-jobs-modal-form input[type="submit"] {
	background: #EE9300 !important;
	border-color: #EE9300 !important;
	color: #fff !important;
	width: 100%;
}
@media (max-width: 600px) {
	.afik-jobs-modal-box {
		padding: 28px 18px 20px;
		max-height: 94vh;
	}
	.afik-jobs-modal-title {
		font-size: 20px;
	}
}
