/**
 * Gutenberg homepage composition.
 */

.page .careerfy-main-content.careerfy-full-wide-page,
.page .careerfy-main-content.no-page-spacing,
.page .careerfy-entry-content {
	margin: 0;
	padding: 0;
}

.page .careerfy-entry-content::before,
.page .careerfy-entry-content::after {
	display: none;
}

.me-home-hero {
	position: relative;
	min-height: 330px;
	margin-bottom: 78px;
	padding: clamp(54px, 6vw, 72px) 0 36px;
	background: #111a38 url("../images/marocemploi-home-hero-v2.webp") center 46% / cover no-repeat;
	color: #fff;
	overflow: visible;
}

.me-home-hero::before {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 18, 42, .93) 0%, rgba(10, 18, 42, .82) 34%, rgba(10, 18, 42, .4) 67%, rgba(10, 18, 42, .18) 100%);
	content: "";
}

.me-home-hero > .wp-block-group__inner-container,
.me-home-hero .me-container,
.me-home-hero__inner > .wp-block-group__inner-container {
	position: relative;
	z-index: 1;
}

.me-home-hero__inner > .wp-block-group__inner-container {
	width: 100%;
}

.me-home-hero__copy {
	max-width: 660px;
}

.me-home-hero h1 {
	max-width: 650px;
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 3.4vw, 42px);
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.08;
}

.me-home-hero__lead {
	max-width: 560px;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, .86);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
}

.me-home-hero .me-job-search {
	margin-top: 24px;
	transform: translateY(72px);
}

.me-home-hero .me-job-search__form {
	border: 1px solid rgba(17, 26, 56, .08);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(17, 26, 56, .19);
}

.me-home-hero .me-job-search__field label {
	font-size: 12px;
	font-weight: 500;
}

.me-home-hero .me-job-search__submit {
	font-weight: 600;
}

.me-home-hero .me-job-search__popular {
	display: none;
}

.me-home-latest {
	padding-block: clamp(46px, 5vw, 60px);
	background: var(--me-color-canvas);
}

.me-home-latest .me-section-heading {
	margin-bottom: 20px;
}

.me-home-latest .me-section-heading p:last-child {
	max-width: 620px;
	margin: 8px 0 0;
	color: var(--me-color-muted);
	font-size: 16px;
	line-height: 1.55;
}

.home .me-title-section,
.home .me-section-heading--simple .me-title-section,
.home .me-home-employers__heading .me-title-section {
	font-size: clamp(26px, 2.5vw, 30px);
	font-weight: 600;
	letter-spacing: -.015em;
}

.home .me-section-heading--simple {
	margin-bottom: 18px;
}

.home .me-home-employers {
	padding-block: 28px 42px;
	border-top: 0;
}

.home .me-home-employers__heading {
	margin-bottom: 18px;
}

.home .me-home-employer-logo {
	height: 92px;
	border-radius: 10px;
	box-shadow: none;
}

.home .me-home-employer-logo__name {
	font-size: 15px;
	font-weight: 600;
}

.me-home-audiences {
	padding-block: clamp(52px, 6vw, 76px);
	background: #fff;
}

.me-home-audiences--compact {
	padding-block: clamp(46px, 5vw, 60px);
}

.me-home-audiences__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.me-home-audience-card {
	position: relative;
	padding: clamp(26px, 3.4vw, 40px);
	border: 1px solid var(--me-color-border);
	border-radius: var(--me-radius-lg);
	background: #fff;
	overflow: hidden;
}

.me-home-audiences--compact .me-home-audience-card {
	padding: clamp(24px, 3vw, 32px);
}

.me-home-audience-card--candidate {
	background: linear-gradient(145deg, #f2f5ff, #fff 68%);
}

.me-home-audience-card--employer {
	background: linear-gradient(145deg, #ecfaf3, #fff 68%);
}

.me-home-audience-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 18px;
	border-radius: 12px;
	background: var(--me-color-brand);
	color: #fff;
	font-weight: 700;
}

.me-home-audience-card--employer .me-home-audience-card__number {
	background: var(--me-color-primary);
}

.me-home-audience-card h3 {
	margin: 0 0 10px;
	font-size: clamp(22px, 2.3vw, 28px);
	font-weight: 600;
}

.me-home-audience-card p {
	margin: 0 0 20px;
	color: var(--me-color-muted);
	font-size: 16px;
	line-height: 1.55;
}

.me-home-steps {
	padding-block: clamp(52px, 6vw, 72px);
	background: var(--me-color-brand-dark);
	color: #fff;
}

.me-home-steps h2,
.me-home-steps h3 {
	color: #fff;
}

.me-home-steps .me-eyebrow {
	color: #7ce4ac;
}

.me-home-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 28px;
}

