/* =========================================================================
   eventos.css - Estilos da Página de Eventos
   ========================================================================= */

.eventos-main {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* --- Texto Introdutório --- */
.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* --- Grid de Eventos (AJUSTADO PARA 3 COLUNAS) --- */
.events-grid {
    display: grid;
    /* Força exatamente 3 colunas de larguras iguais */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- Cartão do Evento --- */
.event-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    height:17rem;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Imagem do Cartaz */
.event-poster-container {
    width: 100%;
    height: 300px; /* Aumentei um pouco a altura para cartazes verticais */
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.event-poster {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: top center; 
    transition: transform 0.5s ease;
}

.event-card:hover .event-poster {
    transform: scale(1.05);
}

/* Informações do Evento */
.event-info {
    padding: 1.2rem;
    text-align: center;
    border-top: 4px solid var(--primary-blue);
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-year {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    align-self: center;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.event-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* --- Responsividade --- */

/* Tablets (até 950px): Muda para 2 colunas */
@media (max-width: 950px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Celulares (até 600px): Muda para 1 coluna */
@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-poster-container {
        height: auto;
        aspect-ratio: 3/4; /* Mantém proporção de cartaz no mobile */
    }
}