﻿#company{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#company li{
    width: 24%;
    overflow: hidden;
    background: #000;
    position: relative;
    min-height: 510px;
      margin-left: 0px;
    margin-right: 0px;
    transition: all ease .5s;
  margin-left:5px;
  margin-right:5px;
}
#company li:nth-child(2){
margin-top:40px;
}


#company li:nth-child(4){
margin-top:40px;
}

#company li > img{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    opacity: .8;
      height: 100%;
    object-fit: cover;
}
#company li > a,#company li > div{
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    transition: all ease .5s;
}
#company li > a img{
    width: 40px;
}
#company li > a h3{
    color: #fff;
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
    line-height: 1;
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
#company li > a p{
    word-break: break-all;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #fff;
    font-family: arial;
    opacity: .4;
    margin: 0;
    line-height: 1;
    margin-bottom: 19px;
    font-size: 13px;
}
#company li > a span{
    color: #fff;
    background:#00617e;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    opacity: 0;
    transition: all ease .5s;
}
#company li:hover > a{
    padding-bottom: 70px;
}
#company li:hover > a span{
    opacity: 1;
}
#company li.active1{
    width: 48%;
}

@media only screen and (max-width:768px){
  #company li > a h3{
  font-size:16px;
  }
  #company li > a span {
    padding: 10px 5px;
  }
  #company {
    display: block;
        margin-top: -30px;
  }
#company li {
      width: 45%;
    display: inline-block;
    min-height: 200px;
  }
  #company li.active1{
    width: 46%;
}
  #company li.active1 a img,  #company li.active1 a h3 {
    display: none;
}
  #company li:hover > a {
    padding-bottom: 50px;
}
}