/* How It Works - timeline styles
 * Rules followed:
 * - No font-size or color on body text (paragraph, list, content)
 * - h2 gets color:#fff (allowed)
 * - Number uses .h2 class with italic Source Serif 4
 * - Custom bullet icon applied ONLY inside .hiw__description ul li
 */

.hiw {
	position: relative;
	width: 100%;
	padding: 60px 0;
}

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

.hiw__line-fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background-color: #E0FC60;
}

/* ---------- List & items ---------- */
.hiw__list {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hiw__item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 16px 1fr;
	align-items: start;
	gap: 60px;
	padding: 60px 0;
}

.hiw__item:first-child {
	padding-top: 0;
}

.hiw__item:last-child {
	padding-bottom: 0;
}

.hiw__left {
	grid-column: 1;
	padding:50px 30px;
	position:relative;
	overflow:hidden;
}
.hiw__left::before {
	position: absolute;
  content: "";
  width: 600px;
  height: 600px;
  opacity: 0.3;
  left: 0%;
  top: 0px;
  transform: translateX(-40%) translateY(-50%);
  background: radial-gradient(circle at center, #fff 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hiw__right {
	grid-column: 3;
	padding-left: 20px;
}

/* ---------- Dot in the middle ---------- */
.hiw__dot {
	grid-column: 2;
	position: relative;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #18181A;
	border: 2px solid #18181A;
	margin-top: 4px;
	z-index: 2;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hiw__dot.is-active {
	background-color: #E0FC60;
	border-color: #E0FC60;
	box-shadow: 0 0 0 4px rgba(224, 252, 96, 0.15);
}

/* ---------- Number ---------- */
.hiw__number {
	font-family: "Source Serif 4", serif;
	font-style: italic;
	color: #fff;
	margin: 0 0 16px 0;
	font-size:46px;
}

/* ---------- Headings ---------- */
.hiw__title {
	color: #fff;
	font-family: "Source Serif 4", serif;
	font-style: italic;
	margin: 0 0 24px 0;
}

/* ---------- Active step: number + title turn yellow ---------- */
.hiw__number,
.hiw__title {
	transition: color 0.3s ease;
}

.hiw__item.is-active .hiw__number,
.hiw__item.is-active .hiw__title {
	color: #E0FC60;
}

/* ---------- Content / description wrappers (no styling of inner text) ---------- */
.hiw__content,
.hiw__description {
	max-width: 100%;
}

/* WYSIWYG content - leave headings/paragraphs alone */
.hiw__description > *:first-child {
	margin-top: 0;
}

.hiw__description > *:last-child {
	margin-bottom: 0;
}

/* ---------- Custom bullet ONLY inside description ---------- */
.hiw__description ul {
	list-style: none;
	padding-left: 0;
	margin: 0 0 20px 0;
}

.hiw__description ul li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
}

.hiw__description ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	background-image: var(--hiw-bullet);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.hiw__description ul li:last-child {
	margin-bottom: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.hiw__number {
		font-size:36px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.hiw__number {
		font-size:28px;
	}

	.hiw__line {
		left: 10px;
		transform: none;
	}

	.hiw__item {
		grid-template-columns: 22px 1fr;
		gap: 24px;
		padding: 40px 0;
	}

	.hiw__left {
		grid-column: 2;
		grid-row: 1;
		  padding: 20px 20px;
	}

	.hiw__dot {
		grid-column: 1;
		grid-row: 1;
		margin-top: 8px;
		justify-self: center;
	}

	.hiw__right {
		grid-column: 2;
		grid-row: 2;
		padding-left: 0;
	}
}
