/* Hero */
.post-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.post-header .post-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
}
.post-header .lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}
.post-back {
  margin-top: 1rem;
}
.btn-back {
  display: inline-block;
  background: #00875a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-back:hover {
  background: #006d47;
}

/* Layout */
.post-layout.has-aside {
  display: grid;
  grid-template-columns: 1fr 300px; /* conteúdo + sidebar */
  gap: 32px;
  margin-top: 24px;
}

.post-main {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Aside */
.post-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-thumb-wrapper {
  width: 100%;
}
.post-thumb {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* TOC */
.toc-box {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}
.toc-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.toc-box ul {
  list-style: none;
  padding: 0;
}
.toc-box li {
  margin-bottom: 0.25rem;
}
.toc-box a {
  text-decoration: none;
  color: #00875a;
}
.toc-box a:hover {
  text-decoration: underline;
}

/* Próximo post */
.post-next {
  margin-top: 40px;
}
.next-post {
  font-weight: bold;
  text-decoration: none;
  color: #00875a;
}
.next-post:hover {
  text-decoration: underline;
}

/* Layout principal */
.post-layout.has-aside {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Conteúdo (2 partes) + Sidebar (1 parte) */
  gap: 32px;
  margin-top: 24px;
  align-items: start; /* força sidebar ficar alinhada no topo */
}

/* Conteúdo do post */
.post-main {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Sidebar */
.post-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Imagem da sidebar */
.post-thumb {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo do conteúdo do post */
.post-main {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.post-main h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #111;
  font-weight: 600;
}

.post-main h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #222;
  font-weight: 500;
}

.post-main p {
  margin-bottom: 1rem;
}

/* ===============================
   Estilo geral do post
================================= */
.post-page {
  font-family: "Inter", Arial, sans-serif;
  color: #222;
  line-height: 1.7;
  background: #fff;
  padding-bottom: 4rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Container geral */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===============================
   Header do post
================================= */
.post-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #eee;
}

.post-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.post-header .lead {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.2rem;
}

.btn-back {
  display: inline-block;
  background: #00875a;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #006d47;
}

/* ===============================
   Layout principal
================================= */
.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* conteúdo + sidebar */
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: flex-start; /* alinha sidebar pelo início do texto */
}

.post-aside {
  margin-top: 1rem; /* deixa o aside nivelado com o parágrafo principal */
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Conteúdo do artigo
================================= */
.post-main h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #111;
}

.post-main h3 {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: #222;
}

.post-main p {
  margin-bottom: 1rem;
  color: #333;
}

.post-main ul,
.post-main ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #333;
}

/* Caixa de dica */
.tip-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ===============================
   Sidebar
================================= */
.post-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-thumb {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.toc-box {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  padding: 1rem;
  border-radius: 8px;
}

.toc-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

#toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#toc li {
  margin-bottom: 0.6rem;
}

#toc a {
  color: #006d47;
  text-decoration: none;
  font-size: 0.95rem;
}

#toc a:hover {
  text-decoration: underline;
}

/* ===============================
   Próximo post
================================= */
.post-next {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  text-align: right;
}

.next-post {
  color: #00875a;
  font-weight: 500;
  text-decoration: none;
}

.next-post:hover {
  text-decoration: underline;
}

/* Container geral */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.post-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}
.post-header .post-meta {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 0.8rem;
}
.post-header .lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.btn-back {
  display: inline-block;
  background: #00875a;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}
.btn-back:hover {
  background: #006d47;
}

/* Layout principal */
.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}
.post-main {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.post-main h2 {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
}
.post-main p {
  margin-bottom: 1rem;
}

/* Sidebar */
.post-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.post-thumb-wrapper {
  text-align: center;
}
.post-thumb {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.toc-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  background: #fafafa;
}
.toc-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #222;
}
.toc-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-box li {
  margin-bottom: 0.5rem;
}
.toc-box a {
  text-decoration: none;
  color: #00875a;
  font-weight: 500;
}
.toc-box a:hover {
  text-decoration: underline;
}

/* Caixa de correções rápidas */
.tip-box {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
}
.tip-box.success {
  background: #e6f7ed;
  border-left: 5px solid #00875a;
}
.tip-box h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.tip-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.tip-box li {
  margin-bottom: 0.5rem;
}

/* Próximo post */
.post-next {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.next-post {
  text-decoration: none;
  font-weight: 500;
  color: #00875a;
}
.next-post:hover {
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-aside {
    margin-top: 2rem;
  }
}

/* ===============================
   Caixas reutilizáveis
================================= */
.box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.box h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
}

.box.info {
  background: #f0f7ff;
  border-left: 5px solid #3399ff;
}

.box.success {
  background: #e6f7ed;
  border-left: 5px solid #00875a;
}

.box.warning {
  background: #fff8e6;
  border-left: 5px solid #ffa940;
}

.box.danger {
  background: #fff1f0;
  border-left: 5px solid #ff4d4f;
}

.box.article {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}