.vt-container {
	position: relative;
	width: 100%;
}

.vt-line-wrapper {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	z-index: 1;
}

.vt-line-bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	border-left-width: 2px;
	border-left-style: dashed;
	border-left-color: #ccc;
}

.vt-line-fill {
	position: absolute;
	top: 0;
	left: -1px; /* adjust for border */
	width: 4px;
	height: 0;
	background-color: #e64946;
	z-index: 2;
	transition: height 0.1s linear;
}

.vt-items {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.vt-item {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	width: 100%;
	position: relative;
}

.vt-content-left,
.vt-content-right {
	width: 45%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.vt-center {
	width: 10%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.vt-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #ccc;
	position: relative;
	z-index: 4;
	transition: all 0.3s ease;
}

.vt-text-wrap {
	display: flex;
	gap: 20px;
	align-items: center;
}

.vt-text-right {
	justify-content: flex-end;
	text-align: right;
	flex-direction: row-reverse;
}

.vt-text-left {
	justify-content: flex-start;
	text-align: left;
}

.vt-year {
	font-size: 24px;
	font-weight: bold;
	color: #fff;
	transition: color 0.3s ease;
	flex-shrink: 0;
}

.vt-text-inner {
	display: flex;
	flex-direction: column;
}

.vt-title {
	margin-top: 0;
	margin-bottom: 10px;
	color: #fff;
	transition: color 0.3s ease;
}

.vt-desc {
	color: #aaa;
}

.vt-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Mobile Breakpoint - Default Mobile */
.vt-mobile-bp-mobile .vt-container {
	--bp-active: 0;
}
@media (max-width: 767px) {
	.vt-mobile-bp-mobile .vt-container {
		--bp-active: 1;
	}
}

/* Mobile Breakpoint - Tablet */
.vt-mobile-bp-tablet .vt-container {
	--bp-active: 0;
}
@media (max-width: 1024px) {
	.vt-mobile-bp-tablet .vt-container {
		--bp-active: 1;
	}
}

/* Combined Mobile/Tablet Layout based on CSS Variable (simulates @media) */
.vt-container {
	display: block;
}

/* We use a neat CSS trick for custom breakpoints: 
   Applying generic classes inside the media query 
   so the layout changes dynamically based on the prefix class. 
   To keep it clean, we'll explicitly duplicate for both max-widths since 
   Elementor injects prefix classes on the wrapper. */

/* MOBILE LAYOUT (< 768px) */
@media (max-width: 767px) {
	.vt-mobile-bp-mobile .vt-line-wrapper {
		left: 20px;
		transform: none;
	}
	
	.vt-mobile-bp-mobile .vt-item {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.vt-mobile-bp-mobile .vt-content-left,
	.vt-mobile-bp-mobile .vt-content-right {
		width: 100%;
		padding-left: 50px;
		display: flex;
		flex-direction: column;
	}

	/* Force Image First */
	.vt-mobile-bp-mobile .vt-content-left {
		order: 1;
	}
	.vt-mobile-bp-mobile .vt-content-right {
		order: 2;
	}

	/* Move text below image if present, or just flow naturally if text is in left/right */
	.vt-mobile-bp-mobile .vt-item > div:not(.vt-center) {
		display: contents; /* Allows children to participate in vt-item's flexbox, but vt-item is column */
	}

	.vt-mobile-bp-mobile .vt-item {
		display: flex;
		flex-direction: column;
		padding-left: 50px;
		position: relative;
	}

	.vt-mobile-bp-mobile .vt-image-wrap {
		order: 1;
		width: 100%;
		margin-bottom: 20px;
	}

	.vt-mobile-bp-mobile .vt-text-wrap {
		order: 2;
		width: 100%;
	}

	.vt-mobile-bp-mobile .vt-center {
		position: absolute;
		left: 20px;
		top: 0;
		bottom: 0;
		width: 2px; /* same as line width */
		transform: translateX(-50%);
		display: block;
	}

	.vt-mobile-bp-mobile .vt-dot {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	
	.vt-mobile-bp-mobile .vt-text-wrap {
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: left !important;
		gap: 10px;
	}

	.vt-mobile-bp-mobile .vt-year {
		margin-bottom: 5px;
	}
}

/* TABLET LAYOUT (< 1024px) */
@media (max-width: 1024px) {
	.vt-mobile-bp-tablet .vt-line-wrapper {
		left: 20px;
		transform: none;
	}
	
	.vt-mobile-bp-tablet .vt-item {
		display: flex;
		flex-direction: column;
		padding-left: 50px;
		position: relative;
	}

	.vt-mobile-bp-tablet .vt-content-left,
	.vt-mobile-bp-tablet .vt-content-right {
		width: 100%;
		display: contents;
	}

	.vt-mobile-bp-tablet .vt-image-wrap {
		order: 1;
		width: 100%;
		margin-bottom: 20px;
	}

	.vt-mobile-bp-tablet .vt-text-wrap {
		order: 2;
		width: 100%;
		flex-direction: column !important;
		align-items: flex-start !important;
		text-align: left !important;
		gap: 10px;
	}

	.vt-mobile-bp-tablet .vt-center {
		position: absolute;
		left: 20px;
		top: 0;
		bottom: 0;
		width: 2px;
		transform: translateX(-50%);
		display: block;
	}

	.vt-mobile-bp-tablet .vt-dot {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.vt-mobile-bp-tablet .vt-year {
		margin-bottom: 5px;
	}
}