/**
 * Education and employment page.
 */

.neomi-education {
	--education-ink: #292433;
	--education-plum: #6f315d;
	--education-muted: #504a58;
	--education-blush: #fff3f1;
	--education-cream: #fffaf7;
	--education-line: rgba(111, 49, 93, 0.16);
	--education-gold: #c9aa78;
	direction: rtl;
	overflow-x: hidden;
	background: var(--education-cream);
	color: var(--education-ink);
	font-family: var(--neomi-font-body);
}

.neomi-education :where(h1, h2, h3, p) {
	margin: 0;
}

.neomi-education-hero {
	direction: ltr;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: stretch;
	min-height: clamp(24rem, 34vw, 28rem);
	background:
		linear-gradient(90deg, rgba(255, 250, 247, 0.99), rgba(255, 250, 247, 0.94) 37%, rgba(255, 250, 247, 0.1) 57%),
		var(--education-cream);
}

.neomi-education-hero__content {
	direction: rtl;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: clamp(1.6rem, 3.2vw, 3.2rem) clamp(1.6rem, 5vw, 4.8rem);
	text-align: center;
}

.neomi-education-eyebrow {
	margin-block-end: 0.55rem !important;
	color: rgba(111, 49, 93, 0.78);
	font-size: clamp(0.95rem, 1.1vw, 1.05rem);
	font-weight: 700;
	letter-spacing: 0;
}

.neomi-education h1,
.neomi-education h2,
.neomi-education h3 {
	color: var(--education-plum);
	font-family: var(--neomi-font-display);
	font-weight: 700;
	letter-spacing: 0;
}

.neomi-education h1 {
	max-width: 26rem;
	font-size: clamp(3.05rem, 4.45vw, 4.35rem);
	line-height: 1.06;
}

.neomi-education-hero__content p:last-child {
	max-width: 27rem;
	color: #211c27;
	font-size: clamp(1.1rem, 1.35vw, 1.28rem);
	font-weight: 600;
	line-height: 1.82;
}

.neomi-education-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.48rem;
	width: min(6.8rem, 46%);
	margin: 0.75rem auto 1rem;
	color: rgba(111, 49, 93, 0.34);
}

.neomi-education-ornament::before,
.neomi-education-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
}

.neomi-education-ornament span {
	width: 0.68rem;
	height: 0.68rem;
	border: 1px solid currentColor;
	border-radius: 999px;
}

.neomi-education-ornament--wide {
	width: min(17rem, 72%);
	margin-block-start: 1rem;
}

.neomi-education-image-placeholder {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 100%;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 250, 247, 0.06)),
		repeating-linear-gradient(-45deg, rgba(111, 49, 93, 0.07) 0 1px, transparent 1px 18px),
		linear-gradient(180deg, #f3e8df, #decec3);
	border: 1px solid rgba(111, 49, 93, 0.08);
}

.neomi-education-image-placeholder::before {
	content: "";
	position: absolute;
	inset: 1.2rem;
	border: 1px dashed rgba(111, 49, 93, 0.22);
}

.neomi-education-image-placeholder span {
	position: relative;
	z-index: 1;
	padding: 0.55rem 1rem;
	color: rgba(111, 49, 93, 0.82);
	background: rgba(255, 250, 247, 0.78);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.05rem, 1.5vw, 1.35rem);
	font-weight: 700;
}

.neomi-education-image-placeholder--hero {
	min-height: clamp(21rem, 34vw, 28rem);
	border-inline-end: 0;
}

.neomi-education-hero__photo {
	position: relative;
	min-height: clamp(21rem, 34vw, 28rem);
	overflow: hidden;
	background: #efe3d6;
}

.neomi-education-hero__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(255, 250, 247, 0.88), rgba(255, 250, 247, 0) 28%);
	pointer-events: none;
}

.neomi-education-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.neomi-education-intro {
	padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1.2rem, 6vw, 6rem);
	background: rgba(255, 255, 255, 0.64);
	box-shadow: 0 18px 55px rgba(73, 48, 42, 0.035);
	text-align: center;
}

.neomi-education-intro p {
	max-width: 70rem;
	margin-inline: auto;
	color: #211c27;
	font-size: clamp(1.2rem, 1.55vw, 1.48rem);
	font-weight: 600;
	line-height: 1.8;
}

.neomi-education-path {
	padding: clamp(1.7rem, 3.5vw, 3rem) clamp(1.2rem, 5vw, 5rem);
	text-align: center;
}

