.my-timeline-component {
	max-width: 100%;
}

.my-timeline-component .timeline__buttons {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	text-align: center;
	margin-bottom: 10px;
}

.my-timeline-component .timeline__btn,
.my-timeline-component .timeline__dot {
	justify-self: center;
}

.my-timeline-component .timeline__btn {
	font-family: "Inter", sans-serif;
	background: #171717;
	border: none;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	border-radius: 50px;
	padding: 19px 22px;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;

	transition: all 0.3s ease;
}

.my-timeline-component .timeline__btn.active,
.my-timeline-component .timeline__btn.hover {
	background: #FDD441;
	color: #000;
}

.my-timeline-component .timeline__track {
	position: relative;
	margin: 41px 0;
}

.my-timeline-component .timeline__line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	background: #D9D9D9;
	transform: translateY(-50%);
	z-index: 1;
}

.my-timeline-component .timeline__dots {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	z-index: 2;
}

.my-timeline-component .timeline__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #D9D9D9;
	margin: 0 auto;
	cursor: pointer;
	transition: background 0.2s ease;
}

.my-timeline-component .timeline__dot.active,
.my-timeline-component .timeline__dot.hover {
	background: #FDD441;
}

.my-timeline-component .timeline__cards {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.my-timeline-component .timeline__card {
	height: 260px;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #fff;
	color: #000;
	transition: all 0.3s ease;
}

.my-timeline-component .timeline__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;

	opacity: 0;
	transform: scale(1.05);
	transition: opacity 0.4s ease, transform 0.4s ease;

	z-index: 0;
}

.my-timeline-component .timeline__card:hover .timeline__bg,
.my-timeline-component .timeline__card.active .timeline__bg {
	opacity: 1;
	transform: scale(1);
}

.my-timeline-component .timeline__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top,
			rgba(0, 0, 0, 0.75) 0%,
			rgba(0, 0, 0, 0.4) 40%,
			rgba(0, 0, 0, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.my-timeline-component .timeline__card:hover::after,
.my-timeline-component .timeline__card.active::after {
	opacity: 1;
}

.my-timeline-component .timeline__icon,
.my-timeline-component .timeline__text {
	position: relative;
	z-index: 2;
	transition: all 0.3s ease;
	align-self: flex-end;
}

.my-timeline-component .timeline__text {
	color: #000;
}

.my-timeline-component .timeline__card:hover .timeline__text,
.my-timeline-component .timeline__card.active .timeline__text {
	color: #fff;
}

.my-timeline-component .timeline__card:hover .timeline__icon,
.my-timeline-component .timeline__card.active .timeline__icon {
	opacity: 0;
}
