.wb-expander {
    display: flex;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    gap: 4px;
}

.wb-expander-panel {
    position: relative;
    flex: 0 0 72px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-color: #1a2332;
    transition: flex .5s cubic-bezier(.4, 0, .2, 1);
}

.wb-expander-panel.is-active {
    flex: 1 1 auto;
    cursor: default;
}

.wb-expander-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.25) 100%);
    transition: background .4s;
    z-index: 0;
}

.wb-expander-panel.is-active::before {
    background: linear-gradient(160deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.18) 100%);
}

.wb-expander-title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    z-index: 1;
    transition: opacity .25s;
}

.wb-expander-panel.is-active .wb-expander-title {
    opacity: 0;
    pointer-events: none;
}

.wb-expander-title span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

.wb-expander-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s .12s;
    z-index: 1;
}

.wb-expander-panel.is-active .wb-expander-content {
    opacity: 1;
    pointer-events: auto;
}

.wb-expander-content h3 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.wb-expander-text {
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 26px;
}

.wb-expander-text p {
    margin: 0 0 8px;
}

.wb-expander-cta {
    display: inline-block;
    background: #fff;
    color: #1a2332;
    padding: 11px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background .2s, color .2s;
}

.wb-expander-cta:hover {
    background: #f0a500;
    color: #fff;
}

@media (max-width: 768px) {
    .wb-expander {
        flex-direction: column;
        min-height: unset;
        gap: 6px;
    }
    .wb-expander-panel {
        flex: none !important;
        min-height: 58px;
        transition: min-height .45s cubic-bezier(.4, 0, .2, 1);
    }
    .wb-expander-panel.is-active {
        min-height: 360px;
    }
    .wb-expander-title {
        align-items: center;
        justify-content: flex-start;
        padding: 0 20px;
    }
    .wb-expander-title span {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: .9rem;
    }
    .wb-expander-content {
        padding: 28px 22px;
    }
    .wb-expander-content h3 {
        font-size: 1.2rem;
    }
}
