/* ============================================================
   BLOG & NEWS — layout editorial (Figma: halaman blog dan news)
   Dipakai oleh: artikel.html, blog.html, news.html, halaman detail
   ============================================================ */

:root {
  --bn-green-deep: #017530;
  --bn-green: #017530;
  --bn-green-bright: #00bf48;
  --bn-solid: #017530;
  --bn-gradient: linear-gradient(170deg, #017530 9%, #017530 44%, #00bf48 66%);
  --bn-gradient-line: linear-gradient(90deg, #017530 0%, #017530 50%, #00bf48 100%);
  /* untuk teks kecil: ujung terang #00bf48 hanya 3.26:1 terhadap putih (gagal
     WCAG AA), jadi teks kecil memakai gradien yang lebih gelap */
  --bn-gradient-text: linear-gradient(139deg, #017530 0%, #017530 60%, #017530 100%);
  /* skala jarak vertikal */
  --bn-space-section: 96px;
  --bn-space-head: 64px;
  --bn-space-item: 48px;
}

body.blognews-page,
body.blognews-page main {
  background: #fff;
  color: #0c2a17;
}

/* menimpa default design-system.css (warna heading hijau, teks abu,
   dan content-visibility yang membuat section tidak ter-render) */
body.blognews-page main h1,
body.blognews-page main h2,
body.blognews-page main h3,
body.blognews-page main h4 {
  color: #0c2a17;
  font-family: 'Poppins', sans-serif;
  letter-spacing: normal;
}

body.blognews-page main p,
body.blognews-page main li,
body.blognews-page main small {
  color: #0c2a17;
}

/* judul besar halaman tetap hijau, judul section tetap gradien */
body.blognews-page main h1.bn-pagetitle {
  margin-block: 56px 40px;
  color: var(--bn-solid);
}

/* teks bergradien hijau: menang atas `body.site-page a { color: inherit }`
   yang sebelumnya membuat tombol jadi hitam */
body.blognews-page main .bn-grad,
body.blognews-page main .bn-section-title.bn-grad {
  background-image: var(--bn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* teks kecil memakai gradien gelap (kontras AA) */
body.blognews-page main a.bn-btn-text,
body.blognews-page main a.bn-readmore,
body.blognews-page main a.bn-back,
body.blognews-page main p.bn-card-date {
  background-image: var(--bn-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ikon panah tetap hijau solid, bukan ikut gradien */
body.blognews-page main a.bn-btn-text i,
body.blognews-page main a.bn-back i {
  color: var(--bn-solid);
  -webkit-text-fill-color: var(--bn-solid);
}

body.blognews-page section {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

body.blognews-page main a { text-decoration: none; }

body.blognews-page .bn-wrap {
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* gradient text helper */
.bn-grad {
  background-image: var(--bn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- area header halaman ----------
   Navbar dibuat solid putih supaya bayangannya tidak terlihat sebagai
   kabut abu di ruang kosong, dan area judul diberi gradasi hijau sangat
   tipis yang memudar ke putih sebagai "panggung" judul. */
body.blognews-page .nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(1, 69, 32, .08);
}

body.blognews-page .header.scrolled .nav {
  background: #fff;
  box-shadow: 0 10px 28px rgba(1, 51, 24, .10);
}

/* area header dibiarkan putih bersih; hanya jarak atas yang diatur */
body.blognews-page main.bn-page-top,
body.blognews-page main[data-bn-landing] {
  padding-top: 132px;
}

@media (max-width: 720px) {
  body.blognews-page main.bn-page-top,
  body.blognews-page main[data-bn-landing] { padding-top: 104px; }
}

/* ---------- newsticker ---------- */
.bn-ticker {
  background-image: var(--bn-gradient);
  color: #fff;
  overflow: hidden;
  padding: 20px 0;
}

.bn-ticker-track {
  display: flex;
  gap: 24px;
  align-items: center;
  width: max-content;
  animation: bn-marquee 80s linear infinite;
}

.bn-ticker-track span {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  white-space: nowrap;
}

.bn-ticker-track .bn-ticker-label {
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
}

.bn-ticker:hover .bn-ticker-track {
  animation-play-state: paused;
}

@keyframes bn-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-ticker-track { animation: none; }
}

/* ---------- judul halaman raksasa ---------- */
.bn-pagetitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--bn-solid);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(48px, 11.9vw, 200px);
  text-transform: uppercase;
}

/* ---------- lead article ---------- */
.bn-lead {
  margin-block: 0 var(--bn-space-section);
}

.bn-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.bn-lead h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #0c2a17;
  margin: 0;
}

.bn-lead h2 a { color: inherit; text-decoration: none; }

.bn-lead-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 100%;
  padding-top: 10px;
}

.bn-lead-side > p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.bn-lead-image {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 19 / 10;
}

.bn-lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.bn-lead-image:hover img { transform: scale(1.03); }

/* ---------- meta (penulis / tanggal) ---------- */
.bn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #0c2a17;
}

.bn-meta > div { display: flex; gap: 8px; }
.bn-meta strong { font-weight: 600; }
.bn-meta span { font-weight: 400; }

.bn-readmore {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  /* padding menjadikan area sentuh >= 24px sesuai WCAG 2.2 */
  padding-block: 6px;
  display: inline-flex;
  align-items: center;
  background-image: var(--bn-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bn-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

/* waktu baca */
.bn-readtime {
  position: relative;
  padding-left: 22px;
  color: #47604f;
  white-space: nowrap;
}

.bn-readtime::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.bn-readtime::after {
  content: "";
  position: absolute;
  left: 6.2px;
  top: calc(50% - 4px);
  width: 1.6px;
  height: 5px;
  background: currentColor;
  transform-origin: bottom center;
  transform: rotate(35deg);
}

/* tombol aksi pada bar share (salin tautan, Instagram, TikTok) */
.bn-copy,
.bn-share-app {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.bn-copy:hover,
.bn-share-app:hover { color: var(--bn-solid); transform: translateY(-2px); }

.bn-copy.is-copied,
.bn-share-app.is-copied { color: var(--bn-solid); }

.bn-copy-toast {
  position: fixed;
  max-width: calc(100% - 32px);
  text-align: center;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--bn-solid);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(1, 51, 24, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}

.bn-copy-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* penanda halaman pada paginasi */
.bn-page-info {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #47604f;
  margin-right: auto;
}

/* ---------- section header (BLOG / NEWS / VIDEO) ---------- */
.bn-section {
  margin-block: var(--bn-space-section);
}

.bn-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-item);
  margin-bottom: var(--bn-space-head);
}

.bn-line {
  height: 2px;
  width: 100%;
  flex-shrink: 0;
  background-image: var(--bn-gradient-line);
}

/* garis di bawah judul besar halaman */
.bn-line--title {
  margin-block: 0 var(--bn-space-item);
}

/* garis pemisah antar artikel pada daftar blog */
.bn-article-list .bn-article-row + .bn-article-row {
  border-top: 2px solid transparent;
  border-image: var(--bn-gradient-line) 1;
  padding-top: var(--bn-space-item);
}

.bn-popular-list li {
  border-bottom-width: 2px;
}

.bn-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bn-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.9vw, 104px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.bn-section-title.is-dark { color: #0c2a17; }

.bn-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  background-image: var(--bn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: gap .25s ease;
}

.bn-btn-text i {
  -webkit-text-fill-color: var(--bn-solid);
  color: var(--bn-solid);
  font-size: 18px;
}

.bn-btn-text:hover { gap: 14px; }

/* indikator fokus keyboard — sebelumnya tidak ada sama sekali */
body.blognews-page main a:focus-visible,
body.blognews-page main button:focus-visible {
  outline: 3px solid var(--bn-solid);
  outline-offset: 3px;
  border-radius: 4px;
}

body.blognews-page main .bn-card a:focus-visible img,
body.blognews-page main .bn-thumb:focus-visible img { transform: scale(1.05); }

/* ---------- daftar artikel horizontal (blog di landing) ---------- */
.bn-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 96px;
  align-items: start;
}

.bn-blog-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bn-article-list {
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-item);
}

/* garis penutup + tombol hanya selebar kolom artikel, bukan selebar halaman */
.bn-line--more {
  margin-block: var(--bn-space-head) 24px;
}

.bn-more {
  text-align: center;
  margin-top: 24px;
}

.bn-line--more + .bn-more {
  margin-top: 0;
}

.bn-article-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--bn-space-item);
  align-items: stretch;
}

.bn-article-row .bn-thumb {
  width: 240px;
  height: 240px;
  overflow: hidden;
  display: block;
  background: #fff;
}

.bn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fokus sedikit di atas tengah supaya kepala/objek utama tidak terpotong */
  object-position: 50% 35%;
  transition: transform .5s ease;
}

.bn-thumb:hover img { transform: scale(1.05); }

.bn-article-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.bn-article-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.bn-article-body h3 a { color: #0c2a17; text-decoration: none; }
.bn-article-body h3 a:hover { color: var(--bn-solid); }

.bn-article-body p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: #0c2a17;
}

/* ---------- sidebar ---------- */
.bn-sidebar {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.bn-side-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0;
}

.bn-side-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.bn-promo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.bn-promo-cover {
  display: block;
  overflow: hidden;
}

.bn-promo-cover img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.bn-promo-cover:hover img { transform: scale(1.04); }

.bn-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 171px;
  height: 38px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .16px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  background-image: linear-gradient(169deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 12px 6.5px rgba(234, 88, 12, .26);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bn-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 18px rgba(234, 88, 12, .32);
}

.bn-popular {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bn-popular-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-popular-list li {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bn-solid);
}

.bn-popular-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  width: 50px;
  flex-shrink: 0;
}

