:root {
    --ke-primary: #004d40;
    --ke-accent: #e0f2f1;
    --ke-text: #333;
    --ke-text-light: #666;
    --ke-font-heading: 'Outfit', sans-serif;
    --ke-font-body: 'Montserrat', sans-serif;
}

.keynivesh-timeline-container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.keynivesh-timeline {
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.keynivesh-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--ke-accent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* Alternating Layout */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Dots */
.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--ke-primary);
    border-radius: 50%;
    z-index: 2;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--ke-primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Content Card */
.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.timeline-year {
    display: inline-block;
    background: var(--ke-accent);
    color: var(--ke-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--ke-font-body);
    margin-bottom: 10px;
}

.timeline-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-family: var(--ke-font-heading);
    color: var(--ke-text);
}

.timeline-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ke-text-light);
    font-family: var(--ke-font-body);
}

/* Responsive */
@media (max-width: 768px) {
    .keynivesh-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
        right: auto;
    }
}
