/* =========================================
   BLOG STYLES - AURORA VEIL
========================================= */

.blog-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}

.blog-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,1) 15%, rgba(13,27,42,.55) 100%);
  z-index: 1; /* sobrepõe a imagem (0) */
}

.blog-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero .display {
  color: #fff; /* Fix text visibility over dark overlay */
}

/* --- BLOG GRID --- */
.blog-main {
  padding: 5rem 0 8rem;
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem 2rem;
  margin-top: 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(13,27,42,.06);
}

.blog-card-img {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.blog-card-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.blog-meta span {
  font-family: var(--ff);
}

.blog-category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--ink);
  transition: color 0.3s;
  font-weight: 600;
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  color: var(--ink-mid);
  font-family: var(--ff);
  font-size: .9375rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  font-family: var(--ff);
}

.blog-card:hover .blog-read-more {
  color: var(--accent);
}

.blog-read-more i {
  transition: transform 0.3s var(--ease);
}

.blog-card:hover .blog-read-more i {
  transform: translateX(4px);
}

/* Destaque (featured post) */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
  margin-bottom: 5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.blog-featured:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px rgba(13,27,42,.05);
}

.blog-featured-img {
  height: 100%;
  min-height: 420px;
}

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

.blog-featured-content {
  padding: 4rem 4rem 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-content .blog-card-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--ink);
}

.blog-featured-content .blog-card-excerpt {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 50ch;
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .blog-featured-img {
    min-height: 300px;
  }
  .blog-featured-content {
    padding: 2.5rem;
  }
}

/* =========================================
   BLOG POST (MÁTERIA)
========================================= */
.post-header {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1.5px solid var(--border);
  text-align: center;
}

.post-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--ink);
  line-height: 1.1;
  margin: 1.5rem 0;
}

.post-hero-image {
  max-width: 1000px;
  margin: 0 auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(13,27,42,.08);
}

.post-hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 5rem;
  color: var(--ink-mid);
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-body p {
  margin-bottom: 2rem;
}

.post-body h3 {
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem;
  color: var(--ink);
}

.post-body blockquote {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  line-height: 1.4;
}

