/* Blog público — camada visual moderna (compatível com cards existentes) */

/* Barra de categorias */
.blog-category-bar {
  margin: 16px 0 20px;
  padding: 0;
  border-bottom: none;
}

.blog-category-bar--mosaic .blog-category-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.blog-category-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-cat-chip {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-cat-chip:hover {
  color: var(--blog-cat-accent, #f26e35);
  border-color: var(--blog-cat-accent, #f26e35);
}

.blog-cat-chip--active {
  color: #fff !important;
  background: var(--blog-cat-accent, #f26e35);
  border-color: var(--blog-cat-accent, #f26e35);
}

/* Sidebar cotação */
@media (min-width: 992px) {
  .blog-sidebar-sticky:not(.blog-post-sidebar-col) {
    position: sticky;
    top: 100px;
    z-index: 2;
  }

  .blog-post-page .blog-post-sidebar-col.blog-sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 2;
    align-self: flex-start;
  }
}

.blog-sidebar-quote-body {
  padding: 16px 20px 20px;
  background: #f7f7f7;
}

.blog-sidebar-quote-sub {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}

.blog-sidebar-quote-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-sidebar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 4px 0 0;
}

.blog-sidebar-quote-btn {
  margin-top: 8px;
  width: 100%;
  border: none;
  cursor: pointer;
}

.blog-sidebar-merch-body {
  padding: 16px 20px 20px;
}

.blog-sidebar-merch-routes {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.blog-sidebar-merch-route-link {
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #324673;
  text-decoration: none;
  border-bottom: 1px solid #e2e8f0;
}

.blog-sidebar-merch-route-link:hover {
  color: #f26e35;
}

.blog-sidebar-merch-more {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.blog-sidebar-merch-more:hover {
  color: #324673;
  text-decoration: underline;
}

.blog-sidebar-merch-wa {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none !important;
}

.blog-sidebar-merch-wa:hover {
  background-color: #1da851;
  color: #fff !important;
}

.blog-sidebar-merch-note {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
}

.blog-sidebar-highlights .titulo-artigo-recente {
  font-weight: 600;
}

/* ——— Fase 3: cabeçalho, hero, busca, layout ——— */
.blog-page-header {
  padding: 28px 0 8px;
  text-align: center;
}

.blog-page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}

.blog-page-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

.blog-hero {
  margin: 24px 0 8px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.blog-hero-main {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
  border: 1px solid #e8edf3;
}

.blog-hero-main-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-hero-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-main-body {
  padding: 20px 22px 22px;
}

.blog-hero-main-title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 12px;
}

.blog-hero-main-title a {
  text-decoration: none;
}

.blog-hero-main-title a:hover {
  text-decoration: underline;
}

.blog-hero-main-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.blog-hero-cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

.blog-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-hero-secondary {
  display: flex;
  flex: 1;
  flex-direction: row;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid #e8edf3;
  min-height: 0;
}

.blog-hero-secondary-media {
  flex: 0 0 42%;
  display: block;
  overflow: hidden;
}

.blog-hero-secondary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 120px;
}

.blog-hero-secondary-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-hero-secondary-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.blog-hero-secondary-title a {
  color: #1e293b;
  text-decoration: none;
}

.blog-hero-secondary-title a:hover {
  text-decoration: underline;
}

.blog-hero-secondary-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f26e35;
  text-decoration: none;
}

.blog-search {
  margin: 24px 0;
}

.blog-search-form {
  max-width: 720px;
  margin: 0 auto;
}

.blog-search-label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.blog-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-search-input {
  flex: 1;
  min-width: 200px;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  border: 1px solid #cbd5e1 !important;
}

.blog-search-btn {
  border-radius: 10px !important;
  padding: 14px 24px !important;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}

.blog-list-layout-wrap {
  margin-bottom: 80px;
  margin-top: 8px;
}

.blog-list-layout {
  align-items: flex-start;
}

.blog-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.blog-list-main {
  display: flex;
  flex-direction: column;
}

/* Listagem legado (cards horizontais) */
.blog-list-feed:not(:has(.blog-grid-card)) {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Grade 3–4 colunas (layout mosaico) */
.blog-grid-feed,
.blog-list-feed:has(.blog-grid-card) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.blog-empty-state {
  padding: 40px 28px;
  text-align: center;
  border-radius: 12px;
  color: #64748b;
}

@media (max-width: 991px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-secondary {
    flex-direction: column;
  }

  .blog-hero-secondary-media {
    flex: none;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767px) {
  .blog-search-row {
    flex-direction: column;
  }

  .blog-search-btn {
    width: 100%;
  }
}

.blog-featured-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.blog-featured-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fase 7 — overlay leve nas capas */
.blog-list-thumb,
.blog-hero-main-media,
.blog-hero-secondary-media,
.blog-featured-media {
  position: relative;
}

.blog-list-thumb::after,
.blog-hero-main-media::after,
.blog-hero-secondary-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.12) 100%);
  border-radius: inherit;
}

.blog-infinite-sentinel {
  min-height: 48px;
  margin: 16px 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-load-more-status {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.blog-pagination {
  display: none !important;
}

.blog-featured-title {
  display: block;
  padding: 14px 16px 8px;
  text-decoration: none;
}

.blog-featured-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  text-align: center;
}

.blog-featured-cta span {
  color: #fff !important;
  font-weight: 600;
}

.blog-list-card {
  border-radius: 12px;
  padding: 20px 22px !important;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid #e8edf3;
  transition: box-shadow 0.2s ease;
}

.blog-list-card:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
}

.blog-list-meta {
  flex-wrap: wrap;
  gap: 12px 20px !important;
  justify-content: flex-start !important;
  margin-bottom: 8px;
}

.blog-list-meta-item {
  gap: 6px !important;
}

.blog-list-meta-text {
  font-size: 0.875rem;
  color: #64748b;
}

.blog-chip {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  margin-right: 4px;
}

.blog-chip:hover {
  text-decoration: underline !important;
}

.blog-list-comments .blog-list-meta-text {
  text-decoration: underline;
}

.blog-list-title {
  margin: 0 0 16px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.blog-list-title a {
  text-decoration: none;
}

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

.blog-list-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-list-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 12px;
}

.blog-list-readmore a,
.blog-card-cta-link {
  font-weight: 600;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-card-cta-link:hover {
  color: #fff !important;
  background: currentColor;
  filter: brightness(1.05);
}

.blog-featured-cta.blog-card-cta {
  margin: 0 16px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.blog-list-reading .blog-list-meta-text {
  font-weight: 600;
  color: #475569;
}

/* Artigo: sidebar sem grude legado (evita sobrepor artigos relacionados) */
.blog-post-page .blog-post-sidebar-col.grude {
  position: static !important;
  height: auto !important;
  top: auto !important;
}

/* Mobile: comentários após o post (sem margin negativo legado .div-scroll) */
@media (max-width: 991px) {
  .blog-post-page .div-scroll,
  .blog-post-page .blog-comments-anchor,
  .blog-post-page .blog-comments-section,
  .blog-post-page .blog-comments-list {
    margin-top: 0 !important;
    width: 100%;
  }

  .blog-post-page .blog-comments-section {
    position: relative;
    z-index: 2;
    clear: both;
    margin-top: 20px;
    margin-bottom: 8px;
  }

  .blog-post-page .blog-post-main-col {
    display: flex;
    flex-direction: column;
  }

  .blog-post-page .blog-post-article {
    order: 1;
  }

  .blog-post-page .blog-comments-section {
    order: 2;
  }

  .blog-post-page .card-post-recente.mobile {
    order: 3;
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .blog-post-page .blog-post-sidebar-col {
    order: 4 !important;
  }

  .blog-post-page .blog-post-main-col {
    order: 1 !important;
  }

  .blog-post-page .blog-sidebar-merch {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .blog-post-page .blog-sidebar-sticky {
    position: static !important;
  }
}

.blog-sidebar-mun-wrap {
  position: relative;
  margin-bottom: 4px;
}

.blog-sidebar-mun-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.blog-sidebar-mun-list strong {
  font-weight: 700;
  color: #324673;
}

/* Artigos relacionados (rodapé do post) */
.blog-related-wrap {
  clear: both;
  position: relative;
  z-index: 1;
}

.blog-related-posts {
  width: 100%;
}

.blog-related-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .blog-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Artigo: sidebar esquerda ou direita */
.blog-post-layout {
  align-items: flex-start;
}

.blog-post-layout .blog-post-main-col {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .blog-post-page--sidebar-right .blog-post-sidebar-col {
    padding-left: 24px;
  }

  .blog-post-page--sidebar-left .blog-post-sidebar-col {
    padding-right: 24px;
  }
}

/* Comentários — accordion (alinhado ao padding do corpo do artigo) */
.blog-post-page .blog-comments-section {
  width: 100%;
  margin-top: 8px;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

.blog-comments-section {
  width: 100%;
}

.blog-comments-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-comments-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.blog-comments-count {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.blog-comment-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid;
  background: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-comment-toggle:hover {
  background: #f8fafc;
}

.blog-comment-toggle[aria-expanded="true"] {
  background: var(--blog-comment-accent, #f26e35) !important;
  border-color: var(--blog-comment-accent, #f26e35) !important;
  color: #fff !important;
}

.blog-comment-panel {
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  border: 1px solid #e8edf3;
}

.blog-comment-panel[hidden] {
  display: none !important;
}

.blog-comment-reply-hint {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.blog-comment-form fieldset {
  border: none;
  margin: 0 0 12px;
  padding: 0;
}

.blog-comment-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.blog-comment-form input,
.blog-comment-form textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9375rem;
}

.blog-comment-save-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 12px;
  cursor: pointer;
}

.blog-comment-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.blog-comment-cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.blog-comment-submit {
  border: none;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 700;
  cursor: pointer;
}

.blog-comment-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.blog-comment-form-status {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.blog-comment-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0;
}

.blog-comments-list {
  margin-top: 8px;
}

.blog-comments-list-inner {
  padding: 20px;
}

/* Compartilhamento (artigo) */
.blog-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 28px 24px;
}

.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9375rem;
}

.blog-share-btn span {
  color: #fff;
}

.blog-share-btn--wa {
  background-color: #34af23;
}

.blog-share-btn--in {
  background-color: #0077b5;
}

.blog-share-btn img {
  filter: brightness(0) invert(1);
}

.blog-share-btn--in img {
  filter: none;
}

.blog-pagination {
  margin-top: 8px;
  width: 100%;
}

.blog-pagination .page-link {
  border-radius: 6px;
  margin: 2px;
  color: #324673;
}

@media (max-width: 767px) {
  .blog-list-body {
    flex-direction: column;
  }

  .blog-list-thumb {
    margin-bottom: 12px;
  }

  .blog-list-title {
    font-size: 1.2rem;
  }
}

/* ——— Página do artigo ——— */
.blog-post-page .chat-widget-container,
.blog-mosaic-page .chat-widget-container,
.blog-post-page #hybridButton,
.blog-mosaic-page #hybridButton,
.blog-post-page #whatsappButtonOriginal,
.blog-mosaic-page #whatsappButtonOriginal,
.blog-post-page .whatsapp-float,
.blog-mosaic-page .whatsapp-float,
.blog-post-page .promo.hybrid-button,
.blog-mosaic-page .promo.hybrid-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.blog-post-article {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e8edf3;
  padding: 0 !important;
}

.blog-post-hero {
  position: relative;
  margin: 0;
}

.blog-post-hero-media {
  aspect-ratio: 21 / 9;
  max-height: 420px;
  overflow: hidden;
  background: #e2e8f0;
}

.blog-post-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-hero-overlay {
  padding: 24px 28px 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.blog-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-post-comments-link {
  text-decoration: underline;
  color: inherit;
}

.blog-post-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0;
}

.blog-post-lead {
  margin: 0;
  padding: 20px 28px;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3;
}

.blog-post-intro,
.blog-post-toc,
.blog-post-sections,
.blog-post-migrate-notice,
.blog-post-actions {
  padding-left: 28px;
  padding-right: 28px;
}

.blog-post-intro {
  padding-top: 20px;
  padding-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-post-toc {
  margin: 16px 28px;
  padding: 20px 24px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.blog-post-toc-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
}

.blog-post-toc-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
}

.blog-post-toc-list a {
  color: #324673;
  text-decoration: none;
}

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

.blog-post-section {
  padding: 20px 0;
  border-top: 1px solid #eef2f6;
}

.blog-post-section h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.blog-post-body-html a {
  color: #324673;
  font-weight: 600;
  text-decoration: underline;
}

.blog-post-body-html a:hover {
  color: #f26e35;
}

.blog-post-conclusion {
  padding: 20px 28px 28px;
  border-top: 1px solid #eef2f6;
}

.blog-post-migrate-notice {
  padding: 24px 28px;
  color: #64748b;
  text-align: center;
}

.blog-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid #eef2f6;
}

.blog-post-action-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.blog-post-action-btn:hover {
  background: #f1f5f9;
}

.blog-post-actions-share {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-post-action-btn--wa,
.blog-post-action-btn--in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  border: none;
  color: #fff !important;
}

.blog-post-action-btn--wa:hover,
.blog-post-action-btn--in:hover {
  opacity: 0.92;
  color: #fff !important;
  background-color: inherit;
}

.blog-post-action-btn--wa {
  background-color: #34af23;
}

.blog-post-action-btn--in {
  background-color: #0077b5;
}

.blog-post-action-btn--wa img {
  filter: brightness(0) invert(1);
}

.blog-post-action-btn--in img {
  filter: none;
}

@media print {
  .blog-post-actions {
    display: none !important;
  }
}

/* Newsletter compacta (uma por página) */
.blog-newsletter-band {
  margin: 32px 0 0;
  padding: 28px 0;
}

.blog-newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.blog-newsletter-copy strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.blog-newsletter-copy p {
  margin: 0;
  opacity: 0.95;
  max-width: 420px;
}

.blog-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.blog-newsletter-input {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 767px) {
  .blog-post-hero-overlay,
  .blog-post-lead,
  .blog-post-intro,
  .blog-post-sections,
  .blog-post-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-post-page .blog-comments-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-post-toc {
    margin-left: 16px;
    margin-right: 16px;
  }

  .blog-share-row {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ——— Layout mosaico (opção 3) ——— */
body.blog-mosaic-page {
  background: #f8fafc;
}

.blog-page-header--mosaic {
  padding: 32px 0 12px;
  text-align: left;
}

.blog-page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
}

.blog-page-header-text {
  flex: 1 1 280px;
  min-width: 0;
}

.blog-page-header--mosaic .blog-page-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.blog-page-header--mosaic .blog-page-subtitle {
  margin: 0;
  max-width: none;
  font-size: 1rem;
}

.blog-search-clear-all {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f26e35;
  text-decoration: none !important;
}

.blog-search-clear-all:hover {
  text-decoration: underline !important;
}

.blog-page-search {
  display: flex;
  flex: 1 1 280px;
  max-width: 420px;
  gap: 8px;
  align-items: stretch;
}

.blog-page-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.blog-page-search-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 12px 40px 12px 18px;
  font-size: 0.9375rem;
  background: #fff;
}

.blog-page-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.blog-page-search-clear.is-visible {
  display: flex;
}

.blog-page-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.blog-page-search-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  background: #1e293b;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.blog-page-search-btn:hover {
  background: #334155;
}

.blog-cat-chip--more {
  list-style: none;
  cursor: pointer;
}

.blog-cat-more {
  position: relative;
}

.blog-cat-more summary::-webkit-details-marker {
  display: none;
}

.blog-cat-more-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(320px, 90vw);
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid #e8edf3;
}

.blog-cat-more[open] .blog-cat-chip--more {
  color: #fff;
  background: var(--blog-cat-accent, #f26e35);
  border-color: var(--blog-cat-accent, #f26e35);
}

/* Mosaico destaque */
.blog-mosaic {
  margin: 8px 0 28px;
}

.blog-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  grid-template-rows: minmax(200px, 1fr) minmax(160px, 0.85fr);
  gap: 16px;
  min-height: 420px;
}

.blog-mosaic-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
}

.blog-mosaic-tile--wide {
  grid-column: 1 / 3;
  grid-row: 1;
}

.blog-mosaic-tile--tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.blog-mosaic-grid .blog-mosaic-tile:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.blog-mosaic-grid .blog-mosaic-tile:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.blog-mosaic-tile-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none !important;
}

.blog-mosaic-tile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
}

.blog-mosaic-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.82) 100%);
  color: #fff;
}

