.blog-grid-section {
  background: #f8fafc;
  padding: 3.5rem 0 5rem;
}
.blog-empty {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  padding: 2rem 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover {
  border-color: #EB6608;
  box-shadow: 0 12px 32px rgba(235, 102, 8, 0.14);
  transform: translateY(-3px);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EB6608;
}
.blog-card-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.blog-card-body p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* CATEGORIES */
.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.blog-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.blog-cat-link:hover { border-color: #EB6608; color: #EB6608; }
.blog-cat-link.is-active { background: #EB6608; border-color: #EB6608; color: #fff; }

.blog-cat {
  display: inline-block;
  background: #fff2e8;
  color: #EB6608;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.blog-cat-ondark {
  display: inline-block;
  background: #EB6608;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0 0 0.75rem;
  vertical-align: middle;
}
.blog-cat-ondark:hover { background: #d15600; }

/* linha de metadados do post (categoria + data/leitura) no hero escuro */
.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.35rem;
}
.blog-post-meta .blog-cat-ondark { margin: 0; }
.blog-post-meta .blog-card-date { margin: 0; }

/* PAGINATION */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3.5rem;
}
.blog-page-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-page-num,
.blog-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #fff;
  color: #0f172a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.blog-page-num:hover,
.blog-page-nav:hover {
  border-color: #EB6608;
  color: #EB6608;
}
.blog-page-num.is-current {
  background: #EB6608;
  border-color: #EB6608;
  color: #fff;
  cursor: default;
}
.blog-page-nav.is-disabled {
  color: #cbd5e1;
  background: #f8fafc;
  cursor: not-allowed;
}

/* POST PAGE */
.blog-post-header {
  background: #0f172a;
  color: #fff;
  padding: 9rem 1rem 3rem;
}
.blog-back {
  display: block;
  color: #EB6608;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.blog-back:hover { text-decoration: underline; }
.blog-post-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.75rem 0 0;
}
.blog-post-author {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.blog-post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* RELATED */
.blog-related {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 0 4rem;
  margin-top: 3rem;
}
.blog-related-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.75rem;
}

.post-content {
  max-width: 42rem;
  margin: 3rem auto;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}
.post-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.25rem 0 1rem;
}
.post-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 0.75rem;
}
.post-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 0.5rem;
}
.post-content p { margin: 0 0 1.25rem; }
.post-content a { color: #EB6608; text-decoration: underline; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
  border-left: 4px solid #EB6608;
  background: #fff7ed;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #7c2d12;
}
.post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.post-content code {
  font-family: 'JetBrains Mono', monospace;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.9em;
}
.post-content pre code { background: none; padding: 0; }
.post-content hr { border: none; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.post-content figure { margin: 0 0 1.25rem; }
.post-content img { max-width: 100%; border-radius: 0.75rem; }
.post-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}
.post-callout {
  display: flex;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}
.post-bookmark {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  color: #EB6608;
  text-decoration: none;
  word-break: break-all;
}
