@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

/* ==========================================================================
   PT Bentang Pilar Nusantara
   Gaya visual mengacu pada bcadigital.co.id: sederhana, lapang, formal.
   Latar putih, aksen teal korporat, tipografi Montserrat.
   ========================================================================== */

:root {
  --brand-1: #35b784;        /* hijau terang  */
  --brand-2: #12855f;        /* hijau utama   */
  --brand-3: #178f68;        /* hijau bilah   */
  --brand-ink: #0b7a5f;      /* hijau tua untuk teks di atas putih */
  --brand-tint: #f1faf5;     /* tint hijau muda */
  --ink: #232b28;
  --muted: #5b6f66;
  --line: #e2eae5;
  --surface: #eef5f1;
  --radius: 12px;
  --radius-pill: 50px;
  --wrap: 1140px;
  --shadow-card: 0 14px 34px rgba(9, 74, 52, .10);
  --shadow-soft: 0 4px 16px rgba(9, 74, 52, .07);
  --grad-header: linear-gradient(359.96deg, #229b70 .02%, #0f7a56 101.18%);
  --grad-band: linear-gradient(180deg, #229b70 0%, #178f68 60%, #0f7a56 100%);
  --overlay: linear-gradient(180deg, rgba(5, 52, 38, .86) 0%, rgba(8, 74, 53, .82) 55%, rgba(10, 92, 68, .84) 100%);
  --overlay-page: linear-gradient(180deg, rgba(5, 52, 38, .86) 0%, rgba(8, 74, 53, .80) 100%);
  --img-hero: url("img/hero-lingkungan.webp");
  --img-header: url("img/header-hijau.webp");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: 2.75rem; letter-spacing: -.4px; }
h2 { font-size: 2.25rem; letter-spacing: -.2px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------- top bar */
.topbar { background: #0b7a5f; color: rgba(255, 255, 255, .92); font-size: .78rem; }
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  min-height: 42px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.topbar a:hover { color: rgba(255, 255, 255, .78); }
.ic { width: 15px; height: 15px; flex: 0 0 auto; }
.topbar .sep { margin: 0 6px; color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------------- navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--grad-header);
  box-shadow: 0 10px 28px rgba(6, 61, 45, .12);
}
.nav .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-ink);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(6, 61, 45, .18);
}
.mark img { display: block; width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.brand-text small {
  margin-top: 3px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.menu { display: flex; align-items: center; gap: 26px; }
.menu a {
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 8px rgba(4, 40, 30, .35);
}
.menu a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .7); }
.menu a.active { color: #fff; border-bottom-color: #fff; }
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 10px;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-3);
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 30px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 61, 45, .22);
}
.menu a.btn { padding: 11px 24px; background: rgba(255, 255, 255, .14); border-color: #fff; }
.menu a.btn:hover { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn.ghost { background: transparent; border-color: var(--brand-1); color: var(--brand-ink); }
.btn.ghost:hover { background: var(--brand-tint); color: var(--brand-2); }
.btn.light { background: #fff; color: var(--brand-ink); }
.btn.light:hover { background: #fff; color: var(--brand-2); }
.btn.outline-light { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--brand-ink); border-color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #109c6e;
  background-image: var(--overlay), var(--img-hero);
  background-position: center center, center 38%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 84px 0 134px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(680px 340px at 10% -12%, rgba(255, 255, 255, .16), transparent 70%);
}
.hero .wrap { position: relative; max-width: 960px; text-align: center; }
.hero h1 { color: #fff; font-size: 3rem; font-weight: 800; text-shadow: 0 2px 22px rgba(4, 34, 25, .55); }
.hero .lead { max-width: 720px; margin: 0 auto 30px; color: #fff; font-size: 1.08rem; text-shadow: 0 1px 14px rgba(4, 34, 25, .5); }
.hero .actions { justify-content: center; }
.hero .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand-ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.lead { font-size: 1.06rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ------------------------------------------------- trust (kartu menyatu) */
.trust {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: -82px;
}
.trust > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.trust > div:hover { transform: translateY(-4px); border-color: var(--brand-1); }
.trust b { display: block; margin-bottom: 8px; color: var(--ink); font-size: 1.02rem; }
.trust span { color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* ---------------------------------------------------------------- seksi */
section { padding: 78px 0; }
section.alt { background: var(--surface); }
section.tight { padding: 0 0 78px; }

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin: 6px 0 14px; color: var(--brand-ink); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.prose p { color: #3c4a52; margin-bottom: 16px; }
.prose .section-head { margin-bottom: 26px; }

.check { list-style: none; margin: 22px 0 0; padding: 0; }
.check li { position: relative; margin-bottom: 12px; padding-left: 34px; color: #3c4a52; font-size: .95rem; }
.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 166, 181, .28);
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a6b5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }

/* ----------------------------------------------------------- panel/data */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.panel h3 { margin-bottom: 16px; color: var(--brand-ink); font-size: 1rem; }
.data { list-style: none; margin: 0; padding: 0; }
.data li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.data li:last-child { border-bottom: 0; }
.data b { color: var(--muted); font-weight: 600; }
.data span { color: var(--ink); text-align: right; }

/* ---------------------------------------------------------- grid & kartu */
.grid { display: grid; gap: 24px; }
.grid.g2, .g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3, .g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand-1); box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card .tag,
.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- artikel */
.post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.post:first-of-type { border-top: 1px solid var(--line); }
.post h3 { margin-bottom: 8px; font-size: 1.12rem; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--brand-2); }
.post p { margin: 0; color: var(--muted); font-size: .93rem; }
.date { display: block; margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.cat {
  display: inline-block;
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ page hero */
.page-hero {
  background-color: #109c6e;
  background-image: var(--overlay-page), var(--img-header);
  background-position: center center, center 48%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  padding: 62px 0 72px;
}
.page-hero h1 { margin-bottom: 12px; color: #fff; font-size: 2.4rem; text-shadow: 0 2px 20px rgba(4, 34, 25, .55); }
.page-hero p { max-width: 760px; margin: 0; color: #fff; text-shadow: 0 1px 12px rgba(4, 34, 25, .5); }
.crumbs { margin-bottom: 14px; color: rgba(255, 255, 255, .88); font-size: .82rem; }
.crumbs a { color: #fff; text-decoration: underline; }

/* ----------------------------------------------------------------- tabel */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .93rem; }
th {
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfc; }

/* ---------------------------------------------------------------- kontak */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: start; }

form label { display: block; margin: 18px 0 7px; color: var(--ink); font-size: .83rem; font-weight: 700; letter-spacing: .2px; }
form input,
form select,
form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
form input::placeholder, form textarea::placeholder { color: #9aa7b1; }
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 .2rem rgba(79, 191, 143, .28);
}
form textarea { resize: vertical; }
form button { margin-top: 26px; }
.form-note { margin-top: 14px; color: #8b98a1; font-size: .8rem; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(18, 133, 95, .32);
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: .9rem;
}
.form-status a { font-weight: 700; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: #3c4a52;
  font-size: .93rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list b { display: block; margin-bottom: 3px; color: var(--ink); font-size: .74rem; letter-spacing: .6px; text-transform: uppercase; }
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .6px;
}
.map-box {
  position: relative;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-cover {
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--brand-tint);
  color: var(--muted);
}
.map-cover b { color: var(--ink); font-size: 1.05rem; }
.map-cover p { margin: 0; max-width: 480px; font-size: .88rem; }
.map-cover .actions { margin-top: 14px; justify-content: center; }
@media (max-width: 700px) { .map-box { height: 330px; } .map-cover { padding: 22px; } }

/* ------------------------------------------------------------------ CTA */
section.cta {
  padding: 78px 0;
  background-color: #0f8f66;
  background-image: linear-gradient(180deg, rgba(6, 61, 45, .88) 0%, rgba(9, 92, 66, .84) 100%), var(--img-header);
  background-position: center, center 62%;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
  text-align: center;
}
section.cta h2 { color: #fff; text-shadow: 0 2px 20px rgba(4, 34, 25, .5); }
section.cta p { max-width: 700px; margin: 0 auto; color: #fff; text-shadow: 0 1px 12px rgba(4, 34, 25, .45); }
section.cta .actions { justify-content: center; }

/* --------------------------------------------------------------- footer */
footer { padding: 62px 0 26px; border-top: 1px solid var(--line); background: #fff; font-size: .93rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 38px; }
footer h4 { margin-bottom: 14px; color: var(--brand-ink); font-size: .76rem; letter-spacing: 1.1px; text-transform: uppercase; }
footer ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
footer li { color: var(--muted); }
footer p { color: var(--muted); }
footer a:hover { color: var(--brand-2); }
.fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); font-weight: 700; }
.fbrand .mark { width: 40px; height: 40px; background: #fff; color: var(--brand-ink); font-size: .85rem; box-shadow: none; }
  .fbrand .mark img { width: 24px; height: 24px; }
.fbrand span { font-weight: 700; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8b98a1;
  font-size: .82rem;
}

/* ------------------------------------------------------------ responsif */
@media (max-width: 1000px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.85rem; }
  .grid.g3, .g3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .trust { grid-template-columns: 1fr; margin-top: -70px; }
  .hero { padding: 66px 0 112px; }
  .hero h1 { font-size: 2.3rem; }
  .page-hero h1 { font-size: 2rem; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  section { padding: 56px 0; }
  .nav-toggle { display: inline-block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(6, 61, 45, .12);
  }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: none; color: var(--ink); }
  .menu a:first-child { border-top: none; }
  .menu a.active { color: var(--brand-ink); }
  .menu a.btn { margin-top: 14px; border-top: none; background: var(--brand-3); color: #fff; }
  .grid.g2, .grid.g3, .g2, .g3 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 104px; }
  .hero h1 { font-size: 1.95rem; }
  .page-hero h1 { font-size: 1.65rem; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .data li { flex-direction: column; gap: 4px; }
  .data span { text-align: left; }
  footer .cols { grid-template-columns: 1fr; }
  .hero .actions .btn, section.cta .actions .btn { width: 100%; }
}

/* ------------------------------------------------------------- komponen gambar */
.split-media { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.media-frame img { width: 100%; height: 100%; max-height: 430px; object-fit: cover; }

.photo-band {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.photo-band img { width: 100%; height: 400px; object-fit: cover; }
.photo-band figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 24px 18px;
  background: linear-gradient(0deg, rgba(6, 61, 45, .86) 10%, rgba(6, 61, 45, 0) 100%);
  color: #fff;
  font-size: .85rem;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .split-media { grid-template-columns: 1fr; gap: 30px; }
  .media-frame img { max-height: 360px; }
  .photo-band img { height: 300px; }
}

/* --------------------------------------------------------------- kredit */
.credit-link { color: #8fa79c; }
.credit-link:hover { color: var(--brand-2); }

/* ------------------------------------------------- tombol WhatsApp melayang */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--brand-2);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(9, 74, 52, .28);
  transition: background .18s ease, transform .18s ease;
}
.wa-float:hover { background: var(--brand-ink); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 700px) {
  .wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .wa-float span { display: none; }
}
@media print { .wa-float { display: none; } }

/* tabel kredit gambar jadi kartu bertumpuk di layar sempit */
@media (max-width: 700px) {
  .table-credit, .table-credit thead, .table-credit tbody, .table-credit tr, .table-credit td { display: block; width: 100%; }
  .table-credit thead { display: none; }
  .table-credit tr {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .table-credit td { padding: 5px 0; border: 0; }
  .table-credit td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}


/* =========================================================================
   HALAMAN DINAMIS (daftar artikel, satu artikel, formulir tersimpan)
   ========================================================================= */

/* ---------------------------------------------------- pencarian & kategori */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-bar input[type="search"] {
  flex: 1 1 260px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
}
.tag:hover { border-color: var(--brand-1); color: var(--brand-2); }
.tag.active { background: var(--brand-tint); border-color: var(--brand-1); color: var(--brand-ink); font-weight: 700; }
.tag small { opacity: .75; }

/* ------------------------------------------------------------------ tautan baca */
.baca {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-2);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.baca:hover { text-decoration: underline; }

/* --------------------------------------------------------------- halaman-halaman */
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; align-items: center; }
.pagination a, .pagination .current {
  display: inline-block;
  min-width: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
  text-decoration: none;
}
.pagination a:hover { border-color: var(--brand-1); color: var(--brand-2); }
.pagination .current { background: var(--brand-tint); border-color: var(--brand-1); color: var(--brand-ink); font-weight: 700; }

/* --------------------------------------------------------------- kartu kosong */
.kartu-kosong {
  padding: 30px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.kartu-kosong h3 { margin-top: 0; }
.kartu-kosong .btn { margin: 6px 4px 0; }

/* ------------------------------------------------------------ isi satu artikel */
.artikel-isi { max-width: 780px; }
.meta-artikel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.meta-artikel .date { margin: 0; }
.meta-artikel .penulis { color: var(--muted); font-size: .85rem; }
.artikel-gambar { margin: 0 0 26px; }
.artikel-isi p { line-height: 1.85; color: #2f3a35; }
.artikel-isi h2 { margin: 34px 0 12px; font-size: 1.3rem; }
.artikel-isi h3 { margin: 26px 0 10px; font-size: 1.12rem; }
.artikel-isi ul, .artikel-isi ol { line-height: 1.85; color: #2f3a35; padding-left: 22px; }
.artikel-isi li { margin-bottom: 6px; }
.artikel-isi a { color: var(--brand-2); }
.judul-bagian { margin: 44px 0 6px; font-size: 1.15rem; }

/* ------------------------------------------------------------------- bagikan */
.bagikan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 34px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}

/* -------------------------------------------------------- tombol tambahan */
.btn.small { padding: 7px 13px; font-size: .85rem; }
.btn.outline { background: transparent; border-color: var(--brand-1); color: var(--brand-ink); }
.btn.outline:hover { background: var(--brand-tint); }

/* ------------------------------------------------------------- formulir simpan */
.jebakan { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cek-setuju {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 16px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.cek-setuju input { margin-top: 4px; flex: 0 0 auto; }
/* Kotak centang tidak boleh mewarisi lebar 100% dari aturan isian teks:
   kalau ikut 100%, teks persetujuan terdorong ke tepi dan terjepit jadi kolom sempit. */
.cek-setuju input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 3px;
  accent-color: var(--brand-2);
}
.cek-setuju a { color: var(--brand-2); }
.tombol-baris { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.form-status.ok { border-color: var(--brand-1); background: var(--brand-tint); color: var(--brand-ink); }
.form-status.gagal { border-color: #e0b4ae; background: #fdecea; color: #8a2318; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 700px) {
  .artikel-isi { max-width: 100%; }
  .tombol-baris .btn { width: 100%; text-align: center; }
}

/* Isi artikel bergaya kaya (editor visual): gambar, kutipan, kode, garis pemisah */
.artikel-isi img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.artikel-isi figure { margin: 22px 0; }
.artikel-isi figure img { margin: 0; }
.artikel-isi figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); text-align: center; }
.artikel-isi blockquote { margin: 22px 0; padding: 8px 0 8px 18px; border-left: 3px solid var(--brand-1); color: #3c4a52; font-style: italic; }
.artikel-isi code { background: var(--brand-tint, #f1faf5); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.artikel-isi pre { background: #f4f8f6; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.artikel-isi pre code { background: none; padding: 0; }
.artikel-isi hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
