/*
 * MediaBees Jobs – frontend
 * Colors follow the Elementor global colors when available.
 */

.mbj {
	--mbj-primary: var(--e-global-color-primary, #e7480f);
	--mbj-text: var(--e-global-color-text, #1d1d1b);
	--mbj-heading: var(--e-global-color-secondary, var(--mbj-text));
	--mbj-accent: var(--e-global-color-accent, var(--mbj-primary));
	--mbj-surface: #fff;
	--mbj-muted: #f4f4f4;
	--mbj-border: rgba(0, 0, 0, .1);
	--mbj-radius: 0;
	--mbj-gap: clamp(16px, 3vw, 32px);
	color: var(--mbj-text);
}

.mbj *, .mbj *::before, .mbj *::after { box-sizing: border-box; }

/* ---------- Media + KI badge ---------- */
.mbj-media { position: relative; margin: 0; line-height: 0; }
.mbj-media__img { display: block; width: 100%; height: auto; }
.mbj-ai-badge {
	position: absolute; right: 8px; bottom: 8px;
	padding: 3px 7px; border-radius: 3px;
	background: rgba(0, 0, 0, .72); color: #fff;
	font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .02em;
	pointer-events: none;
}

/* ---------- Grid + cards ---------- */
.mbj-grid { display: grid; gap: var(--mbj-gap); grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.mbj-grid--cols-2, .mbj-grid--cols-3, .mbj-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
	.mbj-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mbj-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mbj-card { display: flex; flex-direction: column; background: var(--mbj-surface); border-radius: var(--mbj-radius); box-shadow: 0 0 10px rgba(0, 0, 0, .12); overflow: hidden; transition: box-shadow .2s; }
.mbj-card:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .15); }
.mbj-card__media { display: block; }
.mbj-card__media .mbj-media__img { aspect-ratio: 16 / 10; object-fit: cover; }
.mbj-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.mbj .mbj-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: normal; }
.mbj .mbj-card__title a { color: var(--mbj-heading); text-decoration: none; }
.mbj .mbj-card__title a:hover, .mbj .mbj-card__title a:focus { color: var(--mbj-primary); }
.mbj .mbj-card__ref { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mbj-primary); font-weight: 600; }
.mbj .mbj-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; opacity: .85; }
.mbj .mbj-card__summary { margin: 0; font-size: 15px; }
.mbj .mbj-card__more { margin-top: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--mbj-primary); text-decoration: none; }
.mbj .mbj-card__more:hover, .mbj .mbj-card__more:focus { color: var(--mbj-primary); text-decoration: underline; }

/* ---------- Detail ---------- */
.mbj-job-detail, .mbj-candidate-detail { display: flex; flex-direction: column; gap: calc(var(--mbj-gap) * 1.5); }
.mbj-job__hero, .mbj-candidate__hero { display: grid; gap: var(--mbj-gap); align-items: start; }
@media (min-width: 900px) {
	.mbj-job__hero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
	.mbj-candidate__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.mbj-job__head, .mbj-candidate__head { display: flex; flex-direction: column; gap: 18px; }
.mbj .mbj-job__title, .mbj .mbj-candidate__title { margin: 0; color: var(--mbj-heading); }
.mbj-job__intro, .mbj-candidate__summary { font-size: 18px; }
.mbj-job__intro p, .mbj-candidate__summary p { margin: 0 0 .6em; }
.mbj-job__intro p:last-child, .mbj-candidate__summary p:last-child { margin-bottom: 0; }
.mbj-candidate__ref { margin: 0; font-weight: 600; color: var(--mbj-primary); }

.mbj .mbj-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mbj-facts__item { position: relative; padding-left: 22px; }
.mbj-facts__item::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--mbj-primary); }
.mbj-facts__label { font-weight: 700; }

.mbj-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mbj-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 16px 22px; border: 2px solid transparent; border-radius: 0;
	font-weight: 500; line-height: 1.2; text-decoration: none !important; transition: background-color .2s, color .2s;
	box-shadow: 10px 10px 30px rgba(0, 0, 0, .15);
}
.mbj a.mbj-button--primary { background: var(--mbj-primary); color: #fff; }
.mbj a.mbj-button--primary:hover, .mbj a.mbj-button--primary:focus { background: var(--mbj-heading); color: #fff; }
.mbj a.mbj-button--whatsapp { background: #25d366; color: #fff; }
.mbj a.mbj-button--whatsapp:hover, .mbj a.mbj-button--whatsapp:focus { background: #000; color: #fff; }

.mbj-columns { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1025px) {
	.mbj-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mbj-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mbj-columns .mbj-section { background: var(--mbj-surface); border: 2px solid var(--mbj-muted); padding: clamp(20px, 3vw, 30px); }
.mbj .mbj-section__title { margin: 0 0 14px; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; color: var(--mbj-primary); }
.mbj .mbj-bullets { margin: 0; padding: 0; list-style: none; }
.mbj-bullets li { position: relative; padding-left: 16px; margin: 0 0 6px; }
.mbj-bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--mbj-accent); }

.mbj .mbj-related > .mbj-section__title { color: var(--mbj-heading); }
.mbj-closed-notice { padding: 14px 18px; border-left: 4px solid var(--mbj-primary); background: var(--mbj-muted); font-weight: 600; margin: 0 0 var(--mbj-gap); }
.mbj-empty { font-style: italic; }
.mbj-form { scroll-margin-top: 120px; }

/* Detail page without Elementor template: breathing room below the header / above the footer */
.mbj-single { padding: clamp(32px, 6vw, 90px) 0 clamp(48px, 8vw, 120px); }
.mbj .mbj-job__title, .mbj .mbj-candidate__title { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
@media (max-width: 767px) {
	.mbj .mbj-job__intro, .mbj .mbj-candidate__summary { font-size: 16px; }
}
