/* --- 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% !important;
    height: 100% !important;
    z-index: 1;
    display: block;
    /* object-fit and object-position are now controlled by Elementor selectors */
}

.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 {
    z-index: 1000;
    /* Ensure active point and its content are above everything else */
}

.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 (Premium) --- */
:root {
    --ss-primary-bg: #f8fafc;
    --ss-card-bg: #ffffff;
    --ss-accent-blue: #0f172a;
    --ss-text-main: #334155;
    --ss-text-light: #64748b;
    --ss-badge-bg: rgba(15, 23, 42, 0.05);
    --ss-border-color: rgba(15, 23, 42, 0.1);
    --ss-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.elementor-widget-sticky_image_scroll,
.elementor-widget-sticky_image_scroll>.elementor-widget-container {
    overflow: visible !important;
}

.sticky-image-scroll-section-premium {
    position: relative;
    width: 100%;
    background-color: var(--ss-primary-bg);
    overflow: visible !important;
    padding: 4rem 0;
}

.sticky-scroll-premium-container {
    max-width: 100%;
    /* Spans full width of the parent section */
    margin: 0 auto;
    padding: 0 40px;
}

.sticky-scroll-premium-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

/* Left: Scrolling Content */
.sticky-scroll-premium-scrolling-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 25vh;
    /* Starts the first box near the center of the image */
    padding-bottom: 40vh;
    /* Extra space to allow the last item to trigger properly */
}

.sticky-scroll-premium-content-box {
    background: var(--ss-card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--ss-border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--ss-transition);
    opacity: 0.3;
    transform: translateY(20px);
}

.sticky-scroll-premium-content-box.active {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sticky-scroll-premium-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--ss-accent-blue);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Outfit', sans-serif;
}

.sticky-scroll-premium-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--ss-accent-blue);
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.sticky-scroll-premium-description {
    color: var(--ss-text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Right: Sticky Visual */
.sticky-scroll-premium-visual-col {
    position: -webkit-sticky;
    position: sticky;
    top: 4rem;
    height: calc(100vh - 8rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* WP Admin Bar Handling */
.admin-bar .sticky-scroll-premium-visual-col {
    top: calc(4rem + 32px);
}

.sticky-scroll-premium-sticky-visual {
    width: 100%;
}

.sticky-scroll-premium-image-container {
    width: 100%;
    min-height: 500px;
    aspect-ratio: 1 / 1.1;
    /* Modern vertical ratio */
    border-radius: 40px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.sticky-scroll-premium-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.5s ease-in-out, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.08);
    /* Slightly more zoom for effect */
}

.sticky-scroll-premium-image-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.sticky-scroll-premium-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Premium Design */
@media (max-width: 968px) {
    .sticky-scroll-premium-wrapper {
        grid-template-columns: 1fr;
    }

    .sticky-scroll-premium-visual-col {
        position: relative;
        top: 0 !important;
        height: 400px;
        order: -1;
        /* Image first on mobile */
        margin-bottom: 2rem;
    }

    .sticky-scroll-premium-scrolling-content {
        gap: 2rem;
    }

    .sticky-scroll-premium-content-box {
        opacity: 1;
        transform: none;
        padding: 2rem;
    }
}