/* === Blog Grid Layout === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem; /* space between cards */
  padding: 1rem;
  align-items: stretch;
}

/* === Blog Card === */
.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

/* === Blog Title === */
.blog-title {
  margin-bottom: 0.25rem;
}

.blog-title h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.blog-title a {
  text-decoration: none;
  color: #333;
}

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

/* === Summary Section === */
.blog-summary {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.blog-summary p {
  margin: 0;
  color: #444;
}

/* === Tag Section === */
.blog-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: auto;
}

.tag-link {
  background-color: #ffe6f0;
  color: #333;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tag-link:hover {
  background-color: #fcd0e0;
}

/* === Responsive Headings === */
.blog-heading {
  font-size: 2rem;
  text-align: center;
  margin: 2rem auto 1rem;
  color: #c6538c;
}

/* === Fallback/Empty Results === */
.missing-post {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  margin: 2rem auto;
}