/* ===================================
   TIMELINE - MODERN PROFESSIONAL REDESIGN
   Our Journey Through Time - Enhanced
   =================================== */

/* Timeline Section */
.timeline-section-modern {
    position: relative;
    padding: 4rem 0;
}

/* Section Header */
.timeline-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-badge-modern {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f4045;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.timeline-title-modern {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timeline-subtitle-modern {
    font-family: 'Khula', sans-serif;
    font-size: 1.125rem;
    color: #4A4A4A;
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Container */
.timeline-modern {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Center Line */
.timeline-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #62432e;
    border-radius: 10px;
}

/* Timeline Item */
.timeline-item-modern {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item-modern:last-child {
    margin-bottom: 0;
}

/* Alternate Left/Right */
.timeline-item-modern:nth-child(odd) {
    flex-direction: row;
}

.timeline-item-modern:nth-child(even) {
    flex-direction: row-reverse;
}

/* Timeline Content Card */
.timeline-card-modern {
    width: 45%;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.timeline-card-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #62432e;
}

.timeline-item-modern:nth-child(odd) .timeline-card-modern::before {
    right: -40px;
    transform: translateY(-50%);
}

.timeline-item-modern:nth-child(even) .timeline-card-modern::before {
    left: -40px;
    transform: translateY(-50%);
}

.timeline-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(71, 158, 237, 0.15);
}

/* Timeline Marker */
.timeline-marker-modern {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: #1f4045;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(31, 64, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item-modern:hover .timeline-marker-modern {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(31, 64, 69, 0.4);
}

.timeline-marker-modern i {
    font-size: 1.75rem;
    color: #FFFFFF;
}

/* Active/Current Marker */
.timeline-marker-modern.active {
    background: #479eed;
    animation: pulse-glow 2s infinite;
}

.timeline-marker-modern.active i {
    color: white;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(71, 158, 237, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(71, 158, 237, 0.5);
    }
}

/* Card Content */
.timeline-year-modern {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #b5dfff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #03b1fa;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.timeline-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-card-description {
    font-family: 'Khula', sans-serif;
    color: #000000;
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-modern::before {
        left: 30px;
    }
    
    .timeline-item-modern {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-card-modern {
        width: 100%;
    }
    
    .timeline-card-modern::before {
        left: -40px !important;
        right: auto !important;
    }
    
    .timeline-marker-modern {
        left: 30px;
        transform: translateX(0);
        width: 60px;
        height: 60px;
    }
    
    .timeline-item-modern:hover .timeline-marker-modern {
        transform: translateX(0) scale(1.15);
    }
    
    .timeline-marker-modern i {
        font-size: 1.5rem;
    }
    
    .timeline-title-modern {
        font-size: 2.25rem;
    }
}
