/* ===== LAYOUT ===== */

.blog-flex{
  display: flex;
  gap: 40px;
  padding-left: 40px; 
}

.blog-main{
  flex: 3;
  max-width: 70%;
}

.blog-sidebar{
  flex: 1;
  max-width: 25%;
}

/* ===== CARDS ===== */

.blog-item{
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.2s;
}

.blog-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.blog-date{
  font-size: 12px;
  color: #64748b;
}

.blog-item-content h3{
  margin: 10px 0;
  color: #0f172a;
}

.blog-item-content p{
  font-size: 14px;
  color: #475569;
}

/* ===== SIDEBAR ===== */

.sidebar-block{
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== BOTÓN ===== */

.btn-primary{
  display: inline-block;
  background: #007BFF;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */

@media(max-width:768px){
  .blog-flex{
    flex-direction: column;
  }

  .blog-sidebar{
    max-width: 100%;
  }
}
