.stw {
	--stw-accent: #2563eb;
	--stw-card: #ffffff;
	--stw-text: #1f2937;
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 0;
	color: var(--stw-text);
	box-sizing: border-box;
}
.stw *, .stw *::before, .stw *::after { box-sizing: border-box; }

/* Center line */
.stw::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	background: var(--stw-accent);
	opacity: .3;
	border-radius: 2px;
}

/* Blue progress line: grows as you scroll down, shrinks as you scroll up */
.stw::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	height: var(--stw-progress, 100%);
	background: var(--stw-accent);
	border-radius: 2px;
}

.stw-item {
	position: relative;
	width: 50%;
	padding: 0 44px 30px 0;
}
.stw--alternate .stw-item:nth-child(even) {
	margin-left: 50%;
	padding: 0 0 30px 44px;
}

/* Dot on the line */
.stw-dot {
	position: absolute;
	top: 20px;
	right: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--stw-accent);
	border: 4px solid var(--stw-card);
	box-shadow: 0 0 0 2px var(--stw-accent);
	z-index: 1;
}
.stw--alternate .stw-item:nth-child(even) .stw-dot {
	right: auto;
	left: -9px;
}

/* Card */
.stw-card {
	position: relative;
	background: var(--stw-card);
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
	overflow: hidden;
}
.stw-card img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
.stw-body { padding: 18px 20px; }

.stw-date {
	display: inline-block;
	background: var(--stw-accent);
	color: #fff;
	font-size: .8em;
	font-weight: 600;
	line-height: 1.4;
	padding: 3px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.stw-title {
	margin: 0 0 6px;
	font-size: 1.2em;
	line-height: 1.3;
	color: inherit;
}
.stw-text { font-size: .95em; line-height: 1.6; }
.stw-text p { margin: 0 0 .8em; }
.stw-text p:last-child { margin-bottom: 0; }
.stw-link {
	display: inline-block;
	margin-top: 10px;
	color: var(--stw-accent);
	font-weight: 600;
	text-decoration: none;
}
.stw-link:hover { text-decoration: underline; }

/* One-sided layout (also used on small screens) */
.stw--left::before,
.stw--left::after { left: 20px; }
.stw--left .stw-item {
	width: 100%;
	padding: 0 0 30px 56px;
}
.stw--left .stw-dot { right: auto; left: 11px; }

@media (max-width: 700px) {
	.stw::before,
	.stw::after { left: 20px; }
	.stw .stw-item,
	.stw--alternate .stw-item:nth-child(even) {
		width: 100%;
		margin-left: 0;
		padding: 0 0 30px 56px;
	}
	.stw .stw-dot,
	.stw--alternate .stw-item:nth-child(even) .stw-dot {
		right: auto;
		left: 11px;
	}
}

/* Scroll animation (class added by JS, so content stays visible without JS) */
.stw.stw-anim .stw-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
.stw.stw-anim .stw-item.stw-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.stw.stw-anim .stw-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
