.achievements {
    text-align: center;
    margin-top: 50px;
}

.achievements h2 {
    font-family: "Space Grotesk";
    font-weight: 700;
    font-size: 40px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 64px;

}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    gap: 60px;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 2px;
    height: calc(100% - 70px);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.2) 90%,
        transparent 90%,
        transparent 100%
    );
    background-size: 10px 20px; /* Дефинира прекъснатия ефект */
    background-repeat: repeat-y;
    top: 10px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    gap: 20px;
    justify-content: flex-end; 
}

.timeline-item img {
    width: 48px;
    height: 48px;
    background: rgba(37, 147, 249, 1);
    padding: 12px;
    border-radius: 0px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item p {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: white;
    max-width: 550px;
}

/* Подреждане на текста вляво и вдясно на таймлайна */
.timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: right;
    padding-right: 620px; /* Увеличено разстояние, за да компенсира max-width */
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: left;
    padding-left: 620px; /* Увеличено разстояние, за да компенсира max-width */
}

/* Мобилна версия */
@media (max-width: 1199px) {
    
    .achievements h2 {
        font-family: "Space Grotesk";
        font-weight: 700;
        font-size: 28px;
        line-height: 110%;
        letter-spacing: -0.02em;
        color: #fff;
        margin-bottom: 40px;
    
    }

    .timeline {
        max-width: 100%;
        gap: 20px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .timeline::before {
        left: 30px;
        top: 20px;
        transform: none;
    }
    
    .timeline-item p {
        margin-bottom: 0px !important;
        font-weight: 400;
        font-size: 18px;
        line-height: 140%;
        height: 48px;

    }

    .timeline-item {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
        padding-right: 0;
        padding-left: 50px;
    }

    .timeline-item img {
        width: 48px;
        height: 48px;
        padding: 10px;
        left: 5%;
    }
}