.neomi-education h2 {
	font-size: clamp(2.1rem, 3vw, 2.85rem);
	line-height: 1.14;
}

.neomi-education-path__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: min(67rem, 100%);
	margin: clamp(1rem, 2vw, 1.55rem) auto 0;
}

.neomi-education-card {
	padding: 0 clamp(1.6rem, 3.6vw, 3.6rem);
	border-inline-start: 1px solid var(--education-line);
}

.neomi-education-card:last-child {
	border-inline-start: 0;
}

.neomi-education-icon {
	display: grid;
	place-items: center;
	width: 4.35rem;
	height: 4.35rem;
	margin: 0 auto 0.72rem;
	color: var(--education-plum);
	background: rgba(196, 165, 116, 0.13);
	border-radius: 999px;
}

.neomi-education-icon svg {
	width: 2.55rem;
	height: 2.55rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.neomi-education-card h3 {
	font-size: clamp(1.32rem, 1.75vw, 1.65rem);
	line-height: 1.2;
	white-space: nowrap;
}

.neomi-education-card p {
	max-width: 17.5rem;
	margin: 0.45rem auto 0;
	color: #302b36;
	font-size: clamp(0.92rem, 1vw, 1rem);
	font-weight: 500;
	line-height: 1.68;
}

.neomi-education-feature {
	direction: ltr;
	display: grid;
	grid-template-columns: minmax(16rem, 0.84fr) minmax(0, 1.16fr);
	align-items: stretch;
	background:
		linear-gradient(180deg, rgba(251, 246, 239, 0.94), rgba(255, 250, 247, 0.98)),
		var(--education-cream);
}

.neomi-education-image-placeholder--feature {
	align-self: center;
	min-height: 0;
	height: calc(100% - clamp(1rem, 2vw, 1.6rem));
	border-inline-start: 0;
}

.neomi-education-dream-collage {
	direction: ltr;
	align-self: center;
	width: min(70%, 21rem);
	margin: 0;
	justify-self: start;
	overflow: visible;
}

.neomi-education-dream-collage__stage {
	position: relative;
	isolation: isolate;
	width: 100%;
	height: clamp(19rem, 30vw, 24rem);
	overflow: visible;
}

.neomi-education-dream-collage__image {
	position: absolute;
	display: block;
	object-fit: cover;
	object-position: center;
	background: #efe3d6;
	border: 0.34rem solid rgba(255, 255, 255, 0.86);
	border-radius: 0.72rem;
	box-shadow: 0 0.9rem 2rem rgba(73, 48, 42, 0.14);
}

.neomi-education-dream-collage__image--primary {
	inset-block-start: 6%;
	inset-inline-start: 0;
	z-index: 1;
	width: 64%;
	height: 72%;
	transform: rotate(-2deg);
}

.neomi-education-dream-collage__image--secondary {
	inset-inline-end: 0;
	inset-block-end: 6%;
	z-index: 2;
	width: 57%;
	height: 61%;
	transform: rotate(2.5deg);
}

.neomi-education-dream-collage__caption {
	width: fit-content;
	max-width: calc(100vw - 2.7rem);
	margin: clamp(0.7rem, 1.4vw, 1rem) auto 0;
	direction: rtl;
	color: var(--education-plum);
	font-family: var(--neomi-font-display);
	font-size: clamp(1.18rem, 1.7vw, 1.55rem);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	letter-spacing: 0;
	white-space: nowrap;
}

.neomi-education-feature__content {
	direction: rtl;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.7rem, 3.8vw, 3.8rem) clamp(1.5rem, 6vw, 6rem);
}

.neomi-education-feature__content h2 {
	max-width: 34rem;
	text-align: center;
}

.neomi-education-feature__content p {
	max-width: 42rem;
	margin-block-start: 0.9rem;
	color: var(--education-ink);
	font-size: clamp(1rem, 1.14vw, 1.1rem);
	font-weight: 500;
	line-height: 1.82;
}

.neomi-education-feature__cta {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-block-start: clamp(1.6rem, 3vw, 2.4rem);
}

.neomi-education-achievements {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 4vw, 4rem);
	width: min(72rem, calc(100% - clamp(2.7rem, 10vw, 10rem)));
	margin: clamp(1.15rem, 2.2vw, 1.8rem) auto clamp(1.55rem, 3vw, 2.4rem);
	padding-block-start: clamp(0.85rem, 1.6vw, 1.25rem);
	border-block-start: 1px solid rgba(111, 49, 93, 0.12);
}

