/* ===== Blog Page Styles ===== */
#header {
  position: fixed; /* já tem, mas reforça */
  z-index: 1030;   /* valor maior que o sticky da sidebar */
}
/* Hero */
#blog-hero {
  background: linear-gradient(135deg, #1f2c3d, #0d6efd);
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

#blog-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

#blog-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}



/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 100px; /* distância do topo para não ficar grudado */
  z-index: 10; /* menor que o header */
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-sidebar h4 {
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 8px;
}

.blog-sidebar ul li a {
  color: #333;
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.blog-sidebar ul li a:hover {
  background: #0d6efd;
  color: #fff;
}

/* Cards */
.blog-section .card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-section .card img {
  height: 300px;
  object-fit: cover;
}

.card-img-top {
    width: 100%;          /* garante que a largura preencha o card */
    height: 250px;        /* altura fixa para todos os cards, ajuste conforme quiser */
    object-fit: cover;    /* "cover" mantém proporção e preenche o card */
    object-position: center; /* centraliza a imagem */
}
