.card {
    margin-right: auto; margin-left: auto; display: flex; flex-direction: row; width: 100%; margin-bottom: 50px; 
}
.container {
    width: 30%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: auto;
    margin-top: auto;
  }
  
  .header {
    height: 40%;
    width: 100%;
    justify-content: center;
    background-color: black;
    display: flex;
  }
  
  .header-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    padding: 5%;
  }

  .color1{
    color: darkslategray;
  }

  .header.color1 {
    background-color: darkslategray;
  }

  .color2{
    color:goldenrod;
  }

  .header.color2 {
    background-color: goldenrod;
  }

  .color3{
    color: brown;
  }

  .header.color3 {
    background-color: brown;
  }
  
  .title {
    font-size: 1.7rem;
    word-wrap: break-word;
    color: white;
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  
  .content-box {
    height: 60%;
    width: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 5%;
    padding-top: 10%;
    padding-bottom: 10%;
    justify-content: center;
    flex-direction: column;
  }
  
  .sub-content {
    width: 70%;
  }
  
  .sub-content p:first-child {
    margin-bottom: 0;
    font-size: 1.3rem;
    text-align: center;
  }
  
  .sub-content p:last-child {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .img_resp_card{
    width: 100%; 
    height: auto; 
    align-self: center;
    border-radius: 10px;
  }
  .card .container:hover img {
    border: 3px solid #F73D93; /* set your desired border color */
    transform: translateY(-3px); /* move the image up by 5 pixels */
    transition: all 0.2s ease-in-out; /* add a smooth transition effect */
    box-shadow: 0px 0px 10px 3px rgba(127, 132, 135, 0.272); /* add a box shadow */
    border-radius: 1vw;
    cursor: pointer;
  }
  
  .card .container img:hover {
    border: 5px solid #F73D93; /* set your desired border color */
    transform: translateY(5px); /* move the image down by 5 pixels */
    transition: all 0.2s ease-in-out; /* add a smooth transition effect */
    box-shadow: 0px 0px 10px 3px rgba(127, 132, 135, 0.272); /* add a box shadow */
    border-radius: 1vw;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .card {
        margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; width: 100%; 
    }
    .container {
      width: 100%;
      margin-top: auto;
      margin-bottom: 30px;
      margin-left: 0;
      margin-right: 0;
    }
    .title {
        font-size: 2.2rem;
    }
    .sub-content p:first-child {
        font-size: 2.2rem;
    }
    .sub-content p:last-child {
        font-size: 3.5rem;
    }
    .img_resp_card{
      width: 50%; 
    }
  }  

  @media (max-width: 630px) {
    .card {
        margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; width: 100%; 
    }
    .container {
      width: 100%;
      margin-top: auto;
      margin-bottom: 30px;
      margin-left: 0;
      margin-right: 0;
    }
    .title {
        font-size: 1.7rem;
    }
    .sub-content p:first-child {
        font-size: 1.5rem;
    }
    .sub-content p:last-child {
        font-size: 2.5rem;
    }
  }  