/* ─── Blog — Pró Mente Assessoria ───────────────────────── */

/* ─── Blog Hero ──────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--c-deep) 0%, #1F4672 60%, #0d2a3a 100%);
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.blog-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.blog-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 16px;
}
.blog-hero__label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}
.blog-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.blog-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Category Filter ────────────────────────────────────── */
.blog-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0 0;
}
.blog-filter__btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-muted);
  transition: all var(--t-fast);
  letter-spacing: .02em;
}
.blog-filter__btn:hover,
.blog-filter__btn.active {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

/* ─── Blog Section & Grid ────────────────────────────────── */
.blog-section {
  padding: 48px 0 var(--section-gap);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* ─── Post Card ──────────────────────────────────────────── */
.post-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.post-card:hover {
  box-shadow: 0 16px 48px rgba(31,70,114,.12);
  transform: translateY(-5px);
  border-color: rgba(50,146,149,.3);
}
.post-card--featured {
  grid-column: span 3;
  flex-direction: row;
}
.post-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--c-bg);
}
.post-card--featured .post-card__img {
  width: 52%;
  aspect-ratio: unset;
  flex-shrink: 0;
  min-height: 280px;
}
.post-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.post-card__cat {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(50,146,149,.12);
  color: var(--c-teal-dk);
}
.post-card__date { font-size: .78rem; color: var(--c-muted); }
.post-card__read { font-size: .78rem; color: var(--c-muted); margin-left: auto; }
.post-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.post-card--featured .post-card__title { font-size: 1.5rem; }
.post-card__summary {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: .83rem;
  font-weight: 700;
  color: var(--c-teal);
  margin-top: auto;
  transition: color var(--t-fast), gap var(--t-fast);
}
.post-card:hover .post-card__link { color: var(--c-teal-dk); gap: 10px; }

/* Placeholder card */
.post-card--placeholder {
  border: 2px dashed var(--c-border);
  background: var(--c-bg);
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  cursor: default;
  min-height: 220px;
}
.post-card--placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--c-border);
}
.post-card__placeholder-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--c-muted);
}
.post-card__placeholder-text {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-muted);
}
.post-card__placeholder-sub {
  font-size: .75rem;
  color: var(--c-gray);
  margin-top: 6px;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--c-muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--c-teal);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--c-teal-dk); }
.breadcrumb__sep { color: var(--c-border); }
.breadcrumb__current { color: var(--c-muted); }

/* ─── Article Header ─────────────────────────────────────── */
.article-header {
  padding: calc(var(--nav-h) + 72px) 0 0;
}
.article-header__inner {
  max-width: 820px;
  margin: 0 auto;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-cat {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(50,146,149,.12);
  color: var(--c-teal-dk);
}
.article-read-time,
.article-date {
  font-size: .82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--c-navy);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 22px;
}
.article-summary {
  font-size: 1.08rem;
  color: var(--c-muted);
  line-height: 1.8;
  border-left: 4px solid var(--c-teal);
  padding-left: 20px;
}

/* ─── Article Cover ──────────────────────────────────────── */
.article-cover {
  max-width: 820px;
  margin: 36px auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--c-bg);
}
.article-cover figcaption {
  font-size: .75rem;
  color: var(--c-muted);
  text-align: center;
  padding: 10px 16px;
  background: var(--c-bg);
  font-style: italic;
}

/* ─── Article Body ───────────────────────────────────────── */
.article-layout {
  padding: 56px 0 var(--section-gap);
}
.article-body {
  max-width: 820px;
  margin: 0 auto;
}
.article-body p {
  font-size: 1rem;
  line-height: 1.9;
  color: #2a2a2a;
  margin-bottom: 1.4rem;
}
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-navy);
  margin: 1.75rem 0 .75rem;
}
.article-body ul {
  margin: .5rem 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}
.article-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .97rem;
  line-height: 1.75;
  color: #2a2a2a;
}
.article-body ul li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  flex-shrink: 0;
  margin-top: 9px;
}
.article-body ul li strong { color: var(--c-navy); }
.article-body strong { color: var(--c-navy); font-weight: 700; }

