

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.container_card{
  padding: 15px;
  display: flex;
  justify-content: space-around;
}
.container_cards{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.card{
  position: relative;
  width: 350px;
  height: 450px;
  border-radius: 20px ;
  background-color: white;
  margin: 5px;
}

.card .card_img{
  position: relative;
  top: 0;
  width: 100%;
  background-color: rgb(255, 255, 255);
  height: 70%;
  border-radius: 20px;
  padding: 5px;
  margin-inline: auto;
  overflow: hidden;
}

.card .card_img img{
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 20px;
}

.content{
  color: black;
  position: relative;
  padding-inline: 15px;
  overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines of text */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.content a{
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.content .descr{
  color: rgb(156, 156, 156);
  text-align: right !important;
  font-size: 16px !important;
}

.content .title{
  text-align: right !important;
  font-size: 32px !important;
}

.button_items{
  padding: 8px;
  background-color: cornflowerblue;
  text-align: center;
  border-radius: 15px;
  margin: 10px;
  cursor: pointer;
  text-decoration: none;
  color: white !important;
  font-size: 18px !important;
  font-weight: 700;
}

@media (max-width:768px){
  .container_card{
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
  }

  .card{
    width: 350px;
    height: 450px;
    background-color: white;
    margin: auto;
  }
  .card .card_img{
    height: 65%;
  }

  .content{
    color: black;
    position: relative;
    padding-inline: 10px;
    height: 100px;
    overflow: hidden;
  }
  .content .descr{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines of text */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  @media(max-width:400px){
    .card {
      width: 260px;
      height: 450px;
      background-color: white;
      margin: auto;
    }
  }
}