/* === TEXT ALIGNMENT === */
.text-align-left {
    text-align: left;
}
.text-align-right {
    text-align: right;
}
.text-align-center {
    text-align: center;
}
.text-align-justify {
    text-align: justify;
}

/* === MAIN TIMELINE CONTAINER === */
.time-line-widget-box-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    margin-top: 20px;
}

.time-line-widget-box-container > .timeline__box:nth-child(odd) {
    flex-direction: row-reverse;
}

.time-line-widget-box-container > .timeline__box:nth-child(odd) .timeline__icon-container {
    display: flex;
    justify-content: start;
}

.time-line-widget-box-container > .timeline__box:nth-child(even) .timeline__icon-container {
    display: flex;
    justify-content: end;
}

/* === TIMELINE CENTER LINE === */
.time-line-center-line {
    position: absolute;
    background-color: #f1f1f1;
    width: 4px;
    top: 20px;
    bottom: 20px;
    left: calc(50% - 2px);
}

.time-line-center-line::after {
    content: '';
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    z-index: 10;
    transition: top 0.1s ease;
}

.time-line-center-line::before {
    height: var(--fill-height, 0%);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: darkblue;
    z-index: 1;
    transition: height 0.1s ease;
}

/* === SCROLL CIRCLE ANIMATION === */
.scroll-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: darkblue;
    border-radius: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: top 0.1s ease, opacity 0.1s ease;
    animation: pulse 1s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* === TIMELINE BOX & ITEMS === */
.timeline__box {
    display: flex;
    gap: 80px;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.timeline__box.active {
    filter: grayscale(0);
}

.timeline__icon-container {
    width: 50%;
    align-items: center;
}

.timeline__content-container {
    width: 50%;
}

.timeline__content-container h3 {
    width: 100%;
    align-self: stretch;
}

/* === RESPONSIVE === */
@media screen and (max-width: 767px) {
    .time-line-widget-box-container {
        gap: 12px;
        padding-right: 24px;
    }

    .time-line-widget-box-container .timeline__box {
        flex-direction: row !important;
        gap: 20px;
    }

    .timeline__icon-container {
        width: 30%;
        justify-content: end !important;
    }

    .timeline__content-container {
        width: 70%;
    }

    .time-line-center-line {
        right: 12px;
        left: auto;
    }
}
