.highlight-heading-wrapper {
	display: flex; /* Aligns text parts on one line */
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

/* The area that gets the highlight */
.highlight-area {
	position: relative; /* Crucial for positioning the animation */
	display: inline-block;
	white-space: nowrap;
    margin: 0 0.25em; /* Add some space around the highlighted text */
}

/* --- CROSS ANIMATION --- */
.highlight-area.has-highlight-cross::before,
.highlight-area.has-highlight-cross::after {
	content: '';
	position: absolute;
	width: 0%;
	height: 3px;
	background-color: var(--highlight-color, #ef4444);
	top: 50%;
	left: -2%;
	animation: drawLine 4s ease-out infinite;
}

.highlight-area.has-highlight-cross::before {
	transform: rotate(-10deg);
}

.highlight-area.has-highlight-cross::after {
	animation-name: drawLineAfter;
}

@keyframes drawLine {
	0% { width: 0%; }
	10% { width: 104%; }
	99% { width: 104%; opacity: 1; }
	100% { width: 0%; opacity: 0; }
}

@keyframes drawLineAfter {
	0% { width: 0%; }
	7.5% { width: 0%; }
	17.5% { width: 104%; }
	99% { width: 104%; opacity: 1; }
	100% { width: 0%; opacity: 0; }
}

/* --- CIRCLE ANIMATION --- */
.highlight-area.has-highlight-circle::before {
	content: '';
	position: absolute;
	top: -15%;
	left: -5%;
	width: 110%;
	height: 130%;
	border: 4px solid var(--highlight-color, #ef4444);
	border-radius: 50% / 40%;
	transform: rotate(-10deg);
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: drawCircle 4s ease-out infinite;
}

@keyframes drawCircle {
	0% { stroke-dashoffset: 1000; opacity: 0; }
	5% { stroke-dashoffset: 1000; opacity: 1; }
	30% { stroke-dashoffset: 0; opacity: 1; }
	99% { stroke-dashoffset: 0; opacity: 1; }
	100% { stroke-dashoffset: 1000; opacity: 0; }
}