/* Container for the timeline */
.timeline-container {
    position: relative;
    padding: 10px;
}

/* Row layout for timeline entries */
.row {
    display: grid;
    grid-template-columns: 80px 100px 1fr;
    margin-bottom: 10px;
    gap: 15px;
}

/* Timeline entry */
.entry {
    margin-bottom: 15px;
    position: relative;
    min-height: 100px;
}

/* Year/date display */
.timespan {
    grid-column: 1;
    font-size: 14px;
    text-align: right;
    padding-right: 15px;
    color: #999;
    margin-right: 10px;
}

/* Add this to create a continuous timeline */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 10px;
    left: 80px;
    width: 2px;
    background-color: #007bff;
    z-index: 0;
}

.ico {
    grid-column: 2;
    vertical-align: top;
    position: relative;
    height: 100%;
    padding-left: 10px;
    padding-right: 15px;
}

.ico img {
    border-radius: 5px;
    width: 100%;
    max-width: 60px;
    margin-left: 5px;
    background-color: #222;
    padding: 5px;
    position: relative;
    z-index: 2;
}

/* Timeline dot */
.entry-dot {
    position: absolute;
    top: 0px;
    left: -34px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #007bff;
    border: 3px solid #171717;
    z-index: 1;
}

/* Description container */
.desc {
    grid-column: 3;
    vertical-align: top;
    font-size: 17px;
    padding-left: 10px;
    padding-bottom: 20px;
    line-height: 1.6;
}

/* Link styling to match your site */
.desc a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desc a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.timeline-container .entry:first-child .entry-dot {
    top: 0px;
}
/* For the last entry, ensure the timeline extends properly */
.timeline-container .entry:last-child {
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .row {
        grid-template-columns: 60px 85px 1fr;
        gap: 5px;
    }
    .timeline-container::before {
        left: 65px;
    }
    .ico img {
        max-width: 60px;
        margin-left: 5px;
    }
    .entry-dot {
        left: -17px;
        width: 10px;
        height: 10px;
    }
    .desc {
        padding-left: 10px;
        font-size: 15px;
    }
    .timespan {
        font-size: 12px;
        padding-right: 5px;
    }
}

/* For very small screens like phones in portrait mode */
@media screen and (max-width: 480px) {
    .row {
        grid-template-columns: 50px 60px 1fr;
    }

    .timeline-container::before {
        left: 55px;
    }
    .ico img {
        max-width: 40px;
    }
    .entry-dot {
        left: -16px;
        width: 8px;
        height: 8px;
    }
    .desc {
        font-size: 14px;
        line-height: 1.4;
    }
}