/* Timeline Wrapper */
.custom-timeline-wrapper {
	position: relative;
	padding: 20px 0;
	margin: 0;
	list-style: none;
	box-sizing: border-box;
}

/* Vertical Line */
.custom-timeline-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background: #e0e0e0;
}

/* Timeline Item */
.custom-timeline-item {
	position: relative;
	margin-bottom: 30px;
	width: 50%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

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

/* Left side items (Odd) */
.custom-timeline-item:nth-child(odd) {
	left: 0;
	padding-right: 0px;
	align-items: flex-end;
}

/* Right side items (Even) */
.custom-timeline-item:nth-child(even) {
	left: 50%;
	padding-left: 0px;
	align-items: flex-start;
}

/* Timeline Marker (Clean Round Circle) */
.custom-timeline-marker {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #0f1e3a;
	/* your dark blue */
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	border: none;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
	z-index: 1;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Marker positioning */
.custom-timeline-item:nth-child(odd) .custom-timeline-marker {
	right: -20px;
}

.custom-timeline-item:nth-child(even) .custom-timeline-marker {
	left: -20px;
}

.custom-timeline-item:nth-child(odd) .custom-timeline-content {
	right: -5px;
}

.custom-timeline-item:nth-child(even) .custom-timeline-content {
	left: -5px;
}

.custom-timeline-item:hover .custom-timeline-marker {
	transform: scale(1.1);
	background-color: #005177;
}

/* Content Container */
.custom-timeline-content {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
}

.custom-timeline-item:hover .custom-timeline-content {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Content Arrow */
.custom-timeline-content::before {
	content: '';
	position: absolute;
	top: 20px;
	border-style: solid;
	border-width: 10px;
	display: block;
	width: 0;
	height: 0;
}

.custom-timeline-item:nth-child(odd) .custom-timeline-content::before {
	right: -20px;
	border-color: transparent transparent transparent #fff;
}

.custom-timeline-item:nth-child(even) .custom-timeline-content::before {
	left: -20px;
	border-color: transparent #fff transparent transparent;
}

/* Header: Image + Title (First Row) */
.custom-timeline-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	gap: 15px;
}

/* Image */
.custom-timeline-image {
	flex-shrink: 0;
}

.custom-timeline-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #f0f0f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Title */
.custom-timeline-title {
	margin: 0;
	font-size: 1.25rem;
	color: #333;
	font-weight: 600;
	line-height: 1.3;
}

/* Description (Under the row) */
.custom-timeline-description p {
	margin: 0;
	color: #666;
	font-size: 1rem;
	line-height: 1.6;
}

/* One-Sided (Right Aligned) Layout */
.custom-timeline-wrapper.layout-one_sided::before {
	left: 20px;
}

.custom-timeline-wrapper.layout-one_sided .custom-timeline-item {
	width: 100%;
	left: 0;
	padding-left: 60px;
	padding-right: 0;
}

.custom-timeline-wrapper.layout-one_sided .custom-timeline-item .custom-timeline-marker {
	left: 0px;
	right: auto;
}

.custom-timeline-wrapper.layout-one_sided .custom-timeline-item .custom-timeline-content::before {
	left: -20px;
	right: auto;
	border-color: transparent #fff transparent transparent;
}

.custom-timeline-wrapper.layout-one_sided .custom-timeline-item .custom-timeline-content {
	margin-left: 0;
	margin-right: auto;
}

/* Responsive Design */
@media (max-width: 767px) {
	.custom-timeline-wrapper::before {
		left: 20px;
		transform: translateX(-50%);
	}

	.custom-timeline-item {
		width: 100%;
	}

	.custom-timeline-item:nth-child(odd),
	.custom-timeline-item:nth-child(even) {
		left: 0;
		padding-left: 60px;
		padding-right: 0;
	}

	.custom-timeline-item:nth-child(odd) .custom-timeline-marker,
	.custom-timeline-item:nth-child(even) .custom-timeline-marker {
		left: 0px;
		right: auto;
	}

	.custom-timeline-item:nth-child(odd) .custom-timeline-content::before,
	.custom-timeline-item:nth-child(even) .custom-timeline-content::before {
		left: -20px;
		right: auto;
		border-color: transparent #fff transparent transparent;
	}

	.custom-timeline-item:nth-child(odd) .custom-timeline-content,
	.custom-timeline-item:nth-child(even) .custom-timeline-content {
		margin-left: 0;
		margin-right: auto;
	}

	.custom-timeline-content {
		padding: 15px;
	}

	.custom-timeline-image img {
		width: 45px;
		height: 45px;
	}

	.custom-timeline-title {
		font-size: 1.1rem;
	}
}