/*
File Name: teachers.css
Version: 3.0
*/

/*** teachers sec1 ***/

#teachers_sec1 {
    height: auto;
    margin: 0 auto;
    max-width: 991px;
    padding: 30px 30px 30px;
    width: 100%;
}

#teachers_sec1 h2 {
    background-color: #807060;
    border-bottom: 1px dashed #e8e8e0;
    border-top: 1px dashed #e8e8e0;
    box-shadow: 0px 0px 0px 5px #807060;
    color: #e8e8e0;
    font-size: 2.5em;
    line-height: 1.5;
    margin: 5px 5px 1.2em;
    padding: 10px 0;
    text-align: center;
    width: calc(100% - 10px);
}

#teachers_sec1 p:first-of-type {
    margin-bottom: 30px;
}

#teachers_sec1 p:not(:first-of-type) {
    font-size: 1.4em;
    line-height: 1.5;
    margin: 0 auto 0.5em;
    max-width: 750px;
    text-align: center;
    width: 100%;
}

#teachers_sec1 p:last-of-type {
    margin-bottom: 0;
}

#teachers_sec1 img {
    display: block;
    height: auto;
    margin-bottom: 15px;
    width: 100%;
}

@media (max-width: 639px) {

    #teachers_sec1 {
        padding: 15px 15px 30px;
    }

    #teachers_sec1 h2 {
        font-size: 2.0em;
    }

    #teachers_sec1 p:not(:first-of-type) {
        font-size: 1.2em;
    }

}

/*** teachers sec2 ***/

#teachers_sec2 {
    height: auto;
    margin: 0 auto;
    max-width: 991px;
    padding: 30px;
    width: 100%;
}

#teachers_sec2 h3 {
    background-color: #e8e0d0;
    border-radius: 5px;
    color: #604800;
    font-size: 2.5em;
    line-height: 1.5;
    margin-bottom: 1.0em;
    padding: 15px;
    position: relative;
    text-align: center;
}

#teachers_sec2 h3::after {
    bottom: -15px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ebe0d0;
    content: '';
    left: calc(50% - 10px);
    position: absolute;
}

#teachers_sec2 p {
    font-size: 1.4em;
    line-height: 1.5;
    margin: 0 auto 0.5em;
    max-width: 750px;
    text-align: center;
    width: 100%;
}

#teachers_sec2 p small {
    font-size: 0.8em;
}

@media (max-width: 639px) {

    #teachers_sec2 {
        padding: 30px 15px;
    }

    #teachers_sec2 h3 {
        font-size: 1.8em;
    }

    #teachers_sec2 p {
        font-size: 1.2em;
    }

}

/*** teachers sec3 ***/

#teachers_sec3 {
    height: auto;
    margin: 0 auto;
    max-width: 991px;
    padding: 30px;
    width: 100%;
}

#teachers_sec3 h3 {
    background-color: #e8e0d0;
    border-radius: 5px;
    color: #604800;
    font-size: 2.5em;
    line-height: 1.5;
    margin-bottom: 1.0em;
    padding: 15px;
    position: relative;
    text-align: center;
}

#teachers_sec3 h3::after {
    bottom: -15px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ebe0d0;
    content: '';
    left: calc(50% - 10px);
    position: absolute;
}

#teachers_sec3 p {
    font-size: 1.4em;
    line-height: 1.5;
    margin: 0 auto 0.5em;
    max-width: 750px;
    text-align: center;
    width: 100%;
}

#teachers_sec3 p strong {
    color: #ff6600;
    font-size: 1.4em;
}

#teachers_sec3 p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 639px) {

    #teachers_sec3 {
        padding: 30px 15px;
    }

    #teachers_sec3 h3 {
        font-size: 1.8em;
    }

    #teachers_sec3 p {
        font-size: 1.2em;
    }

}

/*** teachers sec4 ***/

#teachers_sec4 {
    height: auto;
    margin: 0 auto;
    max-width: 991px;
    padding: 30px 30px 0;
    width: 100%;
}

#teachers_sec4 h2 {
    background-color: #807060;
    border-bottom: 1px dashed #e8e8e0;
    border-top: 1px dashed #e8e8e0;
    box-shadow: 0px 0px 0px 5px #807060;
    color: #fbfbf8;
    font-size: 2.5em;
    line-height: 1.5;
    margin: 5px 5px 30px;
    padding: 10px;
    text-align: center;
    width: calc(100% - 10px);
}

#teachers_entries {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 991px;
    padding: 0 30px 30px;
    width: 100%;
}

#teachers_entries .teachers_entry {
    background-color: #f0f0e8;
    background-position: 15px 15px;
    background-size: 150px 150px;
    background-repeat: no-repeat;
    border-top: 3px solid #d0d0b0;
    height: auto;
    margin-bottom: 15px;
    min-height: 180px;
    padding: 15px 15px 15px 180px;
    width: calc(50% - 7.5px);
}

#teachers_entries .teachers_entry:nth-of-type(2n-1) {
    margin-right: 7.5px;
}

#teachers_entries .teachers_entry:nth-of-type(2n) {
    margin-left: 7.5px;
}

#teachers_entries .teachers_entry:last-of-type {
    margin-bottom: 0;
}

#teachers_entries .teachers_entry h3 {
    font-family: serif;
    font-size: 2.0em;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

#teachers_entries .teachers_entry p {
    font-size: 1.2em;
    line-height: 1.5;
}

@media (max-width: 991px) {

    #teachers_entries {
        display: block;
    }

    #teachers_entries .teachers_entry {
        width: 100%;
    }

    #teachers_entries .teachers_entry:nth-of-type(2n-1) {
        margin-right: 0;
    }

    #teachers_entries .teachers_entry:nth-of-type(2n) {
        margin-left: 0;
    }

}

@media (max-width: 639px) {

    #teachers_sec4 {
        padding: 30px 15px 0;
        width: 100%;
    }

    #teachers_sec4 h2 {
        font-size: 2.0em;
    }

    #teachers_entries {
        padding: 0 15px 30px;
    }

    #teachers_entries .teachers_entry {
        background-position: center 15px;
        background-size: 120px 120px;
        background-repeat: no-repeat;
        min-height: 0;
        margin-bottom: 15px;
        padding: 150px 15px 15px 15px;
    }

    #teachers_entries .teachers_entry h3 {
        font-size: 1.6em;
        text-align: center;
    }

}