/* BLOG GRID */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* POST CARD */

.post-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms, transform 200ms;
}

.post-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.post-card__cover {
  position: relative;
  overflow: hidden;
}

.post-card__cover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 300ms;
}

.post-card:hover .post-card__cover img {
  transform: scale(1.04);
}

.post-card__category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: var(--primary-color);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.post-card__body {
  padding: 20px 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card__body h5 a {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-text-color);
  line-height: 1.4;
  transition: color 200ms;
  text-decoration: none;
}

.post-card__body h5 a:hover {
  color: var(--primary-color);
}

.post-card__divider {
  height: 2px;
  width: 40px;
  background-color: var(--primary-color);
  margin-top: 10px;
}

.post-card__body p {
  font-size: 14px;
  color: var(--quartenary-text-color);
  line-height: 1.6;
  flex: 1;
}

.post-card__body > div:last-child a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.03em;
}

.post-card__body > div:last-child a:hover {
  text-decoration: underline;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 14px;
  border-top: 1px solid #f0f0f0;
}

.post-card__footer p {
  font-size: 12px;
  color: var(--quartenary-text-color);
  margin: 0;
}
