/* ================================================================
   BLOG / INSIGHTS — Card grid, article layout, metadata
   ================================================================ */

/* ── Blog post card grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Post card ── */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform 0.3s;
  cursor: pointer;
}
.blog-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(15, 105, 179, 0.18);
  transform: translateY(-3px);
}

/* Card image */
.blog-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

/* Card body */
.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Metadata row */
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--blue-50);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Card title + excerpt */
.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.blog-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex: 1;
}


/* ================================================================
   ARTICLE LAYOUT (individual post pages)
   ================================================================ */

/* Narrower container for comfortable reading */
.article-container {
  max-width: 760px;
}

/* Back link */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-link);
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition: color var(--transition-fast);
}
.article-back:hover {
  color: var(--blue-700);
}

/* Article header */
.article-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-header__date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Article body prose */
.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}
.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.article-body ul,
.article-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}
.article-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.article-body strong {
  font-weight: 600;
}

/* External link callout */
.article-external-link {
  background: var(--surface-inset);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px 28px;
  margin: var(--space-8) 0;
}
.article-external-link p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}
.article-external-link .btn {
  margin-top: 0;
}

/* Article video embed */
.article-body .video-wrapper {
  margin: var(--space-8) 0;
  border-radius: 12px;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-container {
    max-width: 100%;
  }
  .blog-card__image {
    height: 180px;
  }
}
