/* ===== NEWS DETAIL PAGE STYLES ===== */

@media (min-width: 1200px) {
  #news-detail .container {
    max-width: 1170px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 992px) {
  #news-detail .col-lg-8 {
    flex: 0 0 800px;
    max-width: 800px;
  }

  #news-detail .col-lg-4 {
    flex: 0 0 370px;
    max-width: 370px;
  }
}

.news-detail-title {
  font-size: 2.5rem;
  color: #0d2c49;
  line-height: 1.2;
}

.news-meta-date {
  color: #6c757d;
  font-size: 0.95rem;
}

.news-toc {
  background-color: #ebf5ff;
  border-radius: 12px;
  padding: 2rem;
}

.news-toc-title {
  color: #0d2c49;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.news-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.news-toc ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.news-toc ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

.news-sidebar {
  background-color: #f4f9ff; /* Very light blue matching design */
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  margin-left: auto;
}

@media (min-width: 992px) {
  .news-sidebar {
    position: sticky;
    top: 100px;
    width: 370px;
    height: 815px;
    overflow-y: auto;
  }
}

.sidebar-title {
  color: #0d2c49;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  font-family: 'Montserrat', sans-serif;
}

.related-news-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dce9f5; /* Light blue solid line matching design */
  min-height: 125px;
}

.related-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-news-item .thumb {
  width: 140px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
}

.related-news-item .content-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-news-item .content-sidebar .date {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.related-news-item .content-sidebar .title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .news-sidebar {
    width: 100%;
    max-width: 100%;
    margin-top: 3rem;
  }
  .news-detail-title {
    font-size: 1.8rem;
  }
}
