/* NEWS DETAIL PAGE STYLES */
.news-detail-page {
  background: #f4f6f9;
  padding: 56px 0 96px;
}

/* ── Hero: coverImage (gambar BESAR) ───────────── */
.nd-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 36px;
  position: relative;
}
.nd-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
/* Gradient overlay di bagian bawah hero */
.nd-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  padding: 60px 36px 28px;
}
.nd-hero-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  background: var(--teal-dark);
  color: #fff;
  margin-bottom: 10px;
}
.nd-hero-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Placeholder jika tidak ada cover image */
.nd-hero-ph {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #001228 0%, #002448 100%);
  border-radius: 20px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nd-hero-ph i {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.08);
}
.nd-hero-ph .nd-hero-overlay {
  border-radius: 0 0 20px 20px;
}

/* ── Article content ──────────────────────────── */
.nd-content {
  background: #fff;
  border-radius: 20px;
  padding: 48px 52px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.nd-title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: #0f1f3d;
  line-height: 1.3;
  margin-bottom: 20px;
}
.nd-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #f0f3f7;
  flex-wrap: wrap;
}
.nd-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #888;
}
.nd-meta-item i {
  color: var(--teal-dark);
}

/* Konten dari TinyMCE (th:utext) */
.nd-body {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
}
.nd-body p {
  margin-bottom: 18px;
}
.nd-body h2,
.nd-body h3 {
  font-weight: 800;
  color: #0f1f3d;
  margin: 32px 0 12px;
}
.nd-body h2 {
  font-size: 20px;
}
.nd-body h3 {
  font-size: 17px;
}
.nd-body strong {
  color: #1e293b;
}
.nd-body ul,
.nd-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.nd-body li {
  margin-bottom: 6px;
}
.nd-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 16px 0;
}
.nd-body blockquote {
  border-left: 4px solid var(--teal-dark);
  padding: 16px 24px;
  background: #f8fdfd;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-style: italic;
  color: #555;
}

/* ── Share ────────────────────────────────────── */
.nd-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid #f0f3f7;
  flex-wrap: wrap;
}
.nd-share-label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.share-btn:hover {
  opacity: 0.82;
}
.share-fb {
  background: #1877f2;
  color: #fff;
}
.share-tw {
  background: #000;
  color: #fff;
}
.share-wa {
  background: #25d366;
  color: #fff;
}
.share-li {
  background: #0a66c2;
  color: #fff;
}

/* ── Back ─────────────────────────────────────── */
.nd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  margin-bottom: 28px;
  transition: gap 0.2s;
}
.nd-back:hover {
  gap: 12px;
  color: var(--teal-dark);
}

/* ── Sidebar ──────────────────────────────────── */
.news-sidebar {
  position: sticky;
  top: 108px;
}
.sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e8edf2;
}
.latest-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.latest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.latest-item:hover {
  opacity: 0.72;
}
.latest-thumb {
  flex: 0 0 70px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-info-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-info-date {
  font-size: 11px;
  color: #aaa;
}

/* ── Related ──────────────────────────────────── */
.related-section {
  margin-top: 60px;
}
.related-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f1f3d;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--teal-dark);
  display: inline-block;
}
.related-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  color: inherit;
}
.related-card-img {
  height: 180px;
  overflow: hidden;
  background: #f0f3f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.related-card:hover .related-card-img img {
  transform: scale(1.06);
}
.related-card-body {
  padding: 18px 20px;
}
.related-cat {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(0, 122, 119, 0.1);
  color: var(--teal-dark);
  margin-bottom: 8px;
  display: inline-block;
}
.related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f1f3d;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-date {
  font-size: 12px;
  color: #999;
}

@media (max-width: 991px) {
  .nd-content {
    padding: 28px 20px;
  }
  .nd-hero img {
    height: 280px;
  }
  .news-sidebar {
    position: static;
    margin-top: 32px;
  }
}

/* =============================================================
   MOBILE RESPONSIVE - ADDITIONAL BREAKPOINTS
   ============================================================= */

@media (max-width: 767px) {
  .nd-hero img {
    height: 220px;
  }
  .nd-content {
    padding: 24px 16px 32px;
  }
  .nd-title {
    font-size: clamp(18px, 5vw, 26px);
  }
  .related-news {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .nd-hero img {
    height: 180px;
  }
  .nd-content {
    padding: 20px 12px 24px;
  }
}
