/* ==========================================================
   BFMS - How We Work page - Timeline steps
   ========================================================== */

/* ---------- Section ---------- */
.hww-section {
	background: #f0ece7;
	padding: 90px 0 100px;
}

/* ---------- Timeline ---------- */
.hww-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
}

.hww-timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	background: #da7d1fab;
	z-index: 0;
}

/* ---------- Row ---------- */
.hww-row {
	display: grid;
	grid-template-columns: 1fr 60px 1fr;
	align-items: start;
	position: relative;
	padding: 32px 0;
}

/* ---------- Center dot ---------- */
.hww-dot-col {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 26px;
	position: relative;
	z-index: 1;
}

.hww-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #21384B;
	border: 3px solid #f0ece7;
	box-shadow: 0 0 0 1.5px #454342;
	flex-shrink: 0;
}

/* ---------- Empty side ---------- */
.hww-empty {
	min-height: 1px;
}

/* ---------- Card ---------- */
.hww-card {
	background: #fff;
	border-radius: 12px;
	border-top: 8px solid #1a2b4a;
	overflow: hidden;
	position: relative;
	padding: 28px 28px 0;
	z-index: 1;
}

.hww-left .hww-card {
	margin-right: 18px;
}

.hww-right .hww-card {
	margin-left: 18px;
}

/* ---------- Watermark number (top-right corner) ---------- */
.hww-watermark {
	position: absolute;
	top: -8px;
	right: 14px;
	font-size: 108px;
	font-weight: 800;
	color: rgba(26, 43, 74, 0.07);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	z-index: 0;
	font-family: var(--font);
}

/* ---------- Number badge ---------- */
.hww-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}

/* Left cards: dark navy badge */
.hww-left .hww-num {
	background: #1a2b4a;
}

/* Right cards: orange badge */
.hww-right .hww-num {
	background: var(--orange);
}

/* ---------- Title ---------- */
.hww-title {
	font-size: 38px;
	font-weight: 600;
	color: #21384B;
	line-height: 1.2;
	margin-bottom: 4px;
	position: relative;
	z-index: 1;
}

/* ---------- Orange subtitle ---------- */
.hww-subtitle {
	font-size: 28px;
	font-weight: 500;
	color: #FE6700;
	margin-bottom: 14px;
	position: relative;
	z-index: 1;
}

/* ---------- "What happens" — large heading ---------- */
.hww-what-label {
	font-size: 33px;
	font-weight: 500;
	color: #21384B;
	margin-bottom: 0;
	padding-bottom: 16px;
	position: relative;
	z-index: 1;
}

/* ---------- Bullet list with separator lines ---------- */
.hww-list {
	list-style: none;
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.hww-list li {
	position: relative;
	padding: 10px 0 10px 22px;
	font-size:21.6px;
	font-size: 400;
	color: #555555;
	line-height: 1.5;
	border-top: 1px solid #ddd8d0;
}

.hww-list li:last-child {
	border-bottom: 1px solid #ddd8d0;
}

.hww-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--orange);
}

/* ---------- Bottom two-column boxes ---------- */
.hww-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 20px -28px 0;
	gap: 1px;
	background: #cec8c0;
}

.hww-col-box {
	background: #F7F6F2;
	padding: 18px 20px 20px;
}

.hww-col-label {
	font-size: 22px;
	font-weight: 600;
	color: #21384B;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}

.hww-col-text {
	font-size: 18px;
	color: #21384B;
	line-height: 1.65;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet (≤991px) */
@media (max-width: 991px) {
	.hww-row {
		grid-template-columns: 1fr 44px 1fr;
		padding: 24px 0;
	}

	.hww-left .hww-card {
		margin-right: 10px;
	}

	.hww-right .hww-card {
		margin-left: 10px;
	}

	.hww-title {
		font-size: 22px;
	}

	.hww-what-label {
		font-size: 19px;
	}

	.hww-watermark {
		font-size: 80px;
	}

	.hww-cols {
		grid-template-columns: 1fr;
		gap: 1px;
	}
}

/* Mobile (≤767px): single column layout */
@media (max-width: 767px) {
	.hww-section {
		padding: 56px 0 64px;
	}

	.hww-timeline::before {
		left: 20px;
		transform: none;
	}

	.hww-left,
	.hww-right {
		display: grid;
		grid-template-columns: 44px 1fr;
		padding: 16px 0;
	}

	.hww-dot-col {
		order: 1;
		padding-top: 22px;
		justify-content: center;
	}

	.hww-left .hww-card,
	.hww-right .hww-card {
		order: 2;
		margin-left: 0;
		margin-right: 0;
	}

	.hww-empty {
		display: none;
	}

	/* On mobile, both card types use orange badge */
	.hww-left .hww-num {
		background: #1a2b4a;
	}

	.hww-right .hww-num {
		background: var(--orange);
	}

	.hww-title {
		font-size: 20px;
	}

	.hww-what-label {
		font-size: 17px;
	}

	.hww-watermark {
		font-size: 70px;
	}

	.hww-card {
		padding: 22px 20px 0;
	}

	.hww-cols {
		margin: 16px -20px 0;
	}

	.hww-num {
		width: 36px;
		height: 36px;
		font-size: 12px;
	}
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
	.hww-cols {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------------------------------------
   SCROLL ANIMATION
   Mobile/tablet (≤991px): blur-reveal
   Desktop (≥992px): directional slide-in + dot pop
   ---------------------------------------------------------- */

/* --- Mobile / Tablet --- */
@media (max-width: 991px) {
	.hww-card {
		transition:
			opacity   0.65s ease,
			filter    0.65s ease,
			transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	}
	.hww-card.hww-pre {
		opacity: 0;
		filter: blur(10px);
		transform: translateY(26px);
	}
	.hww-card.hww-active {
		opacity: 1;
		filter: none;
		transform: translateY(0);
	}
	.hww-dot {
		transition:
			transform  0.4s 0.25s ease,
			background 0.4s 0.25s ease,
			box-shadow 0.4s 0.25s ease;
	}
	.hww-dot.hww-dot-active {
		transform: scale(1.6);
		background: var(--orange);
		box-shadow: 0 0 0 5px rgba(254, 103, 0, 0.18);
	}
}

/* --- Desktop --- */
@media (min-width: 992px) {
	.hww-card {
		transition:
			opacity   0.6s ease,
			transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	}
	/* Left card enters from the left */
	.hww-left .hww-card.hww-pre {
		opacity: 0;
		transform: translateX(-40px) translateY(14px);
	}
	/* Right card enters from the right */
	.hww-right .hww-card.hww-pre {
		opacity: 0;
		transform: translateX(40px) translateY(14px);
	}
	.hww-card.hww-active {
		opacity: 1;
		transform: none;
	}
	/* Dot: starts hidden, pops in with spring bounce */
	.hww-dot {
		transition:
			transform  0.5s 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
			opacity    0.3s 0.28s ease,
			background 0.3s 0.28s ease,
			box-shadow 0.3s 0.28s ease;
	}
	.hww-dot.hww-dot-pre {
		transform: scale(0);
		opacity: 0;
	}
	.hww-dot.hww-dot-active {
		background: var(--orange);
		box-shadow: 0 0 0 4px rgba(254, 103, 0, 0.18);
	}
}
