:root {
  --bg-primary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #121212;
  --text-muted: #6c757d;
  --accent-black: #050505;
  --accent-border: #e0e0e0;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header & Navegação */
header {
  background-color: var(--accent-black);
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 4px;
}

nav a:hover, nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Layout Principal */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Cards de Notícias */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: var(--accent-black);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.card-title {
  font-size: 1.15rem;
  margin: 0.6rem 0;
  color: var(--text-primary);
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Timeline na página de História */
.timeline {
  border-left: 3px solid var(--accent-black);
  margin: 2rem 0;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-black);
}

footer {
  background: var(--accent-black);
  color: #888;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}