/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
    margin: 30px 0;
}

/* Center line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #d4942a, #e1a86a);
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d4942a;
}

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

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

/* Timeline dots */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #d4942a;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f7ebcf;
    z-index: 1;
}

/* Year label */
.timeline-year {
    position: absolute;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    background: #d4942a;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    color: #930f28;
    font-size: 18px;
}

.timeline-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 50px !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-year {
        left: 20px;
        transform: translateX(0);
    }
}

/* Extra styling for emphasis */
.timeline-highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-left-color: #e1a86a;
    border-left-width: 5px;
}

.timeline-content strong {
    color: #d4942a;
}
