/* Blog - Descomplica Regulatório */
.blog-page { background: var(--light-bg); }

.blog-hero { padding: 150px 0 60px; background: #fff; }
.blog-hero h1 { font-size: 2.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: .75rem; }
.blog-hero p { color: var(--text-light); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.blog-list { padding: 60px 12px 40px; }

.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img { display: block; aspect-ratio: 1200 / 630; background: #e5e7eb; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-block; align-self: flex-start; background: rgba(16,185,129,.12); color: #047857; font-size: .75rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; margin-bottom: .75rem; }
.post-card h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .6rem; }
.post-card h2 a { color: var(--text-dark); text-decoration: none; }
.post-card h2 a:hover { color: var(--primary-color); }
.post-card p { color: var(--text-light); font-size: .95rem; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-light); margin-top: .5rem; }
.post-more { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.post-more i { font-size: .75rem; margin-left: 4px; }

.blog-pagination { display: flex; justify-content: center; gap: .5rem; margin: 3rem 0 0; flex-wrap: wrap; }
.blog-pagination a { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--text-dark); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); }
.blog-pagination a.active { background: var(--gradient-primary); color: #fff; }

.blog-cta { margin-top: 60px; padding: 70px 0; background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%); color: #fff; }
.blog-cta h2 { color: #fff; font-size: 2rem; font-weight: 800; }
.blog-cta p { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }

/* Artigo */
.post-wrap { padding-top: 120px; }
.post-article { max-width: 820px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.5rem 2.5rem 2rem; }
.post-breadcrumb { font-size: .85rem; color: var(--text-light); margin-bottom: 1.25rem; }
.post-breadcrumb a { color: var(--text-light); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--primary-color); }
.post-breadcrumb span { margin: 0 .35rem; }
.post-header h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; color: var(--text-dark); }
.post-lead { font-size: 1.15rem; color: var(--text-light); }
.post-byline { font-size: .9rem; color: var(--text-light); margin-bottom: 1.5rem; }
.post-cover { width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 2rem; display: block; }

.post-content { font-size: 1.05rem; line-height: 1.8; color: #374151; }
.post-content h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; color: var(--text-dark); }
.post-content h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--text-dark); }
.post-content p { margin-bottom: 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.2rem; padding-left: 1rem; }
.post-content li { margin-bottom: .4rem; }
.post-content a { color: var(--primary-light); }
.post-content blockquote { border-left: 4px solid var(--accent-color); background: #f0fdf4; padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 12px 12px 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.post-content th, .post-content td { border: 1px solid #e5e7eb; padding: .6rem .8rem; text-align: left; }
.post-content th { background: #f1f5f9; }

.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 2rem 0 0; }
.post-tags li { background: #eef2ff; color: var(--primary-color); font-size: .8rem; font-weight: 500; padding: 4px 12px; border-radius: 50px; }
.post-tags li::before { content: "#"; opacity: .6; margin-right: 2px; }

.post-contact { margin: 2.5rem 0 1.5rem; padding: 1.75rem; background: var(--light-bg); border-radius: var(--radius-md); border: 1px solid #e5e7eb; }
.post-contact h2 { font-size: 1.4rem; }
.blog-lead-form label { font-weight: 500; font-size: .9rem; margin-bottom: .25rem; display: block; }
.blog-lead-feedback { margin: 1rem 0 0; font-weight: 500; min-height: 1.4em; }
.blog-lead-feedback.ok { color: #047857; }
.blog-lead-feedback.err { color: #dc2626; }
.post-disclaimer { font-size: .85rem; color: var(--text-light); border-top: 1px solid #e5e7eb; padding-top: 1rem; }

.post-related { max-width: 1000px; padding: 3rem 12px 1rem; }
.post-related h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.related-card { display: block; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text-dark); height: 100%; transition: transform .2s ease; }
.related-card:hover { transform: translateY(-3px); color: var(--primary-color); }
.related-card img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }
.related-card span { display: block; padding: .9rem 1rem 1.1rem; font-weight: 600; font-size: .95rem; line-height: 1.35; }

.blog-notfound { padding: 180px 12px 100px; }

@media (max-width: 768px) {
  .blog-hero { padding: 120px 0 40px; }
  .blog-hero h1 { font-size: 1.9rem; }
  .post-wrap { padding-top: 96px; }
  .post-article { padding: 1.5rem 1.15rem; border-radius: var(--radius-md); }
  .post-header h1 { font-size: 1.7rem; }
  .post-content { font-size: 1rem; }
}
