:root {
  --news-detail-blue: oklch(0.32 0.14 260);
  --news-detail-blue-deep: oklch(0.25 0.12 260);
  --news-detail-blue-soft: oklch(0.95 0.024 250);
  --news-detail-gold: oklch(0.78 0.13 84);
  --news-detail-gold-soft: oklch(0.97 0.03 88);
  --news-detail-ink: oklch(0.23 0.032 260);
  --news-detail-muted: oklch(0.49 0.024 260);
  --news-detail-line: oklch(0.91 0.013 250);
  --news-detail-surface: oklch(0.995 0.003 250);
  --news-detail-page: oklch(0.986 0.006 250);
  --news-detail-shadow: 0 24px 56px rgba(8, 34, 82, 0.12);
  --news-detail-shadow-soft: 0 14px 30px rgba(8, 34, 82, 0.08);
}

.news-detail-page {
  min-height: 100vh;
  padding-top: 88px;
  color: var(--news-detail-ink);
  background:
    radial-gradient(circle at top left, rgba(221, 233, 255, 0.82), transparent 28%),
    linear-gradient(180deg, var(--news-detail-surface) 0%, var(--news-detail-page) 100%);
  font-family: "Poppins", Arial, sans-serif;
}

.news-detail-shell {
  padding-top: 28px;
  padding-bottom: 64px;
}

.news-detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--news-detail-muted);
  font-size: 13px;
  font-weight: 600;
}

.news-detail-breadcrumbs a,
.news-detail-breadcrumbs strong {
  color: var(--news-detail-blue);
  text-decoration: none;
}

.news-detail-breadcrumbs strong {
  min-width: 0;
  max-width: 450px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--news-detail-blue);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.news-detail-back:hover {
  color: var(--news-detail-blue-deep);
  text-decoration: none;
}

.news-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
  margin-bottom: 56px;
}

.news-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.news-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.news-detail-badge--primary {
  color: oklch(0.99 0.004 250);
  background: var(--news-detail-blue);
}

.news-detail-badge--gold {
  color: oklch(0.49 0.1 84);
  background: var(--news-detail-gold-soft);
}

.news-detail-hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--news-detail-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: justify;
  overflow-wrap: break-word;
}

.news-detail-gold-line,
.news-detail-section-line {
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--news-detail-gold);
}

.news-detail-gold-line {
  width: 64px;
  margin: 24px 0 22px;
}

.news-detail-section-line {
  margin-top: 10px;
  height: 3px;
}

.news-detail-hero-copy > p,
.news-detail-section > p,
.news-detail-prose p {
  max-width: 74ch;
  margin: 0;
  color: oklch(0.31 0.03 260);
  font-size: 16px;
  line-height: 1.78;
  text-align: justify;
}

.news-detail-hero-copy > p {
  max-width: 620px;
  color: oklch(0.34 0.035 260);
  line-height: 1.72;
}

.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.news-detail-hero-image {
  margin: 0;
}

.news-detail-hero-image img {
  width: 100%;
  height: clamp(320px, 38vw, 492px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--news-detail-shadow);
  background: oklch(0.95 0.014 250);
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 42px;
  align-items: start;
  margin-bottom: 54px;
}

.news-detail-main {
  display: grid;
  gap: 0;
}

.news-detail-section {
  padding: 0 0 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--news-detail-line);
}

.news-detail-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.news-detail-gallery {
  padding-bottom: 0;
  margin-bottom: 0;
}

.news-detail-section-heading {
  margin-bottom: 16px;
}

.news-detail-section-heading--icon {
  display: flex;
  gap: 22px;
  align-items: center;
}

.news-detail-section-heading--icon > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--news-detail-blue);
  background: var(--news-detail-blue-soft);
  border-radius: 14px;
  font-size: 25px;
}

