.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-section {
    padding: 60px 20px;
    background: #f8faf8;
}

.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2ee;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card:hover img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 20px 22px 26px;
}

.blog-date {
    font-size: 13px;
    color: #6b7b6f;
    display: block;
    margin-bottom: 8px;
}

.blog-card-content h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-content h2 a {
    color: #0f172a;
    text-decoration: none;
}

.blog-card-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* POST */
.blog-post {
  background: #fff;
}

/* HERO */
.blog-post-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-post-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 24px;
}

.blog-post-hero-content {
  max-width: 820px;
}

.blog-post-date {
  font-size: 14px;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

.blog-post-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-post-subtitle {
  font-size: 18px;
  color: #475569;
}

/* CONTEÚDO */
.blog-post-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.blog-post-content {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.8;
  color: #1f2937;
}

.blog-post-content p {
  margin-bottom: 1.4em;
}

.blog-post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

/* GALERIA */
.blog-post-gallery {
  margin-top: 64px;
}

.blog-post-gallery h2 {
  margin-bottom: 24px;
}

.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.blog-gallery-grid img {
  width: 100%;
  border-radius: 10px;
}

/* =========================
   POSTS RELACIONADOS
========================= */

.blog-related {
  margin-top: 60px;
  margin-bottom: 40px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-related-card {
  display: flex;
  gap: 16px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.blog-related-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: 10px;
}

.blog-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related-content {
  display: flex;
  flex-direction: column;
}

.blog-related-content h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.blog-related-content h3 a {
  color: #0f172a;
  text-decoration: none;
}

.blog-related-content h3 a:hover {
  text-decoration: underline;
}


/* RESPONSIVO */
@media (max-width: 768px) {
  .blog-post-hero h1 {
    font-size: 28px;
  }
}
.blog-post-cover {
  max-height: 300px;
  overflow: hidden;
  border-radius: 16px;
  margin: 40px auto;
}

.blog-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-gallery {
  background: #f4f7f4;
  padding: 60px 60px;
  margin-top: 40px;
}

.blog-gallery-title {
  font-size: 28px;
  margin-bottom: 32px;
  color: #0b4d1c;
}

.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.blog-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .3s ease;
}

.blog-gallery-item:hover img {
  transform: scale(1.04);
}
.post-cover {
  max-width: 1200px;
  margin: 0 auto;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
