/* Seção de Programa - Design Clean */
.program {
    background: #ffffff;
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #02243d;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Seletor de dias */
.day-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.day-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 2.5rem;
    min-width: 250px;
    flex: 0 1 auto;
    max-width: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.day-btn:hover {
    transform: translateY(-3px);
    border-color: #f8e874;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.day-btn.active {
    background: #02243d;
    border-color: #02243d;
    color: white;
    box-shadow: 0 8px 25px rgba(2, 36, 61, 0.2);
}

.day-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.day-date {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    opacity: 0.9;
}

.day-theme {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    background: rgba(248, 232, 116, 0.15);
    border-radius: 15px;
    display: inline-block;
    font-weight: 600;
    margin-top: 0.5rem;
}

.day-btn.active .day-theme {
    background: rgba(248, 232, 116, 0.2);
    color: #f8e874;
}

/* Controles do programa */
.program-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8fafc;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.03);
    gap: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.program-filter h4, 
.program-search h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.program-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.program-filter-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.program-filter-btn:hover {
    border-color: #f8e874;
    color: #02243d;
    transform: translateY(-1px);
}

.program-filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.program-filter-btn.active {
    background: #02243d;
    border-color: #02243d;
    color: white;
}

.program-search input {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    min-width: 250px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) inset;
}

.program-search input:focus {
    outline: none;
    border-color: #02243d;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.program-search input::placeholder {
    color: #94a3b8;
}

/* Dias do programa */
.program-day {
    display: none;
    max-width: 900px;
    margin: 0 auto;
}

.program-day.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

.day-header {
    background: #02243d;
    color: white;
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(2, 36, 61, 0.15);
}

.day-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.day-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #02243d, #f8e874);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.3s; }
.timeline-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-item:nth-child(8) { animation-delay: 0.4s; }
.timeline-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-item:nth-child(10) { animation-delay: 0.5s; }

.timeline-item:hover {
    background: rgba(241, 245, 249, 0.5);
}

.timeline-time {
    min-width: 60px;
    font-weight: 600;
    color: #02243d;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 1.5rem;
    padding-top: 1.2rem;
    position: relative;
}

.timeline-time.highlighted {
    color: #f8e874;
    font-weight: 700;
}

.timeline-time::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #02243d;
    box-shadow: 0 0 0 3px rgba(2, 36, 61, 0.2);
}

.timeline-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-left: 2px solid #02243d;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #02243d;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.timeline-badge {
    display: inline-block;
    background: #f8e874;
    color: #02243d;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 5px rgba(248, 232, 116, 0.2);
}

.timeline-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.timeline-details span {
    background: #f1f5f9;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
    display: inline-block;
}

.timeline-speaker {
    font-style: italic;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

/* Item em destaque */
.timeline-item.important .timeline-content {
    background: #f8fafc;
    border-left: 2px solid #f8e874;
}

/* Resumo do programa */
.program-summary {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(to right, rgba(241, 245, 249, 0.5), rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.5));
    border-radius: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.program-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(226, 232, 240, 0.8), transparent);
}

.program-summary h3 {
    font-size: 1.5rem;
    color: #02243d;
    font-weight: 700;
    margin-bottom: 1rem;
}

.program-summary p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.download-btn {
    background: #02243d;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    box-shadow: 0 4px 10px rgba(2, 36, 61, 0.15);
}

.download-btn::before {
    content: "\f019";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.download-btn:hover {
    background: #02243d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 36, 61, 0.25);
}

.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 36, 61, 0.25);
}

/* Estados de filtro */
.timeline-item.filtered {
    display: none;
}

.timeline-item.search-hidden {
    display: none;
}

/* Mensagem de nenhum resultado */
.no-results-message {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s 0.3s forwards;
}

.no-results-message p {
    font-size: 0.95rem;
    margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .program {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .day-selector {
        flex-direction: column;
        gap: 1rem;
    }
    
    .day-btn {
        min-width: 100%;
    }
    
    .program-controls {
        flex-direction: column;
    }
    
    .program-filter, 
    .program-search {
        width: 100%;
    }
    
    .timeline::before {
        left: 62px;
    }
    
    .timeline-time {
        min-width: 50px;
        font-size: 0.8rem;
    }
    
    .timeline-time::after {
        right: -5px;
    }
    
    .timeline-content {
        padding: 1rem 1.2rem;
    }
    
    .timeline-details {
        gap: 0.5rem;
    }
    
    .timeline-details span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .timeline::before {
        left: 52px;
    }
    
    .timeline-time {
        min-width: 40px;
        padding-right: 0.5rem;
        padding-top: 1rem;
        font-size: 0.75rem;
    }
    
    .timeline-time::after {
        right: -5px;
        width: 8px;
        height: 8px;
        top: 1.3rem;
    }
    
    .timeline-content {
        padding: 0.9rem 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .day-btn {
        width: 100%;
        text-align: center;
        min-width: unset;
    }
    
    .day-header h3 {
        font-size: 1.4rem;
    }
    
    .day-header p {
        font-size: 0.9rem;
    }
    
    .program-filter-options {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .timeline::before {
        left: 48px;
    }
    
    .timeline-time::after {
        right: -4px;
        width: 7px;
        height: 7px;
    }
}
