.animated-hover-list-container {
	background-color: #f4f6f6;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 30px;
	max-width: 500px;
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
	font-family: inherit;
}

.animated-hover-list-container:hover {
	border-color: #dfb163; /* Golden border */
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.animated-hover-list-container .list-title {
	margin-bottom: 24px;
	position: relative;
	z-index: 2;
}

.animated-hover-list-container .list-title span {
	display: inline-block;
	background-color: #204546;
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-hover-list-container:hover .list-title span {
	background-color: #B1BEBE;
	color: #204546;
}

.animated-hover-list-container .animated-hover-items {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
	z-index: 1;
}

.animated-hover-list-container .animated-hover-items li {
	display: flex;
	align-items: center;
	background-color: #B1BEBE;
	color: #2D3440;
	margin-bottom: 14px;
	padding: 12px 24px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	position: relative;
	width: max-content;
	max-width: 100%;
	
	/* Smooth transition for padding, background and transform */
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateX(0);
}

/* Staggered delay for items sliding out */
.animated-hover-list-container:hover .animated-hover-items li:nth-child(1) { transition-delay: 0.05s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(2) { transition-delay: 0.1s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(3) { transition-delay: 0.15s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(4) { transition-delay: 0.2s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(5) { transition-delay: 0.25s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(6) { transition-delay: 0.3s; }


.animated-hover-list-container:hover .animated-hover-items li {
	background-color: #204546;
	color: #F5A623; /* Orange text */
	/* Moves the whole list right to make room for the icon outside */
	transform: translateX(50px);
}

/* Initial state of the star icon */
.animated-hover-list-container .animated-hover-items li .icon-star {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	/* Starts slightly outside to the right of the whole pill */
	left: calc(100% - 10px);
	opacity: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	/* Transition moves it smoothly */
	transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.animated-hover-list-container .animated-hover-items li .icon-star svg {
	width: 24px;
	height: 24px;
}

/* Hover state of the star icon */
.animated-hover-list-container:hover .animated-hover-items li .icon-star {
	/* Moves to the outside left side of the li */
	left: -40px;
	opacity: 1;
}

/* Staggered delay for stars flying in */
.animated-hover-list-container:hover .animated-hover-items li:nth-child(1) .icon-star { transition-delay: 0.1s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(2) .icon-star { transition-delay: 0.15s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(3) .icon-star { transition-delay: 0.2s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(4) .icon-star { transition-delay: 0.25s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(5) .icon-star { transition-delay: 0.3s; }
.animated-hover-list-container:hover .animated-hover-items li:nth-child(6) .icon-star { transition-delay: 0.35s; }

.animated-hover-list-container .animated-hover-items li .item-text {
	position: relative;
	z-index: 2;
	line-height: 1.4;
	white-space: nowrap;
}