.bn-popular-list a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: #0c2a17;
  text-decoration: none;
}

.bn-popular-list a:hover { color: var(--bn-solid); }

/* ---------- kartu berita / kartu artikel kotak ---------- */
.bn-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bn-card {
  border: 1px solid var(--bn-green-deep);
  background: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-right: -1px;
  margin-bottom: -1px;
  transition: box-shadow .3s ease, transform .3s ease;
}

.bn-card:hover {
  box-shadow: 0 24px 60px rgba(1, 117, 48, .12);
  transform: translateY(-4px);
  position: relative;
  z-index: 1;
}

.bn-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bn-card-date {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background-image: var(--bn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bn-label {
  border: 1px solid var(--bn-green-deep);
  border-radius: 100px;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0c2a17;
}

.bn-card-cover {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.bn-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform .5s ease;
}

.bn-card-cover:hover img { transform: scale(1.05); }

.bn-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
}

.bn-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 32px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.bn-card-body h3 a { color: #0c2a17; text-decoration: none; }
.bn-card-body h3 a:hover { color: var(--bn-solid); }

.bn-card-body p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.bn-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* panah diagonal pada kartu berita */
.bn-arrow {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  color: var(--bn-solid);
  transition: transform .3s ease;
}

.bn-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.bn-card:hover .bn-arrow { transform: translate(4px, 4px); }

/* ---------- video carousel ---------- */
.bn-video {
  position: relative;
  overflow: hidden;          /* preview samping tidak menembus keluar section */
  padding-block: 4px;
}

.bn-video-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* preview blur kiri/kanan, tingginya mengikuti video utama */
.bn-video-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 636px;
  aspect-ratio: 985 / 549;
  opacity: .45;
  filter: blur(5px);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bn-video-side.is-left { left: -17%; }
.bn-video-side.is-right { right: -17%; }

.bn-video-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bn-video-main {
  position: relative;
  z-index: 1;
  width: min(985px, 100%);
  aspect-ratio: 985 / 549;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  display: block;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.bn-video-main img,
.bn-video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

/* efek geser saat tombol prev/next ditekan */
.bn-video-main.is-slide-next { animation: bn-slide-next .45s cubic-bezier(.22, .61, .36, 1); }
.bn-video-main.is-slide-prev { animation: bn-slide-prev .45s cubic-bezier(.22, .61, .36, 1); }

@keyframes bn-slide-next {
  0%   { transform: translateX(6%) scale(.97); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes bn-slide-prev {
  0%   { transform: translateX(-6%) scale(.97); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bn-video-main.is-slide-next,
  .bn-video-main.is-slide-prev { animation: none; }
}

.bn-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-image: linear-gradient(135deg, #00bf48 0%, #017530 100%);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 12px 17px rgba(0, 0, 0, .42);
  transition: transform .25s ease;
}

.bn-video-main:hover .bn-video-play { transform: translate(-50%, -50%) scale(1.08); }

.bn-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 30px rgba(1, 51, 24, .18);
  color: var(--bn-solid);
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background .25s ease, transform .25s ease;
}

.bn-video-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.bn-video-nav:active { transform: translateY(-50%) scale(.94); }
.bn-video-nav.is-prev { left: calc(50% - min(985px, 100%) / 2 - 36px); }
.bn-video-nav.is-next { right: calc(50% - min(985px, 100%) / 2 - 36px); }

.bn-video-caption {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 24px 0 0;
}

/* ---------- filter kategori (blog.html / news.html) ---------- */
.bn-categories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 99px;
}

.bn-categories h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 32px;
  text-transform: uppercase;
  margin: 0;
}

.bn-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bn-chip {
  border: 1px solid #000;
  border-radius: 100px;
  padding: 8px 12px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  color: #0c2a17;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.bn-chip:hover { border-color: var(--bn-solid); color: var(--bn-solid); }

.bn-chip.is-active {
  background: var(--bn-solid);
  border-color: var(--bn-solid);
  color: #fff;
}

/* ---------- pagination ---------- */
.bn-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* kedua tombol di kanan bawah */
  gap: 32px;
  margin: 40px 0 96px;
}

.bn-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: #0c2a17;
  cursor: pointer;
  transition: gap .25s ease, color .25s ease;
}

.bn-page-btn:hover { gap: 14px; color: var(--bn-solid); }
.bn-page-btn[hidden] { display: none; }

/* elemen ber-atribut hidden harus benar-benar tersembunyi; tanpa ini
   `display: flex` pada .bn-card mengalahkan default [hidden] browser
   sehingga paginasi tidak berefek */
body.blognews-page [hidden] { display: none !important; }

.bn-empty {
  grid-column: 1 / -1;
  padding: 64px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #55705e;
}

/* ============================================================
   HALAMAN DETAIL ARTIKEL
   ============================================================ */

body.blognews-article .bn-detail {
  padding-top: 183px;
}

.bn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  background-image: var(--bn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: gap .25s ease;
}

.bn-back i {
  -webkit-text-fill-color: var(--bn-solid);
  color: var(--bn-solid);
}

.bn-back:hover { gap: 14px; }

.bn-detail h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #0c2a17;
  margin: 46px 0 48px;
}

.bn-detail .bn-line--title { margin-bottom: 0; }

.bn-detail-hero {
  margin: 72px 0 14px;
  padding: 0;
  background: #fff;
  display: flex;
  justify-content: center;
}

/* gambar tampil utuh (tidak dipotong); tinggi dibatasi agar tetap proporsional */
.bn-detail-hero img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.bn-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.bn-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.bn-share a,
.bn-share button {
  /* kotak 34px: target sentuh memadai dan ikon tersejajar rapi */
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c2a17;
  font-size: 18px;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.bn-share > span { margin-right: 8px; }

.bn-share a:hover,
.bn-share button:hover { color: var(--bn-solid); transform: translateY(-2px); }

/* ikon salin tautan digambar sebagai SVG — font subset tidak punya fa-link */
.bn-copy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.bn-detail-content {
  /* ~80 karakter per baris; sebelumnya 1117px = 118 karakter (terlalu lebar) */
  max-width: 700px;
  margin: 96px auto 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #0c2a17;
}

.bn-detail-content p,
.bn-detail-content li {
  /* rata kiri-kanan; hyphens mencegah celah antar kata yang terlalu lebar */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.bn-detail-content p { margin: 0 0 28px; }

/* kutipan & keterangan tidak ikut di-justify */
.bn-detail-content blockquote p,
.bn-detail-content figcaption { text-align: left; hyphens: none; }

.bn-detail-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.8;
  color: #0c2a17;
  margin: 40px 0 8px;
}

.bn-detail-content h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.8;
  margin: 32px 0 8px;
}

.bn-detail-content ul,
.bn-detail-content ol { margin: 0 0 28px; padding-left: 24px; }
.bn-detail-content li { margin-bottom: 12px; }

.bn-detail-content a {
  color: var(--bn-solid);
  font-weight: 600;
  text-decoration: underline;
}

.bn-detail-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
}

