/* Reset básico */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-image: linear-gradient(rgba(255, 255, 255, 0), #1179fc 50%);
}

/* Seção principal */
.posts-page {
  background-image: url(../images/bg-hero-blue.svg);
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Título */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 800;
}

/* Grid padrão (desktop) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Card */
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px#1179fc96;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

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

.post-content {
  padding: 1rem;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Botão Carregar Mais */
.load-more-container {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.load-more-btn {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.load-more-btn:hover {
  background: #1d4ed8;
}

/* ✅ Responsividade */
@media (max-width: 1024px) {
  .page-title {
    font-size: 2rem;
  }

  .posts-grid {
    gap: 1rem;
  }
}

/* ✅ Mobile: vira lista vertical */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .posts-grid {
    display: block;
    padding: 0;
  }

  .post-card {
    margin-bottom: 1.2rem;
    width: 100%;
  }

  .post-image {
    height: 180px;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-excerpt {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.6rem;
  }

  .post-image {
    height: 160px;
  }

  .post-title {
    font-size: 1rem;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }
}