.neomi-education-achievement {
	display: grid;
	justify-items: center;
	gap: 0.45rem;
	color: var(--education-plum);
	font-weight: 700;
	text-align: center;
}

.neomi-education-icon--small {
	width: 3.65rem;
	height: 3.65rem;
	margin: 0;
	background: rgba(255, 255, 255, 0.72);
}

.neomi-education-icon--small svg {
	width: 2.15rem;
	height: 2.15rem;
}

.neomi-education-closing {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	align-items: center;
	gap: clamp(1.5rem, 5vw, 5rem);
	padding: clamp(1.85rem, 4vw, 3.6rem) clamp(1.2rem, 6vw, 6rem);
	background:
		linear-gradient(90deg, rgba(255, 243, 241, 0.95), rgba(255, 250, 247, 0.92)),
		var(--education-blush);
}

.neomi-education-closing__callout {
	text-align: center;
}

.neomi-education-closing__callout h2 {
	max-width: 28rem;
	margin-inline: auto;
	font-size: clamp(2.25rem, 3.65vw, 3.35rem);
	line-height: 1.28;
}

.neomi-education-closing__text {
	text-align: center;
}

.neomi-education-icon--heart {
	width: 3.75rem;
	height: 3.75rem;
	margin-block-end: 0.55rem;
	background: transparent;
}

.neomi-education-icon--heart svg {
	fill: none;
}

.neomi-education-closing__text p {
	max-width: 43rem;
	margin-inline: auto;
	color: var(--education-ink);
	font-size: clamp(1rem, 1.14vw, 1.1rem);
	font-weight: 500;
	line-height: 1.82;
}

.neomi-education-closing__text p + p {
	margin-block-start: 0.85rem;
}

@media (max-width: 63.99rem) {
	.neomi-education-hero,
	.neomi-education-path__grid,
	.neomi-education-feature,
	.neomi-education-closing {
		grid-template-columns: 1fr;
	}

	.neomi-education-hero {
		min-height: 0;
	}

	.neomi-education-hero__photo {
		order: -1;
		min-height: 17rem;
	}

	.neomi-education-card {
		padding-block: 1rem;
		border-inline-start: 0;
		border-block-end: 1px solid var(--education-line);
	}

	.neomi-education-card:last-child {
		border-block-end: 0;
	}

	.neomi-education-achievements {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.neomi-education-dream-collage {
		width: min(88%, 32rem);
		margin: clamp(1.2rem, 4vw, 2rem) auto 0;
		overflow: visible;
	}

	.neomi-education-dream-collage__stage {
		height: clamp(23rem, 64vw, 34rem);
	}

	.neomi-education-dream-collage__image--primary {
		inset-block-start: 1rem;
		inset-inline-start: 2%;
		width: 58%;
		height: 68%;
		transform: rotate(-1.5deg);
	}

	.neomi-education-dream-collage__image--secondary {
		inset-inline-end: 2%;
		inset-block-end: 1rem;
		width: 50%;
		height: 56%;
		transform: rotate(2deg);
	}
}

@media (max-width: 42rem) {
	.neomi-education h1 {
		font-size: clamp(2.85rem, 11.5vw, 3.45rem);
	}

	.neomi-education-hero__content,
	.neomi-education-intro,
	.neomi-education-path,
	.neomi-education-feature__content,
	.neomi-education-closing {
		padding-inline: 1.35rem;
	}

	.neomi-education-achievements {
		grid-template-columns: 1fr;
	}

	.neomi-education-card h3 {
		font-size: clamp(1.18rem, 7vw, 1.45rem);
	}

	.neomi-education-dream-collage {
		width: min(90%, 24rem);
		margin-block-start: 1rem;
	}

	.neomi-education-dream-collage__caption {
		max-width: calc(100vw - 2.7rem);
		font-size: clamp(0.92rem, 3.85vw, 1.16rem);
	}

	.neomi-education-dream-collage__stage {
		height: clamp(20rem, 92vw, 29rem);
	}

	.neomi-education-dream-collage__image {
		border-width: 0.32rem;
		border-radius: 0.7rem;
		box-shadow: 0 0.9rem 2rem rgba(73, 48, 42, 0.16);
	}

	.neomi-education-dream-collage__image--primary {
		width: 60%;
		height: 66%;
		transform: rotate(-1.25deg);
	}

	.neomi-education-dream-collage__image--secondary {
		width: 52%;
		height: 53%;
		transform: rotate(1.75deg);
	}
}
