
/* ===== Main Timeline Styles ===== */
.haivision-timeline-container {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0 30px;
}

.timeline-line {
	position: absolute;
	width: 2px;
	top: 0;
	height: calc(100% - 70px);
	left: 50%;
	margin-left: -1px;
	background-color: #333;
}

.timeline-items {
	position: relative;
	width: 100%;
}

/* ===== Timeline Item Styles ===== */
.timeline-item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
	box-sizing: border-box;
	margin-bottom: 15px;
}

.timeline-item::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: #fff;
	border: 4px solid #ff6b6b;
	border-radius: 50%;
	top: 15px;
	z-index: 1;
}

.timeline-item-left {
	left: 0;
}

.timeline-item-left::after {
	right: -10px;
}

.timeline-item-right {
	left: 50%;
}

.timeline-item-right::after {
	left: -10px;
}

/* ===== Content Box Styles ===== */
.timeline-content {
	padding: 20px;
	background-color: #fff;
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.timeline-title {
	margin-top: 0;
	color: #333;
}

.timeline-title a {
	color: inherit;
	text-decoration: none;
}

.timeline-title a:hover {
	color: #ff6b6b;
}

.timeline-excerpt {
	color: #666;
	line-height: 1.6;
}

/* ===== Date Styles ===== */
.timeline-date {
	position: absolute;
	top: 20px;
	font-weight: bold;
	color: #333;
	width: 180px;
	line-height: 1.3;
}

.timeline-item-left .timeline-date {
	right: -200px;
	text-align: right;
	width: 100%;
}

.timeline-item-right .timeline-date {
	left: -220px;
	text-align: left;
	width: 100%;
}

/* ===== Load More Button Styles ===== */
.timeline-load-more {
	text-align: center;
	margin-top: 30px;
	position: relative;
	z-index: 2;
}

.load-more-button {
	padding: 12px 24px;
	background-color: var(--loadmore-bg, #00a3e0);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all .3s ease;
	font-weight: 600;
}

.load-more-button:hover {
	background-color: var(--loadmore-hover, #00a3e0);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.load-more-button.loading {
	opacity: .7;
	pointer-events: none;
}

/* Mobile Date - Always visible on mobile */
.timeline-date-mobile {
	display: none;
	font-weight: bold;
	color: #333;
	margin-bottom: 15px;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1024px) {
	.timeline-line {
		left: 25px;
		height: calc(100% - 90px);
	}
	
	.timeline-item {
		width: 100%;
		padding-left: 60px;
		padding-right: 20px;
		margin-bottom: 20px;
		display: flex;
		flex-direction: column;
	}
	
	.timeline-item-right {
		left: 0;
	}
	
	.timeline-item::after {
		left: 13px;
	}
	
	/* Fixed date positioning for mobile */
	.timeline-date {
		position: relative !important;
		width: 100% !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		text-align: left !important;
		margin: 0 0 15px 0 !important;
		order: -1;
		padding: 0;
	}
	
	.timeline-content {
		width: 100%;
	}
	
	.timeline-date {
		display: none;
	}
	
	.timeline-date-mobile {
		display: block;
	}
}

@media screen and (max-width: 480px) {
	.timeline-line {
		left: 15px;
	}
	
	.timeline-item {
		padding-left: 45px;
	}
	
	.timeline-item::after {
		left: 5px;
		width: 16px;
		height: 16px;
	}
	
	.load-more-button {
		padding: 10px 20px;
		font-size: 14px;
	}
}
