:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #3498db;
  --npr: #161823;
  --newsnation: #0066cc;
  --csm: #f4b41a;
  --ap: #d32f2f;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 300;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

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

.news-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

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

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  color: white;
}

.source-npr { background: var(--npr); }
.source-newsnation { background: var(--newsnation); }
.source-csm { background: var(--csm); }
.source-ap { background: var(--ap); }

.news-card h2 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.news-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card h2 a:hover {
  color: var(--accent);
}

.description {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

time {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: auto;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.8;
}

.disclaimer a {
  color: var(--accent);
  text-decoration: none;
}

.disclaimer a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  main {
    padding: 1rem;
  }
}

.contact {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}
