/**
 * Module: Content Card Section (What happens next)
 * Loaded when a `content_card_section` layout is present on the page.
 */

.next {
	background: var(--indigo-tint);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 56px 0;
}

.next .head {
	max-width: 640px;
	margin-bottom: 30px;
}

.next .head .eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 12px;
}

.next .head h2 {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: var(--indigo);
	margin: 0;
	line-height: 1.15;
}

.next .head p {
	color: var(--ink-soft);
	font-size: 17px;
	margin-top: 12px;
	margin-bottom: 0;
	line-height: 1.5;
}

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	counter-reset: s;
	padding: 0;
	margin: 0;
}

.step {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 24px 24px 22px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.step::before {
	counter-increment: s;
	content: counter(s, decimal-leading-zero);
	font-family: var(--display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .1em;
	color: var(--crimson);
	display: block;
}

.step h3 {
	font-size: 17px;
	margin: 10px 0 6px;
	color: var(--indigo);
	font-weight: 700;
	line-height: 1.25;
}

.step p {
	font-size: 14.5px;
	color: var(--ink-soft);
	margin: 0;
	line-height: 1.5;
}

.step .time {
	display: inline-block;
	margin-top: 12px;
	font-family: var(--display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--indigo);
	background: var(--indigo-tint);
	padding: 5px 10px;
	border-radius: 999px;
}

.steps .step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -24px;
	width: 24px;
	height: 2px;
	background: var(--line);
}

.content-card-btn {
	margin-top: 32px;
	text-align: center;
}

.content-card-below {
	margin-top: 16px;
	font-size: 14px;
	color: var(--ink-soft);
	text-align: center;
}

@media (max-width: 980px) {
	.steps {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.steps .step:not(:last-child)::after {
		display: none;
	}
}

@media (max-width: 720px) {
	.next {
		padding: 44px 0;
	}

	.next .head p {
		font-size: 15.5px;
	}
}

/* ==========================================================================
   Membership Page Specific Content Card / How It Works Styles (Conditional)
   ========================================================================== */

/* Section background & borders */
.next.how,
body.page-id-315 .next {
	background: #ffffff !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	padding: 64px 0 !important;
}

.next.how .head,
body.page-id-315 .next .head {
	max-width: 640px !important;
	margin-bottom: 30px !important;
}

.next.how .head .eyebrow,
body.page-id-315 .next .head .eyebrow {
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 12px;
	display: inline-block;
}

.next.how .head h2,
body.page-id-315 .next .head h2 {
	font-family: var(--display);
	color: var(--indigo);
	line-height: 1.15;
	letter-spacing: -.01em;
	font-size: clamp(28px, 3.2vw, 40px) !important;
	font-weight: 700;
	margin: 0;
}

.next.how .head p,
body.page-id-315 .next .head p {
	color: var(--ink-soft) !important;
	font-size: 17px !important;
	margin-top: 12px !important;
	margin-bottom: 0;
	line-height: 1.5;
}

/* 5-column grid on desktop */
.next.how .steps,
body.page-id-315 .next .steps {
	list-style: none;
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 18px !important;
	counter-reset: s;
	padding: 0;
	margin: 0;
}

/* Step card styling */
.next.how .step,
body.page-id-315 .next .step {
	position: relative;
	background: var(--indigo-tint) !important;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	padding: 22px 20px 20px !important;
	box-shadow: none !important;
}

/* Step card reveal animation */
.next.how.js-ready .step,
body.page-id-315 .next.js-ready .step {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1);
}

.next.how.js-ready .step.in,
body.page-id-315 .next.js-ready .step.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.next.how.js-ready .step,
	body.page-id-315 .next.js-ready .step {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* Step counter */
.next.how .step::before,
body.page-id-315 .next .step::before {
	counter-increment: s;
	content: counter(s, decimal-leading-zero);
	font-family: var(--display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .1em;
	color: var(--crimson);
	display: inline !important;
	line-height: 1.6 !important;
}

/* Step title */
.next.how .step h3,
body.page-id-315 .next .step h3 {
	font-family: var(--display) !important;
	font-size: 15.5px !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em !important;
	margin: 8px 0 6px !important;
	color: var(--indigo) !important;
	font-weight: 700;
}

/* Step description */
.next.how .step p,
body.page-id-315 .next .step p {
	font-family: var(--body) !important;
	font-size: 13.5px !important;
	color: var(--ink-soft) !important;
	margin: 0 !important;
	line-height: 1.6 !important;
}

/* Connector line between cards */
.next.how .steps .step:not(:last-child)::after,
body.page-id-315 .next .steps .step:not(:last-child)::after {
	content: "" !important;
	position: absolute !important;
	top: 50% !important;
	right: -18px !important;
	width: 18px !important;
	height: 2px !important;
	background: var(--line) !important;
	display: block !important;
}

/* After action bar (Button + text in a single row) */
.next.how .after,
body.page-id-315 .next .after {
	margin-top: 28px !important;
	display: flex !important;
	gap: 18px !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	font-size: 15px !important;
	color: var(--ink-soft) !important;
}

.next.how .after .btn,
body.page-id-315 .next .after .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 14px 26px;
	border-radius: var(--radius, 6px);
	border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
}

.next.how .after .btn:hover,
body.page-id-315 .next .after .btn:hover {
	transform: translateY(-1px);
}

.next.how .after .btn-primary,
body.page-id-315 .next .after .btn-primary {
	background: var(--crimson, #ED1C24) !important;
	color: var(--white, #ffffff) !important;
}

.next.how .after .btn-primary:hover,
body.page-id-315 .next .after .btn-primary:hover {
	background: #C9151C !important;
}

.next.how .after span,
body.page-id-315 .next .after span {
	font-size: 15px;
	color: var(--ink-soft);
	line-height: 1.6;
}

/* Responsive Styles for Membership Page */
@media (max-width: 980px) {
	.next.how,
	body.page-id-315 .next {
		padding: 48px 0 !important;
	}

	.next.how .steps,
	body.page-id-315 .next .steps {
		grid-template-columns: 1fr 1fr !important;
		gap: 16px !important;
	}

	.next.how .steps .step:not(:last-child)::after,
	body.page-id-315 .next .steps .step:not(:last-child)::after {
		display: none !important;
	}
}

@media (max-width: 720px) {
	.next.how .steps,
	body.page-id-315 .next .steps {
		grid-template-columns: 1fr !important;
	}

	.next.how .after .btn,
	body.page-id-315 .next .after .btn {
		width: auto !important;
	}
}