.post-container {
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.post-main {
  flex: 1; /* Permite que o conteúdo principal ocupe o espaço restante */
  min-width: 0; /* Evita que o conteúdo interno (imagens, etc.) cause overflow */
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.reading-time, .post-date {
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 8px;
}

.post-content {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 768px) {
  .post-content img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

.intro {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin: 40px; 
}

.related-posts {
  margin-top: 40px;
}

.related-posts h3 {
  margin-bottom: 16px;
}

.related-posts ul {
  padding-left: 20px;
}

.related-posts li {
  margin-bottom: 8px;
}

/* Responsivo */

@media (max-width: 768px) {
  .post-container {
    flex-direction: column;
  }

  .post-sidebar {
    margin-top: 40px;
  }
}

@media (min-width: 769px) {
  .post-sidebar {
    /* Define uma largura base de 360px e impede que a sidebar encolha */
    flex-basis: 360px;
    flex-shrink: 0;
    /* Efeito sticky para acompanhar o scroll */
    position: -webkit-sticky; /* Para compatibilidade com Safari */
    position: sticky;
    top: 20px; /* Distância do topo ao "grudar" */
    align-self: flex-start; /* Garante o alinhamento correto dentro do flex container */
  }
}

/* Seção geral */
/* Intro */
.post-intro {
  background: #f3f3f3; /* cor de fundo clara */
  padding: 60px 20px;
}

.post-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap; /* para mobile responsivo */
}

/* Texto do post (lado esquerdo) */
.post-intro-texto {
  flex: 1;
  min-width: 300px;
}

/* Categoria */
.categoria-tag {
  background-color: #09B665;
  color: white;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
}

/* Título */
.post-titulo {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Descrição */
.post-descricao {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
  max-width: 600px;
}

/* Autor */
.post-autor {
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-autor img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.post-autor strong {
  font-size: 16px;
  color: #111;
}

.post-autor span {
  font-size: 14px;
  color: #666;
}

.social-links {
  margin-top: 4px;
}

.social-links a {
  margin-right: 8px;
}

.social-links img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: 0.2s;
}

.social-links img:hover {
  opacity: 1;
}

/* Imagem de capa (lado direito) */
.post-intro-imagem {
  flex: 1;
  min-width: 300px;
}

.post-intro-imagem img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  max-height: 400px;
}

/* Posts relacinados */
/* ====== ARTIGOS RELACIONADOS ====== */
.related-posts {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 60px;
  font-family: "Inter", Arial, sans-serif;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.related-posts h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  position: relative;
}

.related-posts h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #10BC6B;
  margin-top: 6px;
  border-radius: 3px;
}

/* ====== LISTA ====== */
.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px 20px;
}

.related-posts li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.related-posts li:hover {
  border-color: #10BC6B;
  box-shadow: 0 4px 12px rgba(16, 188, 107, 0.15);
  transform: translateY(-2px);
}

/* ====== LINKS ====== */
.related-posts a {
  display: block;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 18px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.related-posts a:hover {
  color: #10BC6B;
}

/* ====== ESTILO DO TEXTO VAZIO ====== */
.related-posts li:only-child {
  text-align: center;
  color: #999;
  font-style: italic;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 600px) {
  .related-posts {
    padding: 22px 20px;
  }

  .related-posts h3 {
    font-size: 1.3rem;
  }

  .related-posts a {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
}



/* Ajustes específicos para o formulário na sidebar */
.post-sidebar .multi-step-form,
.case-sidebar .multi-step-form {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .post-intro-container {
    flex-direction: column;
    text-align: center;
  }

  .post-intro-texto {
    align-items: center;
  }

  .post-titulo {
    font-size: 28px;
  }

.post-descricao {
  font-size: 16px;
  margin: 0 auto 24px;
  max-width: 100%;
  word-wrap: break-word; /* Quebra palavras longas */
  overflow-wrap: break-word; /* Alternativa moderna */
  white-space: normal; /* Permite quebras de linha */
}

  .post-autor {
    justify-content: center;
  }

  .post-intro-imagem img {
    max-height: 300px;
  }
}