.blog-mosaic-tile-time {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.blog-mosaic-tile-title {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}

.blog-mosaic-tile--wide .blog-mosaic-tile-title {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
}

/* Grade de artigos */
.blog-layout-mosaic {
  margin-bottom: 100px;
}

/* Sem sidebar: conteúdo ocupa a largura toda */
.blog-layout-mosaic .blog-list-layout,
.blog-layout-mosaic > .row {
  display: block;
}

.blog-layout-mosaic .blog-sidebar-col,
.blog-layout-mosaic #side,
.blog-layout-mosaic .col-lg-4.pdcol.grude {
  display: none !important;
}

.blog-layout-mosaic .blog-list-main,
.blog-layout-mosaic .col-lg-8.blog-list-main,
.blog-layout-mosaic .col-lg-9.blog-list-main {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.blog-quote-strip {
  display: flex;
  margin-bottom: 24px;
}

.blog-quote-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  width: 100%;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.blog-quote-strip-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  flex: 1 1 200px;
}

.blog-quote-strip-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.blog-quote-strip-btn:hover {
  opacity: 0.92;
}

.blog-grid-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.blog-grid-card-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  text-decoration: none !important;
}

.blog-grid-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-grid-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.78) 100%);
  color: #fff;
}

.blog-grid-card-time {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 4px;
}

