.aivah-tws-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    /* Default background color overridden by elementor */
}

.aivah-tws-layout {
    display: flex;
    flex-wrap: nowrap; /* Prevent columns from stacking */
    width: 100%;
    height: 100vh;
    max-width: 1200px; /* Default overridden by elementor */
    margin: 0 auto;
    padding: 10vh 5%;
    box-sizing: border-box;
}

.aivah-tws-left-col,
.aivah-tws-right-col {
    box-sizing: border-box;
}

.aivah-tws-left-col {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-right: 50px;
}

.aivah-tws-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: #000000;
}

.aivah-tws-headings-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aivah-tws-heading-group {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
}

/* Make the first group relative to take up layout space */
.aivah-tws-heading-group[data-index="0"] {
    position: relative;
    top: 0;
    transform: none;
}

.aivah-tws-heading-line {
    font-size: 6vw;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    overflow: hidden; /* For masking effects if needed */
}

/* The actual text span that animates */
.aivah-tws-heading-line span {
    display: block;
    opacity: 0;
    transform: translateY(100px);
    will-change: transform, opacity;
}

.aivah-tws-btn {
    display: inline-block;
    background: #000000;
    color: #fff;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 40px;
    opacity: 0;
    visibility: hidden;
    transition: background 0.3s;
}

.aivah-tws-btn:hover {
    background: #000000;
    color: #fff;
}

/* Right Column */
.aivah-tws-right-col {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* or flex-start if they want it top-aligned */
    padding-left: 50px;
}

.aivah-tws-right-content {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
}

.aivah-tws-right-content p {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
}

/* Elementor Editor Mode Overrides */
body.elementor-editor-active .aivah-tws-heading-group,
body.elementor-editor-active .aivah-tws-heading-line span,
body.elementor-editor-active .aivah-tws-btn,
body.elementor-editor-active .aivah-tws-right-content p {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Responsive */
@media (max-width: 991px) {
    .aivah-tws-layout {
        flex-direction: column;
        padding-top: 20vh;
    }
    
    .aivah-tws-left-col,
    .aivah-tws-right-col {
        flex: none;
        width: 100%;
        padding: 0;
    }
    
    .aivah-tws-right-col {
        margin-top: 50px;
    }

    .aivah-tws-heading-line {
        font-size: 10vw;
    }
}
