.cte-timeline {
	position: relative;
	max-width: 1400px;
	margin: 40px auto;
	padding: 20px 0;
}

.cte-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	background-color: #e5e5e5;
	z-index: 0;
}

.cte-timeline::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	height: calc(var(--cte-progress, 0) * 100%);
	background-color: var(--cte-active-color, #6c5ce7);
	transition: height 0.1s linear;
	z-index: 1;
}

.cte-layout-left::before,
.cte-layout-left::after {
	left: 20px;
}

.cte-layout-right::before,
.cte-layout-right::after {
	left: auto;
	right: 20px;
	margin-left: 0;
}

.cte-timeline.cte-no-fill::after {
	display: none;
}

.cte-item {
	position: relative;
	width: 50%;
	padding-bottom: var(--cte-vgap, 50px);
	box-sizing: border-box;
	opacity: 1;
	z-index: 2;
}

.cte-item.cte-left {
	left: 0;
	padding-right: var(--cte-distance, 40px);
	padding-left: 0;
}

.cte-item.cte-right {
	left: 50%;
	padding-left: var(--cte-distance, 40px);
	padding-right: 0;
}

.cte-layout-left .cte-item {
	width: 100%;
	left: 0;
	padding-left: var(--cte-distance, 40px);
	padding-right: 0;
}

.cte-layout-right .cte-item {
	width: 100%;
	left: 0;
	padding-right: var(--cte-distance, 40px);
	padding-left: 0;
}

.cte-dot {
	position: absolute;
	top: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #e74c3c;
	border: 3px solid #e74c3c;
	box-shadow: 0 0 0 4px #ffffff;
	overflow: hidden;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cte-dot i,
.cte-dot svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.cte-dot.cte-has-overlay::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

.cte-dot a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
}

.cte-item.cte-left .cte-dot {
	right: -11px;
}

.cte-item.cte-right .cte-dot {
	left: -11px;
}

.cte-layout-left .cte-dot {
	left: 9px;
}

.cte-layout-right .cte-dot {
	left: auto;
	right: 9px;
}

.cte-dot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.cte-dot .dashicons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-size: 14px;
}

.cte-content {
	width: 100%;
	box-sizing: border-box;
	background-color: #ffffff;
	padding: 28px 32px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
	text-align: left;
}

.cte-date {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #e74c3c;
	margin-bottom: 6px;
}

.cte-extra {
	display: block;
	font-size: 13px;
	color: #888888;
	margin-bottom: 4px;
}

.cte-title {
	margin: 0 0 10px 0;
	font-size: 22px;
	line-height: 1.3;
	color: #1a1a1a;
}

.cte-desc {
	font-size: 16px;
	line-height: 1.65;
	color: #555555;
}

.cte-desc p:last-child {
	margin-bottom: 0;
}

.cte-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #e74c3c;
	border-bottom: 1px solid currentColor;
}

.cte-credit {
	text-align: center;
	margin-top: 10px;
	font-size: 13px;
	opacity: .65;
}

.cte-credit a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

/* Triangle connector between dot and card */
.cte-has-triangle .cte-content {
	position: relative;
}

.cte-has-triangle .cte-item.cte-left .cte-content::after {
	content: '';
	position: absolute;
	top: 18px;
	right: calc(var(--cte-triangle-size, 14px) / -2 + 1px);
	width: var(--cte-triangle-size, 14px);
	height: var(--cte-triangle-size, 14px);
	background-color: var(--cte-triangle-color, #ffffff);
	border-right: 1px solid rgba(0, 0, 0, 0.05);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	transform: rotate(45deg);
}

.cte-has-triangle .cte-item.cte-right .cte-content::after {
	content: '';
	position: absolute;
	top: 18px;
	left: calc(var(--cte-triangle-size, 14px) / -2 + 1px);
	width: var(--cte-triangle-size, 14px);
	height: var(--cte-triangle-size, 14px);
	background-color: var(--cte-triangle-color, #ffffff);
	border-left: 1px solid rgba(0, 0, 0, 0.05);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	transform: rotate(45deg);
}

/* Entrance (fade-in) animation — items are visible by default
   so nothing breaks if JS fails to run. */
.cte-animate .cte-item {
	transition: opacity var(--cte-anim-duration, 600ms) ease, transform var(--cte-anim-duration, 600ms) ease;
}

.cte-animate .cte-item.cte-anim-ready {
	opacity: 0;
	transform: translateY(24px);
}

.cte-animate .cte-item.cte-anim-ready.cte-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Mobile: collapse to single column */
@media (max-width: 767px) {
	.cte-timeline::before {
		left: 20px;
	}

	.cte-item,
	.cte-item.cte-left,
	.cte-item.cte-right {
		width: 100%;
		left: 0;
		padding-left: var(--cte-distance, 40px);
		padding-right: 0;
	}

	.cte-item.cte-left .cte-dot,
	.cte-item.cte-right .cte-dot {
		left: 9px;
		right: auto;
	}
}
