/* Aivah Sticky Process Redesign */
.aivah-sp-container {
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.aivah-sp-layout {
    display: flex;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    align-items: stretch;
}

/* Left Pinned Panel (50% Width) */
.aivah-sp-left-panel {
    width: 50%;
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 80px 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.elementor-editor-active .aivah-sp-left-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

.elementor-editor-active .aivah-sp-step-card:first-child {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.aivah-sp-left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.aivah-sp-left-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    width: 100%;
}

.aivah-sp-left-content .aivah-sp-left-title,
.aivah-sp-left-content .aivah-sp-left-desc,
.aivah-sp-left-content .aivah-sp-left-btn-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-title,
.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-desc,
.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-btn-wrapper {
    transform: translateY(0);
}

.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-title {
    opacity: 1;
    transition-delay: 0.1s;
}

.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-desc {
    opacity: 0.95;
    transition-delay: 0.3s;
}

.aivah-sp-left-content.aivah-sp-animated .aivah-sp-left-btn-wrapper {
    opacity: 1;
    transition-delay: 0.5s;
}

.aivah-sp-left-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.aivah-sp-left-desc {
    font-size: 20px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    max-width: 480px;
    opacity: 0.95;
}

.aivah-sp-left-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.aivah-sp-left-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Right Steps Column (50% Width) */
.aivah-sp-right-steps {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.aivah-sp-step-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.aivah-sp-step-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.aivah-sp-step-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 50px;
    box-sizing: border-box;
}

.aivah-sp-step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.aivah-sp-step-counter {
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    line-height: 1;
}

.aivah-sp-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000000;
    line-height: 1;
}

.aivah-sp-step-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: inline-block;
}

.aivah-sp-header-divider {
    display: inline-block;
    width: 1px;
    height: 36px;
    border-left: 1px solid #000000;
}

.aivah-sp-step-title {
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
}

.aivah-sp-step-desc, .aivah-sp-step-desc p {
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .aivah-sp-layout {
        flex-direction: column;
    }

    .aivah-sp-left-panel {
        width: 100%;
        height: 30vh;
        padding: 20px;
        align-items: center;
        justify-content: center;
    }

    .aivah-sp-left-content {
        text-align: center;
    }

    .aivah-sp-right-steps {
        width: 100%;
        height: 70vh;
    }

    .aivah-sp-step-card {
        height: 70vh;
    }

    .aivah-sp-step-content {
        padding: 30px 20px;
    }

    /* Left Typography adjustments */
    .aivah-sp-left-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .aivah-sp-left-desc {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .aivah-sp-left-btn {
        padding: 8px 16px;
        font-size: 10px;
    }

    /* Right Typography adjustments */
    .aivah-sp-step-counter {
        font-size: 24px;
    }

    .aivah-sp-step-title {
        font-size: 24px;
    }

    .aivah-sp-step-desc, .aivah-sp-step-desc p {
        font-size: 14px;
        line-height: 1.5;
    }

    .aivah-sp-header-divider {
        height: 24px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .aivah-sp-left-content .aivah-sp-left-title,
    .aivah-sp-left-content .aivah-sp-left-desc,
    .aivah-sp-left-content .aivah-sp-left-btn-wrapper {
        transition-duration: 0.01s !important;
        transform: none !important;
    }
}
