html, body {
    height: 100vh;
    margin: 0;
}

.timeline .swiper-wrapper {
    transition: all 1.5s cubic-bezier(.25,.46,.45,.94);
    opacity: 1;
}

.timeline .swiper-wrapper.updating {
    opacity: 0.2;
    transition: opacity 0.8s ease;
}

.timeline .timeline-year {
    display: block;
    font-style: italic;
    font-size: 28px;
    margin-bottom: 20px;
    transform: translate3d(20px, 0, 0);
    color: #d4a024;
    font-weight: 300;
    opacity: 0;
    transition: all 0.8s ease 0.4s;
    font-family: 'Gudea', sans-serif;
}

body {
    font-family: 'Gudea', sans-serif;
    font-size: 14px;
    background: linear-gradient(120deg, rgba(10,20,40,0.7) 60%, rgba(0,56,168,0.5) 100%);
}

.milestone-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, rgba(10,20,40,0.7) 60%, rgba(0,56,168,0.5) 100%);
    flex-direction: column;
    height: calc(100vh - 80px);
    width: 100vw;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.container {
    width: 100vw;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Timeline */
.timeline {
    width: 100vw;
    height: calc(100vh - 80px);
    background: linear-gradient(120deg, rgba(10,20,40,0.7) 60%, rgba(0,56,168,0.5) 100%);
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

/* Quick Navigation Styles */
.quick-nav-button {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 160, 36, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-nav-button:hover {
    background: rgba(212, 160, 36, 1);
    transform: translateY(-50%) scale(1.1);
}

.quick-nav-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    box-sizing: border-box;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-nav-panel.active {
    right: 0;
}

.quick-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-nav-header h3 {
    color: #d4a024;
    font-family: 'Gudea', sans-serif;
    font-size: 18px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #d4a024;
}

.quick-nav-content {
    max-height: calc(100vh - 100px);
    overflow: hidden;
}

.quick-nav-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 160, 36, 0.6) rgba(255, 255, 255, 0.1);
}

.quick-nav-list::-webkit-scrollbar {
    width: 6px;
}

.quick-nav-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.quick-nav-list::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 36, 0.6);
    border-radius: 3px;
}

.quick-nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 36, 0.8);
}

.quick-nav-item {
    padding: 10px 12px;
    font-size: 14px;
    color: #fff;
    font-family: 'Gudea', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-nav-item:hover {
    background: rgba(212, 160, 36, 0.2);
    color: #d4a024;
}

.quick-nav-item:last-child {
    border-bottom: none;
}

.quick-nav-select {
    display: none;
}

.quick-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.timeline .swiper-container {
    height: 100%;
    width: 100%;
    position: relative;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
}

.timeline .swiper-wrapper { 
    transition: transform 2s cubic-bezier(.68,-0.4,.27,1.34) .2s, opacity .5s ease;
    opacity: 1;
}

.timeline .swiper-wrapper.updating {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.95) translateY(20px);
}

.timeline .swiper-slide {
    position: relative;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.8s cubic-bezier(.25,.46,.45,.94);
}

.timeline .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    transition: all 1s cubic-bezier(.25,.46,.45,.94);
}

.timeline .swiper-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: -115%;
    bottom: -10%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, .7);
    border-radius: 100%;
}

