/* =========================
   Post Card
========================= */

.post-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 18px 28px -8px rgba(34, 56, 101, 0.08);
}


/* =========================
   Image
========================= */

.post-card-img a {
  display: block;
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card-img a:hover img {
  transform: scale(1.05);
}


/* =========================
   Content
========================= */

.post-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


/* =========================
   Typography
========================= */

.post-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-date {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
}

.post-summary {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 12px;
}


/* =========================
   Tags
========================= */

.post-tags {
  margin-bottom: 12px;
}

.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 8px;
  margin: 0 6px 6px 0;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.post-tag:hover {
  background: #e2e2e2;
}


/* =========================
   Read More
========================= */

.post-readmore {
  margin-top: auto; /* 把 read more 推到底 */
}

.post-readmore a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #0066cc;
}

.post-readmore a:hover {
  text-decoration: underline;
}

/* =========================
   Archive Card
========================= */

.post-card-archive {
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.post-card-archive .post-title {
  font-size:1.3rem;
}