:root {
  --news-purple: #7963a7;
  --news-deep: #49336f;
  --news-soft: #f6f2fb;
  --news-line: #e9e2f2;
  --news-muted: #756d85;
  --news-shadow: 0 18px 45px rgba(73, 51, 111, .10);
}

.news-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 42px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .18), transparent 23%),
    linear-gradient(125deg, #49336f 0%, #7963a7 62%, #9580bf 100%);
}

.news-detail-hero::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 360px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.news-detail-hero .container {
  position: relative;
  z-index: 1;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.news-detail-back:hover {
  color: #fff;
}

.news-detail-hero h1 {
  max-width: 850px;
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.news-detail-hero .section-overline,
.detail-block-heading .section-overline,
.related-news-heading .section-overline {
  display: block;
  color: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
}

.news-detail-section {
  padding: 42px 0 70px;
  background: linear-gradient(180deg, #fbfaff 0%, #fff 360px);
}

.news-detail-article,
.related-news-card,
.detail-media-block {
  border: 1px solid var(--news-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--news-shadow);
}

.news-detail-article {
  overflow: hidden;
}

.news-detail-cover {
  min-height: 360px;
  background-color: var(--news-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.news-detail-cover.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(121, 99, 167, .96), rgba(73, 51, 111, .98)),
    var(--news-soft);
}

.news-detail-cover.is-empty::before {
  color: rgba(255, 255, 255, .8);
  content: "Berita Disnak Mimika";
  font-size: 1.15rem;
  font-weight: 700;
}

.news-detail-body {
  padding: 28px clamp(20px, 4vw, 42px) 38px;
}

.news-detail-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--news-line);
}

.news-detail-share strong {
  color: var(--news-deep);
  font-size: .9rem;
  white-space: nowrap;
}

.news-share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.share-button:hover {
  color: #fff;
  filter: brightness(.94);
  transform: translateY(-2px);
}

.share-whatsapp { background: #2aa866; }
.share-facebook { background: #4267a9; }
.share-copy {
  cursor: pointer;
  background: var(--news-purple);
  font-family: inherit;
}

.copy-feedback {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: #2b9160;
  font-size: .76rem;
  text-align: right;
}

.news-detail-lead {
  margin: 25px 0 18px;
  color: var(--news-deep);
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.75;
}

.news-detail-content {
  color: #4f485d;
  font-size: .98rem;
  line-height: 1.9;
  white-space: normal;
}

.related-news-card {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.related-news-heading,
.detail-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.related-news-heading .section-overline,
.detail-block-heading .section-overline {
  color: var(--news-purple);
}

.related-news-heading h2,
.detail-block-heading h2 {
  margin: 5px 0 0;
  color: var(--news-deep);
  font-size: 1.25rem;
  font-weight: 750;
}

.related-news-heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--news-purple);
  background: var(--news-soft);
  font-size: 1.15rem;
}

.related-news-list {
  display: grid;
  gap: 6px;
}

.related-news-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--news-line);
  color: inherit;
  text-decoration: none;
}

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

.related-news-item:hover strong {
  color: var(--news-purple);
}

.related-news-thumb {
  display: grid;
  width: 66px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: rgba(255, 255, 255, .8);
  background-color: var(--news-soft);
  background-position: center;
  background-size: cover;
}

.related-news-thumb.is-empty {
  background: linear-gradient(135deg, var(--news-purple), var(--news-deep));
}

.related-news-item span:nth-child(2) {
  min-width: 0;
}

.related-news-item small {
  display: block;
  margin-bottom: 3px;
  color: var(--news-muted);
  font-size: .68rem;
}

.related-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--news-deep);
  font-size: .82rem;
  line-height: 1.35;
  transition: color .2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-news-item > i {
  color: var(--news-purple);
  font-size: .82rem;
}

.related-all-link,
.detail-block-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--news-purple);
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.related-all-link {
  margin-top: 18px;
}

.detail-media-block {
  margin-top: 28px;
  padding: 25px;
}

.detail-block-note {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--news-purple);
  background: var(--news-soft);
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.detail-flyer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-flyer-card,
.detail-video-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.detail-flyer-image {
  display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
  border-radius: 12px;
  background-color: var(--news-soft);
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 20px rgba(73, 51, 111, .08);
  transition: transform .2s ease;
}

.detail-flyer-card:hover .detail-flyer-image {
  transform: translateY(-3px);
}

.detail-flyer-card strong,
.detail-video-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--news-deep);
  font-size: .8rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.detail-video-image {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--news-soft);
  background-position: center;
  background-size: cover;
}

.detail-video-image::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(30, 18, 52, .55));
  content: "";
}

.detail-video-image i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--news-purple);
  font-size: 1.45rem;
  line-height: 1;
}

.detail-video-card small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--news-muted);
  font-size: .72rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 12px;
  color: var(--news-muted);
  background: var(--news-soft);
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .related-news-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .news-detail-hero {
    padding: 32px 0 30px;
  }

  .news-detail-section {
    padding: 25px 0 48px;
  }

  .news-detail-cover {
    min-height: 230px;
  }

  .news-detail-body,
  .related-news-card,
  .detail-media-block {
    padding: 20px;
  }

  .news-detail-share {
    display: block;
  }

  .news-detail-share strong {
    display: block;
    margin-bottom: 12px;
  }

  .news-share-actions {
    justify-content: flex-start;
  }

  .copy-feedback {
    text-align: left;
  }

  .detail-flyer-grid,
  .detail-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .share-button {
    flex: 1 1 100%;
  }

  .detail-flyer-grid,
  .detail-video-grid {
    grid-template-columns: 1fr;
  }
}
