/* News detail — matches landing-page visual language */

.page-news-detail {
  padding-top: clamp(76px, 10vw, 96px);
}

.page-news-detail .nd-main {
  padding-bottom: 48px;
}

/* ---------- Hero ---------- */
.nd-hero {
  position: relative;
  margin: 0;
  color: #fff;
  background: #01032c;
  overflow: hidden;
  /* Image drives height; text overlays */
}

.nd-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.nd-hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 85% at 50% 30%, rgba(0, 12, 32, 0) 0%, rgba(0, 10, 28, 0.35) 100%),
    linear-gradient(180deg, rgba(2, 12, 34, 0.38) 0%, rgba(2, 14, 38, 0.58) 52%, rgba(1, 8, 28, 0.78) 100%);
  pointer-events: none;
}

.nd-hero__inner {
  position: relative;
  z-index: 1;
  position: absolute;
  inset: 0;
  padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nd-hero__crumb {
  margin: 0 0 12px;
  font-size: var(--lp-fs-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.nd-hero__crumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.nd-hero__crumb a:hover {
  text-decoration: underline;
}

.nd-hero__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nd-hero__lead {
  margin: 12px 0 0;
  max-width: 68ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.nd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--lp-fs-sm);
}

.nd-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Layout ---------- */

.nd-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nd-article-head {
  padding: 18px 18px 0;
  text-align: center;
}

.nd-article-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  text-transform: uppercase;
}

.nd-article-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--lp-gap);
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: var(--lp-fs-sm);
}

.nd-article-meta .nd-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nd-content {
  padding: 14px 18px 18px;
  color: #334155;
  line-height: 1.85;
  font-size: var(--lp-fs-md);
}

/* ------------------------------------------------------------
   1920+ scaling (match homepage linear scale)
------------------------------------------------------------ */
@media (min-width: 1921px) {
  /* Titles scale with viewport but cap at ~4K (3840px) so they do not keep growing on ultra-wide */
  .nd-hero__title {
    font-size: clamp(44px, 0.625vw + 32px, 56px);
    line-height: 1.18;
  }

  .nd-article-title {
    font-size: clamp(32px, 0.52vw + 22px, 44px);
    line-height: 1.22;
  }

  .nd-article-meta {
    font-size: calc(0.55vw + 9px);
  }

  .nd-content {
    font-size: calc(0.55vw + 9px);
    line-height: 1.85;
  }

  .nd-content h2,
  .nd-content h3 {
    font-size: calc(0.6vw + 14px);
    line-height: 1.3;
  }

  .nd-bottom {
    gap: var(--lp-gap);
  }

  .nd-back {
    font-size: calc(0.55vw + 10px);
    gap: calc(0.3vw + 8px);
  }

  .nd-pn {
    gap: calc(0.4vw + 10px);
  }

  .nd-pn__item {
    padding: calc(0.5vw + 12px) calc(0.7vw + 12px);
    border-radius: calc(0.2vw + 12px);
  }

  .nd-pn__k {
    font-size: calc(0.5vw + 9px);
  }

  .nd-pn__v {
    font-size: calc(0.55vw + 9px);
    line-height: 1.5;
  }
}

.nd-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.nd-content h2,
.nd-content h3 {
  color: #0f172a;
  text-transform: uppercase;
}

.nd-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #1d4ed8;
  font-size: var(--lp-fs-md);
}

.nd-back:hover {
  text-decoration: underline;
}

.nd-pn {
  display: grid;
  gap: 10px;
}

.nd-bottom {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .nd-pn--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.nd-pn__item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nd-pn__item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.nd-pn__k {
  font-size: var(--lp-fs-md);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.nd-pn__v {
  margin-top: 4px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
  font-size: var(--lp-fs-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-mini-cta {
  margin-top: 14px;
}

