.panel-head {
  color: #C70039;
  font-family: "Gotu", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 28px;
}

.panel {
  padding: 15px;
  background: rgba(255, 255, 255, 0.95);
}

.card-main {
  display: flex;
  /* height: 300px; */
  /* max-width: 800px; */
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  /* overflow: hidden; */
  /* margin-bottom: 20px; */
}

.card-img {
  flex-basis: 40%;
  height: 100%;
}

.card-img img {
  border-radius: 10%;
  padding: 5px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content {
  flex-basis: 70%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-subtitle {
  font-size: 20px;
  font-family: "Martel", serif;
  color: #FF5733;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #581845;
  font-family: "Martel", serif;
  margin-top: 10px;
}

.card-qualify {
  font-size: 14px;
  font-weight: bold;
  color: #7232bb;
  font-family: "Martel", serif;
  margin-top: 0px;
}

/* .card-description {
  margin-top: 10px;
  font-size: 12px;
  max-height: 4rem; 
  line-height: 1.5;
  font-family: "Martel", serif;
  overflow-y: auto; 
  position: relative;
  padding-right: 10px; 
  word-wrap: break-word;
}
*/
#read-more-link {
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  padding-left: 5px;
  display: inline;
} 



@media screen and (max-width: 420px) {


  .row {
    margin-right: 0px !important;
    margin-left: 0px !important;
  }

  .col,
  .col-6,
  .col-md-4 {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }


  .card-main {
    display: flex;
    width: 100%;
    /* height: 15vh; */
    /* max-width: 800px; */
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    min-height: 150px;
    /* overflow: hidden; */
    /* padding: 10px !important; */
  }

  .panel-head {
    color: #C70039;
    font-family: "Gotu", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;

  }

  .card-subtitle {
    margin-top: 0 !important;
    padding-top: 5px;
    font-family: "Martel", serif;
    color: #FF5733;
    font-size: 10px !important;
  }

  .card-title {
    font-size: 8px;
  }

  .card-qualify {
    margin-top: 0px;
    font-size: 7px;
    margin-top: -10px;
  }


  .card-description {
    margin-top: 0px;
    font-size: 6px;
    /* max-height: 3rem; */
  }

  .card-content {
    padding: 5px;
  }

  .panel .card-body {
    padding: 0.1rem;
  }


}

@media (min-width: 421px) and (max-width: 575px) {

  .card-main {
    display: flex;
    width: 100%;
    /* height: 20vh; */
    /* max-width: 800px; */
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    /* padding: 10px !important; */
  }

  .card-subtitle {
    margin-top: 0 !important;
    font-family: "Martel", serif;
    color: #FF5733;
    font-size: 12px !important;
  }

  .panel-head {
    color: #C70039;
    font-family: "Gotu", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;

  }

  .card-title {
    margin-top: 10px;
    font-size: 8px;
  }

  .card-img img {
    border-radius: 10%;
    padding: 5px;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .card-qualify {
    margin-top: 2px;
    font-size: 6px;
    margin-top: -10px;
  }

  .card-description {
    margin-top: 0px;
    font-size: 6px;
    /* max-height: 3.2rem; */
  }


  .card-content {
    padding: 10px;
  }

  .card-body {
    padding: 0.5rem !important;
  }


}

@media (min-width: 576px) and (max-width: 991px) {



  .card-subtitle {
    margin-top: 0 !important;
    font-family: "Martel", serif;
    color: #FF5733;
    font-size: 12px !important;
  }



  .card-title {
    margin-top: 5px;
    font-size: 7px;
  }



  .card-qualify {
    margin-top: 2px;
    font-size: 7px;
    margin-top: -10px;
  }


  .card-description {
    margin-top: 0px;
    font-size: 7px;
    /* max-height: 4.5rem; */
  }

  .card-content {
    padding: 10px;
  }

}

@media (min-width: 992px) and (max-width: 1280px) {



  .card-subtitle {
    margin-top: 0rem;
    font-family: "Martel", serif;
    color: #FF5733;
    font-size: 14px !important;
  }


  .card-title {
    margin-top: 5px;
    font-size: 10px;
  }


  .card-qualify {
    margin-top: 2px;
    font-size: 8px;
    margin-top: -10px;
  }

  .card-description {
    margin-top: 0px;
    font-size: 8px;
    /* max-height: 6rem; */
  }

  .card-content {
    padding: 14px;
  }

}


@media (min-width: 1281px) {
  .panel-head {
    color: #C70039;
    font-family: "Gotu", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 28px;
  }

  .panel {
    background: rgba(255, 255, 255, 0.95);
    /* semi-transparent background */
  }

  .card-main {
    display: flex;
    width: 95%;
    background-color: rgba(255, 255, 255, 0.2);
    /* semi-transparent background */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    min-height: 300px;
    transition: height 0.3s ease;
    /* Smooth transition for height changes */
  }

  .card-img {
    flex-basis: 40%;
  }

  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-content {
    flex-basis: 60%;
    padding: 20px;
  }

  .card-subtitle {
    font-size: 20px;
    font-family: "Martel", serif;
    color: #FF5733;
  }

  .card-title {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #581845;
    font-family: "Martel", serif;
  }

  .card-qualify {
    font-size: 12px;
    font-weight: bold;
    color: #7232bb;
    font-family: "Martel", serif;
  }

  .card-description {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    font-family: "Martel", serif;
    word-wrap: break-word;
    /* Ensure long words break */
  }

  .read-more {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
  }

  .read-more:hover {
    text-decoration: underline;
  }


}