.ha-eaea5c0c-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 450px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.ha-eaea5c0c-item {
    position: relative;
    display: flex;
    flex: 0 0 60px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 400ms ease;
    border-radius: 0;
    max-width: 100%;
}

.ha-eaea5c0c-item.ha-eaea5c0c-active {
    flex: 1 1 0%;
}

/* Tab / Label */
.ha-eaea5c0c-tab {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    min-height: 100%;
    cursor: pointer;
    transition: background 300ms ease, filter 300ms ease;
    border: 3px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
}

/* Active tab should not stretch full width */
.ha-eaea5c0c-item.ha-eaea5c0c-active .ha-eaea5c0c-tab {
    width: auto;
    flex: 0 0 auto;
    min-width: 60px;
}

.ha-eaea5c0c-tab-label {
    display: block;
    color: var(--ha-tab-color, #ffffff);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* Content Panel */
.ha-eaea5c0c-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    opacity: 0;
    transition: opacity 400ms ease;
    max-width: 100%;
}

.ha-eaea5c0c-item.ha-eaea5c0c-active .ha-eaea5c0c-content {
    opacity: 1;
}

/* Background Image */
.ha-eaea5c0c-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Overlay */
.ha-eaea5c0c-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ha-overlay, rgba(0,0,0,0.5));
    z-index: 1;
}

/* Content Inner */
.ha-eaea5c0c-content-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.ha-eaea5c0c-content-heading {
    margin: 0 0 10px 0;
    color: var(--ha-content-color, #ffffff);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.ha-eaea5c0c-content-text {
    margin: 0;
    color: var(--ha-content-color, #ffffff);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

/* WYSIWYG content inherits color */
.ha-eaea5c0c-content-text p,
.ha-eaea5c0c-content-text ul,
.ha-eaea5c0c-content-text ol,
.ha-eaea5c0c-content-text li,
.ha-eaea5c0c-content-text h1,
.ha-eaea5c0c-content-text h2,
.ha-eaea5c0c-content-text h3,
.ha-eaea5c0c-content-text h4,
.ha-eaea5c0c-content-text h5,
.ha-eaea5c0c-content-text h6,
.ha-eaea5c0c-content-text a,
.ha-eaea5c0c-content-text span,
.ha-eaea5c0c-content-text blockquote {
    color: inherit;
}

.ha-eaea5c0c-content-text p:last-child {
    margin-bottom: 0;
}

.ha-eaea5c0c-content-text a {
    text-decoration: underline;
}

/* Hover effect on collapsed tabs */
.ha-eaea5c0c-item:not(.ha-eaea5c0c-active) .ha-eaea5c0c-tab:hover {
    filter: brightness(1.15);
}

/* Focus styles for accessibility */
.ha-eaea5c0c-tab:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 767px) {
    .ha-eaea5c0c-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 400px;
        overflow-x: hidden;
    }

    .ha-eaea5c0c-item {
        flex: 0 0 50px;
        flex-direction: column;
    }

    .ha-eaea5c0c-item.ha-eaea5c0c-active {
        flex: 1 1 300px;
    }

    .ha-eaea5c0c-tab {
        flex: 0 0 50px;
        width: 100%;
        min-height: 50px;
        flex-direction: row;
    }

    .ha-eaea5c0c-item.ha-eaea5c0c-active .ha-eaea5c0c-tab {
        width: 100%;
    }

    .ha-eaea5c0c-tab-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
}
