/* Horizontal Accordion Slider */
.pls-accordion-slider {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    height: 500px; /* Default height */
    margin: 0 auto;
}

.pls-acc-item {
    position: relative;
    overflow: hidden;
    min-width: 60px;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    flex-grow: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.pls-acc-item.pls-active {
    flex-grow: 10;
    border-radius: 20px;
    cursor: default;
}

.pls-acc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.pls-acc-inner {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none; /* Let clicks pass to item */
}

.pls-acc-icon {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pls-acc-icon img {
    width: 40px;
    height: auto;
    display: block;
}

.pls-acc-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.pls-acc-item.pls-active .pls-acc-content {
    opacity: 1;
    max-height: 1000px; /* Adjust as needed */
    transform: translateY(0);
    margin-top: 10px;
}

.pls-acc-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap; /* Prevent wrapping in collapsed state if visible */
}

/* Orientation change for inactive items - optional, to keep icon centered */
.pls-acc-item:not(.pls-active) .pls-acc-inner {
    align-items: center;
    width: 100%;
    left: 0;
    bottom: 20px;
}

.pls-acc-item:not(.pls-active) .pls-acc-title {
    display: none; /* Hide title when inactive if space is tight */
}

@media screen and (max-width: 768px) {
    .pls-accordion-slider {
        flex-direction: column;
        height: 600px;
    }

    .pls-acc-item {
        width: 100%;
        margin: 5px 0;
        min-height: 60px;
    }

    .pls-acc-item.pls-active {
        flex-grow: 5;
    }

    .pls-acc-item:not(.pls-active) .pls-acc-icon img {
        width: 30px;
    }

    .pls-acc-inner {
        flex-direction: row;
        align-items: center;
    }

    .pls-acc-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
}
