/* ─── BLOG — INDEX & POSTS ─── */

/* ═══════════════════════════════════════ */
/* HERO                                     */
/* ═══════════════════════════════════════ */
.blog-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 64px 40px 56px;
  text-align: center;
}
.blog-hero-inner { max-width: 720px; margin: 0 auto; }
.blog-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 14px 0 14px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════ */
/* FILTROS DE CATEGORIA                     */
/* ═══════════════════════════════════════ */
.blog-filters-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.blog-filters {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-filters::-webkit-scrollbar { display: none; }
.blog-filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.blog-filter:hover { background: var(--bg); color: var(--dark); }
.blog-filter.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.blog-filter .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.blog-filter .nav-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* ═══════════════════════════════════════ */
/* SEÇÃO DESTAQUE (post featured)           */
/* ═══════════════════════════════════════ */
.blog-section {
  background: var(--bg);
  padding: 56px 40px;
}
.blog-section-inner { max-width: 1100px; margin: 0 auto; }
.blog-section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 56px;
}
.blog-featured-cover {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-featured-cover img,
.blog-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-featured-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-body h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 14px 0 14px;
}
.blog-featured-body p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 22px;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 18px;
}
.blog-featured-meta strong { color: var(--dark); font-weight: 700; }
.blog-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--dark);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
}
.blog-featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,15,41,.18);
}

