.highlight-title-container-5899ec64 {
    display: block;
    line-height: normal;
    word-break: break-word;
}

/* Ensure the before/after text is correctly aligned with the highlighted box */
.highlight-title-container-5899ec64 .text-before-5899ec64,
.highlight-title-container-5899ec64 .text-after-5899ec64 {
    display: inline-block;
    vertical-align: middle;
}

.highlight-title-container-5899ec64 .highlight-word-5899ec64 {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Base Reveal Animation Style using Pseudo Element */
.highlight-title-container-5899ec64 .highlight-word-5899ec64::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--frame-bg, #FFDE59);
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations Reveal Types */
.highlight-title-container-5899ec64 .highlight-word-5899ec64.reveal-left-to-right::before {
    transform: scaleX(0);
    transform-origin: left;
}
.highlight-title-container-5899ec64 .highlight-word-5899ec64.reveal-right-to-left::before {
    transform: scaleX(0);
    transform-origin: right;
}
.highlight-title-container-5899ec64 .highlight-word-5899ec64.reveal-top-to-bottom::before {
    transform: scaleY(0);
    transform-origin: top;
}

/* Intersection Observer Active State */
.highlight-title-container-5899ec64.animated-reveal .highlight-word-5899ec64.reveal-left-to-right::before,
.highlight-title-container-5899ec64.animated-reveal .highlight-word-5899ec64.reveal-right-to-left::before {
    transform: scaleX(1);
}

.highlight-title-container-5899ec64.animated-reveal .highlight-word-5899ec64.reveal-top-to-bottom::before {
    transform: scaleY(1);
}
