/* ==========================================================================
   Blogs Grid / Post Cards (post.css)
   ========================================================================== */

.post-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-inline: 16px;
}

@media (min-width: 1024px) {
  .post-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-inline: 22px;
  }
}

.post-card {
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: #e2e8f0;
}

.post-card .thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f3f5f7;
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.post-card:hover .thumb img {
  transform: scale(1.02);
}

.post-card .thumb-fallback {
  background: #f3f5f7;
  height: 0;
  padding-bottom: 56.25%;
}

.post-card .inner {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.post-card h1.title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  color: #fff;
  background: var(--h2-bar, #661a3c);
  border-radius: 0;
  box-shadow: none;
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  line-height: 1.25;
  text-shadow:
    0 0 6px var(--glow-text-strong),
    0 0 14px var(--glow-text-soft);
}

.post-card h1.title::before,
.post-card h1.title::after {
  content: none;
  display: none;
}

.post-card h1.title a {
  color: inherit;
  text-decoration: none;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-card h1.title a:hover {
  text-decoration: underline;
}

.post-card .excerpt {
  padding: 12px 16px;
  font-size: .98rem;
  line-height: 1.55;
  color: #111;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp:2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .excerpt-more {
  display: block;
  padding: 0 16px 12px;
  margin-top: 6px;
  text-align: right;
  color: var(--brand, #b30000);
  font-weight: 600;
  text-decoration: none;
}

.post-card .excerpt-more:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card .thumb img {
    transition: none;
  }
}

.post-card * {
  min-width: 0;
}

.post-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