/* ═══════════════════════════════════════ */
/* GRID DE POSTS                            */
/* ═══════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13,15,41,.08);
}
.blog-card-cover {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-emoji {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-tag.captacao { background: rgba(236,72,153,.1); color: #ec4899; }
.blog-tag.gestao { background: rgba(0,102,255,.1); color: var(--blue); }
.blog-tag.fiscal { background: rgba(245,158,11,.12); color: #f59e0b; }
.blog-tag.segmento { background: rgba(139,92,246,.1); color: #8b5cf6; }
.blog-tag.crescimento { background: rgba(16,185,129,.1); color: #10b981; }

.blog-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.blog-card-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════ */
/* COVER GRADIENTS (por categoria)          */
/* ═══════════════════════════════════════ */
.cover-captacao { background: linear-gradient(135deg, #ec4899, #be185d); }
.cover-gestao { background: linear-gradient(135deg, #0066ff, #4f46e5); }
.cover-fiscal { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cover-segmento { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cover-crescimento { background: linear-gradient(135deg, #10b981, #059669); }
.cover-dark { background: linear-gradient(135deg, #0d1129, #1e1b4b); }

/* ═══════════════════════════════════════ */
/* NEWSLETTER                               */
/* ═══════════════════════════════════════ */
.blog-newsletter {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.blog-newsletter::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,102,255,.3), transparent 70%);
  border-radius: 50%;
}
.blog-newsletter-inner { max-width: 520px; margin: 0 auto; position: relative; z-index: 1; }
.blog-newsletter h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.blog-newsletter p {
  font-size: 14.5px;
  opacity: .8;
  margin-bottom: 24px;
  line-height: 1.55;
}
.blog-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.blog-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  backdrop-filter: blur(10px);
}
.blog-newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.blog-newsletter-input:focus { border-color: rgba(255,255,255,.5); }
.blog-newsletter-btn {
  background: #fff;
  color: var(--dark);
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s;
}
.blog-newsletter-btn:hover { transform: translateY(-1px); }

/* ═══════════════════════════════════════ */
/* POST INDIVIDUAL                          */
/* ═══════════════════════════════════════ */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.post-breadcrumb {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  padding: 24px 0;
  background: transparent !important;
  border: none !important;
  flex-wrap: wrap;
}
.post-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  display: inline;
  padding: 0;
}
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb-sep { color: var(--text); opacity: .5; }
.post-breadcrumb > span:last-child { color: var(--dark); font-weight: 600; }

.post-cover {
  height: 280px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.post-cover-emoji { font-size: 120px; filter: drop-shadow(0 12px 32px rgba(0,0,0,.18)); }
.post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-header { padding: 0 0 24px; }
.post-header h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 18px 0 22px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  flex-wrap: wrap;
}
.post-meta strong { color: var(--dark); font-weight: 700; }
.post-meta-dot { color: var(--text); opacity: .5; }

.post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--dark);
}
.post-content p { margin-bottom: 20px; }
.post-content > p:first-child:first-letter {
  font-size: 50px;
  font-weight: 800;
  float: left;
  line-height: .9;
  margin: 4px 8px 0 0;
  color: var(--dark);
}
.post-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 10px; }
.post-content strong { font-weight: 700; color: var(--dark); }
.post-content a { color: var(--blue); font-weight: 600; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.post-content code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 14px;
  color: var(--dark);
}

/* Callout boxes */
.callout {
  background: linear-gradient(135deg, rgba(0,102,255,.04), rgba(79,70,229,.04));
  border: 1px solid rgba(0,102,255,.18);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout.warn { background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(236,72,153,.04)); border-color: rgba(245,158,11,.22); }
.callout.success { background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(5,150,105,.04)); border-color: rgba(16,185,129,.22); }
.callout-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.callout.warn .callout-title { color: #f59e0b; }
.callout.success .callout-title { color: #10b981; }
.callout p { margin-bottom: 8px !important; font-size: 15px; line-height: 1.6; }
.callout p:last-child { margin-bottom: 0 !important; }
.callout ul { margin-bottom: 0; }

/* CTA inline (no meio do post) */
.post-cta-inline {
  background: linear-gradient(135deg, #0d1129, #1e1b4b);
  color: #fff;
  border-radius: 20px;
  padding: 32px 36px;
  margin: 44px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta-inline::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,102,255,.4), transparent 70%);
  border-radius: 50%;
}
.post-cta-inline > * { position: relative; z-index: 1; }
.post-cta-inline h3 {
  font-size: 22px !important;
  margin: 0 0 8px !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}
.post-cta-inline p {
  opacity: .8;
  margin-bottom: 20px !important;
  font-size: 14.5px;
  color: #fff;
}
.post-cta-inline .cta-btn {
  background: #fff;
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.post-cta-inline .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,255,255,.18);
  text-decoration: none !important;
}

/* Tabelas */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-content th, .post-content td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.post-content th { background: var(--bg); font-weight: 700; font-size: 13px; }
.post-content tr:last-child td { border-bottom: none; }
.post-content table strong { font-weight: 700; }

/* Author bio (rodapé) */
.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 40px 0 24px;
}
.post-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.post-author-info h4 { font-size: 14px; font-weight: 700; margin: 0 0 2px; color: var(--dark); }
.post-author-info p { font-size: 13px; color: var(--text); margin: 0 !important; line-height: 1.5; }

/* Related posts */
.related-section {
  background: var(--bg);
  padding: 56px 24px;
  margin-top: 64px;
}
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-section h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* CTA final */
.post-cta-final {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 0;
  text-align: center;
}
.post-cta-final h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.post-cta-final p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE                               */
/* ═══════════════════════════════════════ */
@media (max-width: 980px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { min-height: 240px; }
  .blog-featured-body { padding: 32px; }
  .blog-featured-body h2 { font-size: 24px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-hero { padding: 48px 20px 40px; }
  .blog-hero h1 { font-size: 30px; }
  .blog-hero p { font-size: 15px; }
  .blog-section { padding: 40px 20px; }
  .blog-filters { padding: 12px 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-newsletter { padding: 36px 24px; }
  .blog-newsletter h3 { font-size: 22px; }
  .blog-newsletter-form { flex-direction: column; }
  .post-wrap { padding: 0 20px; }
  .post-cover { height: 200px; }
  .post-cover-emoji { font-size: 88px; }
  .post-header h1 { font-size: 26px; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 23px; margin: 36px 0 14px; }
  .post-content h3 { font-size: 19px; margin: 28px 0 12px; }
  .post-cta-inline { padding: 28px 24px; }
  .post-cta-inline h3 { font-size: 20px !important; }
  .related-grid { grid-template-columns: 1fr; }
}
