/* ===

Theme Name: SLE
Version: 1.2.0
Description: The Template is created for TemplateMonster
Author: Koval Web

*=== */
.tabs {
    position: relative;
    font-size: 1.125rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--heading-font-family), sans-serif;
    color: var(--text);
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tabs-nav li {
    position: relative;
    width: 100%;
    padding: 1.5rem 1rem;
    cursor: pointer;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: all 0.2s;
}

.tabs-nav li.active, .tabs-nav li:hover {
    color: var(--accent);
}

.tabs-nav li.active {
    pointer-events: none;
}

.tabs-item {
    display: none;
    padding-top: 2rem;
}

.tabs-item.active {
    display: block;
}

@media (min-width: 480px) {
    .tabs-nav li {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .tabs-vertical .tabs-item {
        padding-top: 0;
    }

    .tabs-vertical .tabs-nav {
        border: none;
    }

    .tabs-vertical .tabs-nav li {
        border: none;
        width: 100%;
        padding: 1rem 0.5rem 1rem 0;
    }

    .tabs-vertical .tabs-nav li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1.25rem;
        height: 2px;
        margin-top: -1px;
        transform: scaleX(0);
        transform-origin: left center;
        background-color: var(--accent);
        transition: all 0.2s;
    }

    .tabs-vertical .tabs-nav li span {
        display: block;
        transform: none;
        transition: all 0.2s;
    }

    .tabs-vertical .tabs-nav li.active::before {
        transform: scaleX(1);
    }

    .tabs-vertical .tabs-nav li.active span {
        transform: translateX(1.75rem);
    }
}

@media (min-width: 1024px) {
    .tabs-nav {
        border-left: none;
    }

    .tabs-nav li {
        width: auto;
        margin-right: 2.5rem;
        border: none;
        padding: 1.5rem 0;
    }

    .tabs-nav li::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -1px;
        width: 0;
        height: 3px;
        background-color: var(--accent);
        transform: translateX(-50%);
        transition: all 0.2s;
    }

    .tabs-nav li:last-child {
        margin-right: 0;
    }

    .tabs-nav li.active::after, .tabs-nav li:hover::after {
        width: 100%;
    }

    .tabs-vertical .tabs-nav li {
        margin: 0;
    }

    .tabs-vertical .tabs-nav li::after {
        content: none;
    }
}