/* =========================================================
   NUSA — Halaman statis (pages.php)
   Tema: dark elegan, border & divider tegas.
   Dimuat khusus oleh pages.php (bukan bagian dari style.css)
   agar halaman statis tidak mengganggu layout grid beranda.
   ========================================================= */

.static-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 0 44px;
}
@media (min-width: 640px) {
  .static-page { padding-top: 34px; }
}

/* ---------------------------- Breadcrumb ---------------------------- */
.page-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.page-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: color var(--trans);
}
.page-crumbs a:hover { color: var(--accent); }
.page-crumbs svg { width: 14px; height: 14px; flex: 0 0 auto; }
.page-crumbs .sep { color: #3a4150; }
.page-crumbs .current {
  min-width: 0;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

/* ---------------------- Kartu utama (judul + isi) ---------------------- */
.page-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 29, 36, .95) 0%, rgba(20, 23, 29, .93) 100%);
  border: 1px solid rgba(38, 42, 51, .95);
  border-radius: 16px;
  box-shadow:
    0 28px 64px -30px rgba(0, 0, 0, .95),
    0 1px 0 rgba(255, 255, 255, .035) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Aksen garis tepi atas (gradien tipis biru → indigo → transparan) */
.page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 48%, rgba(99, 102, 241, 0) 100%);
  pointer-events: none;
}

/* Judul + tanggal — DI DALAM kartu, dipisah garis bawah */
.page-card__head {
  padding: 26px 20px 20px;
  border-bottom: 1px solid rgba(38, 42, 51, .85);
}
@media (min-width: 640px) {
  .page-card__head { padding: 30px 34px 24px; }
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: #f8fafc;
  text-wrap: balance;
}
/* Batang aksen vertikal di samping judul */
.page-title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 1.35em;
  border-radius: 999px;
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, .55);
}
.page-title > span { min-width: 0; }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.page-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-meta svg { width: 14px; height: 14px; flex: 0 0 auto; color: #4b5261; }
.page-meta time { color: var(--text-muted); }

.badge-draft {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 999px;
  background: rgba(245, 158, 11, .1);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ------------------------------ Isi ------------------------------ */
.page-body {
  padding: 24px 20px 26px;
  font-size: .95rem;
  color: #cbd5e1;
}
@media (min-width: 640px) {
  .page-body { padding: 28px 34px 32px; }
}

.page-body > *:first-child { margin-top: 0; }
.page-body > *:last-child  { margin-bottom: 0; }

.page-body p {
  margin: 0 0 1.05rem;
  font-size: .95rem;
  line-height: 1.85;
  color: #cbd5e1;
}

/* Sub-judul: garis bawah halus + batang aksen kiri */
.page-body h2 {
  display: flex;
  align-items: center;
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(51, 65, 85, .6);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: #f8fafc;
}
.page-body h2::before {
  content: "";
  flex: 0 0 auto;
  width: .25rem;
  height: 1.05rem;
  margin-right: .65rem;
  border-radius: 999px;
  background: #3b82f6;
}

.page-body h3 {
  margin: 1.6rem 0 .6rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: #93c5fd;
}

.page-body h4 {
  margin: 1.3rem 0 .45rem;
  font-size: .95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.page-body ul,
.page-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  color: #cbd5e1;
}
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li {
  margin: .4rem 0;
  padding-left: .15rem;
  font-size: .95rem;
  line-height: 1.75;
}
.page-body li::marker { color: #3b82f6; }

.page-body strong { color: #f8fafc; font-weight: 600; }
.page-body em { color: #e2e8f0; }

.page-body a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--trans);
}
.page-body a:hover { color: #93c5fd; }

/* Kutipan: latar tipis + garis kiri tebal */
.page-body blockquote {
  margin: 1.25rem 0;
  padding: .75rem 1rem .75rem 1.25rem;
  border-left: 3px solid #3b82f6;
  background: rgba(59, 130, 246, .05);
  border-radius: 0 .75rem .75rem 0;
  color: #94a3b8;
}
.page-body blockquote > *:last-child { margin-bottom: 0; }

.page-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(51, 65, 85, .8);
}

/* Tabel: border tegas + baris selang-seling */
.page-body table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  border: 1px solid rgba(51, 65, 85, .8);
  border-radius: 8px;
  overflow: hidden;
  font-size: .9rem;
}
.page-body thead th {
  background: rgba(30, 41, 59, .75);
  color: #e2e8f0;
  font-weight: 600;
}
.page-body th,
.page-body td {
  padding: .55rem .7rem;
  border: 1px solid rgba(51, 65, 85, .8);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.page-body tbody tr:nth-child(even) { background: rgba(30, 41, 59, .35); }
.page-body tbody tr:hover { background: rgba(59, 130, 246, .06); }

.page-body code {
  padding: .1rem .35rem;
  border: 1px solid rgba(51, 65, 85, .8);
  border-radius: 4px;
  background: #0b1220;
  color: #93c5fd;
  font-size: .85em;
}

/* --------------------- Navigasi bawah halaman --------------------- */
.page-nav {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(38, 42, 51, .9);
  border-radius: 12px;
  background: rgba(14, 15, 19, .55);
}
.page-nav__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.page-nav__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(51, 65, 85, .8);
  border-radius: 8px;
  background: rgba(15, 23, 42, .8);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  transition: color var(--trans), border-color var(--trans), background-color var(--trans);
}
.page-chip svg { width: 14px; height: 14px; flex: 0 0 auto; color: #5b6472; }
.page-chip:hover {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, .45);
  background: rgba(30, 41, 59, .9);
}
.page-chip:hover svg { color: #60a5fa; }

/* Tombol kembali — kapsul secondary */
.page-back-wrap { margin-top: 22px; }
.page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 23, 29, .7);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--trans), border-color var(--trans), background-color var(--trans);
}
.page-back svg { width: 16px; height: 16px; }
.page-back:hover {
  color: var(--text);
  border-color: #3a4150;
  background: var(--bg-card);
}

/* -------------------------- Banner draf -------------------------- */
.page-draft {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 12px;
  background: rgba(245, 158, 11, .1);
  color: #fcd34d;
  font-size: 13px;
  line-height: 1.6;
}
.page-draft__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .2);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
}
.page-draft p { margin: 0; }
.page-draft a { color: #fcd34d; text-decoration: underline; text-underline-offset: 2px; }
.page-draft a:hover { color: #fde68a; }
