/*
 * blog-listing.css — Nextlaw Child Blog Listing
 *
 * Nextlaw color palette:
 *   --thm-base  : #a89968  (gold/accent — set by theme option, default #a89968)
 *   --thm-blue  : #00062c  (dark navy)
 *
 * We mirror those into scoped custom properties so this file
 * does NOT override nextlaw's global palette on other pages.
 */

/* ── Color Tokens (scoped) ───────────────────────────────── */
.nlc-blog-listing,
.nlc-cat-filter,
.nlc-archive-listing {
  --nlc-gold:         #a89968;
  --nlc-navy:         #00062c;
  --nlc-navy-deep:    #00031a;
  --nlc-bg-warm:      #f9f6f0;
  --nlc-border:       #e2d9c8;
  --nlc-text:         #242424;
  --nlc-muted:        #797979;
  --nlc-radius:       6px;
  --nlc-shadow:       0 2px 12px rgba(168, 153, 104, .12);
  --nlc-shadow-hover: 0 6px 24px rgba(168, 153, 104, .22);
}

/* ── Category Filter Bar ─────────────────────────────────── */
.nlc-cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 28px;
}

.nlc-cat-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--nlc-border);
  border-radius: 30px;
  color: var(--nlc-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  background: #fff;
}

.nlc-cat-btn:hover,
.nlc-cat-btn.active {
  background: var(--nlc-gold);
  border-color: var(--nlc-gold);
  color: #fff;
  text-decoration: none;
}

/* ── Post Grid ───────────────────────────────────────────── */
.nlc-post-grid {
  margin-top: 8px;
  row-gap: 44px;
}

/* ── Post Card ───────────────────────────────────────────── */
.nlc-post-card {
  background: #fff;
  border-radius: var(--nlc-radius);
  box-shadow: var(--nlc-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}

.nlc-post-card:hover {
  box-shadow: var(--nlc-shadow-hover);
  transform: translateY(-3px);
}

.nlc-post-card__thumb-link {
  display: block;
  overflow: hidden;
}

.nlc-post-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}

.nlc-post-card:hover .nlc-post-card__thumb {
  transform: scale(1.04);
}

.nlc-post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nlc-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nlc-gold);
  margin-bottom: 8px;
  text-decoration: none;
}

.nlc-card-cat:hover {
  color: var(--nlc-navy);
  text-decoration: none;
}

.nlc-post-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--nlc-navy);
}

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

.nlc-post-card__title a:hover {
  color: var(--nlc-gold);
}

.nlc-post-card__excerpt {
  font-size: 13.5px;
  color: var(--nlc-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.nlc-post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nlc-gold);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}

.nlc-post-card__cta:hover {
  color: var(--nlc-navy);
  text-decoration: none;
}

/* ── Archive description ─────────────────────────────────── */
.nlc-archive-description {
  font-size: 15px;
  color: var(--nlc-muted);
  margin-bottom: 24px;
  max-width: 680px;
}

/* ── No posts ────────────────────────────────────────────── */
.nlc-no-posts {
  padding: 40px 0;
  color: var(--nlc-muted);
  text-align: center;
}

/* ── Pagination override (inherits nextlaw styles) ───────── */
.nlc-pagination {
  margin-top: 20px;
}

/* ── Spacing ─────────────────────────────────────────────── */
.nlc-blog-listing,
.nlc-archive-listing {
  padding-top: 16px;
  padding-bottom: 60px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .nlc-cat-filter {
    gap: 6px;
  }
  .nlc-cat-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
  .nlc-post-card__thumb {
    height: 180px;
  }
}
