/* ═══════════════════════════════════════════════════════
   TECHDUTO — ARTIGOS: LISTAGEM + SINGLE
   Brand: #EE3124 vermelho · #A7A8A9 gray6 · #777B83 gray9
          #AA2C1C dark-red · #FBC3B4 salmon · #C1C5CA gray4
   ═══════════════════════════════════════════════════════ */

/* ── LISTAGEM: Filter Bar ── */
.blog-filter-bar {
  background: #fff; border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
}
.blog-filter-bar-inner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.blog-filter-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #A7A8A9; margin-right: 2px;
}
.blog-filter-pill {
  padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all .15s;
  border: 1.5px solid transparent;
  display: inline-block;
}
.blog-filter-pill.active {
  background: #EE3124; color: #fff; border-color: #EE3124;
}
.blog-filter-pill:not(.active) {
  background: #f0f0f0; color: #555; border-color: #e0e0e0;
}
.blog-filter-pill:not(.active):hover { background: #e4e4e4; color: #222; }

/* ── LISTAGEM: Section header (barras brand) ── */
.blog-section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.blog-section-bars { display: flex; flex-direction: column; gap: 3px; }
.blog-section-bar-gray { height: 3px; width: 48px; background: #A7A8A9; }
.blog-section-bar-red  { height: 4px; width: 40px; background: #EE3124; }
.blog-section-title {
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: #53565A;
}

/* ── LISTAGEM: Mosaico superior ── */
.blog-mosaic-top {
  display: grid; grid-template-columns: 1fr 330px; gap: 16px; margin-bottom: 16px;
}

/* Card hero grande */
.blog-hero-card {
  border-radius: 12px; overflow: hidden; position: relative;
  min-height: 360px; background: #0d1f30;
  display: block; text-decoration: none; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-hero-card:hover { transform: scale(1.012); box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.blog-hero-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.blog-hero-card-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #0d1f30 0%, #1a3a56 100%);
}
.blog-hero-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 25%, rgba(0,0,0,.88) 75%);
}
.blog-hero-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; }
.blog-hero-card-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; background: #EE3124;
  padding: 4px 12px; border-radius: 12px;
  border: 1px solid #EE3124; margin-bottom: 10px;
}
.blog-hero-card-title {
  font-size: 22px; font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 10px;
}
.blog-hero-card-excerpt {
  font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.5; margin-bottom: 14px;
}
.blog-hero-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,.38);
}
.blog-hero-card-meta-dot {
  width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.22);
}
.blog-hero-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #EE3124; margin-top: 14px;
}

/* Stack lateral */
.blog-stack { display: flex; flex-direction: column; gap: 12px; }
.blog-stack-card {
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  display: flex; flex-direction: column; flex: 1;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-stack-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-stack-card-img { height: 100px; overflow: hidden; flex-shrink: 0; }
.blog-stack-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.blog-stack-card:hover .blog-stack-card-img img { transform: scale(1.06); }
.blog-stack-card-img-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, #c8d8e8, #8ab0d0);
}
.blog-stack-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.blog-stack-card-cat {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #EE3124; margin-bottom: 5px;
}
.blog-stack-card-title { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.35; flex: 1; }
.blog-stack-card-meta { font-size: 10px; color: #A7A8A9; margin-top: 8px; display: flex; gap: 6px; }

/* ── LISTAGEM: Grid inferior (4 colunas) ── */
.blog-grid-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.blog-grid-card {
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease; display: block;
}
.blog-grid-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.blog-grid-card-img { height: 120px; overflow: hidden; }
.blog-grid-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
}
.blog-grid-card:hover .blog-grid-card-img img { transform: scale(1.06); }
.blog-grid-card-img-placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg, #d0e0f0, #90b8d0);
}
.blog-grid-card-body { padding: 14px; }
.blog-grid-card-cat {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #EE3124; margin-bottom: 5px;
}
.blog-grid-card-title { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.35; margin-bottom: 8px; }
.blog-grid-card-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #A7A8A9; }
.blog-grid-card-time {
  background: #f5f5f5; border: 1px solid #ebebeb;
  padding: 2px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 600; color: #777B83;
}

