.school {
  margin: 50px 0;
}
.school .wrap
{
  margin:50px auto 60px auto;
  width:100%;
  display:flex;
  align-items: space-around;
}
.school .title{
  width:380px;
  height:380px;
  margin:10px;
  background-color:#99aeff;
  display:inline-block;
  background-size:cover;
  position:relative;
  cursor:pointer;
  transition: all 0.4s ease-out;
  box-shadow: 0px 35px 77px -17px rgba(0,0,0,0.44);
  overflow:hidden;
  color:white;
  font-family:'Microsoft YaHei',sans-serif;
}
.school .title img{
  height:100%;
  width:100%;
  position:absolute;
  top:0;
  left:0;
  z-index:0;
  transition: all 0.4s ease-out;
}
.school .title .text
{
  z-index:99;
  position:absolute;
  padding:30px;
  height:calc(100% - 60px);
  height:calc(100% - 60px);
}
.school .title h1
{

  font-weight:300;
  margin:0;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.school .title h2
{
  font-weight:100;
  margin:20px 0 0 0;
  font-style:italic;
   transform: translateX(200px);
}
.school .title p
{
  font-weight:300;
  margin:20px 0 0 0;
  line-height: 25px;
/*   opacity:0; */
  transform: translateX(-200px);
  transition-delay: 0.2s;
}
.school .animate-text
{
  opacity:0;
  transition: all 0.6s ease-in-out;
}
.school .title:hover
{
/*   background-color:#99aeff; */
box-shadow: 0px 35px 77px -17px rgba(0,0,0,0.64);
  transform:scale(1.05);
}
.school .title:hover img
{
  opacity: 0.2;
}
.school .title:hover .animate-text
{
  transform:translateX(0);
  opacity:1;
}
.school .dots
{
  position:absolute;
  bottom:20px;
  right:30px;
  margin: 0 auto;
  width:30px;
  height:30px;
  color:currentColor;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-around;

}

.school .dots span
{
    width: 5px;
    height:5px;
    background-color: currentColor;
    border-radius: 50%;
    display:block;
  opacity:0;
  transition: transform 0.4s ease-out, opacity 0.5s ease;
  transform: translateY(30px);

}

.school .title:hover span
{
  opacity:1;
  transform:translateY(0px);
}

.school .dots span:nth-child(1)
{
   transition-delay: 0.05s;
}
.school .dots span:nth-child(2)
{
   transition-delay: 0.1s;
}
.school .dots span:nth-child(3)
{
   transition-delay: 0.15s;
}

@media screen and (max-width:767px) {
  .school .wrap
  {
    margin: -10px 0 0;
    width: 94%;
    display: block;
  }
  .school .title {
    width: 100%;
    height:210px;
  }
  .school .title h2
  {
    font-size: 14px;
    line-height: 18px;
    margin: 0;
  }
  .school .title p
  {
    margin:5px 0 0 0;
    font-size: 12px;
    line-height: 16px;
  }
}
