/* ==========================================================================
   BLOG — listing cards, single-post layout, recent-posts sidebar
   ========================================================================== */

/* ---- Listing grid ---- */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 26px; }

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card .card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.blog-card .card-cover {
  width: 100%; height: 190px; object-fit: cover; display: block;
  background: var(--navy);
}
/* Placeholder cover when a post has no image */
.blog-card .card-cover--ph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 56px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0A3A78, #041C40);
}

.blog-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.blog-card .card-date {
  color: var(--muted); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px;
}
.blog-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.blog-card .excerpt { color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.blog-card .card-more { margin-top: auto; color: var(--orange); font-weight: 700; font-size: 14px; }

@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---- Home "Insights" strip ---- */
.home-insights .posts-grid { margin-top: 0; }

/* ==========================================================================
   SINGLE POST + SIDEBAR
   ========================================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
.blog-main { min-width: 0; }

.post { background: #fff; padding: 30px; border-radius: 14px; border: 1px solid var(--line); }
.post h1 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; color: var(--navy); }
.post .meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.post .post-cover {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: 12px; margin: 0 0 22px; display: block;
}
.post .post-body { color: var(--ink); }
.post .post-body p { margin: 0 0 16px; line-height: 1.75; }
.post .post-body h2 { color: var(--navy); margin: 30px 0 12px; font-size: 22px; }
.post .post-body ul, .post .post-body ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.75; }
.post .post-body li { margin-bottom: 8px; }
.post .post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.post .post-body a { color: var(--orange); }

/* ---- Recent posts sidebar ---- */
.blog-aside {
  position: sticky; top: 96px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 8px;
}
.blog-aside .aside-title {
  margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
}
.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.recent-item:first-child { border-top: 0; }
.recent-thumb {
  width: 64px; height: 64px; flex: 0 0 64px;
  object-fit: cover; border-radius: 10px; display: block; background: var(--navy);
}
.recent-thumb--ph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #0A3A78, #041C40);
}
.recent-text { display: flex; flex-direction: column; min-width: 0; }
.recent-title {
  font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-item:hover .recent-title { color: var(--orange); }
.recent-date { font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 28px; }
  .blog-aside { position: static; }
}
