:root {
  --azul: #1B4D6B;
  --azul-escuro: #14384f;
  --dourado: #C9A84C;
  --texto: #1c2733;
  --texto-suave: #5b6b7a;
  --fundo: #f6f8fa;
  --branco: #ffffff;
  --borda: #e2e8ee;
  --radius: 12px;
  --sombra: 0 2px 10px rgba(20, 56, 79, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
  font-weight: 400;
}

a { color: var(--azul); }

/* ---------- Navbar ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav .brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--azul);
  text-decoration: none;
}
nav .nav-links { display: flex; gap: 1.25rem; }
nav .nav-links a {
  text-decoration: none;
  color: var(--texto-suave);
  font-weight: 500;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
nav .nav-links a:hover { color: var(--azul); }
nav .nav-links a.active { color: var(--azul); border-bottom-color: var(--dourado); }

/* ---------- Layout ---------- */
.container { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.5rem; }
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }
.section-title { font-size: 1.5rem; margin: 2.5rem 0 1.25rem; }
.empty { color: var(--texto-suave); padding: 2rem 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 2.6rem; margin: 0 0 .75rem; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: .9; margin: 0 0 1.75rem; }

.btn {
  display: inline-block;
  background: var(--dourado);
  color: #1c1303;
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- Destaque ---------- */
.featured-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sombra);
}
.featured-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-text { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-text h2 { margin: .5rem 0; font-size: 1.6rem; color: var(--azul); }
.featured-text p { color: var(--texto-suave); margin: 0; }

/* ---------- Grid de cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.card-img-link img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.card-body h3 { margin: .25rem 0; font-size: 1.15rem; line-height: 1.3; }
.card-body h3 a { text-decoration: none; color: var(--texto); }
.card-body h3 a:hover { color: var(--azul); }
.card-body p { margin: 0; color: var(--texto-suave); font-size: .95rem; }
.card-body time { color: var(--texto-suave); font-size: .8rem; }

.badge {
  align-self: flex-start;
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* ---------- Artigo ---------- */
.article { max-width: 760px; }
.article .back { display: inline-block; margin-bottom: 1rem; text-decoration: none; color: var(--texto-suave); }
.article h1 { font-size: 2.2rem; line-height: 1.2; margin: .5rem 0; }
.article > time { color: var(--texto-suave); font-size: .9rem; }
.article-banner { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--azul); }
.article-body p { margin: 0 0 1.1rem; }
.article-body code { background: #eef2f6; padding: .15em .4em; border-radius: 6px; font-size: .9em; }

/* ---------- Busca ---------- */
.search-form { display: flex; gap: .75rem; margin-bottom: 1rem; max-width: 560px; }
.search-form input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  font-size: 1rem;
}
.search-form button {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--azul-escuro); }
.search-meta { color: var(--texto-suave); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--texto-suave);
  font-size: .9rem;
  border-top: 1px solid var(--borda);
  margin-top: 3rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .featured-link { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
