.history-section {
    padding: 11.11vh 0;
    background: linear-gradient(to top, #d9d9d973 0%, #D9D9D973 30%, #d9d9d973 60%, #ffffff 100%);
    position: relative;
}

.history-section .section-subtitle-with-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.83vw;
    margin-bottom: 2.22vh;
    font-size: 1.3vh;
    font-weight: 600;
    letter-spacing: 0.16vh;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    position: relative;
    width: 100%;
}

.history-section .section-subtitle-with-lines::before,
.history-section .section-subtitle-with-lines::after {
    content: '';
    width: 2.08vw;
    height: 0.05vh;
    background: linear-gradient(90deg, transparent, #000000, transparent);
    border-top: 0.05vh solid #000000;
}

.history-section::after {
    content: 'JDC.JDC.JDC.JDC.JDC.JDC.JDC.JDC.';
    position: absolute;
    bottom: 1.563vw;
    left: 0;
    right: 0;
    width: 100%;
    font-size: 8.203vw;
    font-weight: 900;
    color: rgb(255 255 255 / 22%);
    letter-spacing: 0.002vw;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 62.5vw;
    margin: 0 auto;
    padding: 0 1.04vw;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.104vw;
    background: linear-gradient(180deg, #b3ce3a 0%, #a8c42a 100%);
    transform: translateX(-50%);
    border-radius: 0.052vw;
    opacity: 1;
    animation: drawTimeline 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes drawTimeline {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(0.5);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
}

.timeline-items {
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4.63vh;
    position: relative;
    gap: 2.08vw;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.marker-dot {
    width: 2.5vh;
    height: 2.5vh;
    background: linear-gradient(135deg, #b3ce3a 0%, #9bb832 100%);
    border: 0.156vw solid white;
    border-radius: 50%;
    box-shadow: 0 0.37vh 1.11vh rgba(179, 206, 58, 0.3);
}

.marker-year {
    position: absolute;
    top: 2.344vw;
    left: 50%;
    transform: translateX(-50%);
    background: #b3ce3a;
    color: white;
    padding: 0.8vh 1.4vh;
    border-radius: 1.85vh;
    font-size: 1vh;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    flex: 1;
    max-width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-card {
    background: white;
    border-radius: 1.67vh;
    padding: 2.22vh;
    box-shadow: 0 0.74vh 2.96vh rgba(0, 0, 0, 0.08);
    border: 0.052vw solid rgba(179, 206, 58, 0.1);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-0.37vh);
    box-shadow: 0 1.48vh 4.44vh rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1vw;
}

.card-header h3 {
    font-size: 1.63vh;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.card-year {
    background: linear-gradient(135deg, #b3ce3a, #9bb832);
    color: white;
    padding: 0.8vh 1.4vh;
    border-radius: 1.85vh;
    font-size: 1vh;
    font-weight: 600;
}

.timeline-card p {
    color: #545454;
    font-size: 1.6vh;
    line-height: 1.5;
    margin-bottom: 1.48vh;
}

.card-achievements {
    display: flex;
    gap: 0.625vw;
    flex-wrap: wrap;
}

.achievement {
    background: rgba(179, 206, 58, 0.1);
    color: #b3ce3a;
    padding: 0.6vh 1.4vh;
    border-radius: 1.48vh;
    font-size: 1vh;
    font-weight: 600;
    border: 0.052vw solid rgba(179, 206, 58, 0.2);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .history-section {
        padding: 8vh 6vw 10vh !important;
    }

    .history-section .section-title {
        font-size: 2.5vh !important;
        margin-bottom: 1.2vh !important;
    }

    .history-section .section-subtitle-with-lines {
        font-size: 1.1vh !important;
        gap: 0.8vw !important;
        margin-bottom: 1.5vh !important;
    }

    .history-section .section-subtitle-with-lines::before,
    .history-section .section-subtitle-with-lines::after {
        width: 1.5vw !important;
    }

    .history-section .section-description {
        font-size: 1.2vh !important;
        margin-bottom: 2.5vh !important;
        padding: 0 4vw;
    }

    .timeline-container {
        max-width: 100% !important;
        padding: 0 4vw !important;
    }

    .timeline-line {
        left: 2vw !important;
        width: 0.2vw !important;
    }

    .timeline-item {
        margin-bottom: 3vh !important;
        flex-direction: row !important;
        gap: 2.5vw !important;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-marker {
        left: -2vw !important;
        top: 50% !important;
        transform: translateY(-50%) translateX(-50%) !important;
    }

    .marker-dot {
        width: 2vh !important;
        height: 2vh !important;
        border: 0.15vw solid white !important;
    }

    .marker-year {
        font-size: 0.9vh !important;
        padding: 0.5vh 1vh !important;
        top: 2.5vh !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .timeline-content {
        max-width: calc(100% - 7vw) !important;
        margin-left: 5vw !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 5vw !important;
        margin-right: 0 !important;
    }

    .timeline-card {
        padding: 2vh 2.5vw !important;
        border-radius: 1.2vh !important;
    }

    .card-header {
        margin-bottom: 1.2vh !important;
    }

    .timeline-card .card-header h3 {
        font-size: 1.6vh !important;
        margin-bottom: 0.6vh !important;
    }

    .timeline-card .card-year {
        font-size: 0.9vh !important;
        padding: 0.5vh 1vh !important;
    }

    .timeline-card p {
        font-size: 1.2vh !important;
        line-height: 1.3 !important;
        margin-bottom: 1.2vh !important;
    }

    .card-achievements {
        gap: 0.8vw !important;
    }

    .achievement {
        font-size: 0.9vh !important;
        padding: 0.5vh 1vh !important;
        line-height: 1.1 !important;
    }

    .history-section::after {
        font-size: 6vw !important;
        bottom: 2vw !important;
    }
}
