/* =========================
   CONTAINER WIDTH (Fox-style layout needs space)
========================= */

.main {
  max-width: 1200px;
}

/* =========================
   LEAD STORY
========================= */

.lead-story {
  margin-bottom: 2.5rem;
}

.lead-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lead-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

.lead-content {
  margin-top: 1rem;
}

.lead-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00e5ff;
  margin-bottom: 0.5rem;
}

.lead-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.3rem 0 0.6rem;
}

.lead-summary {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.lead-meta {
  font-size: 0.8rem;
  color: var(--secondary);
}

/* =========================
   NEWS GRID
========================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-card-grid {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card-grid:hover {
  transform: translateY(-4px);
}

.news-card-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
}

.grid-title {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.35;
}

/* =========================
   OPTIONAL TAG BADGE
========================= */

.badge-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
}

/* =========================
   LATEST / PIN STYLING
========================= */

.news-card.latest,
.news-card-grid.latest {
  border-color: #00e5ff;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.4),
    0 8px 24px rgba(0, 229, 255, 0.15);
}

.latest-pin {
  margin-left: auto;
  background: #00e5ff;
  color: #001317;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dark theme refinement */
html[data-theme="dark"] .news-card.latest,
html[data-theme="dark"] .news-card-grid.latest {
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.6),
    0 8px 28px rgba(0, 229, 255, 0.25);
}

/* =========================
   TRIVIA FILTERS (kept clean)
========================= */

.trivia-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.filter-pill {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--content);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--theme);
  border-color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-image img {
    height: 300px;
  }
}

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

  .lead-image img {
    height: 220px;
  }

  .lead-title {
    font-size: 1.4rem;
  }
}