/* Home: mesma div usa .container + .blog-index — NÃO definir max-width aqui: isso sobrescreve
   o max-width do .container do Bootstrap e deixa a home 100% da viewport no desktop. */
.blog-index > .row {
  --bs-gutter-x: 1rem;
}

@media (max-width: 575.98px) {
  .blog-index {
    overflow-x: clip;
  }
}

/* Listagem blog — classes legadas cardBlog / imageBlog (largura = .container, igual nav/rodapé) */
.blog-main-col {
  min-width: 0;
}

/* Cabeçalho de página (home, estáticas) — título + lead dentro do mesmo bloco */
.page-section-head {
  padding: 1rem 1.1rem 1.05rem;
}

.page-section-head.boxnovo:hover {
  transform: none;
  box-shadow: var(--pub-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
}

.page-section-head__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--pub-text, #222);
  letter-spacing: -0.02em;
}

.page-section-head__lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--pub-muted, #5a5a5a);
  margin: 0;
  max-width: 42rem;
}

.page-section-head--center {
  text-align: center;
}

.page-section-head--center .page-section-head__lead {
  margin-left: auto;
  margin-right: auto;
}

/* Post: meta (data, views, categoria) abaixo do título, mesmo bloco da home */
.page-section-head__meta {
  margin: 0.4rem 0 0;
  padding: 0;
}

.page-section-head__meta.blog-detail-meta-row {
  text-align: left;
}

.titleTab {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pub-text, #222);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.blog-home-lead {
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 auto 1.25rem;
}

.blog-related-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--pub-text, #222);
  letter-spacing: -0.02em;
}

/* FAQ — título do accordion não herdar h2 gigante */
.accordion-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

.post-card-meta-line {
  font-size: 12px;
  line-height: 1.4;
}

.post-card-excerpt-wrap {
  min-height: 3.6em;
  margin-top: 8px;
  overflow: hidden;
}

.post-card-cta-wrap {
  margin-top: 12px;
}

/* Sidebar — sticky na coluna (aside), não no inner; evita falhas de position:sticky */
.blog-sidebar-col {
  min-width: 0;
  align-self: flex-start;
}

.blog-sidebar {
  position: static;
}

@media (min-width: 992px) {
  .blog-detail-page {
    overflow: visible;
  }

  .blog-detail-page .blog-detail-row {
    overflow: visible;
  }

  .blog-detail-page .blog-sidebar-col {
    position: -webkit-sticky;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    z-index: 5;
  }
}

