.hb-container-f798c8d9 {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.hb-bg-wrapper-f798c8d9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hb-bg-image-f798c8d9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    /* transition is now controlled by Elementor settings */
}

/* 
 * The key to smooth crossfading without a dark flash is to ensure 
 * the newly active image fades IN over the top of the previously active image,
 * rather than both fading out/in simultaneously against a dark background.
 *
 * We achieve this by giving the active class a higher z-index, 
 * and using an "ex-active" class for the one fading out.
 */

.hb-bg-image-f798c8d9.ex-active {
    opacity: 1; /* Stay fully visible while underneath */
    z-index: 2; /* Sit below the fading-in active one */
}

.hb-bg-image-f798c8d9.active {
    opacity: 1;
    z-index: 3; /* Always on top */
}

.hb-overlay-f798c8d9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background-color: rgba(0,0,0,0.5); /* Default fallback */
}

.hb-content-wrapper-f798c8d9 {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically by default */
}

.hb-nav-f798c8d9 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hb-item-f798c8d9 {
    /* Limit the hover trigger to just the content size */
    width: max-content;
    align-self: center; /* Center in cross axis by default unless overridden */
    cursor: pointer;
}

.hb-heading-f798c8d9 {
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
    display: block;
}

.hb-heading-f798c8d9:hover {
    color: #ccc;
}