/* ==================================================================

   BLOG  —  page-specific styles

   Self-contained on purpose: the post card, the filter pills and the

   pager live here rather than in components.css, because nothing else

   on the site uses them. The single post view can reuse this same file.

   ================================================================== */



.bl-posts { background: var(--surface); }

.bl-cta    { background: var(--surface-sand); }



.bl-posts .section-intro { margin-bottom: 40px; }



/* ---- the filter pills ----------------------------------------------

   Same shape as the archive filter bar, scrollable on a phone so a long

   category list never wraps into three ragged rows. */

.bl-filter {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 10px;

  margin-bottom: 52px;

}

.bl-pill {

  display: inline-block;

  padding: 10px 20px;

  border-radius: 999px;

  border: 1px solid var(--line);

  background: var(--surface);

  color: var(--brand-primary);

  font-size: 14px;

  font-weight: 600;

  line-height: 1.2;

  text-decoration: none;

  transition: background .25s var(--ease-out), color .25s var(--ease-out),

              border-color .25s var(--ease-out);

}

.bl-pill:hover {

  border-color: var(--brand-primary);

  background: var(--brand-primary);

  color: #fff;

}

.bl-pill.is-active {

  background: var(--brand-primary);

  border-color: var(--brand-primary);

  color: #fff;

}



/* ---- the grid ------------------------------------------------------- */

.mb-post-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 30px;

}



.mb-post {

  min-width: 0;

  display: flex;

  flex-direction: column;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 16px;

  overflow: hidden;

  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),

              border-color .35s var(--ease-out);

}

.mb-post:hover {

  transform: translateY(-5px);

  border-color: var(--brand-accent);

  box-shadow: 0 20px 42px rgba(0, 51, 51, .14);

}



.mb-post-media {

  position: relative;

  display: block;

  aspect-ratio: 3 / 2;

  overflow: hidden;

  background: var(--brand-deep);

}

.mb-post-media img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform .5s var(--ease-out);

}

.mb-post:hover .mb-post-media img { transform: scale(1.05); }



.mb-post-cat {

  position: absolute;

  top: 14px;

  left: 14px;

  background: var(--brand-accent);

  color: #fff;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  padding: 7px 13px;

  border-radius: 999px;

}

/* No featured image: the chip sits in the body instead of on the photo. */

/* The body is a flex column, so the chip needs flex-start or it stretches

   the full card width instead of hugging its text. */

.mb-post-cat--inline {

  position: static;

  display: inline-block;

  align-self: flex-start;

  margin-bottom: 14px;

}



.mb-post-body {

  display: flex;

  flex-direction: column;

  flex: 1 1 auto;

  padding: 24px 26px 26px;

}

.mb-post--flat .mb-post-body { padding-top: 28px; }



.mb-post-meta {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 14px;

  font-weight: 500;

  letter-spacing: .4px;

  color: var(--text-muted);

  margin-bottom: 10px;

}

.mb-post-dot { color: var(--brand-teal); }



.mb-post-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: var(--brand-ink);
}

.mb-post-title a {

  color: var(--brand-primary);

  text-decoration: none;

  transition: color .25s var(--ease-out);

}

.mb-post-title a:hover { color: var(--brand-accent); }



.mb-post-excerpt {

  margin: 0 0 20px;

  font-size: 16px;

  line-height: 26px;

  color: var(--text-body);

}



/* Pushed to the foot of the card so every card's link sits on one line. */

.mb-post-more {

  margin-top: auto;

  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0px;

  text-transform: uppercase;

  color: var(--brand-accent);

  text-decoration: none;

  transition: gap .25s var(--ease-out), color .25s var(--ease-out);

}

.mb-post-more:hover { gap: 14px; color: var(--brand-primary); }

.mb-post-more i { font-size: 12px; }



/* ---- pagination ------------------------------------------------------ */

.bl-pager {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 8px;

  margin-top: 56px;

}

.bl-pager .page-numbers {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 44px;

  height: 44px;

  padding: 0 14px;

  border-radius: 999px;

  border: 1px solid var(--line);

  background: var(--surface);

  color: var(--brand-primary);

  font-size: 15px;

  font-weight: 700;

  text-decoration: none;

  transition: background .25s var(--ease-out), color .25s var(--ease-out),

              border-color .25s var(--ease-out);

}

.bl-pager a.page-numbers:hover {

  background: var(--brand-primary);

  border-color: var(--brand-primary);

  color: #fff;

}

.bl-pager .page-numbers.current {

  background: var(--brand-primary);

  border-color: var(--brand-primary);

  color: #fff;

}

.bl-pager .page-numbers.dots {

  border-color: transparent;

  background: none;

  min-width: 26px;

  padding: 0;

}



/* ---- empty state ----------------------------------------------------- */

.bl-empty {

  max-width: 620px;

  margin: 0 auto;

  text-align: center;

  background: var(--surface-sand);

  border-radius: 16px;

  padding: 48px 40px;

}

.bl-empty h3 {

  margin: 0 0 10px;

  font-size: 23px;

  line-height: 31px;

  color: var(--brand-primary);

}

