.aivah-wfh-container {
    width: 100%;
    position: relative;
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Alignment is controlled via Elementor settings */
}

/* In the Elementor editor, don't force 100vh to make editing easier */
body.elementor-editor-active .aivah-wfh-container {
    min-height: auto;
}

.aivah-wfh-subtitle {
    margin: 0 0 30px 0;
    opacity: 0; /* JS will animate this */
    transform: translateY(20px);
}

.aivah-wfh-heading {
    margin: 0;
    /* Removed flex, so text-align on the container will naturally center the inline-block words */
}

.aivah-wfh-word-wrap {
    display: inline-block;
    overflow: hidden; /* For masking the word as it comes up */
    padding-bottom: 0.1em; /* Prevent descenders from clipping */
}

.aivah-wfh-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    will-change: transform, opacity;
}

/* Elementor Editor Mode Overrides */
body.elementor-editor-active .aivah-wfh-subtitle,
body.elementor-editor-active .aivah-wfh-word {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