.blog-grid-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

.blog-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf3;
}

.blog-quote-bar-mobile {
  display: none;
}

@media (min-width: 992px) {
  .blog-quote-strip {
    display: flex;
  }
}

@media (max-width: 1199px) {
  .blog-grid-feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .blog-quote-strip {
    display: none;
  }

  .blog-mosaic-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .blog-mosaic-tile--wide {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 220px;
  }

  .blog-mosaic-tile--tall {
    grid-column: 1 / 2;
    grid-row: auto;
    min-height: 200px;
  }

  .blog-mosaic-grid .blog-mosaic-tile:nth-child(3) {
    grid-column: 2;
    grid-row: auto;
    min-height: 200px;
  }

  .blog-mosaic-grid .blog-mosaic-tile:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 180px;
  }

  .blog-quote-bar-mobile {
    display: none !important;
  }

  .blog-layout-mosaic {
    margin-bottom: 48px;
  }

  .blog-page-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .blog-page-header-text,
  .blog-page-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  .blog-page-search {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body.blog-mosaic-page {
    padding-top: 100px !important;
  }

  .blog-page-header--mosaic {
    padding: 14px 0 6px;
  }

  .blog-page-header--mosaic .blog-page-title {
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .blog-page-header--mosaic .blog-page-subtitle {
    line-height: 1.45;
  }

  .blog-page-header-row {
    gap: 8px;
  }

  .blog-page-search {
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
  }

  .blog-page-search-input {
    padding: 10px 36px 10px 14px;
    font-size: 0.875rem;
  }

  .blog-page-search-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .blog-page-search-btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .blog-page-search-btn::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
  }

  .blog-category-bar.blog-category-bar--mosaic {
    margin-top: 0;
    margin-bottom: 10px;
    padding-top: 0;
  }

  .blog-mosaic {
    margin-top: 0;
  }

  /* Mosaico: cards com a mesma altura (1º = 2º) */
  .blog-mosaic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-mosaic-tile,
  .blog-mosaic-tile--wide,
  .blog-mosaic-tile--tall,
  .blog-mosaic-grid .blog-mosaic-tile:nth-child(3),
  .blog-mosaic-grid .blog-mosaic-tile:nth-child(4) {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .blog-mosaic-tile-link {
    min-height: 100%;
  }

  .blog-mosaic-tile-link img {
    min-height: 100%;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 575px) {
  .blog-mosaic-grid .blog-mosaic-tile {
    grid-column: 1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .blog-grid-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .blog-grid-card-title {
    font-size: 0.8125rem;
  }
}
