/* Event Timeline styles scoped to the schedule section */

#schedule .timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    font-family: 'Poppins', sans-serif;
    color: #1E1F6F;
}

#schedule .timeline-header {
    text-align: center;
    margin-bottom: 60px;
}

#schedule .timeline-header h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 48px;
    color: #1E1F6F;
    margin-bottom: 10px;
}

#schedule .timeline {
    position: relative;
    padding-left: 50px;
}

/*#schedule .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #FF3B5C 0%, #FF6B7A 100%);
}*/

#schedule .timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 1;
}

#schedule .timeline-dot {
    position: absolute;
    left: -34px; /* aligns with center of timeline line */
    top: 32px;   /* aligns with title vertically */
    width: 16px;
    height: 16px;
    background: #FF3B5C;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 6px rgba(255, 59, 92, 0.15);
}


#schedule .timeline-item.active .timeline-dot {
    background: #FF3B5C;
    transform: scale(1.2);
}

#schedule .phase-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF3B5C, #FF6B7A);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    animation: floatBadge 7s ease-in-out infinite;
    transition: transform 0.5s ease;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

#schedule .timeline-item.active .phase-badge {
    transform: translateY(-4px);
    transition-delay: 0s;
}

#schedule .timeline-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 32px;
    color: #E63B5C;
    margin-bottom: 12px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 900;
    letter-spacing: 0.5px;
}

#schedule .timeline-title:hover {
    transform: perspective(500px) rotateX(2deg) rotateY(-2deg) scaleY(0.98);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
}

#schedule .timeline-item.active .timeline-title {
    transform: translateY(-2px);
    transition-delay: 0.05s;
}

#schedule .timeline-date {
    display: block;
    font-size: 15px;
    color: #1E1F6F;
    font-weight: 600;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.08), rgba(255, 107, 122, 0.12));
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 59, 92, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

#schedule .timeline-item.active .timeline-date {
    transform: translateY(-1px);
    transition-delay: 0.1s;
}

#schedule .timeline-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

#schedule .timeline-item.active .timeline-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 16px;
}

#schedule .description-content {
    background: #F6F7FB;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    #schedule .timeline-header h1 {
        font-size: 36px;
    }

    #schedule .timeline-title {
        font-size: 24px;
    }

    #schedule .timeline {
        padding-left: 40px;
    }

    #schedule .timeline-dot {
        left: -36px;
        z-index:1;
    }
}
/* ====== MODULAR TIMELINE UPGRADE ====== */

/* ====== MODULAR TIMELINE UPGRADE ====== */

#schedule .timeline-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 24px 28px 24px 36px;
    box-shadow: 0 12px 30px rgba(30, 31, 111, 0.12);
    border-left: 6px solid #FF3B5C;

    /* 🔥 SCROLL REVEAL FIX */
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}
/* Revealed when scrolled into view */
#schedule .timeline-item.reveal {
    opacity: 1;
    transform: translateY(0);
}




/* Hover lift */
#schedule .timeline-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 31, 111, 0.18);
}

/* Dot refinement */
#schedule .timeline-dot {
    left: -47px;
    z-index:1;
    box-shadow: 0 0 0 6px rgba(255, 59, 92, 0.15);
}

/* Phase badge – more punch */
#schedule .phase-badge {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline title – hero feel */
#schedule .timeline-title {
    font-size: 28px;
    padding: 0;
    background: none;
    border: none;
    margin-bottom: 8px;
}

#schedule .timeline-title:hover {
    transform: none;
}

/* Date as chip */
#schedule .timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Description animation polish */
#schedule .timeline-item.active .timeline-description {
    max-height: 300px;
}

/* Description card */
#schedule .description-content {
    background: linear-gradient(135deg, #ffffff, #f2f4ff);
    border-left: 4px solid #FF3B5C;
}

/* Mobile refinement */
@media (max-width: 768px) {
    #schedule .timeline-item {
        padding: 20px 20px 20px 28px;
    }

    #schedule .timeline-dot {
        left: -40px;
    }
}

/* Timeline progress fill */
#schedule .timeline::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    width: 3px;
    height:  100%;
    background: linear-gradient(180deg, #FF3B5C, #FF6B7A);
    transform-origin: top;
    transform: scaleY(var(--line-scale, 0));        /* 👈 starts invisible */
    transition: transform 0.15s linear;
    
}

/* Current phase glow (NO color change) */
#schedule .timeline-item.current-phase {
    box-shadow:
        0 0 0 0 rgba(255, 59, 92, 0.6),
        0 0 25px rgba(255, 59, 92, 0.35);
    animation: currentGlow 2s ease-in-out infinite;
}

#schedule .timeline-item.current-phase .timeline-dot {
    box-shadow:
        0 0 0 6px rgba(255, 59, 92, 0.25),
        0 0 20px rgba(255, 59, 92, 0.6);
}

/* Glow animation */
@keyframes currentGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 59, 92, 0.35);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 59, 92, 0.7);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 59, 92, 0.35);
    }
}

#schedule .timeline-description {
    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        margin-top 0.3s ease;
}
