/* ============ RESET & LAYOUT EXCLUSIVO DO PORTAL BLOG ============ */

/* Container Principal do Blog */
.blog-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.blog-layout > div {
  width: 100% !important;
}

.blog-layout h2 {
  text-align: center !important;
  font-size: 1.75rem !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  margin-bottom: 2rem !important;
}

/* Section Destaque (Featured) */
.featured-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 2.5rem !important;
  align-items: center !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05) !important;
}

.featured-content h1 {
  font-size: 2rem !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 1rem 0 !important;
  font-weight: 800 !important;
}

.featured-content p {
  color: #64748b !important;
  line-height: 1.6 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1rem !important;
}

.featured-media {
  background: linear-gradient(135deg, #0b192c 0%, #1e3e62 100%) !important;
  min-height: 280px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

/* Grid de Artigos em 3 Colunas Perfeitas */
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  justify-content: center !important;
  width: 100% !important;
}

/* Card do Artigo */
.blog-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.blog-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* Thumbnail/Capa Superior do Card */
.blog-card .card-thumb {
  width: 100% !important;
  height: 160px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3e62 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Corpo do Card */
.blog-card .card-body {
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  flex-grow: 1 !important;
}

.blog-card .card-tag {
  display: inline-block !important;
  width: fit-content !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

.blog-card h3 {
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.blog-card p {
  color: #64748b !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Rodapé do Card com Link */
.blog-card .card-footer {
  padding: 1rem 1.5rem !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #fafafa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.blog-card .read-more {
  color: #0056b3 !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  text-decoration: none !important;
  transition: gap 0.2s ease !important;
}

.blog-card:hover .read-more {
  gap: 0.7rem !important;
}

/* Paginação Centralizada */
.blog-pagination {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 3rem !important;
}

.blog-pagination .page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.blog-pagination .page-link.active,
.blog-pagination .page-link:hover {
  background: #0056b3 !important;
  color: #ffffff !important;
  border-color: #0056b3 !important;
}

.blog-pagination .page-next {
  width: auto !important;
  padding: 0 1.25rem !important;
  gap: 0.5rem !important;
}

/* Responsividade */
@media (max-width: 992px) {
  .featured-card {
    grid-template-columns: 1fr !important;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}