.custom-height {
  height: 38px;
}

.card-img-wrapper {
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}
.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bg-white {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-primary-soft {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
  border: none;
  transition: 0.3s;
}
.card {
  width: 100%;
  /* Adjusts to the grid column size */
  max-height: 450px;
  /* Ensure consistency */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Set a fixed size for images */
.custom-card-img {
  height: 200px;
  /* Fixed height for images */
  object-fit: cover;
  /* Prevent distortion */
  width: 100%;
  /* Match card width */
}

/* Handle text overflow */
.card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer alignment */
.card-footer {
  padding-top: 0.5rem;
  margin-top: auto;
  /* Push footer to the bottom */
}
/* Ensure all cards have the same dimensions */
.card {
  width: 100%;
  /* Adjusts to the grid column size */
  max-height: 450px;
  /* Ensure consistency */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Set a fixed size for images */
.custom-card-img {
  height: 200px;
  /* Fixed height for images */
  object-fit: cover;
  /* Prevent distortion */
  width: 100%;
  /* Match card width */
}

/* Handle text overflow */
.card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer alignment */
.card-footer {
  padding-top: 0.5rem;
  margin-top: auto;
  /* Push footer to the bottom */
}
