/* Contentor principal */
.custom-timeline-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 0 36px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Contentor com scroll horizontal */
.custom-timeline {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-timeline::-webkit-scrollbar {
    display: none;
}

/* Faixa interna que define a largura real da timeline */
.custom-timeline-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: max-content;
    min-width: 100%;
    padding: 0;
}

/* Linha horizontal contínua, independente dos cartões */
.custom-timeline-track::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 20px;
    right: 20px;
    height: 6px;
    background: #000000;
    z-index: 1;
    pointer-events: none;
}

.timeline-item {
    flex: 0 0 320px;
    padding: 60px 20px 20px 20px;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    border-top: none !important;
    z-index: 2;
    background: transparent;
}

.timeline-marker {
    width: 22px;
    height: 22px;
    background-color: #58ACFA !important;
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 3;
    border-radius: 2px;
}

.timeline-date {
    font-weight: 800;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #000;
}

.timeline-content {
    font-size: 1em;
    color: #444;
    line-height: 1.6;
}

/* Setas de navegação com classes exclusivas do plugin */
.custom-timeline-nav {
    position: absolute !important;
    top: 28px !important;
    bottom: auto !important;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #000;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.custom-timeline-nav-prev {
    left: 0 !important;
    right: auto !important;
}

.custom-timeline-nav-next {
    right: 0 !important;
    left: auto !important;
}

@media (max-width: 767px) {
    .custom-timeline-wrapper {
        padding: 0 32px;
    }

    .timeline-item {
        flex-basis: min(320px, 78vw);
    }

    .custom-timeline-nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
