.ps-557589ef-container {
    --ps-speed: 500ms;
    --ps-active-flex: 5;
    --ps-overlay: rgba(0,0,0,0.6);
    
    display: flex;
    width: 100%;
    overflow: hidden;
}

.ps-557589ef-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex var(--ps-speed) ease-in-out;
}

.ps-557589ef-card.is-active,
.ps-557589ef-card:hover {
    flex: var(--ps-active-flex);
}

.ps-557589ef-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--ps-speed) ease-in-out;
}

.ps-557589ef-card:hover .ps-557589ef-bg,
.ps-557589ef-card.is-active .ps-557589ef-bg {
    transform: scale(1.05);
}

.ps-557589ef-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--ps-overlay) 0%, transparent 60%);
    opacity: 0.8;
    transition: opacity var(--ps-speed) ease;
}

.ps-557589ef-card:hover .ps-557589ef-overlay,
.ps-557589ef-card.is-active .ps-557589ef-overlay {
    opacity: 1;
}

.ps-557589ef-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    z-index: 2;
}

.ps-557589ef-header {
    transform: translateY(20px);
    transition: transform var(--ps-speed) ease-in-out;
}

.ps-557589ef-card:hover .ps-557589ef-header,
.ps-557589ef-card.is-active .ps-557589ef-header {
    transform: translateY(0);
}

.ps-557589ef-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    transition: opacity calc(var(--ps-speed) / 2) ease-in-out;
}

.ps-557589ef-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.ps-557589ef-details {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transform: translateY(20px);
    transition: all var(--ps-speed) ease-in-out;
}

.ps-557589ef-card:hover .ps-557589ef-details,
.ps-557589ef-card.is-active .ps-557589ef-details {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    transform: translateY(0);
    margin-top: 15px;
}

.ps-557589ef-card:hover .ps-557589ef-title,
.ps-557589ef-card.is-active .ps-557589ef-title {
    opacity: 1;
}

.ps-557589ef-desc {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-557589ef-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ps-557589ef-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .ps-557589ef-container {
        flex-direction: column;
    }
    .ps-557589ef-card:hover,
    .ps-557589ef-card.is-active {
        flex: 3;
    }
    .ps-557589ef-content {
        padding: 20px;
    }
    .ps-557589ef-title {
        white-space: normal;
        font-size: 20px;
    }
}
