/* Blog - UI alinhada ao template clean */
.page-blog .site-header-spacer,
.page-blog-post .site-header-spacer { height: 59px; }
.page-blog, .page-blog-post { background: #fafbfc; }

.blog-main {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 991px) {
  .blog-container {
    grid-template-columns: 1fr;
  }
}

.blog-container--post {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 991px) {
  .blog-container--post {
    grid-template-columns: 1fr;
  }
}

/* Page header (lista) */
.blog-page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.blog-page-title {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.blog-page-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--tema-primary), var(--tema-secondary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.blog-page-desc {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}

/* Grid de posts */
.blog-content {
  min-width: 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #eef1f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #cbd5e1;
}
.blog-card-date {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
}
.blog-card-body {
  padding: 1.35rem 1.25rem;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  transition: color 0.2s;
}
.blog-card-link:hover .blog-card-title {
  color: var(--tema-secondary);
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tema-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}
.blog-card-link:hover .blog-card-more {
  color: var(--tema-terciaria);
}
.blog-card-more::after {
  content: '→';
}

.blog-empty {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 90px;
}
.blog-sidebar-block {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eef1f5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.blog-sidebar-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--tema-primary);
}
.blog-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-sidebar-list li {
  margin: 0 0 0.5rem;
}
.blog-sidebar-list li:last-child { margin-bottom: 0; }
.blog-sidebar-link {
  display: block;
  padding: 0.5rem 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
}
.blog-sidebar-link:hover {
  color: var(--tema-secondary);
  padding-left: 0.5rem;
}
.blog-sidebar-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.blog-sidebar-cta {
  margin-top: 1rem;
}
.blog-sidebar-cta-link {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--tema-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}
.blog-sidebar-cta-link:hover {
  color: #fff;
  background: var(--tema-secondary);
  transform: translateY(-1px);
}

/* Post single */
.post-article {
  min-width: 0;
}
.post-header {
  margin-bottom: 2rem;
}
.post-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.post-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
.post-meta-item::before {
  margin-right: 0.35rem;
}
.post-meta-item:first-child::before {
  content: '📅';
}
.post-meta-author::before {
  content: '✎';
}
.post-figure {
  margin: 0 0 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.post-top-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}
.post-content h2 { font-size: 1.5rem; margin: 1.75rem 0 0.75rem; color: #0f172a; }
.post-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; color: #0f172a; }
.post-content p { margin: 0 0 1rem; }
.post-content ul, .post-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.post-content a { color: var(--tema-secondary); text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tema-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.post-back-link:hover {
  color: var(--tema-primary);
}

/* Footer: estilos globais em assets/css/main.css */
