.ece-cards-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.ece-card {
    height: 100%;
    min-width: 40px;
    transition: flex-basis 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                flex-grow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: flex-basis, flex-grow;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ece-card:last-child {
    margin-right: 0 !important;
}

.ece-card-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.ece-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.ece-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 2;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ece-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.ece-card.ece-card-active .ece-card-title,
.ece-card.ece-card-default-open .ece-card-title {
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
    white-space: normal;
    margin-bottom: 20px;
    font-size: 32px;
}

.ece-card-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    max-height: 0;
    overflow: hidden;
}

.ece-card.ece-card-active .ece-card-text,
.ece-card.ece-card-default-open .ece-card-text {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
}

.ece-card.ece-card-active .ece-card-content,
.ece-card.ece-card-default-open .ece-card-content {
    padding: 40px;
}

@media (max-width: 1024px) {
    .ece-cards-container {
        height: 400px;
    }
    
    
    .ece-card-title {
        font-size: 20px;
    }

    .ece-card.ece-card-active .ece-card-title {
        font-size: 28px;
    }
    
    .ece-card-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .ece-cards-container {
        flex-direction: column;
        height: auto;
        min-height: 400px;
    }
    
    .ece-card {
        width: 100%;
        height: 80px;
        margin-right: 0 !important;
    }
    
    .ece-card:last-child {
        margin-bottom: 0 !important;
    }
    
    .ece-card.ece-card-active {
        height: 300px;
    }

    .ece-card-title {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-size: 20px;
    }
    
    .ece-card.ece-card-active .ece-card-title {
        font-size: 24px;
    }

    .ece-card-content {
        padding: 20px;
    }

    .ece-card.ece-card-active .ece-card-content {
        padding: 30px;
    }
}

.ece-card-text p {
    margin: 0 0 15px 0;
}

.ece-card-text p:last-child {
    margin-bottom: 0;
}

.ece-card-text ul,
.ece-card-text ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.ece-card-text li {
    margin-bottom: 8px;
}

.ece-card-text strong {
    font-weight: 700;
}

.ece-card-text em {
    font-style: italic;
}
