

.page-template-timeline .site-inner .wrap {
    max-width: 100%;
}

.t-wrap {
    /* max-width: 1200px; */
    margin: auto;
}

#intro {
    padding: 50px 20px;
}

.intro-title {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration-color: var(--style-main);
    font-family: var(--bold-font);
    font-size: 50px;
}

#intro p {
    text-align: center;
    margin-bottom: 10px;
}

/* TIMELINE */

.fade-down {
    height: 50px;
    width: 100%;
    background: linear-gradient(180deg, rgb(255 255 255) 20%, rgba(0,0,0,0) 100%);

    position: absolute;
    top: 0;
    left: 0;
    z-index: 60;
}

.fade-up {
    height: 50px;
    width: 100%;
    background: linear-gradient(0deg, rgb(255 255 255) 20%, rgba(0,0,0,0) 100%);

    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 60;
}

#timeline {
    padding: 100px 20px;
    position: relative;
}

#timeline::before {
    content: "";
    display: block;
    height: 100%;
    width: 7px;
    background: var(--style-main);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translatex(-50%);
    animation: lineDown 6s;
}


@keyframes lineDown {
    0% {
        height: 0%;
    }    

    100% {
        height: 100%;
    }
}

.timeline {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-row {
    display: flex;
    width: 100%;
    position: relative;
    gap: 100px;
}

.time-row img {
    height: 200px;
    width: 200px;
    border-radius: 100%;
    object-fit: cover;
    border: 4px solid var(--style-main);
}

.time-row:nth-of-type(even) {
    flex-direction: row-reverse;
}

.dot {
    content: "";
    display: block;
    height: 32px;
    width: 32px;
    background: var(--style-main);
    border-radius: 100%;

    position: absolute;

    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.time-text, .time-image {
    width: 50%;
}

.time-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-row:nth-of-type(even) .time-text {
    flex-direction: row-reverse;
}


.bubble {
    width: max(80%, 400px);
    background: white;
    color: black;
    position: relative;
    flex-grow: 1;
}

.bubble-line {
    content: "";
    display: block;
    height: 5px;
    background: var(--style-main);
    width: max(10%, 50%);
    flex-shrink: 1;
}

.time-title {
    color: var(--white);
    background: var(--style-main);
    padding: 10px;
    font-family: var(--bold-font);
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
}

.time-content {
    padding-inline: 20px;
}

.time-subtitle {
    text-align: center;
    font-weight: 500;
    font-size: 24px;
}

.bubble li {
    margin: 0px;
    line-height: 20px;
    font-size: 16px;
}

.bubble ul {
    padding-left: 30px;
    padding-top: 10px;
    margin-bottom: 20px;
}

.bubble p {
    line-height: 1.2;
    font-size: 16px;
    font-weight: 500;
}

.bubble li {
    font-family: var(--thin-font);
    line-height: 20px;
    font-size: 16px;
    list-style-type: disc;
}

.time-image {
    display: flex;
    align-items: center;
}

.time-row:nth-of-type(even) .time-image {
    justify-content: flex-end;
}

.bubble img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 0px;
}




@media(max-width: 768px) {
    #intro {
        padding-block: 20px;
    }

    
    .timeline {
        gap: 80px;
    }
    
    .intro-title {
        font-size: 35px;
    }

    .bubble-line {
        display: none;
    }

    .bubble li {
        text-align: left;
    }

    .time-title {
        font-size: 16px;
    }

    .time-subtitle {
        font-size: 18px;
    }

    .time-row {
        flex-direction: column-reverse!important;
        gap: 20px;
    }

    .time-text {
        flex-grow: 1;
        width: 100%;
    }

    .time-image {
        width: 100%;
        justify-content: center!important;
    }

    .time-row img {
        width: 150px;
        height: 150px;
    }

    .time-row:nth-of-type(odd) .bubble::before {
        left: initial;
        right: 100%;
        clip-path: polygon(100% 0, 100% 100%, 0 50%);
    }

    .dot {
        margin-left: -35px;
        border-radius: 0px;
        height: 5px;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    #timeline::before {
        left: 0;
        transform: none;
    }

    
}

@media(max-width: 500px) {
    .time-title {
        font-size: 20px;
    }

    .bubble p {
        font-size: 14px;
    }
}