.news-detail-section-heading h2,
.news-detail-related-heading h2,
.news-detail-sidebar h2,
.news-detail-not-found h1,
.news-detail-empty h3 {
  margin: 0;
  color: var(--news-detail-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.news-detail-section-heading h2,
.news-detail-related-heading h2 {
  font-size: clamp(24px, 2.4vw, 31px);
}

.news-detail-prose {
  display: grid;
  gap: 20px;
}

.news-detail-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 26px;
  color: var(--news-detail-muted);
  background: oklch(0.98 0.008 250);
  border: 1px solid var(--news-detail-line);
  border-radius: 14px;
}

.news-detail-empty--center {
  justify-items: center;
  min-height: 260px;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(231, 240, 255, 0.9), transparent 92px),
    var(--news-detail-surface);
}

.news-detail-empty i {
  color: oklch(0.73 0.06 250);
  font-size: 62px;
}

.news-detail-empty h3 {
  max-width: 390px;
  font-size: 17px;
  line-height: 1.4;
}

.news-detail-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--news-detail-muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-gallery-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.news-gallery-preview button {
  position: relative;
  min-height: 126px;
  padding: 0;
  overflow: hidden;
  background: oklch(0.96 0.012 250);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(7, 34, 82, 0.11);
}

.news-gallery-preview img {
  width: 100%;
  height: 126px;
  object-fit: cover;
}

.news-gallery-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  color: oklch(0.99 0.004 250);
  background: rgba(3, 18, 52, 0.66);
  font-weight: 900;
}

.news-gallery-more i {
  font-size: 24px;
}

.news-gallery-full-button {
  display: flex !important;
  width: 100%;
  margin: 0;
}

.news-detail-sidebar {
  position: sticky;
  top: 112px;
  padding: 28px;
  background: var(--news-detail-surface);
  border: 1px solid var(--news-detail-line);
  border-radius: 14px;
  box-shadow: var(--news-detail-shadow-soft);
}

.news-detail-sidebar h2 {
  margin: 0;
  color: var(--news-detail-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
}

.news-detail-sidebar .news-detail-gold-line {
  width: 44px;
  height: 3px;
  margin: 12px 0 24px;
}

.news-detail-sidebar dl {
  display: grid;
  gap: 24px;
  margin: 0 0 28px;
}

.news-detail-sidebar dl div {
  display: grid;
  gap: 7px;
}

.news-detail-sidebar dt {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--news-detail-blue);
  font-size: 14px;
  font-weight: 900;
}

.news-detail-sidebar dt i {
  color: var(--news-detail-blue);
  font-size: 18px;
}

.news-detail-sidebar dd {
  margin: 0 0 0 34px;
  color: var(--news-detail-ink);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.news-detail-primary-button,
.news-detail-outline-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.news-detail-primary-button:hover,
.news-detail-outline-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.news-detail-primary-button {
  width: 100%;
  color: oklch(0.99 0.004 250);
  background: linear-gradient(135deg, oklch(0.39 0.16 258), var(--news-detail-blue));
  border: 1px solid var(--news-detail-blue);
  box-shadow: 0 16px 28px rgba(8, 34, 82, 0.16);
}

.news-detail-primary-button:hover {
  color: oklch(0.99 0.004 250);
}

.news-detail-outline-button {
  color: var(--news-detail-blue);
  background: var(--news-detail-surface);
  border: 1px solid oklch(0.79 0.06 252);
}

.news-detail-outline-button:hover {
  color: var(--news-detail-blue);
  background: var(--news-detail-blue-soft);
}

.news-detail-sidebar .news-detail-outline-button {
  width: 100%;
  margin-top: 14px;
}

.news-detail-related {
  padding-bottom: 58px;
}

.news-detail-related-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.news-detail-related-heading h2 {
  margin: 0;
  color: var(--news-detail-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 900;
}

.news-detail-related-heading .news-detail-gold-line {
  width: 44px;
  height: 3px;
  margin: 10px 0 0;
}

.news-detail-related-heading a {
  color: var(--news-detail-blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.news-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-detail-related-card {
  overflow: hidden;
  background: var(--news-detail-surface);
  border: 1px solid var(--news-detail-line);
  border-radius: 10px;
  box-shadow: var(--news-detail-shadow-soft);
}

.news-detail-related-image {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  background: oklch(0.95 0.016 250);
}

.news-detail-related-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-detail-related-image span {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 58px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  color: oklch(0.99 0.004 250);
  background: var(--news-detail-blue);
  border-radius: 7px;
  box-shadow: 0 10px 18px rgba(4, 35, 95, 0.22);
}

.news-detail-related-image small,
.news-detail-related-image em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.news-detail-related-image strong {
  font-size: 17px;
  line-height: 1.1;
}

.news-detail-related-card > div {
  padding: 18px;
}

.news-detail-related-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--news-detail-muted);
  font-size: 13px;
  line-height: 1.5;
}

.news-detail-related-card h3 {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--news-detail-blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.news-detail-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--news-detail-blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.news-detail-not-found {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 430px;
  align-content: center;
  padding: 42px;
  text-align: center;
  background: var(--news-detail-surface);
  border: 1px solid var(--news-detail-line);
  border-radius: 18px;
  box-shadow: var(--news-detail-shadow-soft);
}

.news-detail-not-found span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--news-detail-blue);
  background: var(--news-detail-blue-soft);
  border-radius: 20px;
  font-size: 34px;
}

.news-detail-not-found h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.news-detail-not-found p {
  max-width: 540px;
  margin: 0 0 10px;
  color: var(--news-detail-muted);
  line-height: 1.65;
}

.news-detail-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  padding: 12px 16px;
  color: oklch(0.99 0.004 250);
  background: rgba(3, 18, 52, 0.92);
  border-radius: 10px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 800;
}

