/* ===========================
   RESET LOCAL (MOBILE SAFE)
=========================== */
.eventos-container * {
    box-sizing: border-box;
}

/* ===========================
   CONTAINER
=========================== */
.eventos-container {
    background: #117a529f;
    border-radius: 14px;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
}

/* ===========================
   HEADER
=========================== */
.eventos-header {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #fff;
}

.eventos-header small {
    color: #d9eee5;
}

/* ===========================
   BOTÃO VOLTAR
=========================== */
.btn-nav {
    background: #abcab7;
    border: none;
    color: #11573d;
    padding: .45rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

/* ===========================
   GRID BASE
=========================== */
.eventos-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    width: 100%;
}

.eventos-ano {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    width: 100%;
}

.eventos-itens-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.eventos-itens{
    flex-grow: 1;
    flex-basis: calc(23% - 0.8rem);
    margin: 10px;
}

/* MOBILE FIRST → 1 COLUNA */
.eventos-grid-4 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-columns: 1fr;
}

/* ===========================
   BOTÕES (ANOS / EVENTOS)
=========================== */
.eventos-select {
    padding: 1rem;
    background: #cbf0d4;
    border-radius: 12px;
    border: none;
    color: #284732;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
    transition: background .15s ease;
    width: 100%;
}

.eventos-select:active {
    background: #b3e6c3;
}

/* ===========================
   CARD DE MÍDIA
=========================== */
.eventos-card {
    border-radius: 12px;
    background: #111;
    border: 2px solid rgba(255,255,255,.15);
}

/* REMOVE HOVER NO MOBILE */
@media (hover: hover) {
    .eventos-card:hover {
        transform: translateY(-4px);
        
        box-shadow: 0 8px 24px rgba(0,0,0,.6);
    }
}

/* ===========================
   THUMB
=========================== */
.eventos-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.eventos-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    background: radial-gradient(circle, #2b2b2b 0%, #000 70%);
}

/* Thumbnail de vídeo usando o primeiro frame */
.eventos-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Overlay do botão play */
.eventos-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.15),
        rgba(0,0,0,.55)
    );
    pointer-events: none;
}


/* ===========================
   TABLET
=========================== */
@media (min-width: 600px) {
    .eventos-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   DESKTOP
=========================== */
@media (min-width: 992px) {
    .eventos-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
