/* SP Timeline Widget */
.sp-tl {
	position: relative;
	width: 100%;
	padding: 20px 0;
}

/* Center line */
.sp-tl-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: #C9A227;
	z-index: 0;
}

/* Item row */
.sp-tl-item {
	position: relative;
	display: flex;
	width: 100%;
	z-index: 1;
}
.sp-tl-item--left  { justify-content: flex-start; }
.sp-tl-item--right { justify-content: flex-end; }

/* Default per-side text alignment: text hugs the center line.
   Badge is inline-flex, so it follows text-align automatically. */
.sp-tl-item--left .sp-tl-card  { text-align: right; }
.sp-tl-item--right .sp-tl-card { text-align: left; }

/* Connector dot on the center line */
.sp-tl-dot {
	position: absolute;
	top: 40px;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #C9A227;
	box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
	z-index: 2;
}

/* Card */
.sp-tl-card {
	position: relative;
	width: 42%;
	background-color: #1A1714;
	border: 1px solid #3A352E;
	border-radius: 14px;
	padding: 16px 16px 24px;
	box-sizing: border-box;
}

/* Image */
.sp-tl-img {
	position: relative;
	width: 100%;
	height: 150px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 18px;
}
.sp-tl-img img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 500ms ease;
	will-change: transform;
}
.sp-tl-img:hover img {
	transform: scale(1.1);
}

/* Badge */
.sp-tl-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #C9A227;
	border-radius: 50%;
	background-color: rgba(201, 162, 39, 0.08);
	color: #C9A227;
	font-weight: 600;
	margin-bottom: 14px;
}

/* Title */
.sp-tl-title {
	margin: 0 0 12px;
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

/* Description */
.sp-tl-desc {
	margin: 0;
	color: #C9C4BC;
	font-size: 14px;
	line-height: 1.6;
}

/* Mobile: stack everything on a left-aligned line */
@media (max-width: 767px) {
	.sp-tl-line { left: 20px; }
	.sp-tl-item--left,
	.sp-tl-item--right { justify-content: flex-end; }
	.sp-tl-dot { left: 20px; }
	.sp-tl-card { width: calc(100% - 48px); }
}
