/* ==========================================================================
   AGUS – Blog (/blog/). Mesmas cores, fonte e cabeçalho das páginas de serviço.
   ========================================================================== */
:root {
  --color-navy-darker: #011229;
  --color-navy-dark: #021A3A;
  --color-navy-mid: #03285E;
  --color-blue-primary: #064BC4;
  --color-blue-bright: #0866E5;
  --color-blue-electric: #238AFF;
  --color-cyan-glow: #00E5FF;
  --color-gray-bg: #f8fafc;
  --color-text-main: #1e293b;
  --color-text-sub: #475569;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Cabeçalho (igual às páginas de serviço) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(1, 18, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo { height: 40px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-link { font-size: 14px; font-weight: 500; color: #cbd5e1; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--color-cyan-glow); }
.nav-cta-btn {
  background: linear-gradient(135deg, var(--color-blue-bright) 0%, var(--color-blue-primary) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(8, 102, 229, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(8, 102, 229, 0.5); }
@media (max-width: 1100px) { .nav-menu { gap: 16px; } .nav-link { font-size: 13px; } }
@media (max-width: 768px) { .nav-menu { display: none; } }

/* Botão flutuante de WhatsApp */
.whatsapp-float-btn { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); z-index: 9999; transition: transform 0.2s; }
.whatsapp-float-btn:hover { transform: scale(1.1); }

/* Estrutura */
.blog-main { background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 320px); padding: 48px 24px 80px; }
.blog-article, .blog-list-header, .blog-list { max-width: 820px; margin: 0 auto; }
.blog-list { max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-list-header { text-align: center; margin-bottom: 48px; }

.blog-breadcrumb { font-size: 13px; color: var(--color-text-sub); margin-bottom: 24px; }
.blog-breadcrumb a { color: var(--color-blue-bright); font-weight: 600; }
.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-blue-primary);
  background: rgba(6, 75, 196, 0.08);
  border: 1px solid rgba(6, 75, 196, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.blog-article-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid #e2e8f0; }
.blog-article-header h1, .blog-list-header h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  color: var(--color-navy-darker);
  margin-bottom: 16px;
}
.blog-lead { font-size: 18px; color: var(--color-text-sub); line-height: 1.6; }
.blog-meta { font-size: 14px; color: #64748b; margin-top: 14px; }

/* Texto do artigo */
.blog-content { font-size: 17px; line-height: 1.75; color: var(--color-text-main); }
.blog-content > * + * { margin-top: 18px; }
.blog-content h2 { font-size: 28px; font-weight: 800; line-height: 1.25; color: var(--color-navy-darker); margin-top: 44px; }
.blog-content h3 { font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--color-navy-dark); margin-top: 32px; }
.blog-content a { color: var(--color-blue-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-content ul, .blog-content ol { padding-left: 24px; }
.blog-content li + li { margin-top: 8px; }
.blog-content strong { color: var(--color-navy-darker); }
.blog-content blockquote {
  border-left: 4px solid var(--color-blue-bright);
  background: #eff6ff;
  padding: 16px 20px;
  border-radius: 10px;
  color: var(--color-navy-dark);
}
.blog-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.blog-content th { background: #f1f5f9; color: var(--color-navy-darker); }

/* Chamada para ação */
.blog-cta {
  margin-top: 56px;
  background: linear-gradient(135deg, #011229 0%, #03285e 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(1, 18, 41, 0.2);
}
.blog-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.blog-cta p { color: #cbd5e1; margin-bottom: 22px; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.blog-btn:hover { transform: translateY(-2px); }
.blog-btn-primary { background: var(--color-blue-bright); color: #ffffff; box-shadow: 0 8px 24px rgba(8, 102, 229, 0.35); }
.blog-btn-wa { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #ffffff; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
.blog-back { margin-top: 32px; }
.blog-back a { color: var(--color-blue-bright); font-weight: 700; }

/* Lista de artigos */
.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--color-blue-bright); box-shadow: 0 18px 40px rgba(8, 102, 229, 0.12); }
.blog-card .blog-tag { align-self: flex-start; }
.blog-card h2 { font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--color-navy-darker); margin-bottom: 10px; }
.blog-card h2 a:hover { color: var(--color-blue-bright); }
.blog-card p { color: var(--color-text-sub); font-size: 15px; }
.blog-card-link { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--color-blue-bright); }

@media (max-width: 640px) {
  .blog-main { padding: 32px 16px 64px; }
  .blog-article-header h1, .blog-list-header h1 { font-size: 30px; }
  .blog-content { font-size: 16px; }
  .blog-content h2 { font-size: 23px; }
  .blog-cta { padding: 26px 20px; }
  .blog-cta-actions .blog-btn { width: 100%; }
}

/* ==========================================================================
   MINI BLOG – capa com destaque, filtro por assunto e cards com foto
   ========================================================================== */
.blog-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.blog-home { background: #f8fafc; padding-bottom: 80px; }
.blog-home-hero { background: linear-gradient(135deg, #011229 0%, #03285e 100%); color: #ffffff; padding: 64px 0 56px; margin-bottom: 48px; }
.blog-home-hero .blog-tag { color: #00e5ff; background: rgba(0, 229, 255, 0.12); border-color: rgba(0, 229, 255, 0.3); }
.blog-home-hero h1 { font-size: 44px; font-weight: 900; line-height: 1.15; margin-bottom: 14px; color: #ffffff; }
.blog-home-hero .blog-lead { color: #cbd5e1; max-width: 680px; }
.blog-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.blog-filtro {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06);
  color: #ffffff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.blog-filtro:hover { background: rgba(255, 255, 255, 0.14); }
.blog-filtro.is-ativo { background: #ffffff; color: #011229; border-color: #ffffff; }
.blog-filtro:focus-visible { outline: 3px solid #00e5ff; outline-offset: 2px; }

.blog-rotulo { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: #064bc4; margin-bottom: 10px; }

.blog-destaque {
  display: grid; grid-template-columns: 1.15fr 1fr; background: #ffffff;
  border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; margin-bottom: 32px;
  box-shadow: 0 14px 34px rgba(1, 18, 41, 0.07);
}
.blog-destaque[hidden], .blog-card[hidden] { display: none; }
.blog-destaque-media { display: block; min-height: 340px; overflow: hidden; }
.blog-destaque-media img, .blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.blog-destaque:hover .blog-destaque-media img, .blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-destaque-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-destaque-body h2 { font-size: 30px; font-weight: 900; line-height: 1.2; color: #011229; margin-bottom: 14px; }
.blog-destaque-body h2 a:hover { color: #0866e5; }
.blog-destaque-body p { color: #475569; }

.blog-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card-media { display: block; height: 200px; overflow: hidden; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2, .blog-card-body h3 { font-size: 20px; font-weight: 800; line-height: 1.3; color: #011229; margin-bottom: 10px; }
.blog-card-body h2 a:hover, .blog-card-body h3 a:hover { color: #0866e5; }
.blog-card-body p { color: #475569; font-size: 15px; }
.blog-vazio { text-align: center; color: #475569; padding: 32px 0; }
.blog-home .blog-cta { margin-top: 48px; }

.blog-capa { margin: 0 0 36px; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(1, 18, 41, 0.1); }
.blog-capa img { width: 100%; height: auto; display: block; }
.blog-relacionados { max-width: 1100px; margin: 64px auto 0; }
.blog-relacionados > h2 { font-size: 26px; font-weight: 900; color: #011229; margin-bottom: 20px; }

@media (max-width: 900px) {
  .blog-destaque { grid-template-columns: 1fr; }
  .blog-destaque-media { min-height: 0; height: 220px; }
  .blog-destaque-body { padding: 26px 22px; }
  .blog-destaque-body h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .blog-wrap { padding: 0 16px; }
  .blog-home-hero { padding: 44px 0 40px; margin-bottom: 32px; }
  .blog-home-hero h1 { font-size: 32px; }
  .blog-grade { grid-template-columns: 1fr; }
}

/* Sobre o autor (fim do artigo) */
.blog-autor{margin:40px 0 0;padding:20px 24px;border:1px solid #e2e8f0;border-left:4px solid var(--color-blue-bright);border-radius:12px;background:#f8fafc}
.blog-autor p{margin:0;font-size:15px;line-height:1.6;color:var(--color-text-main)}
.blog-autor .blog-autor-titulo{margin-bottom:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-sub)}
.blog-autor a{color:var(--color-blue-primary);font-weight:600}
