.ha-accordion {
    display: flex;
    column-gap: 20px;
    height: auto;
    height: 476px;
}

.ha-panel {
    /* flex: 1; */
    display: flex;
    flex-direction: row;
    transition: flex 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    background: var(--global-palette9);
    position: relative;
    min-width: 50px;
}
.ha-panel.ha-open .ha-panel-title {
    display: none;   
}
.ha-panel.ha-open {
    flex: 4;
}
.ha-panel-content {
    background: var(--global-palette9);
    padding: 20px;
    display: none;
    flex: 1;
    overflow-y: auto;
    border-bottom: 6px solid var(--global-palette1);
}
.ha-panel.ha-open .ha-panel-content {
    display: block;
}
.ha-panel .ha-panel-content > * {
    opacity: 0;
}
.ha-panel.ha-open .ha-panel-content > * {
    opacity: 1;
    animation-name: vert-accordion-opacity;
    animation-duration: 1.5s;
}
@keyframes vert-accordion-opacity {
  0%   {opacity: 0;}
  25%  {opacity: 0;}
  100% {opacity: 1;}
}
.ha-panel.ha-open .ha-panel-content > img {
    margin-bottom: 10px;
}

@media (min-width: 1025px) {
    .ha-panel.ha-open .ha-panel-content > ul {
        max-width: 60%;
    }
}
.ha-panel-content img {
    max-width: 33.33%;
}
.ha-panel-content .ha-panel-heading img {
    max-width: auto;
}
@media (max-width: 767px) {
    .ha-accordion {
        height: auto;
    }
    .ha-panel-title {
        height: 60px;
    }
    .ha-accordion .ha-panel-title .ha-title-text {
        margin: 15px 0;
    }
    .ha-panel-content img {
        width: 100%;
        max-width: 100%;
        float: none;
        margin: 0;
    }
    .ha-panel-content .ha-panel-heading img {
        width: auto;
    }
}

.ha-panel.active .ha-panel-content {
    display: block;
}
@media (min-width: 768px) {
    .ha-panel.active .ha-panel-content {
        position: absolute;
        height: 100%;
    }
}

.ha-panel-title {
    background: var(--global-palette1);
    border-radius: 0;
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--global-palette9);
    font-weight: bold;
    flex-shrink: 0;
    height: 100%;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding: 10px 0;
}
.ha-panel.active .ha-panel-title {
    display: none;
}
.ha-accordion .ha-panel-title .ha-title-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-align: center;
    padding-top: 80px;
    color: var(--global-palette9);
    font-size: 1.75rem;
    line-height: 1;
}

.ha-panel-title-number {
    writing-mode: horizontal-tb;
    font-weight: normal;
    text-align: center;
    position: absolute;
    bottom: 5px;
    padding-bottom: 15px;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--global-palette1);
}
.ha-accordion .ha-panel-content h2,
.ha-accordion .ha-panel-content h3,
.ha-accordion .ha-panel-content h4 {
    margin-top: 0;
    font-size: 1.75rem;
}
.ha-accordion .ha-panel-content ul {
    float: left;
    margin-top: 0;
    list-style: none;
}
.ha-accordion .ha-panel-content ul li {
    margin-bottom: 8px;
    position: relative;
}
.ha-accordion .ha-panel-content ul li::before {
    content: '•';
    position: absolute;
    left: -25px;
    top: -16px;
    color: var(--global-palette1);
    font-size: 50px;
    line-height: 1;
}
.ha-accordion .ha-panel-content p {
    margin-bottom: 20px;
}
.ha-accordion .ha-panel-title .ha-title-text {
    font-size: 1.5rem;
    padding-top: 56px;
}
@media (max-width: 429px) {
    .ha-accordion .ha-panel-title .ha-title-text {
        font-size: 1.125rem;
    }
}
.ha-panel-title {
    padding: 20px 0 10px;
}
.ha-panel-heading {
    display: flex;
    align-items: flex-start;
    column-gap: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .ha-panel-heading {
        align-items: center;
    }
    .ha-accordion {
        flex-direction: column;
        row-gap: 16px;
    }
    .ha-panel {
        flex-direction: column;
    }
    .ha-panel-content {
        padding: 16px;
    }
    .ha-panel-title {
        width: 100%;
        height: 50px;
    }
    .ha-panel-title {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 20px;
    }
    .ha-accordion .ha-panel-title .ha-title-text,
    .ha-panel-title-number {
        padding-top: 0;
        padding-bottom: 0;
    }
    .ha-panel-title-number {
        padding-left: 25px;
        bottom: auto;
        font-size: 2.25rem;
    }
    .ha-accordion .ha-panel-title .ha-title-text {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        padding-left: 70px;
        padding-top: 0;
        padding-bottom: 0;
        text-align: left;
    }
    .ha-accordion .ha-panel-content h2,
    .ha-accordion .ha-panel-content h3,
    .ha-accordion .ha-panel-content h4 {
        font-size: 1.5rem;
    }
}