/* Timeline-specific styles */

/* Hero section specific to timeline */
.hero-timeline {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 30px;
    text-align: center;
}
  
.hero-timeline h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
  
.hero-timeline .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Custom Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}
  
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}
  
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
}
  
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 30px);
    padding-right: 0;
}
  
.timeline-content {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: var(--transition);
}
  
.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--secondary-color);
}
  
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
  
.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
  
.timeline-item:nth-child(even) .timeline-date {
    color: var(--secondary-color);
}
  
.timeline-milestone {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
}
  
.timeline-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}
  
.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 30px;
    right: -42px;
    z-index: 1;
}
  
.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -42px;
    border-color: var(--secondary-color);
}
  
.current-phase {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
    border-left: 5px solid #1976d2 !important;
}
  
.badge-phase {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-left: 10px;
}

/* Timeline Card Styles */
.timeline-card .card-header {
    background-color: var(--primary-color);
    color: white;
}

.timeline-card .card-body {
    padding: 1.5rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -40px;
        right: auto;
    }
    
    .hero-timeline h1 {
        font-size: 2rem;
    }
    
    .hero-timeline .lead {
        font-size: 1.1rem;
    }
}

/* Summary Stats */
.timeline-summary .stat-box {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.timeline-summary .stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.timeline-summary h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Add to timeline.css if desired */
.badge-phase {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-left: 10px;
    font-weight: 600;
}

.timeline-content {
    position: relative;
}

/* Color variations for different badge types */
.bg-success.badge-phase {
    background-color: #28a745 !important;
}

.bg-warning.badge-phase {
    background-color: #ffc107 !important;
    color: #212529;
}

.bg-danger.badge-phase {
    background-color: #dc3545 !important;
}

.bg-info.badge-phase {
    background-color: #17a2b8 !important;
}