/* ---------- kutipan ---------- */
.bn-detail-content blockquote {
  position: relative;
  margin: 56px 0;
  padding: 44px 0 34px 52px;
  border-top: 1px solid rgba(1, 117, 48, .22);
  border-bottom: 1px solid rgba(1, 117, 48, .22);
  background: none;
}

/* tanda kutip digambar sebagai SVG — font subset tidak punya glyph U+201C */
.bn-detail-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 46px;
  width: 30px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'><path d='M4 0H13L9 18H0Z' fill='%2317b053'/><path d='M19 0H28L24 18H15Z' fill='%2317b053'/></svg>") no-repeat center / contain;
}

body.blognews-page .bn-detail-content blockquote p,
body.blognews-page .bn-detail-content blockquote {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

body.blognews-page .bn-detail-content blockquote p {
  margin: 0 0 18px;
  background-image: linear-gradient(115deg, #0b5726 0%, #017530 45%, #17b053 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

body.blognews-page .bn-detail-content blockquote p:last-child { margin-bottom: 0; }

/* sumber kutipan */
body.blognews-page .bn-detail-content blockquote cite,
body.blognews-page .bn-detail-content blockquote footer {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: #2f8a4d;
  -webkit-text-fill-color: #2f8a4d;
}

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

@media (max-width: 1280px) {
  .bn-main-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
  .bn-card { padding: 32px; }
  .bn-video-nav { width: 60px; height: 60px; font-size: 24px; }
  .bn-video-nav.is-prev { left: 8px; }
  .bn-video-nav.is-next { right: 8px; }
}

@media (max-width: 1024px) {
  body.blognews-page .bn-wrap { padding: 0 24px; }
  .bn-lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .bn-lead-side { padding-top: 0; gap: 24px; }
  .bn-main-grid { grid-template-columns: 1fr; gap: 64px; }
  .bn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-section, .bn-section-head { margin-bottom: 56px; }
  .bn-section { margin-top: 64px; }
  .bn-video-stage { min-height: 0; }
}

@media (max-width: 1024px) {
  body.blognews-page {
    --bn-space-section: 72px;
    --bn-space-head: 48px;
    --bn-space-item: 32px;
  }
}

@media (max-width: 720px) {
  body.blognews-page {
    --bn-space-section: 56px;
    --bn-space-head: 32px;
    --bn-space-item: 24px;
  }

  .bn-ticker { padding: 14px 0; }
  body.blognews-page main[data-bn-landing] { padding-top: 104px; }
  .bn-ticker-track span { font-size: 16px; }
  .bn-ticker-track .bn-ticker-label { font-size: 17px; }
  .bn-page-top { padding-top: 104px; }
  .bn-pagetitle { margin: 32px 0 24px; }
  .bn-article-row { grid-template-columns: 1fr; gap: 20px; }
  .bn-article-row .bn-thumb { width: 100%; height: 220px; }
  .bn-cards { grid-template-columns: 1fr; }
  .bn-card { padding: 24px; gap: 20px; }
  .bn-card-body { gap: 20px; }
  .bn-section-head { gap: 24px; margin-bottom: 40px; }
  .bn-categories { margin-bottom: 40px; }
  .bn-side-title { font-size: 36px; }
  .bn-popular-list a, .bn-popular-num { font-size: 20px; }
  .bn-meta { gap: 14px; font-size: 13px; }
  .bn-meta-row { gap: 12px; }
  .bn-arrow { width: 38px; height: 38px; }
  body.blognews-article .bn-detail { padding-top: 120px; }
  .bn-detail h1 { margin-top: 24px; }
  .bn-detail-hero { margin: 32px 0 14px; }
  .bn-detail-content { margin-top: 40px; }
  .bn-detail-content blockquote { margin: 36px 0; padding: 30px 0 24px 36px; }
  .bn-detail-content blockquote::before { width: 22px; height: 13px; top: 33px; }
  body.blognews-page .bn-detail-content blockquote p,
  body.blognews-page .bn-detail-content blockquote { font-size: 22px; }
  .bn-video-main { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
  .bn-video-nav { width: 44px; height: 44px; font-size: 18px; }
  .bn-video-side { display: none; }
  .bn-video-caption { font-size: 15px; }
}

/* breadcrumb di halaman Blog & News */
body.blognews-page .bn-crumbs { margin-top: 8px; }
body.blognews-page .bn-page-top .bn-crumbs { margin-top: 44px; }
body.blognews-page main .bn-crumbs nav.uh-crumbs-nav { margin: 0 0 6px; }
body.blognews-page .bn-detail nav.bn-crumbs { margin: 0 0 20px; }
