/* Event Schedule Timeline Styles */
.event-schedule {
    background: linear-gradient(135deg, rgba(47, 61, 78, 0.9), rgba(21, 5, 30, 0.85));
    padding: 4rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.event-schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.event-schedule .title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.event-schedule .title span {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    padding: 0 15px;
}

.event-schedule .title span::before,
.event-schedule .title span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--main-color);
}

.event-schedule .title span::before {
    left: -35px;
}

.event-schedule .title span::after {
    right: -35px;
}

.event-schedule .title h3 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(var(--main-color-rgb), 0.6);
    color: var(--white);
    margin: 0;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 3rem;
}

.day-tab {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    box-shadow: var(--box-shadow);
    color: var(--light-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.day-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(var(--main-color-rgb), 0.1));
    z-index: -1;
}

.day-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--white);
    animation: var(--pulse-animation);
}

.day-tab.active {
    background: rgba(var(--main-color-rgb), 0.2);
    box-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.5);
    color: var(--white);
}

.day-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-color);
}

.day-tab i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.day-tab span {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

.day-tab small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.timeline {
    display: none;
    position: relative;
}

.timeline-scroll-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) rgba(255, 255, 255, 0.1);
}

.timeline-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--main-color), rgba(var(--main-color-rgb), 0.7));
}

.timeline.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
    padding: 1rem 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--main-color);
    height: calc(100% - 10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.15), transparent);
    z-index: -1;
}

.event-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--main-color-rgb), 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.event-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border-color: var(--main-color);
}

.event-card:hover::after {
    opacity: 1;
}

.event-card h4 {
    color: var(--main-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(var(--main-color-rgb), 0.4);
    position: relative;
    display: inline-block;
}

.event-card h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--main-color);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.7);
    transition: width 0.3s ease;
}

.event-card:hover h4::after {
    width: 100%;
}

.event-card p {
    color: var(--light-white);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
}

.time-block {
    width: 160px;
    text-align: right;
    padding-right: 2rem;
    position: relative;
}

.time {
    font-weight: bold;
    font-size: 1rem;
    background: #f7ab1c;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.time-line {
    position: absolute;
    right: -4px;
    top: 50%;
    width: 20px;
    height: 4px;
    background: #f7ab1c;
}

.event-block {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #f7ab1c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.event-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 171, 28, 0.3);
    background: rgba(255, 255, 255, 0.12);
    animation: var(--jello-animation);
}

.event-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f7ab1c, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 0 15px rgba(247, 171, 28, 0.5);
}

.event-icon i {
    font-size: 1.5rem;
    color: #000;
}

.event-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.event-details p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--light-white);
}

/* Responsive styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .time-block {
        width: 100px;
        padding-right: 1rem;
    }
    
    .time {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .event-block {
        margin-left: 1rem;
        padding: 1rem;
    }
    
    .event-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    
    .event-icon i {
        font-size: 1.2rem;
    }
    
    .event-details h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .timeline-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .time-block {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        margin-bottom: 0.5rem;
    }
    
    .time-line {
        left: 30px;
        right: auto;
        width: 4px;
        height: 20px;
        top: 100%;
    }
    
    .event-block {
        margin-left: 50px;
        width: calc(100% - 50px);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    /* Fix horizontal scroll in mobile view */
    .timeline.active {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0.5rem;
        overflow-x: hidden;
    }
    
    .timeline-scroll-container {
        overflow-x: hidden;
        max-width: 100%;
        padding-right: 5px;
    }
    
    .event-card {
        width: 100%;
        margin-right: 0;
    }
}