.filter{
    margin-top: -70px;
    position: absolute;
    background-color: rgba(166, 117, 154, 0.85);
    border-radius: 15px;
    width: 100vw;
    /*background-color: #884fbf;*/
}

.filter-background{
    border-radius: 0 0 0 0;
}

.events-filter-panel {
    width: min(1100px, 90vw);
    margin: 0 auto;
    position: relative;
}

#hero,
#section-filter {
    overflow: visible;
}

#hero {
    position: relative;
    z-index: 1;
}

#section-filter {
    position: relative;
    z-index: 2;
}

.events-filter-panel .filter {
    width: 100%;
    margin-top: -70px;
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.filter small{
    color : white;
}

.filter button{
    color: white;
    background-color: rgb(243, 173, 23);
}

.filter button:hover{
    background-color: rgb(255, 175, 0);
    color: white;
}

@media(max-width: 992px){
    .filter-background .w-50 {
        width: 70% !important;
        margin: 2rem  auto 5rem auto;
    } 

    .events-filter-panel {
        width: 100%;
        min-height: auto;
    }

    .events-filter-panel .filter {
        margin-top: 30px;
        position: relative;
        left: auto;
        transform: none;
    }

    .filter {
        background-color: var(--color-primary);
        width: 100% !important;
        border-radius: 20px 20px 20px 20px ;
        position: relative;
        margin-top: 30px;
        padding-bottom: 0 !important;
        margin-left: 0;
    }

    .filter-background{
        margin: 0 25px;
        width: 100% !important;
        border-radius: 0 0 0 0;
        background-color: #f3f3f3;
    }

    #section-filter{
        margin-bottom: -120px !important;
        padding-bottom: -150px !important;
    }
}

@media(max-width: 767px){  
    .filter-background{
        margin: 0 25px;
    }

    .filter {
        padding: 0 0;
    }
}

@media (max-width: 522px){
    .container-title-events {
        width: 90% !important;
    }
    .filter-background .w-50 {
        width: 100% !important;
    } 
    .filter {
        margin: 10px;
    }

    .filter-background{
        margin-right: 25px;
        margin-left: 10px;
    }
}
