*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.team-section{
    width: 100%;
    min-height: 100vh;
    background-color: #ddd;
}
.team-container{
    width: 80%;
    display: block;
    margin: auto;
    padding-top: 200px;
}
.team-content-section{
    float: left;
    width: 55%;
}
.image-section{
    float: right;
    width: 40%;
}
.image-section img{
    width: 60%;
    height: 80%;
}
.team-content-section .team-title{
    text-transform: uppercase;
    font-size: 45px;
    font-weight: bolder;
}
.team-content-section .team-content h3{
    margin-top: 20px;
    color: #5d5d5d;
    font-size: 25px;
}
.team-content-section .team-content h5{
    margin-top: 10px;
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.5;
}


/* Teachers Section */

.teacher-section{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

@import "bourbon";
@import "neat";

html {
    box-sizing: border-box;
  }
  
  *, *::after, *::before {
    box-sizing: inherit;
  }
  
  *,
  *:before,
  *:after {
    box-sizing: border-box;
    outline: none;
  }
  
  html {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-smooth: auto;
    font-weight: 300;
    line-height: 1.5;
    color: #444;
  }
  
  figure {
    margin: 50px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
  }
  figure:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  }
  figure:hover img {
    transform: scale(1.25);
  }
  figure:hover figcaption {
    bottom: 0;
  }
  figure h1 {
    position: absolute;
    top: 50px;
    left: 20px;
    margin: 0;
    padding: 0;
    color: white;
    font-size: 60px;
    font-weight: 100;
    line-height: 1;
  }
  figure img {
    height: 100%;
    transition: 0.25s;
  }
  figure figcaption {
    position: absolute;
    bottom: -60%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    color: white;
    line-height: 1;
    transition: 0.25s;
  }
  figure figcaption h3 {
    margin: 0 0 20px;
    padding: 0;
  }
  figure figcaption p {
    font-size: 14px;
    line-height: 1.75;
  }

  .teacher-our-team h2{
    font-size: 70px;
    text-align: center;
    padding-top: 50px;
    margin: 80px;
  }

/* End Of Teachers Section */

@media (max-width: 800px){
  .teacher-section{
    flex-wrap: wrap;
    height: auto;
  }
  figure {
    width: 200px;
    height: 350px;

  }
  figure h1 {
    font-size: 30px;
  }
  figure figcaption {
    bottom: -68%;
  }
  figure figcaption p {
    font-size: 10px;
  }
  .teacher-our-team h2{
    font-size: 50px;
    margin: 40px;
  }

  
.team-section{
    width: 100%;
    min-height: 160vh;
}
.team-container{
    width: 80%;
  }

.team-content-section{
  text-align: center;
  width: auto;
  padding-top: 15px;
}
.image-section{
  width: 40%;
}
.image-section img{
  width: 60%;
  height: 80%;
  position: relative;
  right: 120px;
  padding: 20px 0px;
}
.team-content-section .team-title{
  font-size: 40px;
}
.team-content-section .team-content h3{
  font-size: 20px;
}
.team-content-section .team-content h5{
  font-size: 15px;
  line-height: 1.5;
}

}


@media (max-width: 700px){
  .teacher-section{
    flex-wrap: wrap;
    height: auto;
  }
  figure {
    width: 180px;
    height: 250px;

  }
  figure h1 {
    font-size: 20px;
  }
  figure figcaption {
    bottom: -80%;
  }
  figure figcaption p {
    font-size: 8px;
  }
  .teacher-our-team h2{
    font-size: 50px;
    margin: 40px;
  }
}

@media (max-width: 600px){
  .image-section{
    width: 40%;
  }
  .image-section img{
    width: 70%;
    height: 90%;
    padding: 10px 0px;
  }
}

@media (max-width: 600px){
  .image-section{
    width: 40%;
  }
  .image-section img{
    width: 80%;
    height: 100%;
    padding: 10px 0px;
  }
}

@media (max-width: 491px){
  .team-section{
    width: 100%;
    min-height: 180vh;
}
.team-container{
    width: 80%;
  }

.team-content-section{
  text-align: center;
  width: auto;
  padding-top: 70px;
}
.image-section{
  width: 40%;
}
.image-section img{
  width: 70%;
  height: 90%;
  position: relative;
  right: 120px;
  padding: 10px 0px;
}
.team-content-section .team-title{
  font-size: 40px;
}
.team-content-section .team-content h3{
  font-size: 20px;
}
.team-content-section .team-content h5{
  font-size: 15px;
  line-height: 1.5;
}

}
