/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"); */

/* Add this to your custom CSS file */

@media (max-width: 767px) {
    .pl-90 {
        padding-left: 0 !important;
        margin-left: 10px;
    }
}

/* .section SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.title-bordered {
    position: relative;
    padding: 10px 12px 10px 16px;
}

.title-bordered::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tg-color-primary);
}

.timeline-title {
    padding-left: 50px;
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.timeline {
    position: relative;
    white-space: nowrap;
    padding: 0 10px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    padding-left: 90px;
}

.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 30px;
    width: 100px;
    z-index: 2;
}

.timeline ol::-webkit-scrollbar {
    display: none; /* Safari dan Chrome */
}

.timeline ol::-webkit-scrollbar-thumb,
.timeline ol::-webkit-scrollbar-track {
    border-radius: 92px;
}

.timeline ol::-webkit-scrollbar-thumb {
    background: var(--tg-theme-primary);
}

.timeline ol::-webkit-scrollbar-track {
    background: var(--yellow);
}

.timeline ol {
    font-size: 0;
    padding: 395px 0;
    transition: all 1s;
    overflow-x: scroll;
    /* scroll-snap-type: x mandatory; */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    scroll-behavior: smooth;
}

/* Add these CSS rules */
.timeline ol {
    cursor: grab;
}

.timeline ol.dragging {
    cursor: grabbing;
    scroll-behavior: smooth;
}

.timeline ol li {
    position: relative;
    display: inline-block;
    list-style-type: none;
    width: 160px;
    height: 5px;
    background: var(--tg-color-primary);
    /* scroll-snap-align: start; */
}

.timeline ol li:last-child {
    width: 340px;
}

.timeline ol li:not(:first-child) {
    margin-left: 14px;
}

.timeline ol li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 1px);
    bottom: 0;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--tg-color-primary);
    z-index: 1;
}

.timeline ol li div {
    position: absolute;
    left: calc(100% + 6px);
    width: 370px;
    padding: 15px;
    font-size: 0.9rem;
    white-space: normal;
    color: var(--tg-color-primary);
    border-radius: 0 10px 10px 10px;
    overflow: visible;
}
.timeline ol li div p {
    margin-top: 20px;
    width: 330px;
    word-wrap: break-word;
    font-size: medium;
}

.timeline ol li div::before {
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ol li:nth-child(odd) div {
    top: 5px;
    transform: translateY(-100%);
    border-radius: 10px 10px 10px 0;
    border-left: 2px solid #989395;
}

.timeline ol li:nth-child(odd) div::before {
    top: 100%;
    border-width: 8px 8px 0 0;
    border-color: var(--white) transparent transparent transparent;
}

.timeline ol li:nth-child(even) div {
    top: calc(100% + 16px);
    border-left: 2px solid #989395;
}

.timeline ol li:nth-child(even) div::before {
    top: -8px;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent var(--white);
}

.timeline time {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    background: var(
        --tg-color-primary
    ); /* Menggunakan gradien sebagai background */
    -webkit-background-clip: text; /* Memotong background sesuai teks */
    -webkit-text-fill-color: transparent; /* Membuat teks transparan agar gradien terlihat */
}

.timeline li > div {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
    scroll-snap-type: none;
}

/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 800px) {
    .timeline-title {
        padding-left: 10px;
    }

    .timeline {
        display: block;
        padding-left: 10px;
    }

    .timeline::before,
    .timeline::after {
        width: 50px;
    }

    .timeline::before {
        left: 0;
    }
    .timeline ol li:first-child {
        width: 20px;
    }
}