.me-home-step {
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: var(--me-radius-md);
	background: rgba(255, 255, 255, .055);
}

.me-home-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--me-color-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.me-home-step h3 {
	margin: 0 0 9px;
	font-size: 18px;
}

.me-home-step p {
	margin: 0;
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
	line-height: 1.55;
}

.me-home-recruiter {
	padding-block: clamp(52px, 6vw, 72px);
	background: var(--me-color-canvas);
}

.me-home-recruiter--compact {
	padding-block: clamp(42px, 5vw, 56px);
}

.me-home-recruiter--compact .me-home-recruiter__panel {
	padding: clamp(26px, 3.5vw, 36px);
}

.me-home-recruiter--compact .me-home-recruiter__panel h2 {
	font-size: clamp(25px, 2.7vw, 30px);
	font-weight: 600;
}

.me-home-recruiter--compact .me-home-recruiter__panel p {
	margin-top: 8px;
}

.me-home-recruiter__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	align-items: center;
	gap: 32px;
	padding: clamp(30px, 4vw, 46px);
	border-radius: var(--me-radius-lg);
	background: linear-gradient(135deg, #edf9f3, #f8fbff);
	box-shadow: inset 0 0 0 1px var(--me-color-border);
}

.me-home-recruiter__panel h2 {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 38px);
}

.me-home-recruiter__panel p {
	max-width: 690px;
	margin: 14px 0 0;
	color: var(--me-color-muted);
}

.me-home-recruiter__panel p:not(.me-eyebrow) {
	font-size: 16px;
	line-height: 1.55;
}

.me-home-recruiter__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.me-home-seo {
	padding-block: clamp(52px, 6vw, 72px);
	border-top: 1px solid var(--me-color-border);
	background: #fff;
}

.me-home-seo__grid > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: clamp(34px, 6vw, 72px);
}

.me-home-seo__intro h2 {
	margin-top: 0;
	font-size: clamp(28px, 3.2vw, 38px);
}

.me-home-seo__intro > p:last-child,
.me-home-seo__points p {
	color: var(--me-color-muted);
}

.me-home-seo__intro > p:last-child {
	font-size: 16px;
	line-height: 1.55;
}

.me-home-seo__points {
	display: grid;
	gap: 14px;
}

.me-home-seo__points article {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--me-color-border);
	border-radius: var(--me-radius-md);
	background: var(--me-color-canvas);
}

.me-home-seo__points article > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--me-color-primary-soft);
	color: var(--me-color-primary-dark);
	font-size: 12px;
	font-weight: 700;
}

.me-home-seo__points h3 {
	margin: 1px 0 4px;
	font-size: 16px;
}

.me-home-seo__points p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

@media (max-width: 900px) {
	.me-home-seo__grid > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
	}

	.me-home-recruiter__panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.me-home-audiences__grid,
	.me-home-steps__grid {
		grid-template-columns: 1fr;
	}

	.me-home-hero {
		min-height: 0;
		margin-bottom: 0;
		padding: 42px 0 28px;
		background-position: 63% center;
		overflow: hidden;
	}

	.me-home-hero::before {
		background: rgba(10, 18, 42, .78);
	}

	.me-home-hero h1 {
		font-size: clamp(32px, 9vw, 38px);
	}

	.me-home-hero__lead {
		font-size: 16px;
	}

	.me-home-hero .me-job-search {
		margin-top: 22px;
		transform: none;
	}

	.me-home-audiences,
	.me-home-steps,
	.me-home-recruiter,
	.me-home-seo {
		padding-block: 48px;
	}

	.me-home-audiences__grid {
		gap: 14px;
	}

	.me-home-steps__grid {
		gap: 12px;
		margin-top: 24px;
	}

	.me-home-step {
		padding: 20px;
	}

	.me-home-recruiter__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.me-home-recruiter__actions .me-button {
		width: 100%;
	}

	.me-home-seo__points article {
		padding: 16px;
	}
}
