/* Homepage refresh: cleaner look aligned with article template styling */

body {
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 220px);
}

.homepageHero {
  max-width: 1024px;
  margin: 8px auto 18px auto;
  padding: 18px 5%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.homepageHero h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  text-align: center;
}

.homepageHero p {
  margin: 0;
  color: #444;
  font-size: 1rem;
  text-align: center;
}

.heroMeta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.heroMeta span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #374151;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
  padding: 6px 10px;
  border-radius: 999px;
}

.sectionHeading {
  margin: 16px 0 10px 0;
}

.sectionCard {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.featuredCard {
  padding: 0;
  overflow: hidden;
}

.featuredStory {
  position: relative;
  display: block;
  text-decoration: none;
}

.featuredStory img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.featuredOverlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.08) 100%);
}

.featuredOverlay h2 {
  color: #fff;
  margin: 0 0 6px 0;
  text-align: left;
}

.featuredOverlay p {
  color: #f3f4f6;
  margin: 0;
}

.featuredLabel {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
  border-radius: 999px;
}

.news-container {
  margin-top: 2px;
}

.tracksCard {
  margin-top: 16px;
}

.tracksSubtitle {
  margin: 0 0 12px 0;
  color: #4b5563;
}

#filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#filter button {
  background: #161616;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
}

#filter button:hover {
  background: #2d2d2d;
}

#myInput {
  min-width: 260px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

#myTable {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

#myTable th,
#myTable td {
  padding: 10px;
  border-bottom: 1px solid #eceff3;
  text-align: left;
}

#myTable th {
  background: #111827;
  color: #fff;
}

#myTable tr:nth-child(even) {
  background: #f9fafb;
}

#myTable tr:hover {
  background: #eef2ff;
}

.news-item h2 {
  line-height: 1.2;
}

@media (max-width: 768px) {
  .homepageHero h2 {
    font-size: 1.6rem;
  }

  .featuredStory img {
    height: 250px;
  }

  .featuredOverlay {
    padding: 12px;
  }

  #myInput {
    min-width: 100%;
  }
}
