.tabs-navigation {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 0;
}

.history-neo-tabs__year {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:768px) {
    .tabs-navigation {
        flex-direction: column;
        border-bottom: none;
    }

    /* =========================
   HISTORY TIMELINE (mobile)
   ========================= */
    .history-neo-tabs__nav {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0px 2px;
        scrollbar-width: none;
    }

    .history-neo-tabs__nav::-webkit-scrollbar {
        height: 0;
    }

    .history-neo-tabs__track {
        display: inline-flex;
        flex-wrap: nowrap;
        gap: 14px;
        position: relative;
        padding-bottom: 26px;
    }

    .history-neo-tabs__track::after {
        content: "";
        position: absolute;
        left: calc(10%);
        right: calc(10%);
        bottom: 16px;
        height: 4px;
        background-image: radial-gradient(circle, rgba(36, 70, 150, .35) 2px, transparent 2.5px);
        background-size: 10px 4px;
        background-repeat: repeat-x;
        background-position: left center;
        pointer-events: none;
    }

    .history-neo-tabs__btn {
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 10px 16px 28px;
        border-radius: 999px;
        min-height: 44px;
        position: relative;
        background: #fff;
        white-space: nowrap;
    }

    .history-neo-tabs__year {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -18px;
        font-size: 12px;
        line-height: 1;
        color: rgba(36, 70, 150, .65);
        white-space: nowrap;
        background: var(--main-background);
        padding: 0 6px;
        z-index: 2;
    }

    .history-neo-tabs__btn::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -6px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--main-blue);
        box-shadow: 0 0 0 3px var(--main-blue-secondary__50);
        pointer-events: none;
    }

    .history-neo-tabs__btn--active::after {
        background: var(--main-blue);
    }
}

.spec-neo-tabs__nav,
.history-neo-tabs__nav {
    display: flex;
    flex-wrap: wrap;
}

.spec-neo-tabs__nav {
    gap: 2px;
}

.history-neo-tabs__nav {
    gap: 20px;
}

.spec-neo-tabs__btn,
.history-neo-tabs__btn {
    position: relative;
    padding: 16px 24px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    background: none;
}

.history-neo-tabs__btn:hover {
    color: var(--main-blue-secondary);
}

.spec-neo-tabs__btn:hover {
    color: var(--main-blue-secondary);
}


.spec-neo-tabs__btn--active:hover,
.history-neo-tabs__btn--active:hover {
    border: none;
}

.spec-neo-tabs__content,
.history-neo-tabs__content {
    display: none;
}
.spec-neo-tabs__btn--active{
    color: var(--main-blue) !important;
}
@media (min-width: 1201px) {
    .history-neo-tabs__track {
        display: flex;
        gap: 24px;
    }

    .spec-neo-tabs__btn,
    .history-neo-tabs__btn {
        margin-bottom: -2px;
    }

    .spec-neo-tabs__content--active,
    .history-neo-tabs__content--active {
        display: block;
        background-color: white;
        padding: 36px;
        margin-top: 0px;
        border-end-end-radius: 40px;
        border-top-right-radius: 40px;
        border-end-start-radius: 40px;
        border-top-left-radius: 40px;
    }

    .history-neo-tabs__content--active {
        margin-bottom: 48px;

    }

    .spec-neo-tabs__btn {
        width: 174px;
    }

    .history-neo-tabs__btn {
        width: 210px;
    }

    .spec-neo-tabs__btn--active,
    .history-neo-tabs__btn--active {
        background: white;
        border-color: #fff;
        border-bottom: none;
        border-radius: 40px 40px 0 0;
        margin-bottom: 0;
    }

    .spec-neo-tabs__content:first-of-type.spec-neo-tabs__content--active,
    .history-neo-tabs__content:first-of-type.history-neo-tabs__content--active {
        border-top-left-radius: 0;
    }

    .spec-neo-tabs__btn--active::after,
    .history-neo-tabs__btn--active::after {
        content: '';
        background-image: url('../../../../images/details/tab-right.svg');
        position: absolute;
        width: 100%;
        height: 25px;
        bottom: 0px;
        z-index: 10;
        pointer-events: none;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        border-start-end-radius: 40px;
    }

    .spec-neo-tabs__btn--active::after {
        right: -106px;
    }

    .history-neo-tabs__btn--active::after {
        right: -126px;
    }

    .spec-neo-tabs__btn--active:not(:first-child)::before,
    .history-neo-tabs__btn--active:not(:first-child)::before {
        content: '';
        background-image: url('../../../../images/details/tab-left.svg');
        position: absolute;
        width: 100%;
        height: 25px;
        bottom: 0px;
        z-index: 10;
        pointer-events: none;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        border-start-end-radius: 40px;
    }

    .spec-neo-tabs__btn--active:not(:first-child)::before {
        left: -106px;
    }

    .history-neo-tabs__btn--active:not(:first-child)::before {
        left: -126px;
    }

    .spec-neo-tabs__btn--active::after[data-spec-tab='achieve'] {
        content: '';
        background-image: none;
        background: none;
    }
}

@media (max-width: 1200px) {
    .spec-neo-tabs__btn {
        flex: 1;
    }

    .history-neo-tabs__btn {}

    .spec-neo-tabs__content--active,
    .history-neo-tabs__content--active {
        display: block;
        background-color: white;
        padding: 36px;
        margin-top: 12px;
        border-radius: 40px;
        margin-bottom: 48px;
    }

    .spec-neo-tabs__btn--active,
    .history-neo-tabs__btn--active {
        background: white;
        border-color: #fff;
        border-bottom: none;
        border-radius: 40px;
        margin-bottom: 0;
    }
}