/* -----------------------------------------------------------------
   ACF Block: Timeline
   ----------------------------------------------------------------- */

.bd_timeline {
	position: relative;
	padding: 60px 20px;
	background-color: var(--color-bg, #FFFBF5);
}

/* Center vertical line */
.bd_timeline__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background-color: #c5c0b8;
	transform: translateX(-50%);
}

/* Each timeline row */
.bd_timeline__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	margin-bottom: 60px;
}

.bd_timeline__cell:last-child {
	margin-bottom: 0;
}

/* Dot on the center line */
.bd_timeline__dot {
	display: none;
}

/* Image column */
.bd_timeline__image-col {
	width: 100%;
}

.bd_timeline__figure {
	margin: 0;
}

.bd_timeline__img {
	width: 100%;
	height: auto;
	display: block;
}

.bd_timeline__caption {
	font-size: 0.85rem;
	color: #666;
	margin-top: 8px;
}

/* Info column */
.bd_timeline__info-col {
	width: 100%;
	padding-top: 20px;
}

.bd_timeline__heading {
	font-family: var(--martin, 'Martin', sans-serif);
	font-size: 1.8rem;
	font-weight: 400;
	text-transform: uppercase;
	color: #0b1a3e;
	margin: 0 0 12px 0;
	line-height: 1.1;
}

.bd_timeline__label {
	font-size: 1rem;
	font-weight: 700;
	color: #0b1a3e;
	margin: 0 0 6px 0;
}

.bd_timeline__text {
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	max-width: 420px;
}

.bd_timeline__text p {
	margin: 0 0 10px 0;
}

.bd_timeline__text p:last-child {
	margin-bottom: 0;
}

/* -----------------------------------------------------------------
   Desktop: alternating two-column layout with center line + dots
   ----------------------------------------------------------------- */

@media (min-width: 768px) {
	.bd_timeline {
		padding: 80px 40px;
	}

	.bd_timeline__cell {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 0 40px;
		align-items: start;
		margin-bottom: 80px;
	}

	/* Dot visible on desktop */
	.bd_timeline__dot {
		display: block;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background-color: #0b1a3e;
		position: relative;
		top: 40px;
		z-index: 1;
		flex-shrink: 0;
	}

	/* Default: image left, text right */
	.bd_timeline__image-col {
		order: 1;
	}

	.bd_timeline__dot {
		order: 2;
	}

	.bd_timeline__info-col {
		order: 3;
		padding-top: 20px;
		padding-left: 20px;
	}

	/* Reversed: text left, image right */
	.bd_timeline__cell--reverse .bd_timeline__info-col {
		order: 1;
		text-align: right;
		padding-left: 0;
		padding-right: 20px;
	}

	.bd_timeline__cell--reverse .bd_timeline__info-col .bd_timeline__text {
		margin-left: auto;
	}

	.bd_timeline__cell--reverse .bd_timeline__dot {
		order: 2;
	}

	.bd_timeline__cell--reverse .bd_timeline__image-col {
		order: 3;
	}
}

@media (min-width: 1024px) {
	.bd_timeline {
		padding: 100px 60px;
	}

	.bd_timeline__cell {
		gap: 0 50px;
		margin-bottom: 100px;
	}

	.bd_timeline__heading {
		font-size: 2.2rem;
	}
}