.blog-sidebar-widget {
  background: var(--pub-card, #fff);
  border: 1px solid var(--pub-border, #e2e8f0);
  border-radius: var(--pub-radius, 10px);
  box-shadow: var(--pub-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
}

.blog-sidebar-widget:last-child {
  margin-bottom: 0;
}

.blog-sidebar-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--pub-text, #222);
  line-height: 1.3;
}

.blog-sidebar-widget__text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--pub-muted, #5a5a5a);
  margin-bottom: 0.65rem;
}

.blog-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.blog-sidebar-list li {
  margin-bottom: 0.4rem;
}

.blog-sidebar-list a {
  color: var(--pub-text, #111);
  font-weight: 600;
  text-decoration: none;
}

.blog-sidebar-list a:hover {
  text-decoration: underline;
}

.blog-sidebar-muted {
  color: var(--pub-muted, #777);
  font-size: 0.82rem;
}

.blog-sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-sidebar-search__input {
  font-size: 0.9rem !important;
}

.blog-sidebar-search__btn {
  background: #262626 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  min-height: 40px;
  border-radius: 8px;
}

.blog-sidebar-search__btn:hover {
  filter: brightness(1.08);
}

.blog-sidebar__custom {
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-sidebar-widget--muted {
  opacity: 0.95;
  border-style: dashed;
}

.blog-sidebar-widget__hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pub-muted, #777);
}

.blog-sidebar-code {
  font-size: 0.78rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  word-break: break-all;
}

body[dark="true"] .blog-sidebar-code {
  background: rgba(255, 255, 255, 0.08);
}

.blog-sidebar-admin-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--pub-muted, #777);
}

body[dark="true"] .blog-sidebar-widget__hint,
body[dark="true"] .blog-sidebar-admin-list {
  color: #a3a3a3;
}

@media (max-width: 991.98px) {
  .blog-sidebar-col {
    align-self: stretch;
    position: static;
  }
}

body[dark="true"] .blog-sidebar-widget {
  background: var(--pub-card, #1e1e1e);
  border-color: var(--pub-border, #333);
}

body[dark="true"] .blog-sidebar-widget__title {
  color: #ececec;
}

body[dark="true"] .blog-sidebar-list a {
  color: #e0e0e0;
}

/* Chips sobre a foto — mesmo “vidro” escuro, raio e blur (claro e escuro só afinam opacidade) */
.post-card-stars-overlay,
.post-card-cat-overlay {
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.post-card-stars-overlay {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.62);
  padding: 4px 8px;
  display: flex;
  gap: 1px;
  align-items: center;
  min-height: 26px;
  pointer-events: none;
}

.post-card-cat-overlay {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.62);
  padding: 4px 10px;
  min-height: 26px;
  display: flex;
  align-items: center;
}

.post-card-cat-overlay .post-card-cat-link,
.post-card-cat-overlay .post-card-cat-link:visited,
.post-card-cat-overlay .post-card-cat-link:hover,
.post-card-cat-overlay .post-card-cat-link:focus,
.post-card-cat-overlay .post-card-cat-link:focus-visible,
.post-card-cat-overlay .post-card-cat-link:active {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-decoration: none !important;
}

/* Tema claro: texto branco no chip da categoria */
body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link,
body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link:visited,
body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link:hover,
body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link:focus,
body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link:active {
  color: #fff !important;
}

body:not([dark="true"]) .post-card-cat-overlay .post-card-cat-link:hover {
  opacity: 0.92;
}

.blog-stars-inline {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  vertical-align: middle;
  line-height: 0;
}

.blog-stars-inline img {
  display: block;
  flex-shrink: 0;
}

.blog-rating-one-star {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 2px;
}

.blog-rating-meta-num {
  font-size: 13px;
  vertical-align: middle;
  margin-left: 2px;
  white-space: nowrap;
}

.footer-seo-block {
  text-align: center;
  letter-spacing: -0.02em;
  padding-top: 12px;
  line-height: 1.65;
  width: 100%;
  max-width: none;
}

.footer-seo-block p {
  margin-bottom: 0.9rem;
}

.footer-seo-block a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-seo-block a:hover {
  color: #000;
}

.cardBlog {
  margin-bottom: 1.5rem;
}

.cardBlog a.text-decoration-none.text-reset {
  text-decoration: none !important;
  color: inherit;
}

.cardBlogInt {
  display: flex;
  flex-direction: column;
}

.picture {
  position: relative;
}

.imageBlog {
  height: 160px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .imageBlog {
    height: 170px;
  }
}

@media (min-width: 1200px) {
  .imageBlog {
    height: 180px;
  }
}

.imageBlog-placeholder {
  background-color: #e5e7eb;
  background-image: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
  background-size: cover;
  background-position: center;
}

.imageBlog-photo {
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: #e5e7eb;
}

.postItemTitulo {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--pub-text, #222);
  margin-top: 0.35rem;
  min-height: 2.5em;
}

.postItemResumo {
  font-size: 0.85rem;
  line-height: 1.45;
  display: block;
}

.cardBlogInt a:not(.imageBlog):not(.post-card-thumb) {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.cardBlogInt a:not(.imageBlog):not(.post-card-thumb):hover {
  text-decoration: underline;
}

.post-card-cta {
  color: #111 !important;
}

.post-card-cta:hover {
  color: #000 !important;
}

.selo {
  font-size: 0.88rem;
  color: var(--pub-muted, #5a5a5a);
}

.btn-space .btn {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid var(--pub-border, #e2e8f0);
  background: var(--pub-card, #fff);
  color: var(--pub-text, #222);
}

.btn-space .btn-success,
.btn-space a.btn-success {
  background: #262626;
  border-color: #262626;
  color: #fff !important;
}

.btn-space .btn-success:hover,
.btn-space a.btn-success:hover {
  background: #404040;
  border-color: #404040;
  color: #fff !important;
}

.btn-space .btn.disabled,
.btn-space span.btn-success.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

body[dark="true"] .postItemTitulo {
  color: #ececec;
}

body[dark="true"] .titleTab,
body[dark="true"] .blog-related-title {
  color: #ececec;
}

body[dark="true"] .page-section-head__title {
  color: #ececec;
}

body[dark="true"] .page-section-head__lead {
  color: #a3a3a3;
}

body[dark="true"] .post-card-stars-overlay,
body[dark="true"] .post-card-cat-overlay {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

body[dark="true"] .post-card-cat-overlay .post-card-cat-link,
body[dark="true"] .post-card-cat-overlay .post-card-cat-link:visited,
body[dark="true"] .post-card-cat-overlay .post-card-cat-link:focus,
body[dark="true"] .post-card-cat-overlay .post-card-cat-link:active {
  color: #f5f5f5 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-decoration: none !important;
}

body[dark="true"] .post-card-cat-overlay .post-card-cat-link:hover {
  color: #fff !important;
  opacity: 1;
  text-decoration: none !important;
}

body[dark="true"] .imageBlog-placeholder {
  background-color: #262626;
  background-image: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 50%, #171717 100%);
}

body[dark="true"] .imageBlog-photo {
  background-color: #1e1e1e;
}

body[dark="true"] .footer-seo-block a {
  color: #e5e5e5;
}

body[dark="true"] .footer-seo-block a:hover {
  color: #fff;
}

body[dark="true"] .btn-space .btn {
  background: #2a2a2a;
  border-color: #404040;
  color: #e0e0e0;
}

body[dark="true"] .btn-space .btn-success,
body[dark="true"] .btn-space a.btn-success {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #1a1a1a !important;
}

body[dark="true"] .btn-space .btn-success:hover,
body[dark="true"] .btn-space a.btn-success:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #111 !important;
}

body[dark="true"] .post-card-cta {
  color: #d4d4d4 !important;
}

body[dark="true"] .post-card-cta:hover {
  color: #f0f0f0 !important;
}

/* Páginas estáticas — mesma largura do .container (header/rodapé) */
.static-page {
  max-width: none;
  margin: 0;
}

.static-page__body {
  background: var(--pub-card, #fff);
  border: 1px solid var(--pub-border, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
}

.static-page__body .article-body,
.static-page__body.article-body {
  font-size: 0.95rem;
  line-height: 1.65;
}

.static-page__body.article-body img {
  max-width: 100%;
  height: auto;
}

.form-contact label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-contact .btn-submit {
  display: inline-block;
  min-width: 200px;
  padding: 0.65rem 1.25rem;
  background: #262626;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.form-contact .btn-submit:hover {
  background: #404040;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

body[dark="true"] .static-page__body {
  background: #1a1a1a;
  border-color: #333;
}

body[dark="true"] .accordion-button:not(.collapsed) {
  background: #242424;
  color: #f0f0f0;
}

body[dark="true"] .accordion-button.collapsed {
  background: #1e1e1e;
  color: #e5e5e5;
}

body[dark="true"] .accordion-item {
  border-color: #333;
  background: #1a1a1a;
}

body[dark="true"] .accordion-body {
  background: #141414;
  color: #d4d4d4;
  border-color: #333;
}

.static-page__body a:not(.accordion-button) {
  color: var(--pub-text, #111);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.static-page__body a:not(.accordion-button):hover {
  opacity: 0.9;
}
