/* ============================================================
   NEWS DETAIL PAGE  —  nd- prefix
   ============================================================ */

/* ── ARTICLE ──────────────────────────────────────────────── */
.nd-article {
  background: linear-gradient(180deg, #fff 0%, #F4F8FE 100%);
  padding: 2.5rem 3.75rem 5rem;
}

.nd-article__container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Back button */
.nd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #fff;
  border-radius: 40px;
  border: 1px solid #E0E0E0;
  color: #071738;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2rem;
}

.nd-back:hover { opacity: 0.8; }

.nd-back__arrow {
  display: flex;
  align-items: center;
}

/* Hero image */
.nd-hero-img {
  width: 100%;
  max-width: 1027px;
  height: 385px;
  object-fit: cover;
  border-radius: 50px;
  display: block;
  margin: 0 auto 2.5rem;
  background: #D9D9D9;
}

/* Title row */
.nd-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1027px;
  margin: 0 auto 1rem;
}

.nd-title {
  color: #071738;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  max-width: 780px;
}

.nd-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #E8F0FF;
  border-radius: 40px;
  color: #071738;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}

/* Meta */
.nd-meta {
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  max-width: 1027px;
  margin: 0 auto 1.25rem;
}

.nd-divider {
  max-width: 1027px;
  margin: 0 auto 2.5rem;
  border: none;
  border-top: 1px solid #E0E0E0;
}

/* Two-column layout */
.nd-body {
  display: flex;
  gap: 3.5rem;
  max-width: 1027px;
  margin: 0 auto;
}

/* TOC */
.nd-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.nd-toc__track {
  position: relative;
  padding-left: 1.25rem;
}

.nd-toc__track::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #E0E0E0;
  border-radius: 2px;
}

.nd-toc__active-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 28px;
  background: #375491;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.nd-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nd-toc__item {
  color: rgba(7, 23, 56, 0.50);
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.3;
  transition: color 0.15s;
}

.nd-toc__item--active {
  color: #375491;
  font-weight: 600;
}

/* Content */
.nd-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.nd-section__heading {
  color: #071738;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.nd-section__body {
  color: #3E4554;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

/* Embedded CTA card */
.nd-inline-cta {
  background: #081737;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nd-inline-cta__text {
  flex: 1;
}

.nd-inline-cta__title {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}

.nd-inline-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #071738;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 40px;
}

.nd-inline-cta__btn:hover { opacity: 0.9; }

.nd-inline-cta__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #D9D9D9;
  flex-shrink: 0;
}


/* ── RELATED NEWS ─────────────────────────────────────────── */
.nd-related {
  background: #fff;
  padding: 5rem 3.75rem;
}

.nd-related__container {
  max-width: 1320px;
  margin: 0 auto;
}

.nd-related__title {
  color: #071738;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2.5rem;
}

.nd-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.nd-news-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nd-news-card__img {
  width: 100%;
  height: 239px;
  object-fit: cover;
  border-radius: 16px;
  background: #D9D9D9;
  display: block;
}

.nd-news-card__meta {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
}

.nd-news-card__title {
  color: #071738;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.nd-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nd-news-card__read {
  color: #071738;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nd-news-card__read:hover { text-decoration: underline; }

.nd-news-card__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #071738;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ── STAY CLOSER CTA (inline article card) ────────────────── */
.nd-staycloser {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  background: #081737;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nd-staycloser__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nd-staycloser__title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.nd-staycloser__desc {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.nd-staycloser__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  background: #fff;
  color: #081737;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.nd-staycloser__btn:hover { opacity: 0.9; }

.nd-staycloser__circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  background: #D9D9D9;
  z-index: 1;
}

.nd-staycloser__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-staycloser__circle--top {
  width: 140px;
  height: 140px;
  right: 100px;
  top: -20px;
}

.nd-staycloser__circle--btm {
  width: 160px;
  height: 160px;
  right: -20px;
  bottom: -30px;
}

.nd-staycloser__dot {
  position: absolute;
  width: 60px;
  height: 60px;
  right: 190px;
  bottom: 30px;
  opacity: 0.4;
  z-index: 1;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .nd-article {
    padding: 2rem 1.5rem 4rem;
  }
  .nd-hero-img {
    height: 280px !important;
    border-radius: 24px;
  }
  .nd-title {
    font-size: 1.6rem;
  }
  /* Hide TOC — collapse to single column */
  .nd-toc {
    display: none !important;
  }
  .nd-body {
    gap: 0;
  }
  .nd-related {
    padding: 3rem 1.5rem;
  }
  .nd-related__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .nd-staycloser__circle,
  .nd-staycloser__dot {
    display: none !important;
  }
  .nd-staycloser__content {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
  .nd-article {
    padding: 1.5rem 1rem 3rem;
  }
  .nd-hero-img {
    height: 220px !important;
    border-radius: 16px;
  }
  .nd-title-row {
    flex-direction: column !important;
    gap: 1rem;
  }
  .nd-title {
    font-size: 1.4rem;
  }
  .nd-inline-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.5rem !important;
  }
  .nd-inline-cta__img {
    display: none !important;
  }
  .nd-related__grid {
    grid-template-columns: 1fr !important;
  }
  .nd-related__title {
    font-size: 1.4rem;
  }
}
