/**
 * Talent - the 3 steps (Elementor classes: home-talent-steps, home-talent-step,
 * home-talent-step--last, home-talent-step-number, home-talent-step-title, home-talent-step-text)
 * Desktop: 3 columns, the connector is a horizontal line (dot -> arrow) next to the number.
 * Mobile: stacked, number on the left, vertical connector below it (not on the last step).
 * The connector is a decorative pseudo-element; it does not rely on :last-child because
 * Elementor's editor markup breaks it.
 */

body.home.elementor-page .home-talent-steps,
body.home.elementor-page .home-talent-step {
	box-sizing: border-box;
	max-width: 100%;
	padding: 0;
	gap: 0;
}

body.home.elementor-page .home-talent-steps {
	display: flex;
	flex-direction: row;
	gap: 24px;
	margin-top: 54px;
}

body.home.elementor-page .home-talent-step {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
}

body.home.elementor-page .home-talent-step .elementor-widget {
	margin: 0;
	padding: 0;
	font-family: var(--font-family-base);
}

body.home.elementor-page .home-talent-step-number .elementor-heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	border-radius: var(--radius-full);
	background-color: var(--color-accent-lavender);
	color: var(--color-primary);
	font-family: var(--font-family-base);
	font-size: 16px;
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

/* Higher specificity than the .elementor-widget margin reset above */
body.home.elementor-page .home-talent-step .home-talent-step-title.elementor-widget {
	margin-top: 4px;
}

body.home.elementor-page .home-talent-step-title .elementor-heading-title {
	margin: 0;
	color: var(--color-primary);
	font-family: var(--font-family-base);
	font-size: 18px;
	font-weight: var(--font-weight-bold);
	line-height: 30px;
}

body.home.elementor-page .home-talent-step .home-talent-step-text.elementor-widget {
	margin-top: 4px;
	color: var(--color-primary);
	font-size: 18px;
	line-height: 30px;
}

body.home.elementor-page .home-talent-step-text p {
	margin: 0;
}

/* Connector: dot - line - arrow */
body.home.elementor-page .home-talent-step::after {
	content: '';
	position: absolute;
	top: 22px;
	right: 0;
	left: 58px;
	height: 7px;
	background:
		radial-gradient(circle at 2.5px 3.5px, var(--color-primary) 2.5px, transparent 3px) left center / 5px 7px no-repeat,
		linear-gradient(var(--color-primary), var(--color-primary)) center / 100% 1px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 7'%3E%3Cpath d='M0 0l6 3.5L0 7z' fill='%230e4d44'/%3E%3C/svg%3E") right center / 6px 7px no-repeat;
}

@media screen and (max-width: 767px) {
	body.home.elementor-page .home-talent-steps {
		flex-direction: column;
		gap: 59px;
		margin-top: 24px;
	}

	body.home.elementor-page .home-talent-step {
		display: grid;
		flex: none;
		grid-template-columns: 50px 1fr;
		grid-template-areas:
			'number title'
			'number text';
		grid-template-rows: auto 1fr;
		column-gap: 4px;
		align-items: start;
	}

	body.home.elementor-page .home-talent-step-number {
		grid-area: number;
	}

	body.home.elementor-page .home-talent-step .home-talent-step-title.elementor-widget {
		grid-area: title;
		margin-top: 0;
	}

	body.home.elementor-page .home-talent-step .home-talent-step-text.elementor-widget {
		grid-area: text;
		margin-top: 8px;
		font-size: 16px;
		line-height: 29px;
	}

	/* Vertical connector below the number, down to the next step */
	body.home.elementor-page .home-talent-step::after {
		top: 60px;
		right: auto;
		bottom: -32px;
		left: 22px;
		width: 7px;
		height: auto;
		background:
			radial-gradient(circle at 3.5px 2.5px, var(--color-primary) 2.5px, transparent 3px) center top / 7px 5px no-repeat,
			linear-gradient(var(--color-primary), var(--color-primary)) center / 1px 100% no-repeat,
			url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6'%3E%3Cpath d='M0 0h7L3.5 6z' fill='%230e4d44'/%3E%3C/svg%3E") center bottom / 7px 6px no-repeat;
	}

	body.home.elementor-page .home-talent-step--last::after {
		display: none;
	}
}
