/* ===== Preview do Blog ===== */
.blog-content {
  margin: 3rem 0;
  text-align: center;
}

.blog-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* espaçamento entre os retângulos */
}

.card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;

  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.post-texts {
  flex: 2;
  padding: 2.5rem;
  text-align: left;
}

.post-title {
  color: #0058b7;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.post-text {
  color: #333;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.post-image-container {
  flex: 1;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.card.post:hover .post-image {
  transform: scale(1.05);
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .card.post {
    flex-direction: column;
  }

  .post-image-container {
    height: 250px;
  }

  .post-texts {
    padding: 1.5rem;
  }
}

/* ===== Fundo da página de contato ===== */
body.blog {
  display: flex;
  flex-direction: column;
  background: url('../img/background.png') center center / cover no-repeat fixed;
  background-color: #000;
  min-height: 100vh;
}