/* -------------- Awal Section Head -------------- */

.head {
    background-image: url('/img/bgjourney.png');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    padding: 10%;
}

.head h1 {
    font-size: 70px;
    font-weight: 700;
    margin: 70px 0 80px 80px;
    padding: 110px;
    background: linear-gradient(-45deg, rgba(7, 2, 118, 1), rgba(4, 54, 220, 1), rgba(7, 2, 118, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.head img {
    width: 120px;
    height: 120px;
    margin-top: 50px;
}

/* -------------- Akhir Section Head -------------- */

/* -------------- Awal Section Timeline -------------- */
  
.timeline {
    position: relative;
    background-image: url('/img/bgtimeline.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    z-index: -1;
    width: 100%;
    height: auto;
    padding-bottom: 40px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    min-height: 100%;
    background: linear-gradient(-45deg, rgba(7, 2, 118, 1), rgba(4, 54, 220, 1), rgba(7, 2, 118, 1));
    transform: translateX(-50%);
    z-index: -1;
}
.timeline-item {
    position: relative;
    list-style-type: none;
    width: 4px;
    margin: 0 auto;
    padding-top: 35px;
    min-height: 90px;
}
.timeline-item + .timeline-item {
    margin-top: 70px;
}
.timeline-item::after {
    background: linear-gradient(-45deg, rgba(7, 2, 118, 1), rgba(4, 54, 220, 1), rgba(7, 2, 118, 1));
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -9px;
    z-index: 2;
}
.timeline-item time {
    position: absolute;
    top: -5px;
    font-weight: bold;
    font-size: 28px;
    padding: 4px 8px;
}
.timeline-item:nth-child(odd) time {
    right: 40px;
    top: 50%;
}
.timeline-item:nth-child(even) time {
    left: 40px;
    top: 50%;
}
.timeline-item div {
    position: relative;
    width: 480px;
    padding: 12px 15px;
    border-radius: 15px;
    background: #e0e0e0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 15px;
}
.timeline-item:nth-child(odd) div {
    left: 35px;
    transform: translateX(40px);
}
.timeline-item:nth-child(even) div {
    left: -515px;
    transform: translateX(-40px);
}
.timeline-item div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
.timeline-item.show div {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}
.timeline-item div img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    object-fit: cover;
}
.timeline-item div:hover img {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 123, 255, 0.3);
}
.timeline-item div p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

/* -------------- Akhir Section Timeline -------------- */

@media (max-width: 480px) {
    section {
        padding: 20px 20px;
    }

    /* -------------- Awal Section Head -------------- */

    .head {
        background-position: center;
        padding: 20px 20px;
    }

    .head h1 {
        font-size: 40px;
        margin: 0;
        padding: 80% 0;
    }

    .head img {
        display: none;
    }

    /* -------------- Akhir Section Head -------------- */

    /* -------------- Awa, Section Timeline -------------- */

    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-top: 20px;
        min-height: 80px;
        font-size: 14px;
    }
    
    .timeline-item::after {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-item time {
        left: 40px;
        top: -30px;
        font-size: 24px;
        color: #0000CC;
        position: absolute;
    }
    
    .timeline-item:nth-child(odd) time,
    .timeline-item:nth-child(even) time {
        left: 40px;
        top: -30px;
        right: auto;
    }
    
    .timeline-item div {
        width: 100%;
        max-width: calc(100% - 70px);
        margin-top: 40px;
    }
    
    .timeline-item:nth-child(odd) div,
    .timeline-item:nth-child(even) div {
        left: 0;
        transform: translateX(0);
    }
    
    .timeline-item + .timeline-item {
        margin-top: 50px;
    }
    
    .timeline-item div img {
        display: none;
    }
    
    .timeline-item.show div {
        transform: translateX(0);
    }

    /* -------------- Akhir Section Timeline -------------- */
}

@media (min-width: 481px) and (max-width: 768px) {
    section {
        padding: 30px 25px;
    }

    /* -------------- Awal Section Head -------------- */

    .head {
        background-position: center;
        padding: 20% 0 10% 0;
    }

    .head h1 {
        font-size: 50px;
        margin: 40px 0 60px 40px;
        padding: 60px;
    }

    .head img {
        width: 90px;
        height: 90px;
        margin-top: 30px;
    }

    /* -------------- Akhir Section Head -------------- */

    /* -------------- Awal Section Timeline -------------- */
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-top: 25px;
        min-height: 85px;
    }
    
    .timeline-item::after {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-item time {
        left: 50px;
        top: -25px;
        font-size: 28px;
        color: #0000CC;
        position: absolute;
    }
    
    .timeline-item:nth-child(odd) time,
    .timeline-item:nth-child(even) time {
        left: 50px;
        top: -25px;
        right: auto;
    }
    
    .timeline-item div {
        width: 100%;
        max-width: calc(100% - 80px);
        margin-top: 30px;
    }
    
    .timeline-item:nth-child(odd) div,
    .timeline-item:nth-child(even) div {
        left: 0;
        transform: translateX(0);
    }
    
    .timeline-item + .timeline-item {
        margin-top: 60px;
    }
    
    .timeline-item div img {
        width: 120px;
        height: auto;
    }
    
    .timeline-item.show div {
        transform: translateX(0);
    }

    /* -------------- Akhir Section Timeline -------------- */
}

@media (min-width: 769px) and (max-width: 1024px) {
    section {
        padding: 35px 30px;
    }

    /* -------------- Awal Section Head -------------- */

    .head {
        background-position: center;
        padding: 15% 0 5% 0;
    }

    .head h1 {
        font-size: 55px;
        margin: 50px 0 70px 60px;
        padding: 80px;
    }

    .head img {
        width: 100px;
        height: 100px;
        margin-top: 40px;
    }

    /* -------------- Akhir Section Head -------------- */

    /* -------------- Awal Section Timeline -------------- */
    
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        width: 4px;
        margin: 0 auto;
        padding-top: 30px;
        min-height: 85px;
    }
    
    .timeline-item::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item time {
        font-size: 26px;
    }
    
    .timeline-item:nth-child(odd) time {
        right: 40px;
        top: 50%;
    }
    
    .timeline-item:nth-child(even) time {
        left: 40px;
        top: 50%;
    }
    
    .timeline-item div {
        width: 380px;
        padding: 12px;
    }
    
    .timeline-item:nth-child(odd) div {
        left: 30px;
    }
    
    .timeline-item:nth-child(even) div {
        left: -415px;
    }
    
    .timeline-item + .timeline-item {
        margin-top: 65px;
    }
    
    .timeline-item div img {
        width: 140px;
    }
    
    .timeline-item div p {
        font-size: 14px;
    }

    /* -------------- Akhir Section Timeline -------------- */
}
