.cards {
  display: -webkit-flex;
  display: flex;
  /* -webkit-justify-content: center; */
  /* justify-content: space-between; */
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 20px;
  /* padding: 1.5%; */
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.card {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 30px;
  background: #fafafa;
  color: #363636;
  text-decoration: none;
  -moz-box-shadow: rgba(0, 0, 0, 0.19) 0 0 8px 0;
  -webkit-box-shadow: rgba(0, 0, 0, 0.19) 0 0 8px 0;
  box-shadow: rgba(0, 0, 0, 0.19) 0 0 8px 0;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

.esgotado{
    
    font-size: 1em;
    line-height: 1.2;
    padding: 5% 3.5%;
    margin: 0;
    text-transform:uppercase;
    color: #FAFAFA;
    
    background-color: rgba(209, 30, 30, 0.8);
    position: absolute;
    top: 18%;
    left: 0;
    right: 0;
    height: 40px;
    z-index:999;
}

@media (max-width: 700px) {
  .card {
    width: 100%;
  }
}
@media (min-width: 700px) {
  .card {
    width: 250px;
    margin-right: 35px;
    margin-bottom: 20px;
  }
  .card:nth-child(4) {
    margin-right: 0;
  }
}

.card span {
  display: block;
}
.card .card-summary {
  padding: 5% 5% 3% 5%;
}
.card .card-summary p{
  text-align: left;
  color: #000;
}
.card p.curso-valor{
  text-align: left;
  color: #FFF;
  background-color: #d11e3b;
  display: inline-block;
  padding: 5px;
  font-weight: bold;
  border-radius: 7px;
  line-height: 1.3;
  font-size: 13px;
    bottom: 0; position:absolute;
    margin-bottom: 20px;
}
.card .card-summary p i{
  font-size: 16px;
  margin-right: 5px;
  color: #d11e3b;
}
.card .card-header {
  position: relative;
  height: 175px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  /* background-blend-mode: overlay; */
  -moz-border-radius: 4px 4px 0 0;
  -webkit-border-radius: 4px;
  border-radius: 4px 4px 0 0;
  transition: all 0.4s ease-in;
}
.card .card-title {
  background: rgba(33, 33, 33, 0.8);
  padding: 3.5% 0 2.5% 0;
  color: white;
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  width: 100%;
}
.card .card-title h3 {
  font-size: 1.2em;
  line-height: 1.2;
  padding: 0 3.5%;
  margin: 0;
  text-transform: initial;
  color: #FAFAFA;
}
.card .card-meta {
  overflow: hidden;
  color: #666;
  font-size: .78em;
  text-transform: uppercase;
  position: absolute;
  margin: 10px;
  
}
.card:hover, .card:focus {
  background: white;
  -moz-box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 20px 0px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 20px 0px;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 20px 0px;
}
.card:hover .card-title, .card:focus .card-title {
  background: rgba(209, 30, 59, 0.9);
}

img {
  max-width: 100%;
}

* {
  -moz-transition-property: background-color, border-color, box-shadow, color, opacity, text-shadow, -moz-transform;
  -o-transition-property: background-color, border-color, box-shadow, color, opacity, text-shadow, -o-transform;
  -webkit-transition-property: background-color, border-color, box-shadow, color, opacity, text-shadow, -webkit-transform;
  transition-property: background-color, border-color, box-shadow, color, opacity, text-shadow, transform;
  -moz-transition-duration: 0.2s;
  -o-transition-duration: 0.2s;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
  -moz-transition-timing-function: linear;
  -o-transition-timing-function: linear;
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
}

.card:hover .card-header{
  background-color: rgba(230, 54, 61, 0.8);
  background-size: 130%;
  transition: all 0.4s ease-in;
}
