* {
  box-sizing: border-box;
}

/* ================================
   BLOG HERO BAR (full width colado no header)
   ================================ */

.blog-hero-bar {
  width: 100%;
  margin-left: 0;

  background: rgba(2,6,23,.92);
  padding: 70px 0 50px;

}



.blog-hero-inner {
  display: flex;
  align-items: center;
  gap: 30px;

  max-width: 1100px;
  margin: auto;
  padding: 40px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}


.blog-hero-inner h1 {
  font-size: 50px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  flex-shrink: 0; /* não deixa esmagar */
}

.blog-hero-inner h1 a {
  color: #fff;
  text-decoration: none;
}

.blog-hero-inner h1 a:hover {
  color: #c7a065; 
}

/* ================================
   CATEGORY FILTER NAV
   ================================ */
.blog-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}


/* Botões estilo chip */
.blog-nav-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.blog-nav a.blog-nav-link {
  text-decoration: none !important;
}
/* Hover suave */
.blog-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #c7a065; /* mesmo tom do active */
}

/* Ativo dourado */
.blog-nav-link.active {
  background: #c7a065;
  color: #fff;
  border-color: #c7a065;
}
/* ================================
   BLOG INDEX CONTAINER
   ================================ */

.blog-index {
  max-width: 1100px;
  margin: auto;
  padding: 30px 24px 90px;
}

.blog-hero-bar {
  width: 100%;
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid #1e293b;
  padding: 60px 0 50px;
}




/* ================================
   RESET LINK STYLE (cards inteiros)
   ================================ */

.blog-card,
.blog-featured {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card:visited,
.blog-featured:visited {
  color: inherit;
}

.blog-card *,
.blog-featured * {
  text-decoration: none !important;
}

/* ================================
   FEATURED POST
   ================================ */

.blog-featured {
  margin-bottom: 90px;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 24px;
  background: #fff;
  transition: all 0.25s ease;
}

.blog-featured:hover {
  border-color: rgba(30, 79, 217, 0.5);
  transform: translateY(-4px);
}

/* Featured thumb retangular */
.featured-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured text */
.featured-content h2 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.featured-content p {
  font-size: 18px;
  opacity: 0.8;
  line-height: 1.7;
  margin: 0;
}

/* ================================
   GRID POSTS
   ================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Card */
.blog-card {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  transition: all 0.25s ease;
}

.blog-card:hover {
  border-color: rgba(30, 79, 217, 0.5);
  transform: translateY(-4px);
}

/* Card thumb retangular */
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================
   CATEGORY PILL (Card Label)
   ================================ */

.post-category {
  display: inline-block;
  background: #1e4fd9;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 14px;
  line-height: 18px;
}

/* ================================
   CARD TITLE + EXCERPT
   ================================ */

.blog-card h3 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  margin: 0;
}

.card-excerpt {
  font-size: 16px;
  opacity: 0.75;
  margin-top: 10px;
  line-height: 1.6;
}




/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .featured-content h2 {
    font-size: 30px;
  }

  .blog-hero-inner h1 {
    font-size: 44px;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
    /* categorias em 2 colunas */
  .blog-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .blog-nav-link {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
  }
}
