/* Structural stylesheet for expanding hover slider */
.es-3eb24165-container {
    display: flex;
    width: 100%;
    gap: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Individual slider wrapper */
.es-3eb24165-slide {
    display: flex;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hover expand logic: increase flex-grow */
.es-3eb24165-slide:hover,
.es-3eb24165-slide.es-3eb24165-active {
    flex: 2.8;
}

/* Left panel with background image */
.es-3eb24165-img-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
    min-width: 250px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Overlay badges */
.es-3eb24165-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-3eb24165-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right content panel with white background */
.es-3eb24165-content-panel {
    width: 0;
    background: #ffffff;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Slide active or hovered: reveal white panel */
.es-3eb24165-slide:hover .es-3eb24165-content-panel,
.es-3eb24165-slide.es-3eb24165-active .es-3eb24165-content-panel {
    width: 350px;
    padding: 30px;
}

.es-3eb24165-content-inner {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.15s;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 290px; /* Locked width to prevent word-wrap shifts during transition */
}

.es-3eb24165-slide:hover .es-3eb24165-content-inner,
.es-3eb24165-slide.es-3eb24165-active .es-3eb24165-content-inner {
    opacity: 1;
    transform: translateX(0);
}

/* Typography styles */
.es-3eb24165-title {
    margin: 0;
    font-family: sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.es-3eb24165-desc {
    margin: 0;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Pill CTA Button */
.es-3eb24165-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    transition: transform 0.2s ease;
}

.es-3eb24165-btn:hover {
    transform: translateY(-2px);
}

.es-3eb24165-btn-arrow {
    background: #ffffff;
    color: #111111;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .es-3eb24165-container {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 10px 0;
    }
    
    /* Hide scrollbar */
    .es-3eb24165-container::-webkit-scrollbar {
        display: none;
    }
    .es-3eb24165-container {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .es-3eb24165-slide {
        flex: 0 0 70%; /* Shows ~1.4 slides */
        scroll-snap-align: center;
        height: 400px;
        transition: flex 0.4s ease, min-width 0.4s ease;
    }

    /* Keep row layout on tablet */
    .es-3eb24165-slide.es-3eb24165-active {
        flex: 0 0 75%;
    }

    /* Adjust inner panel layout on mobile/tablet */
    .es-3eb24165-slide .es-3eb24165-content-panel {
        width: 0;
        padding: 0;
    }

    .es-3eb24165-slide.es-3eb24165-active .es-3eb24165-content-panel {
        width: 280px;
        padding: 20px;
    }
    .es-3eb24165-content-inner {
        width: 240px;
    }
}

@media (max-width: 767px) {
    .es-3eb24165-slide {
        flex: 0 0 90%; /* Displays mostly one slide, next/prev barely visible */
        height: 385px;
        flex-direction: column;
    }
    .es-3eb24165-slide.es-3eb24165-active {
        flex: 0 0 90%;
    }
    .es-3eb24165-img-panel {
        flex: 1;
        width: 100%;
        min-height: 180px;
    }
    .es-3eb24165-slide .es-3eb24165-content-panel {
        width: 100%;
        height: 0;
        transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .es-3eb24165-slide.es-3eb24165-active .es-3eb24165-content-panel {
        width: 100%;
        height: auto;
        min-height: 180px;
        padding: 15px;
    }
    .es-3eb24165-content-inner {
        width: 100%;
    }
}
