/* CSS untuk smooth scroll & scrollspy active state */
html {
    scroll-behavior: smooth;
}

.nav-link.active,
.mobile-nav-link.active {
    color: #34d399;
    /* emerald-400 */
}


/* Style untuk custom dropdown */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1.75rem;
    /* Ruang untuk panah */
    padding-left: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    cursor: pointer;
}

/* PERUBAHAN DI SINI: Style untuk Timeline Responsif */

/* Base styles untuk Mobile */
.timeline-line {
    position: absolute;
    z-index: 0;
    width: 0.25rem;
    /* Dibuat lebih tipis */
    height: 100%;
    background-color: #a7f3d0;
    /* emerald-200 */
    top: 0;
    left: 1.75rem;
    /* Disesuaikan posisinya */
    transform: translateX(-50%);
}

.dark .timeline-line {
    background-color: #065f46;
    /* emerald-800 */
}

.timeline-item,
.timeline-item-reverse {
    position: relative;
    padding-bottom: 2rem;
    /* Jarak antar item */
}

.timeline-img {
    position: absolute;
    z-index: 1;
    left: 1.75rem;
    /* Disesuaikan dengan garis */
    transform: translateX(-50%);
    background-color: #f0fdfa;
    /* emerald-50 */
    border-radius: 9999px;
    padding: 0.5rem;
    border: 4px solid #a7f3d0;
    /* emerald-200 */
    /* BARU: Menengahkan ikon di dalam lingkaran */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .timeline-img {
    background-color: #042f2e;
    /* emerald-950 */
    border-color: #065f46;
    /* emerald-800 */
}

.timeline-panel {
    padding-left: 5rem;
    /* Memberi ruang lebih dari garis */
    padding-right: 1rem;
    /* Jarak dari tepi layar */
    width: 100%;
}

/* BARU: Style untuk Carousel Abjad Responsif */
.static-alphabet-display {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Aturan untuk layar medium ke atas (desktop) */
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
    }

    .timeline-img {
        left: 50%;
    }

    .timeline-item,
    .timeline-item-reverse {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .timeline-panel {
        width: calc(50% - 4rem);
        /* Setengah lebar dikurangi jarak */
        padding: 1rem;
        /* Padding internal yang konsisten */
    }

    /* Item standar (kiri) */
    .timeline-item {
        flex-direction: row;
    }

    .timeline-item .timeline-panel {
        text-align: right;
    }

    /* Item terbalik (kanan) */
    .timeline-item-reverse {
        flex-direction: row-reverse;
    }

    .timeline-item-reverse .timeline-panel {
        text-align: left;
    }
}