/* =====================================================
   Leaf Process Timeline — Responsive Styles
   Used by the [leaf_process] shortcode
   ===================================================== */

.leaf-process-wrapper,
.leaf-process-wrapper *{
	box-sizing: border-box;
}

.leaf-process-wrapper{
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 20px;
	flex-wrap: nowrap;
}

.leaf-step{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 0;
	min-width: 0; /* critical: lets the column shrink instead of overflowing */
}

.leaf-icon{
	width: 72px;
	height: 72px;
	border: 2px solid #d7d0c8;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	flex-shrink: 0;
	z-index: 5;
}

.leaf-icon i{
	font-size: 31px;
	color: #2f342d;
}

.leaf-text{
	margin-top: 18px;
	width: 100%;
	max-width: 180px;
}

.leaf-text .step{
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #222;
}

.leaf-text .title{
	font-size: 15px;
	line-height: 1.55;
	color: #444;
	word-wrap: break-word;
}

.leaf-connector{
	flex: 0 1 90px;
	display: flex;
	align-items: center;
	margin-top: 36px; /* vertically centers connector with the 72px icon */
	padding: 0 2px;
}

.leaf-connector svg{
	width: 100%;
	height: 40px;
	overflow: visible;
	display: block;
}

/*************** Tablet (768px – 991px) ***************/
@media (max-width: 991px){
	.leaf-icon{
		width: 60px;
		height: 60px;
	}
	.leaf-icon i{
		font-size: 24px;
	}
	.leaf-text{
		max-width: 130px;
	}
	.leaf-text .step,
	.leaf-text .title{
		font-size: 13px;
	}
	.leaf-connector{
		flex: 0 1 40px;
		margin-top: 30px;
	}
}

/*************** Phone (≤767px) — stacked vertical layout ***************/
@media (max-width: 767px){
	.leaf-process-wrapper{
		display: block;
		padding: 20px 16px;
	}

	.leaf-step{
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding-bottom: 44px;
		position: relative;
	}

	.leaf-icon{
		width: 56px;
		height: 56px;
		flex-shrink: 0;
	}

	.leaf-icon i{
		font-size: 22px;
	}

	.leaf-text{
		margin-top: 0;
		margin-left: 18px;
		width: auto;
		max-width: none;
	}

	.leaf-text .step,
	.leaf-text .title{
		font-size: 14px;
	}

	.leaf-connector{
		position: absolute;
		left: 27px; /* half of icon width, aligns with icon center */
		top: 56px;
		width: 2px;
		height: 44px;
		margin: 0;
		flex: none;
	}

	.leaf-connector svg{
		width: 44px;
		height: 44px;
		transform: rotate(90deg);
		transform-origin: left top;
		position: absolute;
		left: 0;
		top: 0;
	}
}

/*************** Small phones (≤380px) ***************/
@media (max-width: 380px){
	.leaf-icon{
		width: 48px;
		height: 48px;
	}
	.leaf-icon i{
		font-size: 18px;
	}
	.leaf-text{
		margin-left: 14px;
	}
	.leaf-text .step,
	.leaf-text .title{
		font-size: 13px;
	}
	.leaf-connector{
		left: 23px;
		top: 48px;
	}
}
