/* ============================================
   BLOG — blog.html (listing)
   ============================================ */

body { background: var(--light-gray); }

/* Hero is the shared photo-backdrop .page-hero (see inner-pages.css), matching
   the other marketing inner pages. The old dark-gradient .hero lived here. */

/* ----- FILTERS ----- */
.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 32px 0;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ----- BLOG LAYOUT ----- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 0 0 100px;
}

/* ----- FEATURED POST ----- */
.featured-post {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-calm),
              box-shadow var(--t-base) var(--ease-calm);
  margin-bottom: 32px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.featured-post:hover { box-shadow: var(--shadow-lg); }

.featured-img {
  background: linear-gradient(135deg, #d5d5d5, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-img svg {
  width: 64px;
  height: 64px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1;
  opacity: 0.4;
}

.featured-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* ----- POST TAG ----- */
.post-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--warm-tint);
  color: var(--warm-soft);
  margin-bottom: 16px;
  width: fit-content;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--silver);
  margin-bottom: 16px;
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.read-more {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-base) var(--ease-soft);
}

.read-more:hover { color: var(--accent-hover); }

.read-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- POST GRID ----- */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-calm),
              box-shadow var(--t-base) var(--ease-calm);
  display: grid;
  grid-template-columns: 200px 1fr;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-img {
  background: linear-gradient(135deg, #d5d5d5, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bias crop upward for portrait sources so faces aren't cut in the 16:10 frame */
.post-card-img img.post-card-img--top { object-position: 50% 20%; }

.post-card-img svg {
  width: 36px;
  height: 36px;
  stroke: var(--silver);
  fill: none;
  stroke-width: 1;
  opacity: 0.4;
}

.post-card-body { padding: 24px; }

.post-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.post-card-body .post-meta { margin-bottom: 8px; }

.post-card-body .post-excerpt {
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* ----- SIDEBAR ----- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  position: relative;
  letter-spacing: -0.01em;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--r-pill);
}

/* Sidebar sticks alongside the article column on desktop */
.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sidebar-link {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}

.sidebar-link:hover { color: var(--accent-hover); gap: 10px; }

.sidebar-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About widget — brand mark above the heading */
.sidebar-mark {
  width: 52px;
  height: 52px;
  display: block;
  margin-bottom: 16px;
}

/* What Guides Us — pillar list */
.pillar-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.pillar-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.pillar-list li:first-child { padding-top: 0; }
.pillar-list li:last-child  { border-bottom: 0; }

.pillar-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.pillar-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.sidebar-scripture {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
}

/* Conversion card — filled accent panel */
.sidebar-cta {
  background: linear-gradient(160deg, var(--accent), #233c5b);
  color: var(--white);
}

.sidebar-cta h3 { color: var(--white); }

.sidebar-cta h3::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.7), transparent);
}

.sidebar-cta .sidebar-text { color: rgba(255,255,255,0.82); }

.sidebar-cta-btn {
  width: 100%;
  margin-top: 20px;
}

.sidebar-cta-alt {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--t-base) var(--ease-soft);
}

.sidebar-cta-alt:hover { color: var(--white); }

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  /* Featured story leads; the sidebar widgets fall to the bottom (DOM order)
     instead of jumping above the posts. Drop the sticky so they flow normally. */
  .sidebar-sticky { position: static; }
  /* Reflow post cards here (not at 768) so the 769–1024 tablet band doesn't keep
     the cramped 200px image column. */
  .post-card { grid-template-columns: 1fr; }
  .post-card-img { min-height: 200px; }
}

@media (max-width: 768px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .featured-body { padding: 28px 24px; }
}
