body {
  background-color: var(--bg-color);
  color: var(--text-color);
  /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;

}

a {
  text-decoration: none;
}

/* === Main Layout === */
.news-wrapper {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  /* padding: 0 0.5rem; */
}

.news-container {
  flex: 1 1 600px;
  max-width: 50rem;
  /* border: 1px solid red; */
  border-radius: 18px;
  padding: 1rem 1rem 0;
}

/* .trending-news */
.trending-news {
  width: 350px;
}

#trending-news .news-card .thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 0.375rem;
}

#trending-news .news-text h2 {
  font-size: 1rem;
}

.section-title {
  margin: 1rem 0 0 0;
  padding: 16px 0 0 16px;
  /* top, right, bottom, left */
}

/* === News Card === */
.news-card {
  display: flex;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.thumbnail {
  width: 110px;
  height: 72px;
  border-radius: 0.375rem;
}

.news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-text h2 {
  font-size: 1.2rem;
  /* font-weight: 600; */
  margin: 0 0 0.25rem;
  color: var(--headline-color);
}

.news-text p {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--summary-color);
}

.news-card .time {
  font-size: 0.9rem;
  color: var(--time-color);
}

/* === Pagination Controls === */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  max-width: 50rem;
  width: 100%;
  margin: 2rem 0;
}

.nav-btn {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--headline-color);
}

.nav-btn:hover {
  text-decoration: underline;
}

.nav-placeholder {
  visibility: hidden;
  pointer-events: none;
}


/* === Responsive === */
@media (max-width: 768px) {

  .news-wrapper {
    flex-direction: column;
  }

  .pagination-controls {
    border-bottom: 1px solid var(--border-color);
  }

  .trending-news {
    width: 100%;
  }

  /* #trending-news .news-text h2 {
    font-size: 1.2rem;
  } */


}

@media (max-width: 400px) {

  .news-card:not(#trending-news .news-card) {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumbnail {
    width: 100%;
    height: auto;
  }
}