/* ============================================================
   Fazaia Job Widgets — front-end styles
   Prefixed with .fjw- so it won't clash with your theme.
   ============================================================ */

.fjw-cta,
.fjw-search,
.fjw-jobs {
	--fjw-green: #0b4a34;
	--fjw-green-dark: #083726;
	--fjw-line: #dbe1dc;
	--fjw-amber: #c8891a;
	font-family: inherit;
	box-sizing: border-box;
}

/* ---------- Social / CTA ---------- */
.fjw-cta-box {
	background: #eafaf0;
	border: 1px solid #bfe9cf;
	border-radius: 10px;
	padding: 16px 18px;
	margin: 16px 0;
}
.fjw-cta-head strong {
	display: block;
	font-size: 16px;
	color: var(--fjw-green-dark);
}
.fjw-cta-head span {
	display: block;
	font-size: 14px;
	color: #3d6b52;
	margin-top: 2px;
}
/* buttons inside the box */
.fjw-cta-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

/* Style 2: inline row */
.fjw-cta-inline,
.fjw-cta-buttons { /* legacy alias */
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

/* Style 3: stacked full-width buttons */
.fjw-cta-stacked {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
}
.fjw-cta-stacked .fjw-btn {
	width: 100%;
	justify-content: flex-start;
	padding: 14px 18px;
	font-size: 15px;
}
.fjw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	color: #fff !important;
	text-decoration: none !important;
	line-height: 1;
	transition: opacity .15s ease;
}
.fjw-btn:hover { opacity: .9; }
.fjw-btn .fjw-ic {
	display: inline-flex;
	width: 18px;
	justify-content: center;
	font-style: normal;
}
.fjw-wa { background: #128c7e; }
.fjw-fb { background: #1877f2; }
.fjw-tg { background: #0088cc; }
.fjw-yt { background: #ff0000; }
.fjw-tw { background: #000000; }
.fjw-ig { background: #c13584; }

.fjw-cta-empty {
	border: 1px dashed #c4a24c;
	background: #fbf1dc;
	color: #7a5a12;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
}

/* ---------- Search ---------- */
.fjw-search {
	display: flex;
	gap: 8px;
	margin: 8px 0;
}
.fjw-search-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--fjw-line);
	border-radius: 8px;
	font-size: 14px;
	min-width: 0;
}
.fjw-search-btn {
	background: var(--fjw-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 18px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
.fjw-search-btn:hover { background: var(--fjw-green-dark); }

/* ---------- Latest jobs ---------- */
.fjw-jobs { margin: 8px 0; }
.fjw-jobs-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--fjw-green-dark);
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e7f0ea;
}
.fjw-jobs-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fjw-jobs-list li {
	padding: 9px 0;
	border-bottom: 1px dashed var(--fjw-line);
	font-size: 14px;
	display: flex;
	flex-direction: column;
}
.fjw-jobs-list li:last-child { border-bottom: none; }
.fjw-jobs-list a {
	color: var(--fjw-green);
	text-decoration: none;
	font-weight: 600;
}
.fjw-jobs-list a::before {
	content: "» ";
	color: var(--fjw-amber);
}
.fjw-jobs-list a:hover { text-decoration: underline; }
.fjw-date {
	font-size: 12px;
	color: #7a877f;
	margin-top: 2px;
}
.fjw-empty { color: #7a877f; font-size: 14px; }

@media (max-width: 480px) {
	.fjw-cta-btns .fjw-btn,
	.fjw-cta-buttons .fjw-btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   Popup
   ============================================================ */
.fjw-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 55, 38, .6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 99999;
	opacity: 0;
	transition: opacity .2s ease;
}
.fjw-popup-overlay[hidden] { display: none; }
.fjw-popup-overlay.is-open { opacity: 1; }

.fjw-popup {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	width: 100%;
	max-width: 420px;
	padding: 28px 26px 22px;
	transform: translateY(12px) scale(.97);
	transition: transform .2s ease;
}
.fjw-popup-overlay.is-open .fjw-popup {
	transform: translateY(0) scale(1);
}

.fjw-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #8a9791;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}
.fjw-popup-close:hover { color: #20272b; background: #f0f3f1; }

.fjw-popup-title {
	font-size: 21px;
	font-weight: 800;
	color: #083726;
	margin: 0 0 8px;
	padding: 0;
	border: none;
	text-align: center;
}
.fjw-popup-text {
	font-size: 15px;
	color: #5c6a72;
	margin: 0 0 18px;
	text-align: center;
}
.fjw-popup .fjw-cta,
.fjw-popup .fjw-cta-stacked,
.fjw-popup .fjw-cta-inline { margin: 0; }
.fjw-popup .fjw-cta-inline { justify-content: center; }

.fjw-popup-dismiss {
	display: block;
	width: 100%;
	margin-top: 14px;
	background: none;
	border: none;
	color: #8a9791;
	font-size: 13px;
	cursor: pointer;
	padding: 6px;
	text-decoration: underline;
}
.fjw-popup-dismiss:hover { color: #5c6a72; }

/* Trigger button ([job_popup_button]) */
button.fjw-btn {
	border: none;
	cursor: pointer;
	font-family: inherit;
}
.fjw-btn-full {
	display: flex;
	width: 100%;
	justify-content: center;
}

/* Stop background scroll while the popup is open */
body.fjw-popup-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.fjw-popup-overlay,
	.fjw-popup { transition: none; }
}

@media (max-width: 480px) {
	.fjw-popup { padding: 26px 20px 18px; }
	.fjw-popup-title { font-size: 19px; }
}
