.aivah-ps-container {
    width: 100%;
    position: relative;
    /* Default background. Can be overridden in Elementor styles */
    background-color: transparent;
    overflow: hidden;
}

.aivah-ps-layout {
    display: flex;
    flex-wrap: nowrap; /* Prevent columns from wrapping on smaller screens or in the editor */
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

/* LEFT COLUMN (60%) */
.aivah-ps-left-col {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    position: relative;
}

.aivah-ps-images-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0%;
    right: 0%; /* Gap before right column */
    overflow: hidden; /* masks the sliding images */
}

.aivah-ps-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed default transforms to let GSAP handle it perfectly */
    will-change: transform, opacity;
}

/* First slide is visible initially */
.aivah-ps-image-slide.active {
    /* GSAP will control this */
}

.aivah-ps-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Gradient overlay for bottom 40% to make text visible */
.aivah-ps-image-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
	z-index: 1;
}

.aivah-ps-overlay-top {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
	z-index: 1;
}

.aivah-ps-overlay-bottom {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
	z-index: 2;
}

.aivah-ps-location {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.aivah-ps-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 20px 0;
    color: #fff;
}

.aivah-ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.aivah-ps-btn:hover {
    opacity: 0.7;
}


/* RIGHT COLUMN (40%) */
.aivah-ps-right-col {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.aivah-ps-content-wrapper {
    position: relative;
    width: 100%;
}

.aivah-ps-content-slide {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    /* Removed transform/opacity to let GSAP handle it perfectly */
    will-change: transform, opacity;
}

.aivah-ps-content-slide.active {
    /* GSAP will control this */
}

.aivah-ps-counter {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: #320614;
    font-weight: 600;
}

.aivah-ps-right-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #320614;
    font-weight: 600;
}

.aivah-ps-wysiwyg {
    font-size: 14px;
    line-height: 1.8;
    color: #a8a8a9;
    margin-bottom: 50px;
}
.aivah-ps-wysiwyg p {
    margin-bottom: 15px;
}

.aivah-ps-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid rgba(50, 6, 20, 0.1);
    padding-top: 30px;
}

.aivah-ps-meta-item {
    flex: 1 1 25%;
}

.aivah-ps-meta-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a75d5d;
    margin-bottom: 10px;
}

.aivah-ps-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #320614;
}

/* Elementor Editor Overrides */
body.elementor-editor-active .aivah-ps-image-slide {
    position: relative;
    top: auto; left: auto; transform: none !important; opacity: 1 !important;
    margin-bottom: 20px;
    height: 400px; /* Explicit height for background image */
    width: 100%;
}
body.elementor-editor-active .aivah-ps-content-slide {
    position: relative;
    top: auto; left: auto; transform: none !important; opacity: 1 !important;
    margin-bottom: 50px;
    width: 100%;
}
body.elementor-editor-active .aivah-ps-images-wrapper,
body.elementor-editor-active .aivah-ps-content-wrapper {
    position: relative;
    overflow: visible;
    top: auto; bottom: auto; left: auto; right: auto;
    width: 100%;
}
body.elementor-editor-active .aivah-ps-left-col {
    padding-right: 20px;
}
body.elementor-editor-active .aivah-ps-right-col {
    padding-left: 20px;
}
body.elementor-editor-active .aivah-ps-layout {
    height: auto;
}

/* Responsive Stack for Tablet & Mobile */
@media (max-width: 1024px) {
    .aivah-ps-layout {
        flex-direction: column;
    }
    .aivah-ps-left-col {
        width: 100% !important;
        flex: 0 0 50% !important;
        height: 50% !important;
    }
    .aivah-ps-right-col {
        width: 100% !important;
        flex: 0 0 50% !important;
        height: 50% !important;
    }
    /* Ensure the widget container spans full width on mobile/tablet */
    .aivah-ps-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}
