/* Container for the accordion */
.wml-accordion-slider-wrapper {
    position: relative;
    width: 100%;
    --grad-color: rgba(0, 0, 0, 0.9);
}

.wml-accordion-slider {
    display: flex;
    width: 100%;
    gap: 20px;
    /* default, controlled by settings */
    height: 70vh;
    /* default, controlled by settings */
    max-height: 700px;
    /* default, controlled by settings */
}

/* Individual Card styling */
.wml-accordion-card {
    position: relative;
    flex: 1;
    /* All cards start at equal width */
    border-radius: 12px;
    overflow: hidden;
    transition: flex var(--wml-transition-speed, 0.6s) cubic-bezier(0.25, 1, 0.5, 1);
}

/* The hover effect that expands the card */
.wml-accordion-card:hover {
    flex: 4;
    /* Expands the hovered card while siblings shrink */
}

/* Background image setup */
.wml-accordion-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text content and gradient overlay */
.wml-accordion-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    box-sizing: border-box;
    background: linear-gradient(to top, var(--grad-color) 15%, transparent 100%);
    pointer-events: none;
    /* Ensures text doesn't interfere with mouse tracking */
}

.wml-accordion-card-content h2 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    /* Keeps titles from wrapping awkwardly during transition */
}

.wml-accordion-card-content p {
    margin: 0;
    font-size: 1.1rem;
    color: #d1d1d1;
    white-space: nowrap;
    opacity: 1;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}



/* Responsive fallback */
@media (max-width: 768px) {
    .wml-accordion-slider {
        flex-direction: column;
        height: 100vh;
    }
}