/* ==========================================================================
   Vertical Timeline for Elementor – Frontend Styles
   ========================================================================== */

/* ── Wrapper ── */
.vte-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 0;
}

/* Central vertical line – background (full height, light) */
.vte-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: #dddddd;
	z-index: 0;
}

/* Progress fill – grows from top as user scrolls */
.vte-line-fill {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	min-width: 2px;
	height: 0;
	background-color: #e74c3c;
	z-index: 2;
	pointer-events: none;
	will-change: height;
	display: block !important;
}

/* ── Item ── */
.vte-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 40px;
}

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

/* ── Card ── */
.vte-item__card {
	position: relative;
	width: calc(50% - 40px);
	background-color: #ffffff;
	border-radius: 8px;
	padding: 20px 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	z-index: 1;
	box-sizing: border-box;
}

/* Connector arrow on card pointing toward the line */
.vte-item__card::after {
	content: '';
	position: absolute;
	top: 22px;
	width: 0;
	height: 0;
	border-style: solid;
}

/* Left card: arrow points right */
.vte-item--left .vte-item__card {
	margin-right: auto;
}

.vte-item--left .vte-item__card::after {
	right: -10px;
	border-width: 8px 0 8px 10px;
	border-color: transparent transparent transparent #ffffff;
}

/* Right card: arrow points left */
.vte-item--right {
	flex-direction: row-reverse;
}

.vte-item--right .vte-item__card {
	margin-left: auto;
}

.vte-item--right .vte-item__card::after {
	left: -10px;
	border-width: 8px 10px 8px 0;
	border-color: transparent #ffffff transparent transparent;
}

/* ── Marker ── */
.vte-marker {
	position: absolute;
	left: 50%;
	top: 16px;
	width: 44px;
	height: 44px;
	margin-left: -22px;
	border-radius: 50%;
	background-color: #e74c3c;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	flex-shrink: 0;
}

.vte-marker i {
	font-size: 16px;
	color: #ffffff;
	line-height: 1;
}

.vte-marker svg {
	width: 16px;
	height: 16px;
	fill: #ffffff;
}

/* ── Card Header ── */
.vte-item__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

/* ── Date ── */
.vte-date {
	font-size: 13px;
	color: #888888;
	font-weight: 500;
}

/* ── Badge ── */
.vte-badge {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #e74c3c;
}

/* ── Title ── */
.vte-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

/* ── Image ── */
.vte-image {
	margin-bottom: 14px;
}

.vte-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	object-fit: cover;
}

/* ── Description ── */
.vte-description {
	font-size: 14px;
	color: #555555;
	line-height: 1.6;
}

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

/* ==========================================================================
   Layout: All Left
   ========================================================================== */
.vte-layout-left::before {
	left: 22px;
	transform: none;
}

.vte-layout-left .vte-line-fill {
	left: 22px;
	transform: none;
}

.vte-layout-left .vte-item {
	flex-direction: row;
}

.vte-layout-left .vte-item__card {
	width: calc(100% - 80px);
	margin-left: 80px;
	margin-right: 0;
}

.vte-layout-left .vte-item__card::after {
	right: auto;
	left: -10px;
	border-width: 8px 10px 8px 0;
	border-color: transparent #ffffff transparent transparent;
}

.vte-layout-left .vte-marker {
	left: 0;
	margin-left: 0;
}

/* ==========================================================================
   Layout: All Right
   ========================================================================== */
.vte-layout-right::before {
	left: auto;
	right: 22px;
	transform: none;
}

.vte-layout-right .vte-line-fill {
	left: auto;
	right: 22px;
	transform: none;
}

.vte-layout-right .vte-item {
	flex-direction: row-reverse;
}

.vte-layout-right .vte-item__card {
	width: calc(100% - 80px);
	margin-right: 80px;
	margin-left: 0;
}

.vte-layout-right .vte-item__card::after {
	left: auto;
	right: -10px;
	border-width: 8px 0 8px 10px;
	border-color: transparent transparent transparent #ffffff;
}

.vte-layout-right .vte-marker {
	left: auto;
	right: 0;
	margin-left: 0;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

/* Initial hidden states */
.vte-item.vte-animate {
	opacity: 0;
}

.vte-item.vte-animate[data-anim-type="fade-up"] {
	transform: translateY(40px);
}

.vte-item.vte-animate[data-anim-type="fade-in"] {
	transform: none;
}

.vte-item.vte-animate[data-anim-type="slide-left"] {
	transform: translateX(-60px);
}

.vte-item.vte-animate[data-anim-type="slide-right"] {
	transform: translateX(60px);
}

/* Visible state – JS adds .vte-visible */
.vte-item.vte-animate.vte-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Responsive – Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.vte-item__card {
		width: calc(50% - 30px);
	}
}

/* ==========================================================================
   Responsive – Mobile (≤767px)
   All layouts collapse to single-column with left-aligned line
   ========================================================================== */
@media (max-width: 767px) {

	.vte-timeline::before,
	.vte-layout-left::before,
	.vte-layout-right::before {
		left: 20px;
		right: auto;
		transform: none;
	}

	.vte-line-fill,
	.vte-layout-left .vte-line-fill,
	.vte-layout-right .vte-line-fill {
		left: 20px !important;
		right: auto !important;
		transform: none !important;
	}

	.vte-item,
	.vte-item--left,
	.vte-item--right,
	.vte-layout-left .vte-item,
	.vte-layout-right .vte-item {
		flex-direction: row;
		align-items: flex-start;
	}

	.vte-item__card,
	.vte-layout-left .vte-item__card,
	.vte-layout-right .vte-item__card {
		width: calc(100% - 64px);
		margin-left: 64px !important;
		margin-right: 0 !important;
	}

	/* All arrows point left on mobile */
	.vte-item__card::after,
	.vte-item--left .vte-item__card::after,
	.vte-item--right .vte-item__card::after,
	.vte-layout-left .vte-item__card::after,
	.vte-layout-right .vte-item__card::after {
		left: -10px !important;
		right: auto !important;
		border-width: 8px 10px 8px 0 !important;
		border-color: transparent #ffffff transparent transparent !important;
	}

	.vte-marker,
	.vte-layout-left .vte-marker,
	.vte-layout-right .vte-marker {
		left: 0 !important;
		right: auto !important;
		margin-left: 0 !important;
		width: 40px;
		height: 40px;
		top: 14px;
	}

	.vte-item__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	/* Disable left/right slide on mobile – always fade-up */
	.vte-item.vte-animate[data-anim-type="slide-left"],
	.vte-item.vte-animate[data-anim-type="slide-right"] {
		transform: translateY(30px);
	}
}