.news-detail-toast[hidden] {
  display: none;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 30, 0.84);
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox-dialog {
  position: relative;
  width: min(1120px, 100%);
}

.news-lightbox-figure {
  margin: 0;
  padding: 18px;
  background: var(--news-detail-surface);
  border-radius: 14px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.news-lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: oklch(0.95 0.01 250);
  border-radius: 10px;
}

.news-lightbox-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  color: var(--news-detail-ink);
  font-size: 14px;
  font-weight: 700;
}

.news-lightbox-figure figcaption span {
  color: var(--news-detail-blue);
  white-space: nowrap;
}

.news-lightbox-figure figcaption p {
  margin: 0;
}

.news-lightbox-close,
.news-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--news-detail-blue);
  background: var(--news-detail-surface);
  border: 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.news-lightbox-close {
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.news-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  border-radius: 10px;
  transform: translateY(-50%);
}

.news-lightbox-nav--prev {
  left: -18px;
}

.news-lightbox-nav--next {
  right: -18px;
}

@media (max-width: 1180px) {
  .news-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .news-detail-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-gallery-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .news-detail-page {
    padding-top: 76px;
  }

  .news-detail-hero,
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-hero-image img {
    height: clamp(260px, 54vw, 420px);
  }

  .news-detail-sidebar {
    position: static;
  }

  .news-gallery-full-button {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .news-detail-shell {
    width: min(100% - 28px, 740px);
    padding-top: 22px;
  }

  .news-detail-breadcrumbs {
    gap: 7px;
    font-size: 12px;
  }

  .news-detail-hero {
    gap: 24px;
    margin-bottom: 30px;
  }

  .news-detail-hero h1 {
    max-width: none;
    font-size: clamp(34px, 10.5vw, 42px);
  }

  .news-detail-related-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-section-heading--icon {
    gap: 14px;
  }

  .news-detail-section-heading--icon > span {
    width: 48px;
    height: 48px;
  }

  .news-gallery-preview {
    grid-template-columns: 1fr;
  }

  .news-detail-primary-button,
  .news-detail-outline-button,
  .news-detail-actions .news-detail-outline-button {
    width: 100%;
  }

  .news-detail-related-heading {
    display: grid;
    align-items: start;
  }

  .news-lightbox {
    padding: 14px;
  }

  .news-lightbox-figure {
    padding: 10px;
  }

  .news-lightbox-figure figcaption {
    display: grid;
  }

  .news-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .news-lightbox-nav {
    top: auto;
    bottom: 72px;
    transform: none;
  }

  .news-lightbox-nav--prev {
    left: 20px;
  }

  .news-lightbox-nav--next {
    right: 20px;
  }

  .news-detail-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}