.timeline .swiper-slide-content {
    position: absolute;
    text-align: center;
    width: 80%;
    max-width: 310px;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    font-size: 12px;
    z-index: 2;
    font-family: 'Gudea', sans-serif;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.timeline .swiper-slide-active .swiper-slide-content {
    opacity: 1;
    transition: opacity 0.8s ease 0.8s;
}

.timeline .timeline-year {
    display: block;
    font-style: italic;
    font-size: 28px;
    margin-bottom: 20px;
    transform: translate3d(30px, 20px, 0) scale(0.9);
    color: #d4a024;
    font-weight: 300;
    opacity: 0;
    transition: all 0.6s cubic-bezier(.25,.46,.45,.94) 0.4s;
    font-family: 'Gudea', sans-serif;
}

.timeline .timeline-month {
    font-size: 28px;
    color: #d4a024;
    font-weight: 300;
    font-style: normal;
    margin-left: 8px;
    font-style: italic;
}

.timeline .timeline-title {
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 20px;
    opacity: 0;
    transform: translate3d(30px, 20px, 0) scale(0.9);
    transition: all 0.6s cubic-bezier(.25,.46,.45,.94) 0.6s;
    line-height: 1.2;
    font-family: 'Gudea', sans-serif;
    color: #ffffff;
}

.timeline .timeline-text {
    line-height: 1.5;
    opacity: 0;
    transform: translate3d(30px, 20px, 0) scale(0.9);
    transition: all 0.6s cubic-bezier(.25,.46,.45,.94) 0.8s;
    font-size: 13px;
    font-family: 'Gudea', sans-serif;
}

.timeline .swiper-slide-active .timeline-year {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: all 0.8s cubic-bezier(.25,.46,.45,.94) 1.2s;
}

.timeline .swiper-slide-active .timeline-title {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: all 0.8s cubic-bezier(.25,.46,.45,.94) 1.4s;
}

.timeline .swiper-slide-active .timeline-text {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: all 0.8s cubic-bezier(.25,.46,.45,.94) 1.6s;
}

.timeline .swiper-pagination {
    top: 60px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    z-index: 20;
    gap: 15px;
    font-family: 'Gudea', sans-serif;
    transition: opacity 0.6s ease, transform 0.3s ease;
}

.timeline .swiper-pagination-bullet {
    width: auto !important;
    height: auto !important;
    text-align: center;
    opacity: 1;
    background: rgba(255, 255, 255, .8) !important;
    color: #000 !important;
    margin: 0 !important;
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.6s ease;
    cursor: pointer;
    font-family: 'Gudea', sans-serif;
    user-select: none;
    min-width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline .swiper-pagination-bullet-active {
    background: #d4a024 !important;
    color: #fff !important;
    transform: scale(1.1);
    transition: all 0.6s ease;
}

.timeline .swiper-button-next,
.timeline .swiper-button-prev {
    display: none;
    color: #d4a024;
    pointer-events: auto;
    font-size: medium;
}

.timeline .swiper-container.is-updating {
    opacity: 0 !important;
    transform: scale(0.98); 
    transition: opacity 0.3s ease-out, transform 0.3s ease-out !important;
}


@media screen and (max-width: 767px) {
    .milestone-section {
        height: calc(100vh - 120px);
    }
    
    .container {
        height: calc(100vh - 120px);
    }
    
    .timeline {
        height: calc(100vh - 120px);
    }
    
    /* Mobile Quick Nav */
    .quick-nav-button {
        bottom: 90px !important;
        top: auto;
        left: auto;
        right: calc(50% - 25px) !important;
        transform: none;
    }
    
    .quick-nav-panel {
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: 60vh;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .quick-nav-panel.active {
        bottom: 0;
        right: 0;
    }
    
    .timeline .swiper-button-next,
    .timeline .swiper-button-prev {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px !important;
        height: 50px !important;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        backdrop-filter: blur(10px);
        z-index: 35;
        margin: 0;
        transform: none;
    }
    
    .timeline .swiper-button-prev {
        bottom: 90px !important;
        top: auto !important;
        left: calc(50% - 90px) !important;
        right: auto !important;
    }
    
    .timeline .swiper-button-next {
        bottom: 90px !important;
        top: auto !important;
        left: calc(50% + 40px) !important;
        right: auto !important;
    }
    
    .timeline .swiper-button-prev:hover,
    .timeline .swiper-button-next:hover {
        transform: scale(1.1);
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    /* Fix untuk centering arrow icons */
    .timeline .swiper-button-next:after,
    .timeline .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: 20px !important;
        font-weight: 900;
        line-height: 1;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    
    .timeline .swiper-pagination {
        bottom: 20px !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        width: calc(100vw - 40px) !important;
        max-width: 400px !important;
        justify-content: flex-start !important;
        gap: 8px;
        z-index: 30;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 25px;
        backdrop-filter: blur(10px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 160, 36, 0.6) transparent;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar {
        height: 4px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-thumb {
        background: rgba(212, 160, 36, 0.6);
        border-radius: 2px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 160, 36, 0.8);
    }
    
    .timeline .swiper-pagination-bullet {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 50px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .timeline .swiper-slide-content {
        width: 85%;
        font-size: 11px;
        text-align: center;
        right: 50%;
        top: 45%;
        transform: translate(50%, -50%);
        padding: 0 10px;
    }
    
    .timeline .timeline-year {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .timeline .timeline-month {
        font-size: 22px;
        margin-left: 6px;
    }
    
    .timeline .timeline-title {
        font-size: 18px;
        margin: 0 0 10px;
        line-height: 1.3;
    }
    
    .timeline .timeline-text {
        font-size: 11px;
        line-height: 1.4;
    }
    

    
    .quick-nav-panel {
        top: auto !important;
        bottom: -100% !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 50vh !important;
        border-radius: 15px 15px 0 0 !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        padding: 15px !important;
    }
    
    .quick-nav-panel.active {
        bottom: 0 !important;
        right: 0 !important;
    }
    
    .quick-nav-header h3 {
        font-size: 16px !important;
    }
    
    .quick-nav-list {
        max-height: 350px !important;
    }
    
    .quick-nav-item {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
}

@media  screen and (min-width: 480px) and (max-width: 768px)  {
    .milestone-section {
        height: calc(100vh - 90px);
    }
    
    .container {
        height: calc(100vh - 90px);
    }
    
    .timeline {
        height: calc(100vh - 90px);
    }
    
}
/* Tablet styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .timeline .swiper-slide::after {
        right: -60%;
        bottom: -15%;
        width: 30%;
        height: 100%;
        background-color: rgba(0, 0, 0, .7);
        box-shadow: -300px 0 200px 70vw rgba(0, 0, 0, .7);
        border-radius: 100%;
    }

    .quick-nav-list{
        max-height: 800px;
        overflow-y: auto;
    }

    .timeline .swiper-slide-content {
        right: 25%;
        top: 50%;
        transform: translateY(-50%);
        /* --- DIUBAH: Lebar diperbesar agar lebih full --- */
        width: 450px; 
        /* --- DIUBAH: Font dasar diperbesar agar mudah dibaca --- */
        font-size: 14px; 
        text-align: right;
    }
    
    .timeline .timeline-year {
        margin-bottom: 0;
        font-size: 38px;   
    }
    
    .timeline .timeline-month {
        font-size: 38px;
        margin-left: 10px;
    }
    
    .timeline .timeline-title {
        font-size: 30px;
        margin: 0 0 25px;
    }

    .timeline .timeline-text {
        /* --- DIUBAH: Font teks diperbesar agar proporsional --- */
        font-size: 16px;
    }
    
    .timeline .swiper-pagination { 
        right: 12% !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        font-size: 16px;
        gap: 12px;
    }

    .timeline .swiper-pagination::before {
        content: "";
        position: absolute;
        left: -25px;
        top: 0;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, .2);
    }

    .timeline .swiper-pagination-bullet {
        background: transparent !important;
        color: #d4a024 !important;
        padding: 12px 0 !important;
        border-radius: 0 !important;
        font-size: 16px !important;
    }

    .timeline .swiper-pagination-bullet::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -27.5px;
        width: 5px;
        height: 5px;
        border-radius: 100%;
        background-color: #d4a024;
        transform: scale(0) translateY(-50%);
        transition: .15s;
    }
    
    .timeline .swiper-pagination-bullet-active {
        color: #d4a024 !important;
        background: transparent !important;
        transform: none !important;
    }

    .timeline .swiper-pagination-bullet-active::before { 
        transform: scale(1) translateY(-50%); 
    }
    
    .timeline .swiper-button-next,
    .timeline .swiper-button-prev {
        width: 50px !important;
        height: 50px !important;
        z-index: 100;
        background-color: transparent; 
        display: flex !important;
        justify-content: center;
        align-items: center;
        pointer-events: auto;
    }
    
    .timeline .swiper-button-prev {
        top: 35%;
        left: auto;
        right: 12%;
        margin-bottom: 30px;
        transform: rotate(90deg);
    }
    
    .timeline .swiper-button-prev:hover {
        transform: rotate(90deg) translateY(-3px);
    }
    
    .timeline .swiper-button-next {
        top: auto;
        bottom: 32%;
        left: auto;
        right: 12%;
        margin-top: 30px;
        transform: rotate(90deg);
    }
    
    .timeline .swiper-button-next:hover {
        transform: rotate(90deg) translateY(3px);
    }

    .timeline .swiper-button-next:after,
    .timeline .swiper-button-prev:after{
        font-size: 30px;
    }
}

/* Desktop styles */
@media screen and (min-width: 1025px) {
    .timeline .swiper-slide::after {
        right: -30%;
        bottom: -8%;
        width: 240px;
        height: 50%;
        box-shadow: -230px 0 150px 50vw rgba(0, 0, 0, .7);
    }

    .timeline .swiper-slide-content {
        right: 30%;
        top: 50%;
        transform: translateY(-50%);
        width: 310px;
        font-size: 11px;
        text-align: right;
    }
    
    .timeline .timeline-year {
        margin-bottom: 0;
        font-size: 42px;   
    }
    
     .timeline .timeline-month {
        margin-bottom: 0;
        font-size: 42px;   
    }
    .timeline .timeline-title {
        font-size: 34px;
        margin: 0 0 30px;
    }

    .timeline .timeline-text {
        font-size: 14px;
    }
    
    .timeline .swiper-pagination { 
        right: 15% !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        font-size: 18px;
        gap: 15px;
    }

    .timeline .swiper-pagination::before {
        content: "";
        position: absolute;
        left: -30px;
        top: 0;
        height: 100%;
        width: 1px;
        background-color: rgba(255, 255, 255, .2);
    }

    .timeline .swiper-pagination-bullet {
        background: transparent !important;
        color: #d4a024 !important;
        padding: 15px 0 !important;
        border-radius: 0 !important;
        font-size: 18px !important;
    }

    .timeline .swiper-pagination-bullet::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -32.5px;
        width: 6px;
        height: 6px;
        border-radius: 100%;
        background-color: #d4a024;
        transform: scale(0) translateY(-50%);
        transition: .15s;
    }
    
    .timeline .swiper-pagination-bullet-active {
        color: #d4a024 !important;
        background: transparent !important;
        transform: none !important;
    }

    .timeline .swiper-pagination-bullet-active::before { 
        transform: scale(1) translateY(-50%); 
    }
    
    .quick-nav-list {
        max-height: 500px;
        overflow-y: auto;
    }

    
    .timeline .swiper-button-prev {
        top: 5%;
        left: auto;
        right: 15.4%;
        margin-bottom: 30px;
        transform: rotate(90deg);
    }
    
    .timeline .swiper-button-prev:hover {
        transform: rotate(90deg) translateY(-3px);
    }
    
    .timeline .swiper-button-next {
        top: auto;
        bottom: 3%;
        left: auto;
        right: 15.4%;
        margin-top: 30px;
        transform: rotate(90deg);
    }
    
    .timeline .swiper-button-next:hover {
        transform: rotate(90deg) translateY(3px);
    }

    .timeline .swiper-button-next:after,
    .timeline .swiper-button-prev:after{
        font-size: 30px;
    }

    .timeline .swiper-button-next,
    .timeline .swiper-button-prev {
    width: 40px !important;
    height: 80px !important;
    background-color: transparent; 
    display: flex !important;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    z-index: 100;
    }

}

@media (min-width: 1300px) and (min-height: 900px) {

     .timeline .swiper-button-next {
        top: auto;
        bottom: 22%;
        left: auto;
        right: 15.2%;
        margin-top: 30px;
        transform: rotate(90deg);
    }

      .timeline .swiper-button-prev {
        top: 25%;
        left: auto;
        right: 15.2%;
        margin-bottom: 30px;
        transform: rotate(90deg);
    }
  
} 


@media (min-width: 1440px) and (min-height: 900px) {

     .timeline .swiper-button-next {
        top: auto;
        bottom: 22%;
        left: auto;
        right: 15.2%;
        margin-top: 30px;
        transform: rotate(90deg);
    }

      .timeline .swiper-button-prev {
        top: 25%;
        left: auto;
        right: 15.2%;
        margin-bottom: 30px;
        transform: rotate(90deg);
    }
  
} 

@media (width: 768px) and (height: 1024px) {
  .timeline .swiper-button-next {
    bottom: 27%;
    right: 11.5%;
    transform: rotate(90deg);
  }

  .timeline .swiper-button-prev {
    top: 27%;
    right: 11.5%;
    transform: rotate(90deg);
  }
}

@media (height: 768px) and (width: 1024px) {
  .timeline .swiper-button-next {
    bottom: 20%;
    right: 12%;
    transform: rotate(90deg);
  }

  .timeline .swiper-button-prev {
    top: 20%;
    right: 12%;
    transform: rotate(90deg);
  }
}


@media (max-width: 950px) and (max-height: 450px) {

     .timeline .swiper-button-next {
      
        visibility: hidden;
    }

      .timeline .swiper-button-prev {

        visibility: hidden;
    }

    .html, .body{
        height: 100vh;
        overflow-y: auto;
        padding: 20px;
    }
  
}

/* Mobile dengan tinggi rendah */
@media screen and (max-width: 767px) and (max-height: 750px) {
    .quick-nav-button {
        bottom: 90px !important;
        right: calc(50% - 25px) !important;
    }
    
    .timeline .swiper-pagination {
        bottom: 10px !important;
        padding: 6px 8px !important;
        max-width: 350px !important;
    }
    
    .timeline .swiper-pagination-bullet {
        padding: 4px 8px !important;
        font-size: 9px !important;
        min-width: 40px !important;
    }
    
    .timeline .swiper-button-prev {
        bottom: 90px !important;
        left: calc(50% - 80px) !important;
    }
    
    .timeline .swiper-button-next {
        bottom: 90px !important;
        left: calc(50% + 30px) !important;
    }
    
    .quick-nav-panel {
        height: 45vh !important;
    }
    
    .quick-nav-list {
        max-height: 200px !important;
    }
} 


@media screen and (min-height: 1500px) {
    .quick-nav-list {
        max-height: 1200px;
    }
   
}


@media screen and (max-width: 375px) and (max-height: 695px) {
    .milestone-section {
        height: calc(100vh - 120px);
    }
    
    .container {
        height: calc(100vh - 120px);
    }
    
    .timeline {
        height: calc(100vh - 120px);
    }
    
    /* Mobile Quick Nav - Posisi disesuaikan untuk ukuran kecil */
    .quick-nav-button {
        bottom: 90px !important;
        left: auto;
        right: calc(50% - 25px) !important;
        transform: none;
        width: 50px;
        height: 50px;
        z-index: 40;
    }
    
    .quick-nav-panel {
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: 55vh;
        border-radius: 15px 15px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 12px;
    }
    
    .quick-nav-panel.active {
        bottom: 0;
        right: 0;
    }
    
    .timeline .swiper-button-next,
    .timeline .swiper-button-prev {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px !important;
        height: 50px !important;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        backdrop-filter: blur(10px);
        z-index: 35;
        margin: 0;
        transform: none;
    }
    
    /* Previous button - sejajar dengan quick-nav-button */
    .timeline .swiper-button-prev {
        bottom: 90px !important;
        top: auto !important;
        left: calc(50% - 100px) !important; /* Disesuaikan untuk ukuran 375px */
        right: auto !important;
    }
    
    /* Next button - sejajar dengan quick-nav-button */
    .timeline .swiper-button-next {
        bottom: 90px !important;
        top: auto !important;
        left: calc(50% + 50px) !important; /* Disesuaikan untuk ukuran 375px */
        right: auto !important;
    }
    
    .timeline .swiper-button-prev:hover,
    .timeline .swiper-button-next:hover {
        transform: scale(1.1);
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    /* Fix untuk centering arrow icons */
    .timeline .swiper-button-next:after,
    .timeline .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: 18px !important;
        font-weight: 900;
        line-height: 1;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    
    /* Pagination - disesuaikan untuk layar kecil */
    .timeline .swiper-pagination {
        bottom: 15px !important;
        top: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
        justify-content: flex-start !important;
        gap: 6px;
        z-index: 30;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 160, 36, 0.6) transparent;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar {
        height: 3px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-thumb {
        background: rgba(212, 160, 36, 0.6);
        border-radius: 2px;
    }
    
    .timeline .swiper-pagination::-webkit-scrollbar-thumb:hover {
        background: rgba(212, 160, 36, 0.8);
    }
    
    .timeline .swiper-pagination-bullet {
        padding: 5px 10px;
        font-size: 9px;
        min-width: 45px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Content adjustments untuk layar kecil */
    .timeline .swiper-slide-content {
        width: 90%;
        font-size: 10px;
        text-align: center;
        right: 50%;
        top: 45%;
        transform: translate(50%, -50%);
        padding: 0 8px;
    }
    
    .timeline .timeline-year {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .timeline .timeline-month {
        font-size: 20px;
        margin-left: 5px;
    }
    
    .timeline .timeline-title {
        font-size: 16px;
        margin: 0 0 8px;
        line-height: 1.2;
    }
    
    .timeline .timeline-text {
        font-size: 10px;
        line-height: 1.3;
    }
    
    /* Quick nav panel adjustments */
    .quick-nav-panel {
        top: auto !important;
        bottom: -100% !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 45vh !important;
        border-radius: 12px 12px 0 0 !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        padding: 12px !important;
    }
    
    .quick-nav-panel.active {
        bottom: 0 !important;
        right: 0 !important;
    }
    
    .quick-nav-header h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .quick-nav-list {
        max-height: 200px !important;
    }
    
    .quick-nav-item {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-height: 600px) {
    .quick-nav-button{
        visibility: hidden;
    }
    .swiper-button-next{
        visibility: hidden;
    }
    .swiper-button-prev{
        visibility: hidden;
    }
   
}

/* Landscape very short height: mimic desktop layout scaled down */
@media (max-height: 500px) and (min-width: 768px) {
    .milestone-section, .container, .timeline { height: 100vh !important; }
    .timeline { overflow: hidden; }
    /* Scale down overall typography & spacing */
    .timeline .swiper-slide::after {
        right: -70% !important;          /* sebelumnya -80% */
        width: 45% !important;          /* tambah lebar lingkaran */
        box-shadow: -200px 0 140px 55vw rgba(0,0,0,0.7) !important; /* sebelumnya 45vw */
    }

    .timeline .swiper-slide-content {
        right: 28% !important; /* keep similar desktop anchoring */
    /* Raised more so bottom not clipped */
    top: 32% !important;
    transform: translateY(-50%) !important; /* center around new anchor */
        width: 260px !important;
        font-size: 10px !important;
        text-align: right !important;
    }
    .timeline .timeline-year, .timeline .timeline-month {
        font-size: 30px !important;
        margin-bottom: 0 !important;
    }
    .timeline .timeline-title { font-size: 24px !important; margin: 0 0 14px !important; }
    .timeline .timeline-text { font-size: 11px !important; line-height: 1.35 !important; }
    /* Vertical pagination on right like desktop but tighter */
    .timeline .swiper-pagination {
        right: 12% !important;
        left: auto !important;
        top: -35px !important;
        height: 100% !important;
        width: auto !important;
        transform: none !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 0 !important;
        background: transparent !important;
    }
    .timeline .swiper-pagination::before { /* guideline */
        content: "";
        position: absolute;
        left: -22px;
        top: 0;
        height: 100%;
        width: 1px;
        background: rgba(255,255,255,0.25);
    }
    .timeline .swiper-pagination-bullet {
        background: transparent !important;
        color: #d4a024 !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        min-width: unset !important;
    }
    .timeline .swiper-pagination-bullet::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -24px;
        width: 5px; height: 5px; border-radius: 50%;
        background: #d4a024; transform: scale(0) translateY(-50%);
        transition: .2s;
    }
    .timeline .swiper-pagination-bullet-active::before { transform: scale(1) translateY(-50%); }
    .timeline .swiper-pagination-bullet-active { color:#d4a024 !important; transform:none !important; }
    /* Buttons smaller & repositioned vertically (optional keep) */
    .timeline .swiper-button-prev, .timeline .swiper-button-next {
        display: flex !important;
        position: absolute !important;
        left: auto !important;
        right: 12% !important;
        width: 42px !important; height: 42px !important;
        background: rgba(0,0,0,0.35) !important;
        border-radius: 50%; backdrop-filter: blur(6px);
    }
    .timeline .swiper-button-prev { top: 8%; transform: rotate(90deg); }
    .timeline .swiper-button-next { bottom: 8%; transform: rotate(90deg); }
    .timeline .swiper-button-next:after, .timeline .swiper-button-prev:after { font-size: 22px !important; }
    /* Overlay soften (short height) */
    .timeline .swiper-slide::after { right:-80%; box-shadow:-180px 0 120px 45vw rgba(0,0,0,0.7); }
    .body{
        padding-top: 50px !important;
    }
}

/* Extra fallback for ultra-narrow + short (<768px width) keep centered reduced layout */
@media (max-height: 500px) and (max-width: 767px) {
    .timeline .swiper-button-next, .timeline .swiper-button-prev { display:none !important; }
    .timeline .swiper-pagination { bottom: 8px !important; top:auto !important; }
}
