/* ============================================================
   Blog listing page — /blog/ (page__blog.php)
   Reuses .post_card from home.css + adds listing-specific styles.
   ============================================================ */

.promo_section--blog {
  margin-bottom: 0;
}
/* Compact hero — /blog/ has minimal hero content (H1 + 1-line lead).
   Override the default 41rem min-height (from .promo_section--default
   in home.css line 126) and slash inner padding. */
.promo_section--blog .promo_section__inner {
  padding: 1.9rem 0 1.5rem;
  min-height: 0;
}
.promo_section--blog .promo_section__title {
  font-size: 2rem;
  margin: 0 0 0.7rem;
}
.promo_section--blog .promo_section__text {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 720px;
}
.promo_section--blog .promo_section__info {
  max-width: 100%;
}
@media (max-width: 750px) {
  .promo_section--blog .promo_section__inner { padding: 1.25rem 0 1rem; }
  .promo_section--blog .promo_section__title { font-size: 1.5rem; }
  .promo_section--blog .promo_section__text { font-size: 0.88rem; }
}

.page__blog_listing {
  padding: 3rem 0 5rem;
  background: #fafaf7;
}

.page__blog_listing__list {
  margin-bottom: 3rem;
}

/* Post card overrides for blog listing context */
.page__blog_listing .post_card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #ececec;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.page__blog_listing .post_card:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.page__blog_listing .post_card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f4f4f0;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  max-height: none;
}

.post_card__image__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #c8c8c0;
}

.page__blog_listing .post_card__content {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 0.7rem;
}

.page__blog_listing .post_card__date {
  font-size: 0.82rem;
  color: #999;
  margin: 0;
}
.page__blog_listing .post_card__date time { display: inline-flex; align-items: center; gap: 0.3rem; }

.page__blog_listing .post_card__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  color: #1c1d21;
  letter-spacing: -0.01em;
}
.page__blog_listing .post_card__title a {
  color: inherit;
  text-decoration: none;
}
.page__blog_listing .post_card__title a:hover {
  color: #b48a1a;
}

.page__blog_listing .post_card__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 0.5rem;
  flex: 1;
}

.page__blog_listing .post_card__more {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  max-width: none;
  margin: 0;
}

/* Pagination */
.page__blog_listing__pagination {
  display: flex; justify-content: center; gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.page__blog_listing__pagination a,
.page__blog_listing__pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem;
  padding: 0 0.7rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.page__blog_listing__pagination a:hover {
  background: #fffbeb;
  border-color: #d4af37;
  color: #b48a1a;
}
.page__blog_listing__pagination .current {
  background: linear-gradient(135deg, #d4af37 0%, #b48a1a 100%);
  border-color: #b48a1a;
  color: #fff;
}

.page__blog_listing__empty {
  text-align: center;
  color: #888;
  padding: 4rem 0;
}

/* Legacy classes — preserve old usage */
.post__list__more {
  display: flex;
  justify-content: center;
  margin-top: 2.1rem;
}

.btn_blog_post_list__section {
  max-width: 17.25rem;
}

.page_main--blog {
  margin-bottom: 10.25rem;
}

@media screen and (max-width: 1024px) {
  .page__blog_listing .post_card { width: calc((100% - 1.5rem) / 2); }
  .page__blog_listing__list { gap: 1.5rem; }
  .promo_section--blog { margin-bottom: 0; }
  .page_main--blog { margin-bottom: 0; }
}

@media screen and (max-width: 750px) {
  .page__blog_listing { padding: 1.5rem 0 3rem; }
  .page__blog_listing .post_card { width: 100%; }
  .page__blog_listing__list { gap: 1.25rem; }
  .page__blog_listing .post_card__content { padding: 1.2rem 1.25rem 1.4rem; }
  .page__blog_listing .post_card__title { font-size: 1rem; }
  .page__blog_listing .post_card__excerpt { font-size: 0.85rem; }
}
