/* * {
    outline: 1px solid red;
  }
   */
.teacher {
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
}
.teacher-detail {
    display:flex;
    flex-direction:row;
    /* flex-wrap:wrap; */
    justify-content:flex-start;
    padding:10px;
    margin: 10px;
    transition: .5s ease;
    cursor: pointer;
}

.teacher-img {
    padding:10px;
    margin: 10px;
    width: 20%;
    max-width: 20%;
    max-height: 100%;
    /* object-fit:contain; */
    /* overflow:hidden; */
}
.teacher-img img {
    object-fit:contain;

}
.teacher-discription {
    padding:10px;
    margin: 10px;
    font-size:18px;
    width: 80%;
    display:flex;
    flex-direction:column;
    flex-wrap:wrap;
}
.teacher-discription ul {
    margin-top: 0px;
    margin-bottom: 4px;
    padding-top: 0px;
    padding-bottom: 4px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 18px;
    padding-right: 14px;
}
.teacher-discription p {
    margin-top: 6px;
    margin-bottom: 0px;
}
.teacher-discription li {
    margin-top: 4px;
    margin-bottom: 4px;
}
.teacher-img {
    max-width: 233px;
    min-width: 150px;
    display: inline-block;
    /* overflow: scroll; */
}
/* .teacher-detail {
    display: inline-block;
} */
.teacher-discription {
    /* display: inline-block; */
    overflow: hidden; 
}
.teacher-detail:hover {
    border-left:15px solid #0a1533;
    /* border-left:15px solid #000000; */
    /* background-color: #005f5f; */
    background-color: rgb(34,70,94);
    /* border-left:15px solid rgb(6, 11, 15);
    background-color: rgb(31, 57, 78); */
    color: #fff;
    border-radius: 5px;
}
@media screen and (max-width:1100px) {
    /* 此处的条件是要在页面小于600px的时候
        将页面中的nav调整为打竖排列 */
    .teacher-discription {
        font-size: 18px;
    }
    /* .teacher-detail {
        flex-direction:column;
    }
    .teacher-img {
        width: 20%;
        max-width: 50%;
    }
    .teacher-discription {
        width: 100%;
        max-width: 100%;
    } */
}
@media screen and (max-width: 630px) {
    .teacher-discription {
        font-size: 12px;
    }
    .teacher-img img {
        min-width: 60px;
    }
    /* .teacher-discription {
        flex-wrap: wrap;
        overflow-x: auto;
    } */
}