:root {
  --card-hover: #dedede;
}
[data-theme="dark"] {
  --card-hover: #494949;
}
#cards {
  align-items: flex-start;
  margin: 2% 12%;
}
.post-card {
  background-color: var(--card-color);
  background-position: right;
  background-repeat: no-repeat;
  background-size: auto;
  min-height: 280px;
  width: 90%;
  max-width: 750px;
  padding: 2% 4%;
  margin: 2% 0;
  position: relative;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  cursor: pointer;
}
.post-card:hover {
  background-color: var(--card-hover);
}
.post-card h1 {
  color: var(--heading-color);
}
h1 span {
  font-size: 1rem;
  font-weight: 500;
}
.post-card p {
  color: var(--p-color);
  width: 70%;
}
.post-card button {
  width: 30%;
  position: relative;
  margin-left: auto;
}
@media screen and (max-width: 900px) {
  #cards {
    align-items: center;
    margin: 3% 6%;
  }
  .post-card:nth-child(2),
  .post-card:nth-child(4) {
    align-self: center;
  }
  .post-card {
    min-height: 500px;
  }
  .post-card p {
    color: var(--heading-color);
    width: 80%;
  }
  .post-card button {
    width: 60%;
  }
}
@media screen and (max-width: 700px) {
  .post-card {
    background-position: left;
  }
}
