/* ── Blog, Listagem e Posts ───────────────────────────────────────── */

.nav-solid {
  background: rgba(12,26,53,0.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #253D6B;
}
.nav-active { color: var(--yellow) !important; }

/* Hero do blog */
.blog-main { padding-top: 72px; }
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,184,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,75,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--white);
  letter-spacing: -1px;
  margin: 12px 0 16px;
}
.blog-hero > .container > p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span:last-child { color: var(--yellow); }

/* Tag filters */
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.tag-filter:hover { border-color: var(--yellow); color: var(--yellow); }
.tag-filter.active { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

/* Grid de posts — editorial text-only */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 56px 0 80px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  position: relative;
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.post-card:hover::before { transform: scaleX(1); }
.post-card:hover {
  border-color: rgba(232,184,75,0.35);
  box-shadow: 0 8px 32px rgba(12,26,53,0.08);
  background: #fafaf8;
}
.post-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.post-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-3);
  background: var(--yellow-dim);
  border: 1px solid rgba(232,184,75,0.25);
  padding: 3px 10px;
  border-radius: 100px;
}
.post-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--navy-3); }
.post-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
}
.post-read-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--t), letter-spacing var(--t);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-read-link:hover { color: var(--navy); letter-spacing: 1.5px; }

/* ── Página do Post ───────────────────────────────────────────────── */
.post-main { padding-top: 72px; }
.post-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,184,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,75,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.post-header .container { position: relative; z-index: 1; }
.post-header-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.post-header-tag {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--yellow);
  background: rgba(232,184,75,0.12);
  border: 1px solid rgba(232,184,75,0.2);
  padding: 4px 12px; border-radius: 100px;
}
.post-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 46px);
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 20px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.post-header-meta strong { color: var(--yellow); font-weight: 600; }
.post-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* Conteúdo do post */
.post-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}
.post-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--navy);
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.post-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 32px 0 12px;
}
.post-content p { margin-bottom: 20px; color: var(--text-mid); font-weight: 300; }
.post-content strong { font-weight: 700; color: var(--text-dark); }
.post-content ul, .post-content ol {
  margin: 0 0 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.post-content li { color: var(--text-mid); font-weight: 300; }
.post-content blockquote {
  border-left: 4px solid var(--yellow);
  padding: 16px 24px;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.post-content .highlight-box {
  background: var(--yellow-dim);
  border: 1px solid rgba(232,184,75,0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
}
.post-content .highlight-box p { color: var(--text-dark); margin: 0; font-weight: 400; }

/* Sidebar */
.post-sidebar { position: sticky; top: 92px; }
.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.sidebar-author {
  display: flex; gap: 14px; align-items: center; margin-bottom: 14px;
}
.sidebar-author-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-author-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 16px; color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.sidebar-author-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-dark); }
.sidebar-author-info span { font-size: 11px; color: var(--text-muted); }
.sidebar-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; font-weight: 300; margin-bottom: 16px; }
.sidebar-card .btn-primary { width: 100%; justify-content: center; font-size: 13px; padding: 12px; }

/* Post CTA */
.post-cta {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.post-cta h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--white); margin-bottom: 10px; }
.post-cta p { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 20px; font-weight: 300; line-height: 1.6; }

/* Responsive blog */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; gap: 20px; padding: 36px 0 60px; }
  .post-content-wrap { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 60px; }
  .post-sidebar { position: static; }
  .blog-hero { padding: 48px 0 36px; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-content-wrap { grid-template-columns: 1fr 260px; gap: 36px; }
}
