/* A-BAO TIMELINE — structural styles.
   Colors, typography, sizing are controlled live from the Elementor Style tab;
   this file only handles layout so the widget looks right even before styling. */

.abao-timeline {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 20px;
}

/* Vertical connecting line */
.abao-timeline:before {
	content: '';
	position: absolute;
	left: 55px;
	top: 0;
	width: 3px;
	height: 100%;
	background: repeating-linear-gradient(
		to bottom,
		#8B5E3C 0px,
		#8B5E3C 14px,
		transparent 14px,
		transparent 28px
	);
}

.abao-timeline .timeline-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 35px;
	margin-bottom: 55px;
}

.abao-timeline .timeline-item:last-child {
	margin-bottom: 0;
}

.abao-timeline .timeline-icon {
	min-width: 60px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #D94B3D;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	position: relative;
	z-index: 2;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	flex-shrink: 0;
}

.abao-timeline .timeline-icon svg {
	width: 1em;
	height: 1em;
}

.abao-timeline .timeline-card {
	background: #fff;
	padding: 25px;
	border-radius: 20px;
	width: 100%;
	box-shadow: 0 10px 35px rgba(139, 94, 60, 0.10);
	transition: 0.4s ease;
}

.abao-timeline .timeline-card:hover {
	transform: translateY(-5px);
}

.abao-timeline .timeline-card-image {
	margin: -25px -25px 20px -25px;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
}

.abao-timeline .timeline-card-image img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.abao-timeline .timeline-card span.chapter-label {
	display: block;
	color: #D94B3D;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 10px;
	text-transform: uppercase;
	font-family: 'Baloo 2', sans-serif;
}

.abao-timeline .timeline-card h3 {
	font-size: 34px;
	margin: 0 0 15px 0;
	color: #2c241d;
	font-family: 'Baloo 2', sans-serif;
	line-height: 1.2;
	font-weight: 700;
}

.abao-timeline .timeline-card p {
	color: #7a6b5f;
	font-size: 18px;
	line-height: 1.8;
	margin: 0;
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
}

/* ============ NO SIDEBAR MODE ============ */
/* Hides the connecting line + icon bubbles for a plain stacked-card layout */
.abao-timeline.abao-timeline--no-sidebar:before {
	display: none;
}

.abao-timeline.abao-timeline--no-sidebar .timeline-item {
	gap: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
	.abao-timeline:before {
		left: 30px;
	}

	.abao-timeline .timeline-item {
		gap: 20px;
	}

	.abao-timeline .timeline-icon {
		min-width: 45px;
		width: 45px;
		height: 45px;
		font-size: 18px;
	}

	.abao-timeline .timeline-card {
		padding: 25px;
	}

	.abao-timeline .timeline-card h3 {
		font-size: 26px;
	}

	.abao-timeline .timeline-card p {
		font-size: 16px;
	}
}
