/* ===========================
   BLOG - Medical Laudos
   =========================== */

/* Grid de postagens */
.posts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.post-card {
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
transition: transform .2s ease;
}
.post-card:hover {
transform: translateY(-5px);
}

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

.post-card h2 {
font-size: 1.2rem;
margin: 1rem;
color: #222;
}

.post-card p {
margin: 0 1rem 1rem;
color: #555;
font-size: 0.95rem;
line-height: 1.5;
flex-grow: 1;
}

.post-card .btn-primary {
margin: 0 1rem 1rem;
display: inline-block;
}

.post-date {
font-size: 0.8rem;
color: #888;
margin: 0 1rem 1rem;
}

main.section {
margin-top: 40px; /* ou padding-top */
}

.post-detalhe {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-detalhe h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.post-detalhe .post-date {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.post-detalhe .post-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.post-detalhe .post-conteudo {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-voltar {
  display: inline-block;
  padding: 10px 20px;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-voltar:hover {
  background: #004c99;
}

/* Fix: imagens lazy no blog não devem ficar ocultas */
img[loading="lazy"] { 
  opacity: 1 !important; 
  transition: none;
}
