.ha-5a162372-container {
    display: flex;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.ha-5a162372-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    cursor: pointer;
    overflow: hidden;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease, padding 0.5s ease;
    position: relative;
    box-sizing: border-box;
}

/* HORIZONTAL ACCORDION STYLES (default row) */
.ha-5a162372-container:not([style*="flex-direction: column"]):not([style*="flex-direction:column"]) .ha-5a162372-card:not(.ha-5a162372-active) {
    flex: 0 0 var(--card-closed-width, 150px);
    padding: 40px 20px;
    align-items: center;
}

.ha-5a162372-container:not([style*="flex-direction: column"]):not([style*="flex-direction:column"]) .ha-5a162372-card.ha-5a162372-active {
    flex: var(--card-open-flex, 5);
    align-items: flex-start;
    justify-content: flex-start;
}

/* VERTICAL ACCORDION STYLES (when set to column) */
.ha-5a162372-container[style*="flex-direction: column"] .ha-5a162372-card:not(.ha-5a162372-active),
.ha-5a162372-container[style*="flex-direction:column"] .ha-5a162372-card:not(.ha-5a162372-active) {
    flex: 0 0 80px;
    padding: 15px 40px;
    align-items: flex-start;
    justify-content: center; /* Centering vertically inside the closed card height in column mode */
}

.ha-5a162372-container[style*="flex-direction: column"] .ha-5a162372-card.ha-5a162372-active,
.ha-5a162372-container[style*="flex-direction:column"] .ha-5a162372-card.ha-5a162372-active {
    flex: 5;
    align-items: flex-start;
    justify-content: flex-start;
}

.ha-5a162372-title-wrapper {
    width: 100%;
    transition: transform 0.4s ease;
}

.ha-5a162372-card:not(.ha-5a162372-active) .ha-5a162372-title-wrapper {
    writing-mode: horizontal-tb;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

.ha-5a162372-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    transition: font-size 0.4s ease, color 0.3s ease;
}

.ha-5a162372-card:not(.ha-5a162372-active) .ha-5a162372-title {
    text-align: center;
}

/* Content hidden when collapsed, expands with sliding logic */
.ha-5a162372-content-wrapper {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.5s ease, margin-top 0.4s ease;
}

.ha-5a162372-card.ha-5a162372-active .ha-5a162372-content-wrapper {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    margin-top: 24px;
}

.ha-5a162372-content {
    line-height: 1.6;
}