.bl-empty p {

  margin: 0;

  font-size: 17px;

  line-height: 28px;

  color: var(--text-body);

}

.bl-empty .btn-row { margin-top: 26px; }



/* ---- closing CTA ----------------------------------------------------- */

.bl-cta .section-intro { margin-bottom: 44px; }

.bl-cta-card { max-width: 620px; margin: 0 auto; }



/* ==================================================================

   SINGLE POST

   The banner and the article prose come from standard-page.css, which

   single.php loads alongside this file. Only the date line, the body

   spacing and the closing row are specific to a post.

   ================================================================== */



.bl-single-body { background: var(--surface); }



.bl-single-date {

  margin: 10px 0 0;

  font-size: 15px;

  font-weight: 600;

  letter-spacing: 1.4px;

  text-transform: uppercase;

  color: var(--brand-mint);

}



/* The article reuses .sp-content, so it inherits the same reading

   measure; this only re-centres it and gives the closing link room. */

.bl-single-back-row { background: var(--surface); padding-bottom: 80px; }

.bl-single-back { margin-top: 0; }



/* ---- the newsletter panel -------------------------------------------

   An issue of Maranatha Moments: the cover scan beside what is in it.

   The cover is a tall portrait page, so it is never cropped to a ratio —

   it keeps its own proportions and the panel sits alongside the top of

   it rather than centring against its full height. */

.bl-issue { background: var(--surface-sand); }



.bl-issue-cover {

  border-radius: 14px;

  overflow: hidden;

  box-shadow: 0 22px 50px rgba(0, 51, 51, .16);

  line-height: 0;

}

.bl-issue-cover img {

  width: 100%;

  height: auto;

  display: block;

}



.bl-issue-panel { padding-top: 6px; }



.bl-issue-label {

  display: block;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 1.6px;

  text-transform: uppercase;

  color: var(--brand-accent);

  margin-bottom: 12px;

}

.bl-issue-title {

  margin: 0 0 22px;

  font-size: 28px;

  line-height: 36px;

  color: var(--brand-primary);

}

/* The list comes from the editor, so style whatever it outputs rather

   than a hand-built <ul>: bullets, numbers or the odd paragraph. */

.bl-issue-list { margin-bottom: 32px; }

.bl-issue-list > *:last-child { margin-bottom: 0; }



.bl-issue-list ul,

.bl-issue-list ol {

  margin: 0 0 18px;

  padding: 0;

  list-style: none;

}

.bl-issue-list li {

  position: relative;

  padding: 0 0 0 26px;

  margin-bottom: 14px;

  font-size: 18px;

  line-height: 28px;

  color: var(--brand-ink);

}

.bl-issue-list ul > li::before {

  content: "";

  position: absolute;

  left: 0;

  top: 11px;

  width: 8px;

  height: 8px;

  border-radius: 50%;

  background: var(--brand-teal);

}

/* A numbered list keeps its numbers, in the accent colour. */

.bl-issue-list ol { counter-reset: bl-issue; }

.bl-issue-list ol > li { counter-increment: bl-issue; }

.bl-issue-list ol > li::before {

  content: counter(bl-issue) ".";

  position: absolute;

  left: 0;

  top: 0;

  font-weight: 800;

  color: var(--brand-accent);

}

.bl-issue-list li:last-child { margin-bottom: 0; }

.bl-issue-list p {

  margin: 0 0 16px;

  font-size: 17px;

  line-height: 28px;

  color: var(--text-body);

}

.bl-issue-list a { color: var(--brand-primary); }

.bl-issue-list a:hover { color: var(--brand-accent); }



.bl-more .section-intro { margin-bottom: 44px; }

.bl-more .section-intro h2 { margin: 0; }



/* ---- responsive ------------------------------------------------------ */

@media (max-width: 1199px) {

  .mb-post-grid { gap: 24px; }

  .mb-post-body { padding: 22px 22px 24px; }

}



@media (max-width: 991px) {

  .mb-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bl-filter { margin-bottom: 40px; }

  .bl-posts .section-intro { margin-bottom: 32px; }

}



@media (max-width: 991px) {

  .bl-issue-cover { max-width: 460px; margin: 0 auto 36px; }

  .bl-issue-panel { padding-top: 0; }

}



@media (max-width: 575px) {

  .bl-issue-title { font-size: 24px; line-height: 32px; }

  .bl-issue-list li { font-size: 16px; line-height: 26px; }

  .mb-post-grid { grid-template-columns: 1fr; gap: 20px; }

  .mb-post-title { font-size: 19px; line-height: 27px; }

  .bl-pill { font-size: 13px; padding: 9px 16px; }

  .bl-pager { margin-top: 42px; }

  .bl-pager .page-numbers { min-width: 40px; height: 40px; font-size: 14px; }

  .bl-empty { padding: 36px 24px; }

}
.bl-posts { scroll-margin-top: 88px; }

@media (max-width: 767.98px) {
  .bl-posts { scroll-margin-top: 74px; }
}