/* ============================
   PÁGINA DE EVENTOS
===============================*/

.event-container{
    padding: 3%;
    border-radius: 15px;
    box-shadow: #0f2747;

}
/* Descrição da página */
.page-description {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: #555;
}

/* Filtros */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters select,
.filters input {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    font-size: 1rem;
    transition: 0.2s;
}

.filters select:focus,
.filters input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.25);
    outline: none;
}

/* Botão de reset */
#resetFilters {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

#resetFilters:hover {
    background-color: #c0392b;
}

/* GRID DE EVENTOS */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* CARD */
.evento-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-left: 5px solid #e14f00;
}

.evento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CORES POR TIPO */
.evento-card[data-tipo="NORMAL"] { border-color: #2ecc71; }
.evento-card[data-tipo="FERIADO"] { border-color: #e74c3c; }
.evento-card[data-tipo="PROVAS"]  { border-color: #3f51b5; }
.evento-card[data-tipo="RECESSO"] { border-color: #f39c12; }
.evento-card[data-tipo="FERIAS"]  { border-color: #16a085; }

/* IMAGEM */
.evento-imagem {
    height: 200px;
    overflow: hidden;
}

.evento-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TAG DO TIPO */
.evento-tipo {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #3498db;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* INFO */
.evento-info {
    padding: 1.5rem;
}

.evento-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 700;
}

/* DATA */
.evento-data {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* DESCRIÇÃO CLAMP */
.evento-descricao {
    color: #555;
    margin-bottom: 1.5rem;

    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BOTÃO */
.btn-ver-mais {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.25s;
}

.btn-ver-mais:hover {
    background-color: #3498db;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: rgb(235, 232, 232);
    width: 100%;
    max-width: 700px;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    animation: modalShow .25s ease-out;
}

@keyframes modalShow {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #444;
}
.faixa-header{
    background: linear-gradient(90deg, #0f2747, #db0d0d);
    min-height: 5px;
    min-width: 100%;
}
.modal-header h2 {
    margin-bottom: 4px;
}

.modal-data {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.modal-descricao {
    background-color: rgba(127, 140, 141, 0.1);
    border-color: rgba(12, 67, 71, 0.6);
    padding-left: 3%;
    margin: 15px 0;
    color: #333;
}

/* ===== GALERIA ===== */
.modal-galeria {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.galeria-img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
    background: #eee;
}

.galeria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 6px;
}

#galeriaPrev { left: 10px; }
#galeriaNext { right: 10px; }

.galeria-btn:hover {
    background: rgba(0,0,0,0.6);
}

/* Mobile */
@media (max-width: 600px) {
    .galeria-btn {
        font-size: 1.6rem;
    }
}
