/* ==============================================
   EARTHEN LIVING — TIMELINE STYLES
   Aligned with design system tokens in style.css
   ============================================== */

ul.timeline-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Vertical centre line */
ul.timeline-list::before {
    position: absolute;
    content: "";
    width: 2px;
    height: 100%;
    background-color: #dee2e6;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

ul.timeline-list li {
    position: relative;
    clear: both;
    display: table;
    width: 100%;
    margin-bottom: 8px;
}

/* Centre dot */
ul.timeline-list li::before {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    background-color: #1a1a1a;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #1a1a1a;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}

/* Content card */
.timeline_content {
    width: 45%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #1a1a1a;
    border-radius: 8px;
    padding: 18px 24px;
    float: left;
    text-align: right;
    transition: box-shadow 0.2s ease;
}

.timeline_content:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

ul.timeline-list li:nth-child(2n) .timeline_content {
    float: right;
    text-align: left;
    border-left: 1px solid #dee2e6;
    border-right: 4px solid #1a1a1a;
}

.timeline_content span {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline_content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin: 4px 0 8px;
    text-transform: capitalize;
}

.timeline_content p {
    font-size: 0.88rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.timeline_content p b {
    color: #212529;
    font-weight: 600;
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    ul.timeline-list::before {
        left: 14px;
    }
    ul.timeline-list li::before {
        left: 14px;
        top: 24px;
        transform: translateX(-50%);
    }
    .timeline_content,
    ul.timeline-list li:nth-child(2n) .timeline_content {
        width: calc(100% - 40px);
        float: right;
        text-align: left;
        margin-left: 40px;
        border-left: 4px solid #1a1a1a;
        border-right: 1px solid #dee2e6;
    }
}
