.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px; 
  min-width: 300px; /* Prevents cards from getting too tiny */
  flex: 1 1 0;
  margin: 0;
  padding: 12px;
  border-radius: 15px;
  background: #F1F7F4;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
  overflow: hidden;
}

.card > *:not(:last-child) {
  margin-bottom: 12px;
}

.card img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.30);
  display: block;
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.card-content > *:not(:last-child) {
  margin-right: 12px;
}

.post {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.post h2 {
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.post p {
  margin: 0;
  font-size: 1rem;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 2px solid #4D6958;
  color: #4D6958;
  background: transparent;
  overflow: visible;
}

.card-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #F1F7F4;
  color: #4D6958;
  text-decoration: none;
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.2;
  min-width: 100px;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.card-button:hover {
  background: #e0efe7;
}

@media (max-width: 900px) {
  .card {
    max-width: 100%;
    min-width: 0;
  }
}