.timeline-section {
    background-color: #ffffff; /* Alternates cleanly with the values section */
    padding: 80px 0;
    overflow: hidden;
}

.timeline-heading {
    text-align: center;
    color: #212529;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-02);
}

/* Red accent line under the heading */
.timeline-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #E41C24; /* Red campaign accent */
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Timeline Container & Central Spine */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The central vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #E41C24 0%, #0A3161 100%);
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

/* Individual Timeline Nodes */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
}

/* Left side card positioning */
.timeline-item.left {
    left: 0;
    text-align: right;
}

/* Right side card positioning */
.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Icon Badges */
.timeline-badge {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #E41C24;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 25px;
    z-index: 10;
    font-size: 1.3rem;
    box-shadow: 0 0 0 6px #ffffff, 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item.left .timeline-badge {
    right: -27px;
}

.timeline-item.right .timeline-badge {
    left: -27px;
    background-color: #000; /* Dark blue badges on the right side */
}

/* Panel Cards */
.timeline-panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #E41C24;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.timeline-item.right .timeline-panel {
    border-left: none;
    border-right: 5px solid #000;
}

/* Eye-Catching Hover Animations */
.timeline-item:hover .timeline-panel {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.09);
    background-color: #ffffff;
}

.timeline-item.left:hover .timeline-badge {
    transform: scale(1.18) rotate(-10deg);
    background-color: #000;
}

.timeline-item.right:hover .timeline-badge {
    transform: scale(1.18) rotate(10deg);
    background-color: #E41C24;
}

.timeline-panel h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 8px;
    font-family: var(--font-02);
}

.timeline-panel p {
    font-size:18px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-02);
}

/* Responsive styling for tablets and mobile */
@media (max-width: 991px) {
    .timeline-container::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        margin-bottom: 25px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left .timeline-badge, 
    .timeline-item.right .timeline-badge {
        left: 4px;
        right: auto;
    }
    
    .timeline-panel {
        border-left: 5px solid #E41C24 !important;
        border-right: none !important;
    }
}