/* ===== Page: Chi tiết tin tức ===== */

.page-news-detail {
  background: #fff;
}

.nd-crumb {
  background: #eef3fb;
}
.nd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
  color: #6b7280;
}
.nd-breadcrumb a {
  color: #6b7280;
  transition: color 0.2s;
}
.nd-breadcrumb a:hover {
  color: var(--blue);
}

.nd-article {
  padding: 40px 0 0px;
  margin-bottom: 0px;
}

.nd-article h1 {
  margin: 0 0 18px;
  color: #111827;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.25;
}

.nd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 14px;
  padding: 5px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #9ca3af;
  font-size: 14px;
}

.nd-lead {
  margin: 0 0 14px;
  color: #1f2937;
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.6;
}

.nd-toc {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ebf8fa;
}
.nd-toc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #1f2937;
}
.nd-toc-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}
.nd-toc-title svg,
.nd-toc-chevron {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.nd-toc-chevron {
  transition: transform 0.25s ease;
}
.nd-toc.is-collapsed .nd-toc-chevron {
  transform: rotate(-90deg);
}
.nd-toc-list {
  margin: 16px 0 0;
  padding: 0 0 0 1.2em;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}
.nd-toc-list ol {
  margin: 6px 0 10px;
  padding-left: 1.2em;
}
.nd-toc-list a {
  color: inherit;
}
.nd-toc-list a:hover {
  color: var(--blue);
}

.nd-content {
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
}
.nd-content > p {
  margin: 0 0 5px;
}
.nd-content h2 {
  margin: 14px 0 12px;
  color: #111827;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}
.nd-content h3 {
  margin: 14px 0 10px;
  color: #1f2937;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
}

.nd-related {
  margin: 8px 0 14px;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--cyan);
}
.nd-related h2 {
  margin: 0 0 10px;
  color: #111827;
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.nd-related ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}
.nd-related li {
  margin: 0 0 8px;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
}
.nd-related li::marker {
  color: var(--blue);
}
.nd-related a {
  color: inherit;
  font-weight: bold;
}
.nd-related a:hover {
  color: var(--blue);
}

.nd-figure {
  margin: 14px 0;
}
.nd-figure img,
.nd-content img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.nd-content figure {
  margin: 14px 0;
}

/* Share — Flatsome [share] */
.nd-share {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 36px 0 8px;
}
.nd-share .share-icons {
  margin: 0;
}

/* Related posts carousel */
.nd-more {
  padding: 24px 0 26px;
}
.nd-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0px 20px;
}
.nd-more-head h2 {
  margin: 0;
  color: var(--blue);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
}
.nd-more-nav {
  display: flex;
  gap: 10px;
}
.nd-more-prev,
.nd-more-next {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #5b6478;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  padding: 0px;
  margin: 0px;
}
.nd-more-next{
  transform: rotate(180deg);
}
.nd-more-carousel .owl-stage {
  display: flex;
}
.nd-more-carousel .owl-item{
  padding: 15px 20px 35px;
}
.nd-more-card {
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 25px rgba(29, 64, 182, 0.1);
  display: flex;
  flex-direction: column;
}
.nd-more-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.nd-more-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.nd-more-card:hover .nd-more-media img {
  transform: scale(1.04);
}
.nd-more-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 18px;
  flex: 1;
}
.nd-more-body h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
}
.nd-more-body h3 a {
  color: inherit;
}
.nd-more-body h3 a:hover {
  color: var(--blue);
}
.nd-more-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.nd-more-tag {
  display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #e8eef8;
    color: #999999;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.nd-more-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.nd-more-arrow svg {
  width: 16px;
  height: 16px;
}
.nd-more-arrow:hover {
  transform: translateX(3px);
  filter: brightness(1.08);
}

.page-news-detail .site-footer {
  margin-top: 0;
}

@media (max-width: 860px) {
  .nd-article {
    padding: 28px 0 36px;
  }
  .nd-meta {
    gap: 6px 16px;
    font-size: 13px;
  }
  .nd-toc {
    padding: 14px 14px;
  }
  .nd-content {
    font-size: 15px;
  }
  .nd-related {
    padding-left: 14px;
  }
  .nd-share {
    margin-top: 28px;
  }
  .nd-more {
    padding: 8px 0 40px;
  }
  .nd-more-head h2 {
    font-size: 22px;
  }
}
