
#article-container {
  grid-column: 1 / -1;            /* span full width above lists */
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.full-article h1 {
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
  font-size: 1.6rem;
}
.full-article .meta {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
}
.full-article .article-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0.75rem 0 1rem 0;
}
.full-article .article-body {
  color: #2b2b2b;
  line-height: 1.8;
}
.full-article .source {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #7a7a7a;
}
.explore-link {
  display: inline-block;
  padding: 10px 18px;
  background: #ff0000;       /* YouTube red */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.explore-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.explore-link:active {
  transform: scale(0.97);
}
/* Main container: 2-column layout */
main.container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* main content 2x bigger than sidebar */
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* Main content stack */
.news-feed section {
  margin-bottom: 2rem;
}
.news-feed h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.75rem 0;
  color: #111;
  text-decoration: none;   /* ✅ Remove underline */
  border-bottom: none;
}

/* Sidebar styling */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Headlines & Popular should scroll horizontally */
#headlines-container,
#popular-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}
#headlines-container::-webkit-scrollbar,
#popular-container::-webkit-scrollbar {
  height: 6px;
}
#headlines-container::-webkit-scrollbar-thumb,
#popular-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* Headline/Popular cards */
.headline-card {
  flex: 0 0 auto;
  width: 220px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(167, 7, 106, 0.08);
  text-decoration: none;   /* ✅ Remove underline */
  font-size: 0.65rem;


}
.headline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.headline-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.headline-title {
  font-size: 0.65rem;
  line-height: 1.35;
  margin: 10px 12px 6px 12px;
  color: #b711bd;
}
.headline-summary {
  font-size: 0.55rem;
  color: #636363;
  margin: 0 12px 12px 12px
}
.headline-card a,
#popular-container a {
  text-decoration: none;
  color: inherit;
  font-size: 0.65rem;

}
.headline-card a:hover,
#popular-container a:hover {
  text-decoration: none; /* ✅ keep clean */
  color: #b711bd;        /* ✅ optional hover color */
}

/* Trending list in sidebar */
#trending-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#trending-container li {
  margin: 0 0 10px 0;
  line-height: 1.35;
  position: relative;
  padding-left: 1rem;
}
#trending-container li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #d3215d;
}
.trending ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trending li {
  margin-bottom: 0.5rem;
  content: "›";
  position: absolute;
  left: 0;
  color: #d3215d;
}
.trending a {
  text-decoration: none;
  color: #0073e6;
  transition: color 0.2s;
}
.trending a:hover {
  color: #005bb5;
}
footer {
  background: #f0e7f4;
  margin-top: 2rem;
  text-align: center;
  padding: 12px 10px;
  color: #6b6b6b;
  font-size: 0.9rem;
}


/* Responsive: stack sidebar below */
@media (max-width: 900px) {
  main.container {
    grid-template-columns: 1fr; /* single column */
  }
  .sidebar {
    order: 2;
  }
  .news-feed {
    order: 1;
  }
}
