/***********************************************************************
 *  Ask filter
 **********************************************************************/
.filter--ask {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.filter--ask--ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.filter--ask--ul li {
    padding: 14px 10px;
    margin: 0 5px;
    cursor: pointer;
}

.filter--ask--ul .filter--ask--active {
    background-color: #F3F3F3;
    border-radius: 6px;
}

.filter--location,
.filter--profession {
    border: 0px solid transparent;
    background-color: #F3F3F3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 11px 16px;
    margin-left: 24px;
    outline: none;
    cursor: pointer;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:invalid,
select option[value=""] {
  color: var(--grey);
}

/***********************************************************************
 *  Profiles
 **********************************************************************/
.profiles {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
}

.profile {
    text-decoration: none;
    width: 33.3%;
    margin-bottom: 30px;
}

.profile--photo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50px;
    margin-right: 24px;
}

.profile--div {
    display: flex;
    width: 90%;
    margin: 0 auto;
    align-items: center;
}

.profile--p {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 6px;
    color: #000000;
}

.profile--about {
    color: var(--grey);
}

/***********************************************************************
 *  Aks paging
 **********************************************************************/
 .pagination--ask {
    margin-top: 18px;
    margin-bottom: 48px;
    position: relative;
}

.pagination--ask--ul {
    list-style: none;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}

.pagination--ask--ul li {
    width: 30px;
    height: 30px;
    color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination--ask--ul .pagination--ask--active {
    color: black;
    background-color: var(--grey2);
    border-radius: 4px;
}

.pagination--next {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 3px 0;
    border-bottom: 1px solid transparent;
}

.pagination--next:hover {
    border-bottom: 1px solid black;
}

/***********************************************************************
 *  Responzivity
**********************************************************************/
@media screen and (max-width: 1460px) {
    .profile {
        width: 44%;
    }
}

@media screen and (max-width: 1200px) {
    .profile {
        width: 46%;
    }
}

@media screen and (max-width: 1000px) {
    .filter--ask {
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .profile {
        width: 48%;
    }

    .profile--photo {
        width: 80px;
        height: 80px;
    }
}

@media screen and (max-width: 800px) {
    .profile--photo {
        margin-right: 18px;
    }
}

@media screen and (max-width: 750px) {
    .profiles {
        justify-content: center;
    }

    .profile {
        width: 70%;
    }

    .filter--ask {
        justify-content: center;
        margin-top: 5px;
    }

    .filter--ask--heading {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    .profile {
        width: 90%;
    }

    .pagination--next span {
        display: none;
    }

    .pagination--next {
        padding: 8px;
    }

    .pagination--next:hover {
        border-bottom: 1px solid transparent;
    }

    .filter--ask {
        overflow-x: scroll;
    }
}

@media screen and (max-width: 400px) {
    .profile {
        width: 100%;
    }

    .filter--location, .filter--profession {
        margin-left: 16px;
    }
}