/* Careers - Open Positions */

.career-open-positions {
	position: relative;

	overflow: hidden;

	background:
		var(
			--el-primary,
			#0c2e54
		);

	color: #ffffff;

	padding:
		clamp(82px, 8vw, 128px)
		0;
}

/*
 * Subtle dotted texture to stay consistent
 * with the dark EngagedLeads sections.
 */
.career-open-positions::before {
	content: "";

	position: absolute;
	inset: 0;

	pointer-events: none;

	opacity: 0.1;

	background-image:
		radial-gradient(
			circle,
			rgba(255, 255, 255, 0.55) 1px,
			transparent 1px
		);

	background-size:
		28px
		28px;
}

.career-open-positions__inner {
	position: relative;
	z-index: 1;

	width:
		min(
			1180px,
			calc(100% - 48px)
		);

	display: grid;

	grid-template-columns:
		minmax(340px, 0.9fr)
		minmax(0, 1.1fr);

	align-items: center;

	gap:
		clamp(
			54px,
			7vw,
			100px
		);
}

/* =========================================================
 * Image
 * ========================================================= */

.career-open-positions__media {
	margin: 0;

	overflow: hidden;

	border-radius: 22px;

	aspect-ratio:
		1 / 0.95;

	background:
		rgba(
			255,
			255,
			255,
			0.08
		);
}

.career-open-positions__media img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

/* =========================================================
 * Content
 * ========================================================= */

.career-open-positions__content {
	min-width: 0;
}

.career-open-positions__eyebrow {
	color:
		rgba(
			255,
			255,
			255,
			0.76
		);
}

.career-open-positions__title {
	max-width: 620px;

	margin: 0;

	color: #ffffff;

	font-family:
		var(
			--el-heading-font,
			Poppins,
			system-ui,
			sans-serif
		);

	font-size:
		clamp(
			40px,
			4vw,
			58px
		);

	line-height: 1.06;

	letter-spacing:
		-0.055em;

	font-weight: 700;
}

.career-open-positions__copy {
	max-width: 660px;

	margin-top: 22px;

	color:
		rgba(
			255,
			255,
			255,
			0.6
		);

	font-size: 16px;
	line-height: 1.55;
}

.career-open-positions__copy p {
	margin:
		0
		0
		18px;
}

.career-open-positions__copy p:last-child {
	margin-bottom: 0;
}

/* =========================================================
 * Callout
 * ========================================================= */

.career-open-positions__callout {
	display: grid;

	grid-template-columns: 1fr;

	gap: 18px;

	margin-top:
		clamp(
			30px,
			4vw,
			44px
		);

	padding:
		clamp(
			22px,
			2.4vw,
			30px
		);

	border:
		1px solid
		rgba(
			255,
			255,
			255,
			0.08
		);

	border-radius: 18px;

	background:
		rgba(
			255,
			255,
			255,
			0.055
		);
}

/*
 * Only create the icon column when
 * an icon actually exists.
 */
.career-open-positions__callout--with-icon {
	grid-template-columns:
		auto
		minmax(0, 1fr);
}

.career-open-positions__callout-icon {
	display: flex;

	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;
}

.career-open-positions__callout-icon img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: contain;
}

.career-open-positions__callout-content {
	min-width: 0;
}

.career-open-positions__callout-content h3 {
	margin: 0;

	color: #ffffff;

	font-family:
		var(
			--el-heading-font,
			Poppins,
			system-ui,
			sans-serif
		);

	font-size: 22px;

	line-height: 1.15;

	font-weight: 700;
}

.career-open-positions__callout-content p {
	max-width: 620px;

	margin:
		9px
		0
		0;

	color:
		rgba(
			255,
			255,
			255,
			0.56
		);

	font-size: 14px;
	line-height: 1.5;
}

/* =========================================================
 * Buttons
 * ========================================================= */

.career-open-positions__actions {
	display: flex;

	flex-wrap: wrap;

	align-items: center;

	gap: 12px;

	margin-top: 20px;
}

/*
 * Secondary navy button becomes an outlined
 * button when sitting on this dark section.
 */
.career-open-positions
.button--navy {
	border-color:
		rgba(
			255,
			255,
			255,
			0.28
		);

	background: transparent;

	color: #ffffff;
}

.career-open-positions
.button--navy:hover {
	border-color:
		rgba(
			255,
			255,
			255,
			0.55
		);

	background:
		rgba(
			255,
			255,
			255,
			0.07
		);
}

/* =========================================================
 * Image-only variation
 * ========================================================= */

.career-open-positions--image-only
.career-open-positions__inner {
	grid-template-columns:
		minmax(0, 760px);

	justify-content: center;
}

.career-open-positions--image-only
.career-open-positions__media {
	width: 100%;
}

/* =========================================================
 * Content-only variation
 * ========================================================= */

.career-open-positions--content-only
.career-open-positions__inner {
	grid-template-columns:
		minmax(0, 760px);

	justify-content: center;
}

.career-open-positions--content-only
.career-open-positions__content {
	width: 100%;
}

/* =========================================================
 * Responsive
 * ========================================================= */

@media (max-width: 900px) {

	.career-open-positions__inner {
		grid-template-columns: 1fr;

		gap: 42px;
	}

	.career-open-positions__media {
		max-width: 620px;

		aspect-ratio:
			16 / 10;
	}

	.career-open-positions__content {
		max-width: 720px;
	}

	.career-open-positions--image-only
	.career-open-positions__inner,

	.career-open-positions--content-only
	.career-open-positions__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {

	.career-open-positions {
		padding:
			72px
			0;
	}

	.career-open-positions__inner {
		width:
			calc(
				100% - 36px
			);
	}

	.career-open-positions__media {
		border-radius: 18px;

		aspect-ratio:
			4 / 3;
	}

	.career-open-positions__title {
		font-size:
			clamp(
				36px,
				11vw,
				46px
			);
	}

	.career-open-positions__callout,
	.career-open-positions__callout--with-icon {
		grid-template-columns: 1fr;

		padding: 22px;
	}

	.career-open-positions__actions {
		flex-direction: column;

		align-items: stretch;

		max-width: 300px;
	}

	.career-open-positions__actions
	.button {
		width: 100%;
	}
}
