.single-post-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

@media (max-width: 480px) {
  .single-post-wrapper {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.single-post-wrapper img,
.single-post-wrapper table,
.single-post-wrapper iframe {
  max-width: 100%;
  height: 100%;
  display: block;
}

}

@media (max-width: 768px) {
  .single-post-wrapper {
    padding: 0 15px;  /* espaço respirável */
    margin: 0 auto;
  }
}


.site-main {
  max-width: 1280px;
  width: 100%;
}

.post-destaque {
  display: flex;
  flex-direction: column;
}

.post-topo {
  margin-bottom: 0.5rem;
}

.titulo-post {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.1rem 0;
}

.meta-post {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-top: 1px solid #dddcdc;
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.compartilhar-post {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.imagem-destaque img {
  width: 100%;
  border-radius: 8px;
}

.badge-categoria-single {
  background: #0056b3;
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-categoria-single:hover{
  color: white;
  text-decoration: none;
}

.conteudo-e-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px !important;
  gap: 2rem;
}

.conteudo-e-sidebar > * {
    min-width: 0; /* ESSENCIAL para o conteúdo não alargar o grid */
}

/* Estilos para mobile */
@media (max-width: 768px) { /* 768px é um breakpoint comum para tablets */
.conteudo-e-sidebar {
  /* display: grid;
  justify-content: center; */
  display: block;
}
}

.conteudo-principal {
  max-width: 100%;
}

.sidebar-menor {
  border-left: 1px solid #eee;
  padding-left: 1rem;
}

.lista-lateral {
  list-style: none;
  padding: 0;
}

.lista-lateral li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lista-lateral img {
  width: 60px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.relacionados-post h3 {
  margin-top: 3rem;
  font-size: 1.2rem;
}

.card-excerpt-single{
    color: #757575;
    font-weight: normal;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
    font-size: 19px;
    margin: 5px 0 15px;
    line-height: 30px;
    font-style: normal;
    letter-spacing: normal;
    width: 90%;
}

/* ============== RESPONSIVO ============== */
@media (max-width: 1024px) {
  .conteudo-e-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-menor {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
  }

  .lista-lateral li {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .titulo-post {
    font-size: 1.5rem;
  }

  .meta-post,
  .compartilhar-post {
    font-size: 0.85rem;
  }

  .imagem-destaque img {
    border-radius: 6px;
  }

  .lista-lateral li span {
    font-size: 0.9rem;
  }

  .post-topo {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .badge-categoria {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .lista-lateral li {
    flex-direction: column;
    align-items: flex-start;
  }

  .lista-lateral img {
    width: 100%;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .titulo-post {
    font-size: 1.25rem;
  }

  .relacionados-post h3,
  .sidebar-menor h3 {
    font-size: 1.1rem;
  }

  .card-excerpt-single{
    font-size: 18px;
    margin: 5px 0 5px;
    line-height: 25px;
    width: 100%;
}

}


/* RELACIONADOS */

.bloco-relacionados {
  margin-top: 4rem;
}

.titulo-relacionados {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0077c2; /* azul do título */
}

.relacionados-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.relacionado-card {
  flex: 1 1 45%;
  max-width: 48%;
}

.relacionado-thumb {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: 180px;
  transition: transform 0.3s ease;
}

.relacionado-thumb:hover {
  transform: scale(1.02);
}

.relacionado-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.relacionado-titulo {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}


/* BLOCO CSS: FAQ Accordion */
.faq-box {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background-color: #fafafa;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.faq-box h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 700;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}
.faq-item {
  margin-bottom: 5px;
  border-bottom: 1px solid #e5e7eb;
}
.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-toggle:hover {
  background-color: transparent;
  color: #1f2937;
}
.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 0;
}
.faq-item.active .faq-content {
  max-height: 500px;
  padding: 8px 0 16px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}


/* 🎨 Estilo geral da tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  background: #fff;
  border-radius: 8px;
  overflow: hidden; /* arredondar bordas */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Cabeçalho */
table th {
  background: #003366;
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
}

/* Linhas */
table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
}

/* Zebra stripes */
table tr:nth-child(even) td {
  background: #f9f9f9;
}

/* Última linha sem borda */
table tr:last-child td {
  border-bottom: none;
}

/* Hover row */
table tr:hover td {
  background: #f1f7ff;
}

/* Responsividade 📱 */
@media (max-width: 600px) {
  table, tbody, tr, td, th {
    display: block;
    width: 100%;
  }
  
  table tr {
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
  }

  table th {
    display: none; /* esconde cabeçalho no mobile */
  }

  table td {
    padding: 10px;
    border-bottom: none;
    position: relative;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #003366;
    display: block;
    margin-bottom: 6px;
  }
}

/* ===== TOC estilo gringo ===== */
.zigg-toc {
  border-left: 3px solid #06b6d4; /* azul turquesa */
  background: #fff;
  border-radius: 6px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 15px;
  overflow: hidden;
  padding: 5px 5px 5px 5px;
  border-bottom: 3px solid #06b6d4;
}

.zigg-toc__toggle {
  width: 100%;
  background: #f9fafb;
  border: none;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zigg-toc__toggle .arrow {
  transition: transform 0.3s ease;
}

.zigg-toc__list {
  margin: 0;
  padding: 10px 18px 14px 28px;
  list-style: decimal;
  line-height: 1.5;
  display: none; /* começa fechado */
}

.zigg-toc__list li {
  margin: 4px 0;
}

.zigg-toc__list li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.zigg-toc__list li a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* Níveis internos (h3) */
.zigg-toc__list .toc-level-3 {
  margin-left: 20px;
  font-size: 14px;
  color: #374151;
}

/* Estado aberto */
.zigg-toc.is-open .zigg-toc__list {
  display: block;
}

.zigg-toc.is-open .arrow {
  transform: rotate(90deg);
}

/* Base */
.zigg-toc__list {
  margin: 0;
  padding: 10px 18px 14px 30px;
  line-height: 1.6;
  display: none;
}

/* H2 */
.zigg-toc__list .toc-level-2 {
  font-weight: 600;
  margin: 6px 0;
}

.zigg-toc__list .toc-level-2 a {
  color: #111827;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.zigg-toc__list .toc-level-2 a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* H3 */
.zigg-toc__list .toc-level-3 {
  margin-left: 20px;
  font-weight: 500;
}

.zigg-toc__list .toc-level-3 a {
  color: #374151;
  font-size: 14px;
}

/* H4 */
.zigg-toc__list .toc-level-4 {
  margin-left: 36px;
  font-weight: 400;
}

.zigg-toc__list .toc-level-4 a {
  color: #6b7280;
  font-size: 13px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.post-tags .tag-chip {
  display: inline-block;
  padding: 6px 14px;
  background-color: #ededed;
  color: #333;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: bold;
}

.post-tags .tag-chip:hover {
  background-color: #e0e0e0;
  color: #000;
}

.conteudo-post {
    border-bottom: 1px solid #dddcdc;
}

.author-box {
  margin-top: 15px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.author-title {
  color: #0073aa; /* azul estilo Tecnoblog */
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.author-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.author-avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.author-details {
  flex: 1;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-name {
  font-size: 1.1rem;
  font-weight: bold;
}

.author-role {
  color: #666;
  font-size: 0.9rem;
}

.author-social a {
  margin-left: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #555;
}

.author-social a:hover {
  color: #0073aa;
}

.author-bio {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.zigg-share-buttons {
    display: flex;
    gap: 10px
}

.share-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: #ccc;
    mask-repeat: no-repeat;
    mask-size: 60%;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 60%;
    -webkit-mask-position: center;
    transition: background 0.3s;
    border-radius: 50%
}

.share-icon:hover {
    background-color: #111
}

.share-icon.facebook {
    background-color: #3b5998;
    mask-image: url(https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/facebook.svg)
}

.share-icon.twitter {
    background-color: #1da1f2;
    mask-image: url(https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/x.svg)
}

.share-icon.pinterest {
    background-color: #bd081c;
    mask-image: url(https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/pinterest.svg)
}

.share-icon.telegram {
    background-color: #08c;
    mask-image: url(https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/telegram.svg)
}

.share-icon.whatsapp {
    background-color: #25d366;
    mask-image: url(https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/whatsapp.svg)
}


