a {
  text-decoration: none;
}

.container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.breadcrumb {
  font-size: 1rem;
  color: var(--text-color);
  padding-top: 1rem;
}

.breadcrumb a {
  color: var(--time-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--link-color);
}

.chevron {
  margin: 0 0.75rem 0 0.5rem;
  color: var(--time-color);
  /* gray-400 */
  font-size: 1.5rem;
}

.article-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--time-color);
  margin-bottom: 0.5rem;
}

.meta .dot {
  margin: 0 0.4rem;
}

.meta-right {
  display: flex;
  align-items: center;
}

.icon-btn2 {
  cursor: pointer;
  display: flex;
  align-items: center;
  background: none;
  border: none;
}

.icon-btn2 .icon-share {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  
}

.icon-btn2 .icon-print {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
}

/* .article-image {
  width: 100%;
} */

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.media-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.5rem;
}

.media-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.media-item img,
.media-item iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: block;
}


.summary {
  font-size: 1rem;
  /* margin: 0.5rem 0; */
}

.description {
  font-size: 1.125rem;
  color: var(--description-color);
}

.section {
  /* margin-top: 2rem; */
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  max-width: 100%;
}

.related-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--headline-color);
  /* border-bottom: 1px solid var(--border-color); */
  font-size: 1rem;
}

.related-card img {
  width: 87px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.related-card .card-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.related-card time {
  font-size: 0.9rem;
  color: var(--time-color);
}

.trending-news {
  display: flex;
  flex-direction: column;
  /* margin-top: 1rem; */
}

.trending-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--headline-color);
  font-size: 1rem;
}

.trending-item .item-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.trending-item img {
  width: 87px;
  height: 60px;
  border-radius: 0.375rem;
}

.trending-item time {
  font-size: 0.9rem;
  color: var(--time-color);
}

/* === Pagination Controls === */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  max-width: 56rem;
  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: 567px) {

  .related-grid {
    gap: 0;
  }

  .related-card {
    border-bottom: 1px solid var(--border-color);
  }

  .article-title {
    font-size: 1.5rem;
  }

  .breadcrumb {
    font-size: 0.9rem;
    padding: 0;
  }

  .chevron {
    font-size: 1.4rem;
  }

  .meta {
    font-size: 0.9rem;
  }

  .meta .dot {
    /* margin: 0 0.1rem; */
    display: none;
  }

  .meta #category {
    display: none;
  }
  .icon-btn2 .icon-share {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .icon-btn2 .icon-print {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .nav-btn {
    font-size: 1.2rem;
  }
}

/* print.css */
@media print {

  /* Hide everything except main article content */
  #header,
  #category-menu,
  #footer,
  .breadcrumb,
  .meta-right,
  .nav-buttons,
  #related-articles,
  .media-carousel iframe,
  #trending-container {
    display: none !important;
  }

  /* @page {
  size: A4;
  margin: 20mm;
} */

  /* Simulated print header */
  @media print {
    body::before {
      content: "BILLION BROADCAST";
      display: flex;
      font-size: 0.8rem;
      border-bottom: 1px solid #c1121f;
      padding: 4px 0;
      width: 100%;
    }
  }

  body {
    background: white !important;
    color: black !important;
  }

  /* Make article content fill page */
  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Optional: bigger text for readability */
  .article-title {
    font-size: 28px;
    font-weight: bold;
    color: black;
  }

  .meta {
    margin: 0.5rem 0;
    color: black;
    font-size: 0.9rem;
  }

  .media-carousel {
    display: block;
  }

  .summary {
    color: black;
  }

  .description {
    color: black;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: black !important;
  }
}