.card {
  width: 25%;
  min-width: 250px;
  height: 500px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d5b36e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(213, 179, 110, 0.25);
  background-color: #fffde7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(229, 165, 37, 0.35);
}

.card-img {
  width: 100%;
  height: 250px;
  /* object-fit: cover; */
}

.card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #060946;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  max-height: 3.9em; /* ~3 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  padding: 10px 15px;
  background-color: #e5a525;
  font-size: 0.8rem;
  color: #fffde7;
  text-align: center;
  font-weight: bold;
}

.card-item {
    position: relative;
    max-width: 300px;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}
