.custom-tabs {
    display: flex;
    gap: 30px;
    margin: 20px 0 100px;
    width: 100%;
}

.tab-nav {
    max-width: 313px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-link {
    font-family: Karla;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.5px;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding: 10px 15px;
    background: #40339308;
    color: #403393 !important;
    border: 1px solid transparent;
    text-align: left;
    transition: background 0.3s, color 0.3s;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.tab-link svg {
    margin-left: 10px;
}

.tab-link:hover {
    background: #40339326;
    color: #403393;
}

.tab-link.active {
    background: #403393;
    color: #ffffff !important;
}

.tab-content {
    flex: 1;
    padding: 0px clamp(0px,2vw,30px);
    border-left: 2px solid #403393;
    background: #fff;
    min-height: 90vh;
}

@media (max-width: 998px) {
    .tab-content {
        min-height: auto;
    }
}

.tab-pane {
    display: none;
}

#open-tab-menu {
    display: none;
    line-height: 100%;
    padding: 10px;
    border: 1px solid #403393;
    z-index: 3;
    position: fixed;
    top: 25%;
    left: 20px;
    transform: translateY(-25%);
    color: #403393;
    border-radius: 10px;
}

@media (max-width: 998px) {
    #open-tab-menu {
        display: flex;
        transition: transform 0.5s ease-in-out 0s, left 0.5s ease-in-out;

        &:hover {
            color: white;
        }

        &:has(+ .tab-nav.open) {
            transform: rotate(180deg) translateY(25%);
            left: calc(100vw - 50px);
        }
    }

    .custom-tabs {
        position: relative;
        gap: 0;

        .tab-nav {
            position: fixed;
            top: 0;
            left: 0;
            background-color: white;
            width: 0;
            transition: width 0.5s ease-in-out 0s, opacity 0.5s ease-in-out 0s;
            height: 100vh;
            max-width: none;
            z-index: 2;
            opacity: 0;
            overflow: hidden;

            &.open {
                width: 100%;
                opacity: 1;
            }
        }
    }
}