/*====== Basics ======*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/*====== Banner ======*/

.directory-banner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 600px;
}

.banner {
    display: flex;
    background-position: top;
    background-size: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-image: url('../img/header/banner-3.jpg');

}

.directory-is {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 75px;
    width: 100%;
    height: 550px;
    position: absolute;


}

/*====== Main search ======*/


.main-expert-search {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90%;
    background-color: white;

}

.main-data {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    width: 80%;
}

.main-data>input {
    font-family: Muli;
    padding-left: 15px;
    font-size: 18px;
    background-color: #FBFDFF;
    color: #636d75;
    font-size: 16px;
    border-radius: 1px;
    background: #fbfdff;
    border: 1px solid #d7dfea;
}

::placeholder {
    font-family: Muli;
    font-size: 18px;
}

.job-list {
    width: 80%;
}

/* .location {
    width: 35%;
} */

#alljobs {
    position: absolute;
    background-color: white;
    border: 1px solid blue;
    border-radius: 0 0 5px 5px;
    border-top: none;
    font-family: sans-serif;
    width: 350px;
    padding: 5px;
    max-height: 10rem;
    overflow-y: auto
    
  }
option {
    background-color: white;
    padding: 4px;
    color: blue;
    margin-bottom: 1px;
     font-size: 18px;
    cursor: pointer;
  }
.submit {
    width: 15%;
    height: 50px;
    background-color: #5091ff;
    border-radius: 5px;
    font-family: Muli;
    color: white;
    border-style: none;
    font-size: 15px;
}

.order-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    width: 20%;
}

.order {
    font-family: Muli;
    color: #808080;
    font-size: 16px;
}

#order {
    font-family: Muli;
    color: #272F46;
    font-size: 15px;
    border-style: none;
}

/*====== Direcotry ======*/

.directory {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* margin-top: 50px; */
    background-color: #F5F6F7;
}

.best-prem-experts {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 60px;
}

.expert {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 31.5%;
    background-color: white;
    height: 550px;
    margin-bottom: 25px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px;
    /* transition: transform .2s; */
    cursor: pointer;
    border-radius: 8px;
}

.expert:hover {
    text-decoration: none;

}

.expert-container {
    /* display: flex; */
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;

    padding: 20px;
}

.expert-thumb>img {
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.expert-info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    font-family: Muli, sans-serif;
    margin: 10px 0;
    font-size: 15px;
    text-align: center;
    color: #677484;
}

.expert-info>p {
    margin: 10px 0;
}

.expert-info>h4 {
    font-size: 22px;
    color: #272f46;
    font-weight: 900;
}


.expert-title {
    font-family: Muli;
    font-size: 18px;
    color: #5091FF;
    font-weight: 700;
    margin-bottom: 15px;


}

.expert-profile {
    border: none;
    background-color: #1194F7;
    font-family: Muli;
    font-size: 16px;
    color: white;
    height: 60px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.expert-profile:hover {
    background-color: #BC0C19;
}

.forget {
    display: flex;
    width: 100%;
}

.forget>img {
    width: 100%;
}


@media (min-width: 1450px) {
    .expert {
        width: 22%;
    }

    .expert-thumb>img {
        width: 50%;
    }

    .expert-thumb> {
        height: 300px;
    }
}

@media (min-width: 1345px) {
    .expert {
        height: 570px;
    }

}


@media (max-width: 650px) {

    .main-expert-search {
        padding: 20px;
    }

    .main-data {
        width: 100%;
        padding: 0;
    }

    .job-list {
        width: 70%;
    }

    .submit {
        width: 28%;
    }

    .order-list {
        flex-wrap: wrap;
        justify-content: start;
        width: 65%;
        padding-left: 0;
    }

    .order {
        margin: 0;
    }

    .expert {
        width: 45%;
    }
}

@media (max-width: 570px) {
    .banner {
        background-position-x: 25%;
    }

    .directory-is {
        height: 400px;
    }

    .directory-is>img {
        width: 80%;
    }

    .expert {
        flex-wrap: wrap;
    }
}

@media (max-width: 400px){
    .expert-container{
        padding-top: 20px;
    }

    .expert-info>h4 {
        font-size: 18px;
    }
    .expert-title{
        font-size: 14px;
    }

}