/* ==========================================================
   Elementor Zig-Zag Timeline — Frontend Styles
   ========================================================== */

.ezt-timeline {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0;
}

/* Center vertical line */
.ezt-timeline .ezt-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	background-color: rgba(255, 255, 255, 0.15);
	z-index: 0;
}

/* Each row = one timeline item, 3 columns: text | center | media */
.ezt-row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 40px 1fr;
	align-items: center;
	column-gap: 60px;
	margin-bottom: 70px;
	z-index: 1;
}

.ezt-row:last-child {
	margin-bottom: 0;
}

.ezt-col {
	position: relative;
	min-width: 0;
}

/* The dot's column aligns to the TOP of the row (not vertical-center
   of the whole row, which would drag it down toward the middle of the
   taller image column). A small top offset then centers it on the
   Year line specifically. Adjust --ezt-dot-offset if you change the
   Year font-size/line-height in the Style tab. */
.ezt-col-center {
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: var(--ezt-dot-offset, 9px);
}

.ezt-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #c9a14a;
	position: relative;
	z-index: 2;
}

.ezt-text-inner {
	max-width: 480px;
}

.ezt-media-inner {
	display: flex;
	align-items: center;
}

.ezt-media-inner img {
	width: 260px;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Image shape modifiers */
.ezt-img-circle .ezt-media-inner img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.ezt-img-square .ezt-media-inner img {
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Typography defaults (overridable via Elementor controls) */
.ezt-year {
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 10px;
}

.ezt-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 16px;
}

.ezt-title a {
	color: inherit;
	text-decoration: none;
}

.ezt-desc {
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
}

.ezt-desc p {
	margin: 0 0 12px;
}

.ezt-desc p:last-child {
	margin-bottom: 0;
}

/* ----------------------------------------------------------
   LEFT rows: text on the left, media on the right
   (DOM order is already text -> center -> media, default grid order is fine)
   RIGHT rows: media on the left, text on the right -> flip via grid-template
   ---------------------------------------------------------- */
.ezt-row-right {
	grid-template-columns: 1fr 40px 1fr;
}

.ezt-row-right .ezt-col-text {
	grid-column: 3;
	grid-row: 1;
	text-align: left;
}

.ezt-row-right .ezt-col-center {
	grid-column: 2;
	grid-row: 1;
}

.ezt-row-right .ezt-col-media {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	justify-content: flex-end;
}

.ezt-row-left .ezt-col-text {
	grid-column: 1;
	grid-row: 1;
	text-align: right;
	margin-left: auto;
}

.ezt-row-left .ezt-col-center {
	grid-column: 2;
	grid-row: 1;
}

.ezt-row-left .ezt-col-media {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	justify-content: flex-start;
}

.ezt-row-left .ezt-text-inner {
	margin-left: auto;
}

.ezt-row-right .ezt-media-inner {
	justify-content: flex-end;
}

/* ==========================================================
   RESPONSIVE: stack into a single column on small screens
   ========================================================== */
@media (max-width: 767px) {
	.ezt-stack-mobile .ezt-line {
		left: 20px;
		transform: none;
	}

	.ezt-stack-mobile .ezt-row,
	.ezt-stack-mobile .ezt-row-left,
	.ezt-stack-mobile .ezt-row-right {
		grid-template-columns: 40px 1fr;
		column-gap: 20px;
		margin-bottom: 40px;
	}

	.ezt-stack-mobile .ezt-row-left .ezt-col-text,
	.ezt-stack-mobile .ezt-row-right .ezt-col-text {
		grid-column: 2;
		grid-row: 2;
		text-align: left !important;
		margin-left: 0;
	}

	.ezt-stack-mobile .ezt-row-left .ezt-col-center,
	.ezt-stack-mobile .ezt-row-right .ezt-col-center {
		grid-column: 1;
		grid-row: 1 / span 2;
		align-items: flex-start;
		padding-top: 6px;
	}

	.ezt-stack-mobile .ezt-row-left .ezt-col-media,
	.ezt-stack-mobile .ezt-row-right .ezt-col-media {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-start !important;
		margin-bottom: 16px;
	}

	.ezt-stack-mobile .ezt-text-inner {
		max-width: 100%;
		margin-left: 0 !important;
	}

	.ezt-stack-mobile .ezt-media-inner {
		justify-content: flex-start !important;
	}

	.ezt-stack-mobile .ezt-media-inner img {
		width: 100%;
		max-width: 280px;
	}
}