/* Juan Works How It Works block (front end).
 *
 * Colours follow the Customizer (Appearance > Customize > Colors) via the
 * --jw-* variables emitted by juanworks_output_customizer_color_vars().
 * Hardcoded values are kept only as fallbacks.
 */
.juanworks-how-it-works-block.content-block {
	border-radius: 4px;
	background-color: var(--jw-header-bg, #fff1e5);
	padding: 4rem;
	position: relative;
}

.juanworks-how-it-works-block.content-block::before,
.juanworks-how-it-works-block.content-block::after {
	display: block;
	content: "";
	position: absolute;
	width: 184px;
	height: 184px;
	background: radial-gradient(circle, rgba(var(--jw-primary-rgb, 0, 135, 111), 0.16) 1.5px, transparent 1.5px);
	background-size: 14px 14px;
}

.juanworks-how-it-works-block.content-block::before {
	z-index: -1;
	left: -92px;
	bottom: 42px;
}

.juanworks-how-it-works-block.content-block::after {
	top: 42px;
	right: -92px;
}

.juanworks-how-it-works-block .content-title {
	padding-top: 2rem;
	position: relative;
	margin-top: 0;
	text-align: center;
}

.juanworks-how-it-works-block .content-title::before {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -24px;
	border-radius: 50%;
	background-color: currentColor;
	color: var(--jw-primary, #00876f);
	box-shadow: 14px 0 0 currentColor, 28px 0 0 currentColor, 42px 0 0 currentColor, 0 14px 0 currentColor, 14px 14px 0 currentColor, 28px 14px 0 currentColor, 42px 14px 0 currentColor;
}

.juanworks-how-it-works-block .content-title:not(:last-child) {
	margin-bottom: 2rem;
}

.juanworks-how-it-works-block .content-subtitle {
	color: rgba(15, 23, 39, 0.45);
	font-size: 1.25rem;
	text-align: center;
}

.juanworks-how-it-works-block .content-title + .content-subtitle {
	margin-top: -1.5rem;
}

.juanworks-how-it-works-block .wp-block-columns,
.juanworks-how-it-works-block .wp-block-columns.is-layout-flex,
.juanworks-how-it-works-block .wp-block-columns.wp-block-columns-is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.juanworks-how-it-works-block .wp-block-column,
.juanworks-how-it-works-block .wp-block-column.is-layout-flow,
.juanworks-how-it-works-block .wp-block-column.wp-block-column-is-layout-flow {
	flex: 1 1 0;
	min-width: 0;
}

.juanworks-how-it-works-block .wp-block-column h3,
.juanworks-how-it-works-block .wp-block-column .has-text-align-center {
	text-align: center;
}

.juanworks-how-it-works-block .hp-feature {
	position: relative;
	width: 5.5rem;
	margin-right: auto;
	margin-left: auto;
}

.juanworks-how-it-works-block .hp-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	font-size: 42px;
	color: #fff;
	background-color: var(--jw-secondary, #00876f);
	border-radius: 50%;
	box-shadow: 0 5px 21px rgba(var(--jw-secondary-rgb, 0, 135, 111), 0.35);
}

.juanworks-how-it-works-block .hp-feature__caption {
	position: absolute;
	right: 0;
	top: 0;
	background-color: #fff;
	border-radius: 9999px;
	box-shadow: 0 5px 30px rgba(7, 36, 86, 0.075);
	padding: 0 0.25rem;
	white-space: nowrap;
	min-width: 1.625rem;
	line-height: 1.625rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(15, 23, 39, 0.85);
}

@media only screen and (min-width: 75em) {
	.juanworks-how-it-works-block .content-title {
		font-size: 2.625rem;
	}
}

@media screen and (max-width: 48em) {
	.juanworks-how-it-works-block.content-block {
		padding: 3rem 2rem;
	}

	.juanworks-how-it-works-block .wp-block-column,
	.juanworks-how-it-works-block .wp-block-column.is-layout-flow,
	.juanworks-how-it-works-block .wp-block-column.wp-block-column-is-layout-flow {
		flex-basis: 100%;
	}
}