/* ── LISTAGEM: Paginação ── */
.blog-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 32px 0 0;
}
.blog-pagination .page-numbers {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid #e0e0e0; color: #555;
  background: #fff; text-decoration: none; transition: all .15s;
}
.blog-pagination .page-numbers:hover { border-color: #EE3124; color: #EE3124; }
.blog-pagination .page-numbers.current { background: #EE3124; color: #fff; border-color: #EE3124; }
.blog-pagination .page-numbers.dots { border: none; background: none; }

/* ── SINGLE: Progress bar de leitura ── */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999; background: #C1C5CA; pointer-events: none;
}
.reading-progress-fill { height: 100%; width: 0%; background: #EE3124; transition: width .1s linear; }

/* ── SINGLE: Meta bar ── */
.article-meta-bar {
  background: #fff; border-bottom: 2px solid #C1C5CA; padding: 14px 0;
}
.article-meta-bar-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.article-meta-author { display: flex; align-items: center; gap: 10px; }
.article-meta-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #EE3124; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.article-meta-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.article-meta-role { font-size: 11px; color: #777B83; }
.article-meta-divider { width: 1px; height: 28px; background: #C1C5CA; flex-shrink: 0; }
.article-meta-item { font-size: 12px; color: #777B83; display: flex; align-items: center; gap: 5px; }
.article-meta-item strong { color: #333; }
.article-meta-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.article-meta-share-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #A7A8A9; font-weight: 700;
}
.article-share-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid #C1C5CA;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #777B83; cursor: pointer;
  text-decoration: none; transition: all .15s; background: #fff;
}
.article-share-btn:hover { background: #EE3124; border-color: #EE3124; color: #fff; }

/* ── SINGLE: Layout 2 colunas ── */
.article-layout { display: grid; grid-template-columns: 1fr 280px; align-items: start; }
.article-main { padding: 40px 48px 48px 0; border-right: 1px solid #ebebeb; }
.article-sidebar { padding: 32px 0 32px 32px; position: sticky; top: 80px; }

/* ── SINGLE: Conteúdo principal ── */
.article-lede {
  font-size: 18px; font-weight: 500; line-height: 1.6; color: #53565A;
  border-left: 4px solid #EE3124; padding-left: 18px; margin-bottom: 28px; font-style: italic;
}
.article-prose { font-size: 15px; line-height: 1.75; color: #333; }
.article-prose p { margin-bottom: 20px; }
.article-prose h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: #1a1a1a;
  text-transform: uppercase; letter-spacing: .04em; margin: 32px 0 16px;
}
.article-prose h2::before {
  content: ''; display: inline-block; flex-shrink: 0; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 12px solid #EE3124;
}
.article-prose h3 {
  font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 24px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.article-prose h3::before {
  content: ''; display: inline-block; flex-shrink: 0; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 9px solid #A7A8A9;
}
/* Imagens full-width por padrão (apenas as não-alinhadas) */
.article-prose > img,
.article-prose p > img,
.article-prose figure:not(.alignright):not(.alignleft) img {
  width: 100%; border-radius: 6px; margin: 24px 0 4px;
}
/* Alinhamentos WordPress — texto envolve a imagem */
.article-prose .alignright,
.article-prose figure.alignright,
.article-prose img.alignright {
  float: right; margin: 6px 0 16px 24px; max-width: 45%; height: auto;
}
.article-prose .alignleft,
.article-prose figure.alignleft,
.article-prose img.alignleft {
  float: left; margin: 6px 24px 16px 0; max-width: 45%; height: auto;
}
.article-prose .aligncenter {
  display: block; margin: 24px auto; clear: both;
}
.article-prose .alignright img,
.article-prose .alignleft img { width: 100%; border-radius: 6px; }
/* Caption do WordPress (shortcode) — respeita a largura definida */
.article-prose .wp-caption { max-width: 100%; height: auto; }
.article-prose .wp-caption.alignright { float: right; margin: 6px 0 16px 24px; }
.article-prose .wp-caption.alignleft { float: left; margin: 6px 24px 16px 0; }
.article-prose .wp-caption img { width: 100%; border-radius: 6px; }
/* Clear floats nos headings de seção pra não colidir */
.article-prose h2, .article-prose h3 { clear: both; }
.article-prose figcaption,
.article-prose .wp-caption-text {
  font-size: 11px; color: #777B83; font-style: italic;
  margin-bottom: 20px; padding-left: 14px; border-left: 2px solid #EE3124;
}
/* Tabelas dentro do conteúdo do artigo */
.article-prose table {
  width: 100%; border-collapse: collapse; clear: both;
  margin: 24px 0; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); border-radius: 6px; overflow: hidden;
}
.article-prose table thead tr { background: #EE3124; color: #fff; }
.article-prose table th {
  padding: 12px 14px; text-align: left; font-weight: 700;
  font-size: 13px; letter-spacing: .01em;
}
.article-prose table td {
  padding: 11px 14px; border-bottom: 1px solid #ebebeb; vertical-align: top;
}
.article-prose table tbody tr:nth-child(odd) { background: #f8f9fa; }
.article-prose table tbody tr:last-child td { border-bottom: none; }
.article-prose table td:first-child { font-weight: 600; color: #1a1a1a; }
.article-prose table strong { color: #1a1a1a; }
@media (max-width: 600px) {
  .article-prose table { font-size: 12px; }
  .article-prose table th, .article-prose table td { padding: 8px 9px; }
}
.article-prose blockquote {
  background: #AA2C1C; border: none; border-radius: 4px;
  padding: 20px 24px; margin: 28px 0;
  position: relative; overflow: hidden; color: #fff;
}
.article-prose blockquote::after {
  content: ')))'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); font-size: 52px; letter-spacing: -10px;
  color: rgba(255,255,255,.07); font-weight: 300; pointer-events: none;
}
.article-prose blockquote p { font-size: 15px; font-weight: 700; line-height: 1.5; color: #fff; margin-bottom: 0; position: relative; z-index: 1; }
.article-prose ul, .article-prose ol { padding-left: 22px; margin-bottom: 20px; }
.article-prose ul { list-style: disc; }
.article-prose ul ul { list-style: circle; }
.article-prose ol { list-style: decimal; }
.article-prose li { margin-bottom: 8px; }
.article-prose li::marker { color: #EE3124; }
.article-prose a { color: #EE3124; text-decoration: underline; }
.article-prose a:hover { color: #AA2C1C; }

/* Data box */
.article-data-box {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: #C1C5CA; border: 1px solid #C1C5CA;
  border-radius: 6px; overflow: hidden; margin: 28px 0;
}
.article-data-cell { background: #fff; padding: 18px; text-align: center; }
.article-data-num { font-size: 30px; font-weight: 900; color: #EE3124; line-height: 1; }
.article-data-label { font-size: 11px; color: #777B83; margin-top: 4px; line-height: 1.35; }

/* Tags finais */
.article-tags {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px; border-top: 2px solid #C1C5CA;
}
.article-tags-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #A7A8A9;
}
.article-tag {
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  background: #f8f9fa; border: 1px solid #C1C5CA; border-radius: 2px;
  color: #53565A; text-decoration: none; text-transform: uppercase;
  letter-spacing: .04em; transition: all .15s;
}
.article-tag:hover { background: #EE3124; border-color: #EE3124; color: #fff; }

/* ── SINGLE: Sidebar ── */
.sidebar-reading-badge {
  background: #EE3124; color: #fff; border-radius: 4px;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.srb-num { font-size: 28px; font-weight: 900; line-height: 1; }
.srb-text { font-size: 12px; font-weight: 600; line-height: 1.3; }

.sidebar-block { margin-bottom: 28px; }
.sidebar-block-header { margin-bottom: 12px; }
.sbh-bars { display: flex; flex-direction: column; gap: 3px; margin-bottom: 7px; }
.sbh-bar-gray { height: 3px; width: 48px; background: #A7A8A9; }
.sbh-bar-red  { height: 4px; width: 40px; background: #EE3124; }
.sbh-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #53565A; display: flex; align-items: center; gap: 6px;
}
.sbh-title::before {
  content: ''; display: inline-block; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid #EE3124;
}

/* ToC */
.toc-list { list-style: none; }
.toc-item {
  padding: 7px 0 7px 12px; border-left: 2px solid #C1C5CA;
  font-size: 13px; color: #777B83; line-height: 1.35;
  cursor: pointer; transition: all .15s; margin-bottom: 2px;
  text-decoration: none; display: block;
}
.toc-item:hover { color: #EE3124; border-left-color: #EE3124; }
.toc-item.is-active { color: #EE3124; font-weight: 700; border-left-color: #EE3124; background: rgba(238,49,36,.04); }
.toc-item.toc-h3 { padding-left: 22px; font-size: 12px; }
.toc-progress-bar { height: 3px; background: #C1C5CA; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.toc-progress-fill { height: 100%; width: 0%; background: #EE3124; transition: width .2s; }

/* Share sidebar */
.sidebar-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-share-btn {
  padding: 9px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  border: 1.5px solid #C1C5CA; color: #53565A;
  text-decoration: none; background: #fff; transition: all .15s;
}
.sidebar-share-btn:hover { background: #EE3124; border-color: #EE3124; color: #fff; }
.sidebar-share-btn.whatsapp-btn {
  grid-column: 1 / -1; background: #25D366; border-color: #25D366; color: #fff;
}
.sidebar-share-btn.whatsapp-btn:hover { background: #1da851; border-color: #1da851; }

/* Related mini */
.sidebar-related-card {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
  text-decoration: none; color: inherit; transition: opacity .15s;
}
.sidebar-related-card:hover { opacity: .75; }
.sidebar-related-card:last-child { border-bottom: none; }
.src-thumb { width: 52px; height: 44px; border-radius: 4px; flex-shrink: 0; overflow: hidden; background: #e0e8f0; }
.src-thumb img { width: 100%; height: 100%; object-fit: cover; }
.src-cat { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #EE3124; }
.src-title { font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.35; margin-top: 2px; }

/* ── SINGLE: Artigos relacionados rodapé ── */
.article-related { background: #f8f9fa; padding: 40px 0 48px; border-top: 1px solid #ebebeb; }
.article-related-header { margin-bottom: 24px; }
.arh-bars { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.arh-bar-gray { height: 4px; width: 100px; background: #A7A8A9; }
.arh-bar-red  { height: 6px; width: 80px; background: #EE3124; }
.arh-title {
  font-size: 24px; font-weight: 900; color: #EE3124;
  display: flex; align-items: center; gap: 10px;
}
.arh-title::before {
  content: ''; display: inline-block; width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 14px solid #EE3124;
}
.article-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.arc-card {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; display: block;
}
.arc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.arc-card-img { height: 130px; overflow: hidden; }
.arc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.arc-card-body { padding: 16px; }
.arc-card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #EE3124; margin-bottom: 6px; }
.arc-card-title { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.35; margin-bottom: 8px; }
.arc-card-meta { font-size: 11px; color: #777B83; }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .blog-mosaic-top { grid-template-columns: 1fr 280px; }
  .blog-grid-bottom { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr 240px; }
  .article-main { padding: 32px 32px 40px 0; }
}
@media (max-width: 768px) {
  .blog-mosaic-top { grid-template-columns: 1fr; }
  .blog-grid-bottom { grid-template-columns: repeat(2, 1fr); }
  .blog-filter-bar-inner { gap: 8px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-main { padding: 24px 0 40px; border-right: none; min-width: 0; }
  /* Clearfix: contém floats de imagens dentro do artigo */
  .article-main::after { content: ''; display: table; clear: both; }
  .article-sidebar { display: none; }
  .article-meta-bar-inner { gap: 12px; }
  .article-meta-share { display: none; }
  /* Lede menor no celular */
  .article-lede { font-size: 15px; padding-left: 14px; }
  /* Desfaz float de imagens — no celular ficam em bloco */
  .article-prose .alignright,
  .article-prose figure.alignright,
  .article-prose img.alignright,
  .article-prose .alignleft,
  .article-prose figure.alignleft,
  .article-prose img.alignleft { float: none; margin: 16px 0; max-width: 100%; }
  /* Garante que tabelas não vazem horizontalmente */
  .article-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Artigos relacionados: separa header do grid */
  .article-related-grid { grid-template-columns: 1fr; clear: both; }
  .article-related-header { padding-bottom: 4px; }
  .arh-title { font-size: 20px; }
  /* Garante isolamento de contexto de empilhamento */
  .article-related { isolation: isolate; }
}
@media (max-width: 480px) {
  .blog-grid-bottom { grid-template-columns: 1fr; }
}

/* FAQ dentro do conteúdo do artigo: o wpautop insere <p> vazios entre os
   elementos (button + .faq-answer) de cada .faq-item, e a regra
   .article-prose p { margin-bottom:20px } inflava o espaçamento. Remove esse
   lixo para a FAQ ficar compacta como nas páginas de produto. */
.article-prose .faq-item > p,
.article-prose .faq-list > p,
.article-prose .faq-section p:empty { display: none; margin: 0; }
