/* ── Blog (listagem e post) ── */

.blog-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.blog-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.blog-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.blog-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.blog-cats a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.blog-cats a:hover {
  border-color: var(--navy);
}

.blog-cats a.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.blog-filter {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-filter a {
  color: var(--navy);
}

.blog-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  text-decoration: none;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 127, 46, 0.25), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(36, 58, 110, 0.22), transparent 55%),
    var(--gray-mid);
}

/* Destaque */
.blog-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(26, 26, 24, 0.1);
}

.blog-featured-media {
  min-height: 320px;
  background: var(--gray-mid);
}

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

.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px;
}

.blog-featured-body h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-featured-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a44;
}

/* Grade */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--gray-mid);
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.blog-card-body h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.blog-card-body h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card-body h2 a:hover {
  color: var(--navy);
}

.blog-card-body p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #57574f;
}

.blog-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-muted);
}

/* Post */
.blog-preview-bar {
  padding: 10px 20px;
  background: #fff3d6;
  border-bottom: 1px solid #f0d9a2;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7a5200;
}

.blog-post {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.blog-post-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.blog-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.blog-back:hover {
  color: var(--navy);
}

.blog-post-head .blog-cat {
  display: block;
  margin-bottom: 10px;
}

.blog-post-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.blog-post-lead {
  margin: 16px 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #55554e;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.blog-post-cover {
  max-width: 1040px;
  margin: 0 auto 36px;
}

.blog-post-cover img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Conteúdo vindo do editor */
.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2c2c28;
}

.post-content > * {
  margin: 0;
}

.post-content > * + * {
  margin-top: 1.1em;
}

.post-content h2 {
  margin-top: 1.8em;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.post-content h3 {
  margin-top: 1.5em;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.post-content h4 {
  margin-top: 1.3em;
  font-size: 1.1rem;
  font-weight: 800;
}

.post-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
  padding-left: 1.4em;
}

.post-content li + li {
  margin-top: 0.35em;
}

.post-content li p {
  margin: 0;
}

.post-content blockquote {
  padding: 6px 0 6px 22px;
  border-left: 4px solid var(--orange);
  font-size: 1.15em;
  font-style: italic;
  color: #4a4a44;
}

.post-content blockquote p {
  margin: 0;
}

.post-content mark {
  padding: 0 3px;
  border-radius: 3px;
  background: #fdf0b2;
}

.post-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--gray-mid);
  font-size: 0.88em;
}

.post-content pre {
  padding: 18px 20px;
  border-radius: 10px;
  background: #1d1d1b;
  color: #ecebe5;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.post-content pre code {
  padding: 0;
  background: none;
}

.post-content hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--gray-light);
}

.post-content img,
.post-content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-md);
}

.post-content video {
  width: 100%;
  background: #000;
}

.post-content [data-video-embed],
.post-content [data-youtube-video] {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.post-content [data-video-embed] iframe,
.post-content [data-youtube-video] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-content table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow-x: auto;
}

.post-content th,
.post-content td {
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  text-align: left;
  vertical-align: top;
}

.post-content th {
  background: var(--paper);
  font-weight: 700;
}

.post-content td p,
.post-content th p {
  margin: 0;
}

.blog-post-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tags a {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gray-mid);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.blog-tags a:hover {
  background: var(--gray-light);
}

.blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.blog-share span {
  margin-right: 4px;
  font-weight: 700;
}

.blog-share a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.blog-share a:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.blog-related {
  padding-top: 24px;
}

.blog-related h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 800;
}

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

  .blog-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .blog-featured-body {
    padding: 22px;
  }

  .post-content {
    font-size: 1.02rem;
  }
}
