.main_content{
    row-gap: 30px !important;
}

.filtro{
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid #ebebeb;
    display: flex;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center; /* corrected from justify-items */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* subtle shadow */
}

.text_img{
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-content: center;
}

.text_img img{
    height: 25px;
}

.text_img p{
    margin: 0;
    font-size: 30px;
    font-weight: bold;
}

input {
    flex: 1;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #c9c9c9;
    padding-left: 20px;
    font-size: 16px;
    padding: 10px;
}

input:focus {
    outline: 2px solid #5aa900;
    outline-offset: 2px;
}

.subtitle{
    font-size: 25px;
    text-align: left;
    font-weight: bold;
    margin: 0;
}

.evento{
    width: 500px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    border: 1px solid #c6c6c6;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.event_info{
    padding: 20px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.event_tile{
    font-size: 22px;
    font-weight: bold;
    color: #5aa900;
    margin: 0;
    margin-bottom: 10px;
}

.event_text{
    font-size: 16px;
    margin: 0;
    color: rgb(80, 80, 80);
}

.event_buttons{
    display: flex;
    flex-direction: row;
    column-gap: 20px;
}

.saber_mais{
    width: 100px;
    border: 1px solid #c6c6c6;
    background-color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    padding: 8px;
}

.evento_button{
    flex: 1;
    color: #fff;
    border: none;
    background-color: #5aa900;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    padding: 8px;
}

@media (max-width: 600px) {
    .evento,
    .eventos,
    .filtro{
        box-sizing: border-box; /* 👈 key line */
        width: 100%;
        max-width: 350px;
    }

    .event_img{
        height: 200px !important;
    }

    .event_buttons{
        display: flex;
        flex-direction: column;
        row-gap: 10px;
    }

    .saber_mais{
        width: 100%;
        border: 1px solid #c6c6c6;
        background-color: #fff;
        cursor: pointer;
        border-radius: 5px;
        font-size: 16px;
        padding: 8px;
    }
}