/* ===== (16) Blog — Figma 3280:22679 ===== */

.blog { padding: 140px 0 160px; overflow: hidden; }
.blog__title { color: #000; }
.blog__title .soft { color: rgba(0, 0, 0, 0.3); }
.blog__track { gap: 24px; }
.blog .pager { margin-top: 48px; }

.post-card { flex: none; width: min(582px, 80vw); scroll-snap-align: start; }
.post-card__link { display: flex; flex-direction: column; gap: 24px; color: #0b0d0c; }
.post-card__media { aspect-ratio: 582 / 364; border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); user-select: none; }
.post-card__link:hover .post-card__media img { transform: scale(1.04); }
/* Date + category on one line: "28 APR 2026 · BRANDING" */
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-top: -4px; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; }
.post-card__meta .post-card__date { margin-top: 0; }
.post-card__cat { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; color: #0b0d0c; }
.post-card__cat::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.post-card__date { margin-top: -4px; font-size: 16px; line-height: 1.5; letter-spacing: -0.01em; opacity: 0.7; }
.post-card__title {
  margin-top: -8px;
  font-weight: 400;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.post-card__link:hover .post-card__title { background-size: 100% 1px; }

@media (max-width: 1024px) { .blog { padding: 96px 0; } }

.blog__all { margin-top: 32px; }

/* ===== All articles (/blog) — hero and filter reuse the case-study index styles ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 3.75vw, 72px) 24px; }
.blog-grid .post-card { width: auto; }
.blog-grid .post-card[hidden] { display: none; }
.blog-grid .post-card__media { position: relative; }
.blog-grid .post-card__title { font-size: clamp(22px, 1.35vw, 26px); }
.post-card__excerpt { margin-top: -12px; font-size: 16px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__soon {
  position: absolute; left: 16px; bottom: 16px;
  padding: 8px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px; line-height: 1; color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
div.post-card__link { cursor: default; }
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* Inner-page hero (/blog, its category, tag and author lists, and /case-studies): one left-aligned column,
   tags, then the title, then the subtitle, centred, instead of the home page's label/content split. */
.page-hero { margin: clamp(64px, 6.25vw, 120px) auto 0; max-width: 1180px; text-align: center; }
.page-hero .cs-kicker { justify-content: center; }
.page-hero .cs-title { margin: 28px auto 0; max-width: 1180px; font-size: clamp(42px, 4.6vw, 88px); text-wrap: balance; }
.page-hero__lead { margin: 28px auto 0; max-width: 680px; text-wrap: pretty; }
.page-hero__lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
  .page-hero { margin-top: 48px; }
  .page-hero .cs-title { margin-top: 22px; }
  .page-hero__lead { margin-top: 20px; }
}

/* Author page (/authors/rasel-ahmed): photo, role and LinkedIn link under the title */
.author-hero { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; text-align: left; }
.author-hero__photo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--card); }
.author-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; line-height: 1.3; }
.author-hero__role { font-size: 18px; color: var(--ink); }
.author-hero__link { font-size: 16px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.author-hero__link:hover { color: var(--ink); }
.author-hero__bio { margin-top: 24px; }
.author-hero__bio + .page-hero__lead { margin-top: 20px; }
