/* --- Scroll Sequence Widget Styles --- */
.scroll-sequence-section {
    position: relative;
    background-color: transparent;
    width: 100%;
}

.sticky-wrapper {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    /* Removed object-fit from here to let Elementor controls work */
}

.scroll-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.points-container {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    pointer-events: none;
}

.info-point {
    position: absolute;
    z-index: 25;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-marker {
    width: 40px;
    height: 40px;
    background-color: #5e8ec4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.marker-inner {
    width: 50%;
    height: 50%;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-point.active .point-marker {
    transform: scale(1.1);
}

.info-point.active .marker-inner {
    background-color: transparent;
    border: 2px solid #ffffff;
}

.info-point.active .marker-inner::after {
    content: '';
    width: 60%;
    height: 60%;
    background-color: #333333;
    border-radius: 50%;
    display: block;
}

.point-content {
    position: absolute;
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    top: 40px;
    /* Default below the point */
    left: 50%;
    margin-left: 0;
    z-index: 100;
    /* Higher than points */
    pointer-events: none;
    visibility: hidden;
}

.info-point.active .point-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.point-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.5rem;
}

.point-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 1rem;
}

/* Scroll Sequence Responsive */
@media (max-width: 1024px) {
    .point-marker {
        width: 30px;
        height: 30px;
    }

    .point-content {
        max-width: 250px;
        padding: 15px;
    }

    .point-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .bg-image {
        object-fit: cover;
        opacity: 0.5;
    }

    .info-point {
        /* Points will now respect their responsive Top/Left values set in Elementor */
        pointer-events: auto;
        position: absolute;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%) !important;
    }

    .point-marker {
        display: flex;
        /* Re-enable markers on mobile */
        width: 25px;
        height: 25px;
    }

    .point-content {
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%) translateY(20px) scale(0.9) !important;
        margin-left: 0;
        width: 90vw;
        max-width: none;
        text-align: center;
        position: fixed;
        /* Keep content at bottom of screen when active */
    }

    .info-point.active .point-content {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

/* --- Sticky Image Scroll Widget Styles --- */
/* Critical for Elementor: ensure ancestors don't block sticky */
.elementor-widget-sticky_image_scroll,
.elementor-widget-sticky_image_scroll .elementor-widget-container {
    overflow: visible !important;
}

/* Ensure the widget container doesn't clip its sticky child */
.elementor-element.elementor-widget-sticky_image_scroll {
    z-index: 10;
}

.sticky-image-scroll-section {
    position: relative;
    width: 100%;
    background-color: #f8fbff;
    display: block;
    overflow: visible !important;
}

.sticky-scroll-main-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sticky-scroll-row {
    display: flex;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    align-items: center;
    gap: 60px;
}

.sticky-scroll-content-col {
    flex: 0 0 45%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.sticky-scroll-content-inner {
    width: 100%;
    padding-bottom: 20vh;
}

.sticky-scroll-item {
    width: 100%;
    margin-bottom: 50vh;
    /* Consistent spacing */
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0.15;
    transform: scale(0.9);
}

.sticky-scroll-item:last-child {
    margin-bottom: 0;
}

.sticky-scroll-item.active {
    opacity: 1;
    transform: scale(1);
}

.sticky-scroll-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.sticky-scroll-item.active .sticky-scroll-card {
    border-color: #3498db;
    box-shadow: 0 15px 50px rgba(52, 152, 219, 0.15);
}

.sticky-scroll-label {
    display: inline-block;
    padding: 10px 24px;
    background: #001f34;
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.sticky-scroll-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
}

.sticky-scroll-image-col {
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-scroll-image-window {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 80vh;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    background: #eee;
}

.sticky-scroll-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.sticky-scroll-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, visibility 0.6s;
    transform: scale(1.1);
}

.sticky-scroll-image-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 5;
}

.sticky-scroll-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sticky Image Scroll Responsive */
@media (max-width: 1024px) {
    .sticky-scroll-row {
        gap: 30px;
        padding: 0 30px;
    }

    .sticky-scroll-content-col {
        flex: 0 0 50%;
    }

    .sticky-scroll-image-col {
        flex: 0 0 45%;
    }

    .sticky-scroll-card {
        padding: 30px;
    }

    .sticky-scroll-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .sticky-scroll-main-wrapper {
        height: auto;
        position: relative;
        overflow: visible;
    }

    .sticky-scroll-row {
        flex-direction: column-reverse;
        /* Image on top for mobile */
        height: auto;
        padding: 40px 20px;
        gap: 40px;
    }

    .sticky-scroll-content-col,
    .sticky-scroll-image-col {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
    }

    .sticky-scroll-content-inner {
        padding: 0;
        transform: none !important;
    }

    .sticky-scroll-item {
        opacity: 1;
        transform: none;
        margin-bottom: 30px !important;
    }

    .sticky-scroll-image-window {
        margin-bottom: 10px;
        aspect-ratio: 4/3;
        /* Wider aspect for mobile */
    }

    .sticky-scroll-image-item {
        position: relative;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .sticky-scroll-image-item.active {
        display: block;
    }

    .sticky-scroll-card {
        padding: 25px;
        border-radius: 15px;
    }

    .sticky-scroll-label {
        padding: 8px 18px;
        font-size: 13px;
        margin-bottom: 15px;
    }

    .sticky-scroll-description {
        font-size: 1rem;
    }
}