/**
 * Vertical Timeline Widget Stylesheet
 * 
 * Modern, alternating 2-column layout with central dashed axis, 
 * circular node markers, rich typography, and fluid responsive collapsing.
 */

/* ==========================================
   1. MAIN CONTAINER & CENTRAL AXIS
   ========================================== */

.vtl-timeline-wrapper {
	position: relative;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.vtl-timeline-wrapper *,
.vtl-timeline-wrapper *::before,
.vtl-timeline-wrapper *::after {
	box-sizing: border-box;
}

/* Continuous Central Axis Line */
.vtl-timeline-axis {
	position: absolute;
	top: 15px;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	border-left-style: dashed;
	border-left-width: 2px;
	border-left-color: #7A1FA2;
	z-index: 1;
	pointer-events: none;
}

/* Items List */
.vtl-timeline-items {
	position: relative;
	width: 100%;
	z-index: 2;
}

/* ==========================================
   2. TIMELINE ITEM ROW (DESKTOP)
   ========================================== */

.vtl-timeline-item {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 60px;
}

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

/* Two Equal Half Columns */
.vtl-item-col {
	flex: 0 0 50%;
	max-width: 50%;
	width: 50%;
	position: relative;
}

/* Left Column Padding towards axis */
.vtl-item-left {
	padding-right: 45px;
	text-align: left;
}

/* Right Column Padding towards axis */
.vtl-item-right {
	padding-left: 45px;
	text-align: left;
}

/* ==========================================
   3. CENTRAL CIRCULAR NODE MARKER
   ========================================== */

.vtl-timeline-node-wrap {
	position: absolute;
	left: 50%;
	transform: translate(-50%, -50%);
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Alignment modifier: Top aligned node */
.elementor-widget-vertical_timeline.vtl-node-align-top .vtl-timeline-node-wrap {
	top: 25px;
	transform: translate(-50%, 0);
}

.vtl-timeline-node {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 3px solid #7A1FA2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px rgba(122, 31, 162, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vtl-timeline-item:hover .vtl-timeline-node {
	transform: scale(1.15);
	box-shadow: 0 0 0 6px rgba(122, 31, 162, 0.2), 0 6px 14px rgba(122, 31, 162, 0.25);
}

/* Inner Dot */
.vtl-timeline-node-inner {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #7A1FA2;
	transition: background-color 0.3s ease;
}

/* Node Text / Number */
.vtl-timeline-node-text {
	font-size: 11px;
	font-weight: 700;
	color: #7A1FA2;
	line-height: 1;
}

/* ==========================================
   4. CONTENT CARD STYLES
   ========================================== */

.vtl-item-card {
	position: relative;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 24px 28px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vtl-timeline-item:hover .vtl-item-card {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* Subtitle / Step Badge */
.vtl-item-subtitle {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #9C27B0;
	margin-bottom: 6px;
}

/* Main Title */
.vtl-item-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #7A1FA2;
	margin-top: 0;
	margin-bottom: 14px;
}

/* WYSIWYG Content & Paragraphs */
.vtl-item-content {
	font-size: 15px;
	line-height: 1.65;
	color: #4A4A4A;
}

.vtl-item-content p {
	margin-top: 0;
	margin-bottom: 12px;
	color: inherit;
	line-height: inherit;
}

.vtl-item-content p:last-child {
	margin-bottom: 0;
}

.vtl-item-content strong,
.vtl-item-content b {
	font-weight: 700;
	color: #222222;
}

/* Lists and Bullet Points */
.vtl-item-content ul,
.vtl-item-content ol {
	margin: 12px 0;
	padding-left: 20px;
}

.vtl-item-content ul:last-child,
.vtl-item-content ol:last-child {
	margin-bottom: 0;
}

.vtl-item-content ul li,
.vtl-item-content ol li {
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: inherit;
}

.vtl-item-content ul li:last-child,
.vtl-item-content ol li:last-child {
	margin-bottom: 0;
}

.vtl-item-content ul li::marker {
	color: #7A1FA2;
}

/* ==========================================
   5. IMAGE STYLING
   ========================================== */

.vtl-item-image-wrap {
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
}

.vtl-item-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.vtl-hover-zoom .vtl-timeline-item:hover .vtl-item-image-wrap img {
	transform: scale(1.03);
}

/* Left Image Column Alignment (Desktop) */
.vtl-item-left .vtl-item-image-wrap {
	margin-left: auto;
}

/* Right Image Column Alignment (Desktop) */
.vtl-item-right .vtl-item-image-wrap {
	margin-right: auto;
}

/* ==========================================
   6. RESPONSIVE COLLAPSING (< 768px Mobile)
   ========================================== */

@media screen and (max-width: 767px) {

	/* Move Central Axis Line to the Left */
	.vtl-timeline-axis {
		left: 18px;
		transform: none;
		top: 10px;
		bottom: 10px;
	}

	/* Timeline Row Stacks into a Single Column to the right of the line */
	.vtl-timeline-item {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 45px;
		padding-left: 45px;
		position: relative;
	}

	/* Left-aligned Node Marker on Mobile */
	.vtl-timeline-node-wrap,
	.elementor-widget-vertical_timeline.vtl-node-align-top .vtl-timeline-node-wrap {
		left: 18px;
		top: 18px;
		transform: translate(-50%, 0);
	}

	/* Reset Columns to full width */
	.vtl-item-col {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Always render Image First, then Content Card on Mobile */
	.vtl-img-left .vtl-item-left {
		order: 1;
		margin-bottom: 16px;
	}

	.vtl-img-left .vtl-item-right {
		order: 2;
	}

	.vtl-img-right .vtl-item-right {
		order: 1;
		margin-bottom: 16px;
	}

	.vtl-img-right .vtl-item-left {
		order: 2;
	}

	.vtl-item-card {
		padding: 20px;
	}

	.vtl-item-title {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.vtl-item-content {
		font-size: 14px;
	}
}