/* Article support image */
.article-img {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 2rem 0;
}
.article-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--c-bg);
}
.article-img figcaption {
  font-size: .78rem;
  color: var(--c-muted);
  text-align: center;
  padding: 10px;
  font-style: italic;
  background: var(--c-bg);
}

/* Highlight box */
.article-highlight {
  background: var(--c-navy);
  border-radius: var(--r-sm);
  padding: 28px 32px;
  border-left: 5px solid var(--c-green);
  margin: 2.5rem 0;
}
.article-highlight h3 {
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}
.article-highlight p {
  color: rgba(255,255,255,.85);
  font-size: .97rem;
  line-height: 1.8;
  margin: 0;
}

/* Article table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: .93rem;
}
.article-body table thead th {
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.article-body table thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.article-body table thead th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.article-body table tbody tr:nth-child(even) { background: var(--c-bg); }
.article-body table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  line-height: 1.65;
  color: #2a2a2a;
  vertical-align: top;
}
.article-body table tbody td:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-navy);
  white-space: nowrap;
}

/* Image placeholder (antes das imagens chegarem) */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #f0f4f8, #e8edf5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--c-muted);
  border-radius: var(--r-md);
  font-size: .82rem;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  padding: 32px;
  aspect-ratio: 16/9;
}
.img-placeholder svg { opacity: .35; }

/* ─── CTA Box ────────────────────────────────────────────── */
.article-cta-box {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: 44px 40px;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid var(--c-border);
}
.article-cta-box h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-cta-box p {
  font-size: .92rem;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.article-cta-box .btn { margin-top: 22px; }
.article-cta-box__contacts {
  margin-top: 20px;
  font-size: .84rem;
  color: var(--c-muted);
  line-height: 1.9;
}
.article-cta-box__contacts a {
  color: var(--c-teal);
  text-decoration: none;
  font-weight: 600;
}
.article-cta-box__contacts a:hover { color: var(--c-teal-dk); }

/* ─── Author Box ─────────────────────────────────────────── */
.article-author {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  margin: 2.5rem 0;
}
.article-author__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-teal));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--c-white);
  flex-shrink: 0;
}
.article-author__label {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.article-author__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 3px;
}
.article-author__role {
  font-size: .85rem;
  color: var(--c-muted);
}

/* ─── Related Posts ──────────────────────────────────────── */
.article-related {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}
.article-related__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-navy);
  margin-bottom: 1.25rem;
}
.article-related__list { display: grid; gap: 10px; }
.article-related__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--c-bg);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.article-related__item:hover {
  border-color: rgba(50,146,149,.25);
  background: #edf3f8;
}
.article-related__cat {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-teal-dk);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(50,146,149,.1);
  border-radius: 100px;
  flex-shrink: 0;
}
.article-related__text {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-navy);
  flex: 1;
}
.article-related__arrow { color: var(--c-teal); flex-shrink: 0; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured {
    grid-column: span 2;
    flex-direction: column;
  }
  .post-card--featured .post-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: auto;
  }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-card--featured { grid-column: span 1; }
  .article-highlight { padding: 20px 22px; }
  .article-cta-box { padding: 32px 22px; }
  .article-author { flex-direction: column; text-align: center; }
  .article-body h2 { font-size: 1.3rem; }

  /* Tabela responsiva — empilha as colunas em mobile */
  .article-body table thead { display: none; }
  .article-body table,
  .article-body table tbody,
  .article-body table tr,
  .article-body table td { display: block; width: 100%; }
  .article-body table tbody tr {
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--c-white);
  }
  .article-body table tbody tr:nth-child(even) { background: var(--c-bg); }
  .article-body table tbody td {
    border-bottom: 1px solid var(--c-border);
    padding: 10px 14px;
    white-space: normal;
  }
  .article-body table tbody td:last-child { border-bottom: none; }
  .article-body table tbody td:first-child {
    background: var(--c-navy);
    color: var(--c-white);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: normal;
  }
}
@media (max-width: 480px) {
  .article-body h2 { font-size: 1.15rem; }
  .article-body h3 { font-size: 1rem; }
  .article-cta-box { padding: 24px 16px; }
}
