/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0c1118, #06080d 70%);
  color: #c9d1d9;
  line-height: 1.7;
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 50, 50, 0.15);
  z-index: 100;
}

.nav strong { font-weight: 700; letter-spacing: 1px; }
.nav a {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.nav a:hover { color: #ff3232; }

/* ================= HERO ================= */
.articles-hero {
  text-align: center;
  padding: 8rem 4% 4rem;
}

.articles-hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, #ff3232, #9aa4af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.articles-hero p {
  font-size: 1.2rem;
  color: #9aa4af;
}

/* ================= ARTICLES GRID ================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 4%;
}

/* ================= ARTICLE CARD ================= */
.article-card {
  display: flex;
  flex-direction: column;
  background: rgba(20, 25, 35, 0.85);
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 50, 50, 0.2);
  box-shadow: 0 5px 15px rgba(255,50,50,0.1);
}

.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-card h3 {
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff3232;
  text-align: center;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255,50,50,0.25);
}
