/* Base CSS */
.hidden {
    opacity: 0;
    transition: all 1s;
}

.show {
    opacity: 1;
}

.timeline-section {
    padding: 60px 0;
    color: #ffffff;
}

.timeline-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.timeline-section .row {
    text-align: center;
    margin-bottom: 30px;
}

/* Large Screen CSS */
@media (min-width: 768px) {
    .timeline-section .timeline {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 0;
    }

    .timeline-section .timeline::after {
        content: '';
        position: absolute;
        width: 6px;
        background-color: #ffffff;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
    }

    .timeline-section .cell {
        padding: 10px 40px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    .timeline-section .cell .cell-content {
        padding: 20px;
        background-color: #333;
        position: relative;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .timeline-section .cell::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -13px;
        background-color: #ffffff;
        border: 4px solid #333;
        top: 15px;
        border-radius: 50%;
        z-index: 1;
    }

    .timeline-section .cell:nth-child(even) {
        left: 50%;
    }

    .timeline-section .cell:nth-child(even) .cell-content {
        text-align: left;
    }

    .timeline-section .cell:nth-child(odd) {
        left: 0;
    }

    .timeline-section .cell:nth-child(odd) .cell-content {
        text-align: right;
    }

    .timeline-section .cell:nth-child(even)::after {
        left: -13px;
    }

    .timeline-section .cell dt {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .timeline-section .cell dd {
        margin: 0;
    }

    .timeline-section .cell a {
        color: #1e90ff;
        text-decoration: none;
    }

    .timeline-section .cell a:hover {
        text-decoration: underline;
    }
}

/* Small Screen CSS */
@media (max-width: 767px) {
    .timeline-section .timeline {
        position: relative;
        margin: 0 auto;
        padding: 10px 0;
    }

    .timeline-section .timeline::after {
        content: none;
    }

    .timeline-section .cell {
        width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
        position: relative;
        margin-bottom: 30px;
    }

    .timeline-section .cell::before {
        content: '';
        position: absolute;
        width: 6px; /* Increased thickness */
        background-color: #ffffff;
        top: 0;
        bottom: -50px; /* Extend the line below the element */
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
    }

    .timeline-section .cell:last-child::before {
        content: none; /* Remove line for last element */
    }

    .timeline-section .cell .cell-content {
        padding: 20px;
        background-color: #333;
        position: relative;
        border-radius: 6px;
        text-align: left;
        box-sizing: border-box;
        z-index: 1;
    }

    .timeline-section .cell::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #ffffff;
        border: 4px solid #333;
        top: -13px;
        border-radius: 50%;
        z-index: 1;
    }

    .timeline-section .cell dt {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .timeline-section .cell dd {
        margin: 0;
    }

    .timeline-section .cell a {
        color: #1e90ff;
        text-decoration: none;
    }

    .timeline-section .cell a:hover {
        text-decoration: underline;
    }
}
