case-study {
  width: 50%;
  display: inline-block;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: -10px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #000000;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

case-study header {
  background: none;
  display: none;
  color: #ffffff;
  position: absolute;
  bottom: 45px;
  left: 20px;
  z-index: 15;
}

case-study .learn-more {
  display: none;
  color: red;
  z-index: 15;
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 25px;
}

case-study .logo {
  position: relative;
  visibility: hidden;
  z-index: 15;
}

case-study footer {
  background: none;
  z-index: 15;
}

case-study .hover {
  display: none;
  background-color: #000000;
  position: absolute;
  width: 100%;
  top: 0px;
  left: 0px;
  opacity: 0.5;
  z-index: 10;
}

@media all and (min-width:1140px) {
  case-study .hover,
  case-study {
    height: 400px;
  }
  case-study .logo {
    margin-top: 20%;
    margin-left: 35%;
  }
}

@media all and (max-width:1140px) {
  case-study .hover,
  case-study {
    height: 350px;
  }
  case-study .logo{
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 20%;
    vertical-align: middle;
  }
}

@media all and (max-width:970px) {
  case-study .hover,
  case-study {
    height: 500px;
    width: 100%;
  }
  case-study .logo{
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 8%;
    vertical-align: middle;
  }
}
@media all and (max-width:546px) {
  case-study .hover,
  case-study {
    height: 300px;
    width: 100%;
  }
  case-study .hover{
    display: block !important;
  }
  case-study .learn-more{
    display: block !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }
  case-study .logo{
    visibility: visible !important;
  }
  case-study header{
    display: block !important;
    margin-left: auto;
    margin-right: auto;
    left: 0px;
    right: 0;
    text-align: center;
  }
}
