/* ==========================================================================
   Wald Timeline CSS
   ========================================================================== */

:root {
	--wald-tl-line-color: #e4e4e4;
	--wald-tl-progress-color: #22b6af;
	--wald-tl-card-bg: #ffffff;
	--wald-tl-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	--wald-tl-card-padding: 25px 30px;
	--wald-tl-card-radius: 12px;
	--wald-tl-card-border: 1px solid #f1f1f1;
	--wald-tl-title-color: #282828;
	--wald-tl-desc-color: #5c5c5c;
	--wald-tl-timestamp-color: #f2a922;
	--wald-tl-point-bg: #ffffff;
	--wald-tl-point-border-color: #e4e4e4;
	--wald-tl-point-active-color: #22b6af;
}

.wald-timeline-wrapper {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 0;
	box-sizing: border-box;
	overflow: hidden;
}

/* Central Timeline Line */
.wald-timeline-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	transform: translateX(-50%);
	background-color: var(--wald-tl-line-color);
	z-index: 1;
}

/* Progress Fill Line */
.wald-timeline-line-progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background-color: var(--wald-tl-progress-color);
	transform-origin: top center;
	transition: height 0.1s ease-out;
}

/* Timeline Container */
.wald-timeline-items {
	position: relative;
	z-index: 2;
}

/* Single Timeline Item */
.wald-timeline-item {
	position: relative;
	width: 100%;
	margin-bottom: 60px;
	display: flex;
	box-sizing: border-box;
}

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

/* Left / Right Card Columns */
.wald-timeline-item-inner {
	position: relative;
	width: 50%;
	box-sizing: border-box;
}

/* Alternate Left / Right items */
.wald-timeline-item.left {
	justify-content: flex-start;
}

.wald-timeline-item.right {
	justify-content: flex-end;
}

.wald-timeline-item.left .wald-timeline-item-inner {
	padding-right: 50px;
	text-align: right;
}

.wald-timeline-item.right .wald-timeline-item-inner {
	padding-left: 50px;
	text-align: left;
}

/* Central Timeline Point */
.wald-timeline-point {
	position: absolute;
	top: 30px; /* Aligned with top area of the card */
	left: 50%;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: var(--wald-tl-point-bg);
	border: 4px solid var(--wald-tl-point-border-color);
	transform: translate(-50%, -50%) scale(1);
	transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 3;
}

.wald-timeline-point::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #fff;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.3s ease;
}

/* Point Active State */
.wald-timeline-point.is-active {
	border-color: var(--wald-tl-point-active-color);
	background-color: var(--wald-tl-point-active-color);
	transform: translate(-50%, -50%) scale(1.2);
}

.wald-timeline-point.is-active::after {
	transform: translate(-50%, -50%) scale(1);
}

/* Timeline Cards */
.wald-timeline-card {
	display: inline-block;
	text-align: left;
	width: 100%;
	max-width: 500px;
	background-color: var(--wald-tl-card-bg);
	border: var(--wald-tl-card-border);
	border-radius: var(--wald-tl-card-radius);
	padding: var(--wald-tl-card-padding);
	box-shadow: var(--wald-tl-card-shadow);
	box-sizing: border-box;
	position: relative;
	transition: transform 0.5s ease, box-shadow 0.3s ease;
}

/* Card Hover effect */
.wald-timeline-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Scroll Animation Transitions (Hidden state by default) */
.wald-timeline-item {
	opacity: 0;
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.wald-timeline-item.left {
	transform: translateX(-80px) scale(0.95);
}

.wald-timeline-item.right {
	transform: translateX(80px) scale(0.95);
}

/* Visible State (Triggered by JS) */
.wald-timeline-item.is-visible {
	opacity: 1;
	transform: translateX(0) scale(1);
}

/* Card content styles */
.wald-timeline-timestamp {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--wald-tl-timestamp-color);
	margin-bottom: 8px;
	letter-spacing: 1.5px;
	line-height: 1;
}

.wald-timeline-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--wald-tl-title-color);
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.wald-timeline-desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wald-tl-desc-color);
}

.wald-timeline-desc p {
	margin: 0 0 10px 0;
}
.wald-timeline-desc p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Responsive Layout (Mobile Viewports)
   ========================================================================== */

@media (max-width: 768px) {
	.wald-timeline-line {
		left: 20px;
		transform: none;
	}

	.wald-timeline-item {
		margin-bottom: 40px;
		justify-content: flex-start !important;
	}

	.wald-timeline-item-inner {
		width: 100%;
		padding-left: 45px !important;
		padding-right: 0 !important;
		text-align: left !important;
	}

	.wald-timeline-point {
		left: 20px;
		top: 25px;
	}

	.wald-timeline-card {
		max-width: 100%;
	}

	/* Mobil entrance transition: Always slide in from right */
	.wald-timeline-item.left,
	.wald-timeline-item.right {
		transform: translateX(50px) scale(0.95);
	}

	.wald-timeline-item.is-visible {
		transform: translateX(0) scale(1);
	}
}
