
.cards-container-style {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  padding: 20px;
  gap: 50px;
  background-color: #f0f8ff;
  border-bottom: 1px solid rgb(117, 188, 250) ;
}



.card {
  width: 24rem;
  height: 32rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  color: rgb(240, 240, 240);
  box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
}

.card img {
  position: static;
  object-fit: cover;
  width: 100%;
  height: 100%;

  transition: opacity 0.3s ease-out;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: absolute;
  bottom: 0;
  gap: 5px;

  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  transform: translateY(calc(100% - 5rem));
  /* calc(100% - 80px) */

  .header-card-content {
    display: block;
    padding: 0px 5px;
    color: #fff;
    background-color: rgba(0, 75, 40, 1) ;
    width: 100%;
  }

  h2 , p, a, span {
    margin: 0px;
    width: 100%;
  }

  a {
    color: rgb(255, 255, 0);
    text-decoration: none;
    font-weight: bold;
    display: block;
    align-items: center;
    width: fit-content;
    padding: 5px 0px 10px 0px;
    word-spacing: 5px;
    letter-spacing: 1px;
  }

  h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 75, 40, 1) ;
    height: 5rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(1.125rem, 1.0417rem + 0.4167vw, 1.5625rem);
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
    word-spacing: 3px;
    letter-spacing: 1px;
    width: 90%;
  }
}



.card:hover {
  -webkit-box-shadow: 0px 0px 15px 2px rgba(0, 123, 255, 1);
  -moz-box-shadow: 0px 0px 15px 2px rgba(0, 123, 255, 1);
  box-shadow: 0px 0px 15px 2px rgba(0, 123, 255, 1);

  .card-content {
    transform: translateY(0%);
    h2 {
      background-color: rgba(0, 75, 40, 0.5) ;
  
    }
  }


  img {
    filter: contrast(120%);
  }

}



/* RESPONSIVE QUERIES */


@media (min-width: 640px) {
  .card {
    flex-basis: calc(50% - 40px);
  }
}


@media (min-width: 1100px) {
  .card {
    flex-basis: calc(33.3% - 40px);
  }
}

@media (min-width: 1700px) {
  .card {
    flex-basis: calc(25% - 40px);
  }
}









