/* RW "What Happens Next" widget */

.wn {
	--wn-teal: #1B637B;
	--wn-gold: #DFA035;
	--wn-coral: #FC7062;
	--wn-text: #000;
	--wn-line: rgba(27, 99, 123, 0.22);
	--wn-head: "League Spartan", sans-serif;
	--wn-max: 1300px;
	--wn-intro-w: 34%;
	--wn-stagger: 22;
	--wn-num: 46px;
	--wn-ring-w: 5px;

	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 100px 20px;
	border-radius: 0;
	font-family: Poppins, sans-serif;
	color: var(--wn-text);
	/* No default background: set it from Style > Section > Background. */
	background: transparent;
}

@supports (color: color-mix(in srgb, red 10%, transparent)) {
	.wn {
		--wn-line: color-mix(in srgb, var(--wn-teal) 22%, transparent);
	}
}

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

.wn-empty {
	padding: 24px;
	text-align: center;
	color: #8c8c92;
	border: 1px dashed #c9d2d6;
}

/* content wrapper */
.wn-inner {
	position: relative;
	z-index: 1;
	max-width: var(--wn-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: var(--wn-intro-w) 1fr;
	align-items: center;
}

.wn.wn--no-intro .wn-inner {
	grid-template-columns: 1fr;
}

/* decorative ellipses + arc */
.wn-decor {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.wn-decor path,
.wn-decor ellipse {
	fill: none;
	vector-effect: non-scaling-stroke;
}

.wn-decor ellipse {
	stroke: var(--wn-line);
	stroke-width: 1.2;
}

.wn-decor .wn-arc {
	stroke: var(--wn-coral);
	stroke-width: 3.2;
	stroke-linecap: round;
}

.wn-intro,
.wn-steps {
	position: relative;
	z-index: 1;
}

/* left column */
.wn-intro {
	display: flex;
	flex-direction: column;
}

.wn-title {
	margin: 0;
	font-family: var(--wn-head);
	font-size: 52px;
	font-weight: 600;
	line-height: 60px;
	color: var(--wn-teal);
}

.wn-desc {
	margin: 16px 0 0;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
	color: var(--wn-text);
}

.wn-desc > :first-child {
	margin-top: 0;
}

.wn-desc > :last-child {
	margin-bottom: 0;
}

.wn-star {
	align-self: flex-start;
	width: min(220px, 100%);
	margin: 40px 0 0 8px;
}

.wn-star svg {
	display: block;
	width: 100%;
	height: auto;
}

.wn-star polygon {
	fill: var(--wn-teal);
	stroke: var(--wn-teal);
	stroke-width: 6;
	stroke-linejoin: round;
}

.wn-star .wn-dot-gold {
	fill: var(--wn-gold);
}

.wn-star .wn-dot-coral {
	fill: var(--wn-coral);
}

/* steps */
.wn-steps {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wn-step {
	width: max(64%, 300px);
	margin: 0 0 0 calc(var(--wn-k, 0) * var(--wn-stagger, 0) * 1%);
	display: grid;
	grid-template-columns: var(--wn-num) 1fr;
	gap: 16px;
	align-items: start;
	padding: 22px 26px 22px 18px;
	list-style: none;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(27, 99, 123, 0.1), 0 1px 3px rgba(27, 99, 123, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wn-step::marker {
	content: "";
}

.wn-step:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 34px rgba(27, 99, 123, 0.16), 0 1px 3px rgba(27, 99, 123, 0.06);
}

.wn-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wn-num);
	height: var(--wn-num);
	border-radius: 50%;
	border: var(--wn-ring-w) solid var(--ring, var(--wn-coral));
	background: #fff;
	font-family: var(--wn-head);
	font-size: 15px;
	font-weight: 600;
	color: var(--wn-teal);
}

.wn-card-title {
	margin: 0 0 4px;
	font-family: var(--wn-head);
	font-size: 24px;
	font-weight: 600;
	line-height: 31px;
	color: var(--wn-teal);
}

.wn-card-text {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
	color: var(--wn-text);
}

/* tablet (matches Elementor's default tablet breakpoint) */
@media (max-width: 1024px) {
	.wn-step {
		width: max(74%, 300px);
	}
}

/* phone (matches Elementor's default mobile breakpoint) */
@media (max-width: 767px) {
	.wn-step {
		width: 100%;
		padding: 16px 16px 16px 14px;
		gap: 12px;
	}

	.wn-title {
		font-size: 38px;
		line-height: 46px;
	}

	.wn-card-title {
		font-size: 21px;
		line-height: 28px;
	}

	.wn-card-text,
	.wn-desc {
		font-size: 16px;
		line-height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wn-step {
		transition: none;
	}

	.wn-step:hover {
		transform: none;
	}
}
