/*
Theme Name: Rukun Islam
Theme URI: https://rukunislam.com
Author: Rukun Islam
Description: Tema WordPress ringan untuk situs edukasi dan belajar Islam. Menyusun pembahasan dalam 9 kategori utama beserta subkategori, dengan URL rapi, modul SEO bawaan (meta, schema, breadcrumb), pengerasan keamanan dasar, dan widget bawaan, pengaturan Beranda, dan enam template halaman siap pakai: Tentang, Pedoman Redaksi, Disclaimer, Kebijakan Privasi, Syarat & Ketentuan, dan Kontak. Responsif, dengan skema warna 60-30-10 (krem, hijau zamrud, emas).
Version: 1.3.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rukunislam
*/

/* ==========================================================
   SKEMA WARNA 60-30-10
   60%  Krem / putih gading  -> latar halaman, kartu
   30%  Hijau zamrud         -> header, hero, footer, judul, tautan
   10%  Emas                 -> tombol, garis aksen, nomor, penanda
   ========================================================== */
:root {
  --c60: #faf6ec; /* dominan: krem */
  --c60-soft: #f2ecdb; /* krem lebih gelap untuk blok selang-seling */
  --c60-card: #ffffff;

  --c30: #0b5d4b; /* sekunder: hijau zamrud */
  --c30-dark: #08463a;
  --c30-tint: #e3efea;

  --c10: #c8a04a; /* aksen: emas */
  --c10-dark: #8f6d1e; /* emas gelap, aman untuk teks di atas krem */

  --ink: #1f2a27;
  --ink-soft: #55625e;
  --line: #e4dcc6;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 70, 58, 0.06), 0 8px 24px rgba(8, 70, 58, 0.07);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--c60);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--c30);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--c30-dark);
}
:focus-visible {
  outline: 3px solid var(--c10);
  outline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--c30-dark);
  line-height: 1.3;
  margin: 1.6em 0 0.6em;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 0;
}
h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1.2em;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  background: var(--c10);
  color: var(--c30-dark);
  padding: 10px 16px;
  border-radius: 8px;
  width: auto;
  height: auto;
  clip: auto;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.ar {
  font-family: var(--font-ar);
  direction: rtl;
}

/* ---------- Header ---------- */
:root {
  --ab: 0px;
  --nav-bp: 1160px;
}
.admin-bar {
  --ab: 32px;
}
@media (max-width: 782px) {
  .admin-bar {
    --ab: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar {
    --ab: 0px;
  }
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
}
.site-header {
  position: relative;
  z-index: 50;
}
.site-top {
  background: var(--c60);
  border-bottom: 1px solid var(--line);
}
.site-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--c30-dark);
  min-width: 0;
}
.brand:hover {
  color: var(--c30-dark);
}
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
  flex: none;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: block;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 380px;
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.top-search:focus-within {
  border-color: var(--c30);
  box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.14);
}
.top-search .field-ico {
  position: absolute;
  left: 16px;
  color: var(--ink-soft);
  pointer-events: none;
}
.top-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 12px 9px 42px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.top-search button {
  border: 0;
  background: var(--c30);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
.top-search button:hover {
  background: var(--c30-dark);
}

.header-actions {
  display: none;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--c60-card);
  color: var(--c30-dark);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.icon-btn:hover {
  background: var(--c30-tint);
  border-color: var(--c30);
}
.icon-btn .ico {
  width: 22px;
  height: 22px;
}

/* Navigasi desktop: satu baris, sub-menu dropdown */
.site-nav {
  background: var(--c30);
  border-bottom: 3px solid var(--c10);
  position: relative;
  z-index: 20;
}
.nav-head,
.nav-overlay,
.nav-foot {
  display: none;
}
.nav-wrap {
  padding-top: 0;
  padding-bottom: 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 9px;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.3;
  transition: background 0.2s;
}
.nav-link:hover,
.nav-item:focus-within > .nav-link,
.nav-item:hover > .nav-link {
  background: var(--c30-dark);
  color: #fff;
}
.nav-item.current > .nav-link {
  background: var(--c30-dark);
  box-shadow: inset 0 -3px 0 var(--c10);
  color: #fff;
}
.nav-ico,
.sub-toggle {
  display: none;
}

.nav-list .sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 236px;
  background: var(--c60-card);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px rgba(8, 70, 58, 0.18);
  border-top: 3px solid var(--c10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.nav-item:nth-last-child(-n + 3) > .sub {
  left: auto;
  right: 0;
}
.nav-item:hover > .sub,
.nav-item:focus-within > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-list .sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-list .sub a:hover {
  background: var(--c30-tint);
  color: var(--c30-dark);
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--c30);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  text-align: center;
  padding: 64px 0 72px;
}
.hero .bismillah {
  font-family: var(--font-ar);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--c10);
  line-height: 1.6;
  margin: 0 0 10px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 14px;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 26px;
  color: #e6f1ec;
  font-size: 1.08rem;
}
.hero-search {
  display: flex;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.hero-search:focus-within {
  box-shadow:
    0 0 0 3px var(--c10),
    0 12px 32px rgba(0, 0, 0, 0.22);
}
.hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 13px 20px;
  font: inherit;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.hero-search button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--c10);
  color: var(--c30-dark);
  padding: 0 26px;
  align-self: stretch;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 0.2s;
}
.hero-search button:hover {
  background: #d9b35f;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}
.section.alt {
  background: var(--c60-soft);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--c10);
  margin-top: 10px;
  border-radius: 3px;
}
.section-head a.more {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Kartu kategori */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cat-card {
  position: relative;
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: #d7c99b;
  box-shadow:
    0 2px 4px rgba(8, 70, 58, 0.06),
    0 16px 34px rgba(8, 70, 58, 0.13);
}
.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--c30-tint);
  color: var(--c30);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.cat-icon .ico {
  width: 26px;
  height: 26px;
}
.cat-card:hover .cat-icon {
  background: var(--c30);
  color: var(--c10);
}
.cat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c10);
  line-height: 1;
  letter-spacing: 0.02em;
}
.cat-card h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
}
.cat-card h3 a {
  color: var(--c30-dark);
  text-decoration: none;
}
.cat-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.cat-card h3 a:hover {
  color: var(--c30);
}
.cat-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.65;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.chip {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c30-tint);
  color: var(--c30-dark);
  font-size: 0.83rem;
  text-decoration: none;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}
.chip:hover {
  background: var(--c30);
  color: #fff;
}
@media (min-width: 981px) {
  /* Kartu ke-10 (sendirian di baris terakhir) dibuat selebar baris */
  .cat-card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    align-items: center;
  }
  .cat-card:last-child:nth-child(3n + 1) .cat-top {
    grid-row: 1 / span 3;
    margin: 0;
    flex-direction: column;
    gap: 10px;
  }
  .cat-card:last-child:nth-child(3n + 1) p {
    margin-bottom: 12px;
  }
  .cat-card:last-child:nth-child(3n + 1) .chips {
    margin-top: 0;
  }
}

/* Kartu artikel */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.post-card .thumb {
  aspect-ratio: 16/10;
  background: var(--c30-tint);
  display: block;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.post-card:hover .thumb img {
  transform: scale(1.04);
}
.thumb-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--c30);
  font-family: var(--font-ar);
  font-size: 2.4rem;
  background: var(--c30-tint);
}
.post-card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c10-dark);
  text-decoration: none;
  margin-bottom: 6px;
}
.post-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.post-card h3 a {
  color: var(--c30-dark);
  text-decoration: none;
}
.post-card h3 a:hover {
  text-decoration: underline;
}
.post-card .excerpt {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0 0 12px;
}
.meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: auto;
}

/* Topik populer */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-cloud a {
  padding: 6px 16px;
  border: 1px solid var(--c30);
  color: var(--c30);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
}
.tag-cloud a:hover {
  background: var(--c30);
  color: #fff;
}

/* FAQ beranda (Rukun Islam & Rukun Iman) */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.faq-col {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.faq-col-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.faq-col-head h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}
.faq-count {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c10-dark);
}
.faq-col .cat-icon {
  flex: none;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c30-dark);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover .faq-q {
  color: var(--c30);
}
.faq-item summary:focus-visible {
  outline: 3px solid var(--c10);
  outline-offset: 2px;
  border-radius: 6px;
}
.faq-chev {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c30-tint);
  color: var(--c30);
  display: grid;
  place-items: center;
  transition:
    transform 0.25s,
    background 0.2s,
    color 0.2s;
}
.faq-chev .ico {
  width: 16px;
  height: 16px;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  background: var(--c10);
  color: var(--c30-dark);
}
.faq-a {
  padding: 0 2px 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}
.faq-a p {
  margin: 0;
}
.faq-a strong {
  color: var(--ink);
  font-weight: 600;
}
.faq-a .ar {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
  line-height: 1.9;
  color: var(--c30-dark);
}
.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--c30);
}
.faq-more .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.faq-more:hover {
  color: var(--c30-dark);
}
.faq-more:hover .ico {
  transform: translateX(3px);
}
@media (max-width: 980px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .faq-col {
    padding: 18px;
  }
  .faq-item summary {
    font-size: 0.97rem;
  }
}

/* ---------- Layout konten ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}
.layout.full {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding-top: 18px;
}
.breadcrumbs a {
  color: var(--c30);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs .sep {
  margin: 0 6px;
  color: var(--c10-dark);
}

.entry-header .kicker {
  display: inline-block;
  background: var(--c30);
  color: #fff;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
}
.entry-header .kicker:hover {
  background: var(--c30-dark);
  color: #fff;
}
.entry-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.entry-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.entry-content {
  font-size: 1.06rem;
}
.entry-content h2 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c60-soft);
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.3em;
}
.entry-content li {
  margin-bottom: 0.4em;
}
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  background: var(--c30-tint);
  border-left: 4px solid var(--c10);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c30-dark);
}
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.entry-content th {
  background: var(--c30);
  color: #fff;
}
.entry-content figure {
  margin: 1.8em 0;
}
.entry-content figure img {
  border-radius: 12px;
}
.entry-content figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}
.entry-content .wp-block-image figcaption a {
  color: inherit;
}
.entry-content img.alignleft,
.alignleft {
  float: left;
  margin: 0 20px 12px 0;
}
.entry-content img.alignright,
.alignright {
  float: right;
  margin: 0 0 12px 20px;
}
.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.notice-box {
  margin: 36px 0 0;
  padding: 18px 22px;
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c10);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.notice-box strong {
  color: var(--c30-dark);
}
.entry-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}
.entry-tags a {
  padding: 3px 12px;
  border: 1px solid var(--c30);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.83rem;
}
.entry-tags a:hover {
  background: var(--c30);
  color: #fff;
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.post-nav a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--c60-card);
  text-decoration: none;
  color: var(--c30-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.post-nav a:hover {
  border-color: var(--c30);
}
.post-nav small {
  display: block;
  color: var(--c10-dark);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.post-nav .next {
  text-align: right;
}
.related {
  margin-top: 48px;
}

/* Arsip */
.archive-head {
  background: var(--c30);
  color: #fff;
  padding: 40px 0 36px;
  border-bottom: 3px solid var(--c10);
}
.archive-head h1 {
  color: #fff;
  margin-bottom: 8px;
}
.archive-head p {
  color: #e6f1ec;
  margin: 0;
  max-width: 720px;
}
.archive-head .chips {
  margin-top: 18px;
}
.archive-head .chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.archive-head .chip:hover {
  background: var(--c10);
  color: var(--c30-dark);
}
.pagination {
  margin-top: 40px;
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pagination .page-numbers {
  padding: 8px 15px;
  border: 1px solid var(--line);
  background: var(--c60-card);
  border-radius: 10px;
  text-decoration: none;
  color: var(--c30-dark);
  font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--c30);
  color: #fff;
  border-color: var(--c30);
}

/* Sidebar */
.sidebar .widget {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar h3.widget-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c10);
}
.cat-tree,
.cat-tree ul,
.pop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-tree > li {
  margin-bottom: 8px;
}
.cat-tree > li > a {
  font-weight: 600;
  color: var(--c30-dark);
  text-decoration: none;
}
.cat-tree ul {
  padding-left: 14px;
  margin-top: 2px;
  border-left: 2px solid var(--c30-tint);
}
.cat-tree ul a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.cat-tree a:hover {
  color: var(--c30);
  text-decoration: underline;
}
.pop-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.5;
}
.pop-list li:last-child {
  border: 0;
  padding-bottom: 0;
}
.pop-list a {
  text-decoration: none;
  color: var(--c30-dark);
  font-weight: 500;
}
.pop-list a:hover {
  text-decoration: underline;
}
.pop-list .views {
  display: flex;
  margin-top: 2px;
}

/* Jumlah dilihat */
.views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}
.views .views-ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--c10-dark);
}
.entry-meta .views {
  font-size: inherit;
}
.meta .views {
  vertical-align: -2px;
}

/* Tombol */
.btn {
  display: inline-block;
  background: var(--c10);
  color: var(--c30-dark);
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn:hover {
  background: #d9b35f;
  color: var(--c30-dark);
}

/* Komentar */
.comments-area {
  margin-top: 48px;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-list .comment-body {
  background: var(--c60-card);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--c60-card);
}
.comment-form .submit {
  background: var(--c30);
  color: #fff;
  border: 0;
  padding: 11px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.comment-form .submit:hover {
  background: var(--c30-dark);
}

/* 404 */
.notfound {
  text-align: center;
  padding: 80px 0;
}
.notfound .big {
  font-family: var(--font-ar);
  font-size: 5rem;
  color: var(--c10);
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c30-dark);
  color: #cfe3db;
  border-top: 4px solid var(--c10);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 38px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.site-footer a {
  color: #cfe3db;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--c10);
  text-decoration: underline;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 7px;
  font-size: 0.93rem;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand:hover {
  color: #fff;
  text-decoration: none;
}
.footer-brand .brand-logo {
  height: 62px;
}
.footer-brand p {
  font-size: 0.93rem;
  margin-top: 16px;
  max-width: 380px;
}
.footer-cats {
  columns: 2;
  column-gap: 28px;
}
.footer-cats li {
  break-inside: avoid;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}
.footer-bottom .ar {
  color: var(--c10);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
}

/* ---------- Responsif ---------- */
@media (max-width: 1159px) {
  /* Header ringkas + menu geser (drawer) */
  .site-header {
    position: sticky;
    top: var(--ab);
  }
  .site-top .wrap {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand-logo {
    height: 44px;
  }
  .header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }
  .top-search {
    display: none;
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
  .search-open .top-search {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--ab);
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    background: var(--c60);
    display: flex;
    flex-direction: column;
    border: 0;
    z-index: 3;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(104%);
    visibility: hidden;
    transition:
      transform 0.28s ease,
      visibility 0s 0.28s;
    box-shadow: -16px 0 40px rgba(8, 40, 33, 0.28);
  }
  .site-nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.28s ease;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    top: var(--ab);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 32, 26, 0.55);
    z-index: 2;
  }
  .nav-overlay[hidden] {
    display: none;
  }
  html.nav-locked {
    overflow: hidden;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 12px 20px;
    background: var(--c30);
    border-bottom: 3px solid var(--c10);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .nav-brand {
    display: block;
    line-height: 0;
  }
  .nav-brand img {
    height: 40px;
    width: auto;
    display: block;
  }
  .nav-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
  }
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .nav-wrap {
    padding: 6px 16px 24px;
    width: 100%;
  }
  .nav-foot {
    display: block;
    margin-top: auto;
    background: var(--c30-dark);
    color: #fff;
    padding: 24px 20px 22px;
    text-align: center;
  }
  .nav-foot .footer-social {
    margin: 0 0 18px;
  }
  .nav-foot .footer-social h4 {
    color: #fff;
    margin: 0 0 12px;
  }
  .nav-foot .social-links {
    justify-content: center;
  }
  .nav-foot .social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
  }
  .nav-foot .social-links a:hover {
    background: var(--c10);
    border-color: var(--c10);
    color: var(--c30-dark);
  }
  .nav-foot .social-hint {
    color: #fff;
    border-color: var(--c10);
  }
  .nav-credit {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .nav-credit .ar {
    color: var(--c10);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
  }
  .nav-list {
    flex-direction: column;
    justify-content: flex-start;
  }
  .nav-item {
    display: grid;
    grid-template-columns: 1fr 46px;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    color: var(--c30-dark);
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 4px;
    white-space: normal;
    gap: 14px;
  }
  .nav-link:hover,
  .nav-item:focus-within > .nav-link,
  .nav-item:hover > .nav-link,
  .nav-item.current > .nav-link {
    background: none;
    box-shadow: none;
    color: var(--c30);
  }
  .nav-item.current > .nav-link {
    color: var(--c10-dark);
  }
  .nav-ico {
    display: block;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 10px;
    background: var(--c30-tint);
    color: var(--c30);
  }
  .nav-item.current .nav-ico {
    background: var(--c30);
    color: var(--c10);
  }
  .sub-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--c30);
    cursor: pointer;
    border-radius: 10px;
  }
  .sub-toggle:hover {
    background: var(--c30-tint);
  }
  .sub-toggle .ico {
    transition: transform 0.2s;
  }
  .nav-item.is-open > .sub-toggle .ico {
    transform: rotate(180deg);
  }

  .nav-list .sub {
    grid-column: 1 / -1;
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 12px 50px;
  }
  .nav-item.is-open > .sub {
    display: block;
  }
  .nav-list .sub a {
    color: var(--ink-soft);
    padding: 9px 12px;
    border-left: 2px solid var(--c30-tint);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
  }
  .nav-list .sub a:hover {
    background: var(--c30-tint);
    color: var(--c30-dark);
    border-left-color: var(--c10);
  }
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 44px 0 52px;
  }
  .hero-search button {
    padding: 0 18px;
  }
  .hero-search button span {
    display: none;
  }
  .hero-search input[type="search"] {
    padding-left: 18px;
  }
  .cat-grid,
  .post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-card {
    padding: 20px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  /* Footer mobile: Kategori & Tautan berdampingan (brand tetap satu baris penuh) */
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 20px;
  }
  .footer-grid > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .post-nav .next {
    text-align: left;
  }
  .section {
    padding: 40px 0;
  }
  .brand-tag {
    display: none;
  }
  .footer-cats {
    columns: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Tombol kembali ke atas */
.to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--c30);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 70, 58, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s,
    background 0.2s;
}
.to-top[hidden] {
  display: none;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--c30-dark);
}
.to-top:focus-visible {
  outline: 3px solid var(--c10);
  outline-offset: 2px;
}
.to-top .ico {
  width: 22px;
  height: 22px;
  color: var(--c10);
}
.has-anchor-ad .to-top {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}
html.nav-locked .to-top {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}
@media print {
  .to-top {
    display: none;
  }
}
@media print {
  .site-top,
  .site-nav,
  .nav-overlay,
  .sidebar,
  .site-footer,
  .post-nav,
  .related,
  .comments-area {
    display: none;
  }
  body {
    background: #fff;
  }
}

/* ---------- Halaman statis (template page) ---------- */
.static-page {
  padding-bottom: 8px;
}
.sp-hero {
  background-color: var(--c30);
  color: #fff;
  position: relative;
  padding: 56px 0 84px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='14' y='14' width='36' height='36'/%3E%3Crect x='14' y='14' width='36' height='36' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
}
.sp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c10);
}
.sp-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  margin: 14px 0 12px;
}
.sp-lead {
  color: #d6e8e1;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}
.sp-crumb {
  font-size: 0.82rem;
  color: #b9d6cb;
  margin-bottom: 22px;
}
.sp-crumb a {
  color: #b9d6cb;
  text-decoration: none;
}
.sp-crumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.sp-crumb .sep {
  color: var(--c10);
  margin: 0 7px;
}
.sp-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(200, 160, 74, 0.16);
  border: 1px solid rgba(200, 160, 74, 0.55);
  display: grid;
  place-items: center;
  color: var(--c10);
}
.sp-badge svg {
  width: 30px;
  height: 30px;
}
.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.sp-chip {
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 14px;
  color: #e6f1ec;
}
.sp-hero.is-center {
  text-align: center;
  padding: 60px 0 96px;
}
.sp-hero.is-center .sp-lead {
  margin: 0 auto;
}
.sp-bismillah {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--c10);
  line-height: 1.6;
}
.sp-hero.is-center h1 {
  margin-top: 4px;
}

.sp-card {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.sp-btn {
  display: inline-block;
  background: var(--c10);
  color: var(--c30-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.sp-btn:hover {
  background: #d9b35f;
  color: var(--c30-dark);
}
.sp-cta {
  background: var(--c30);
  border-bottom: 4px solid var(--c10);
  border-radius: 20px;
  color: #fff;
  padding: 32px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.sp-cta h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.sp-cta p {
  margin: 4px 0 0;
  color: #d6e8e1;
}

/* Halaman hukum */
.sp-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  align-items: start;
}
.sp-layout.no-toc {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.sp-side {
  position: sticky;
  top: 20px;
}
.sp-toc {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
}
.sp-toc summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c30-dark);
  cursor: pointer;
  list-style: none;
  padding: 0 4px 10px;
}
.sp-toc summary::-webkit-details-marker {
  display: none;
}
.sp-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-toc li {
  margin: 0;
}
.sp-toc a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
}
.sp-toc a:hover {
  background: var(--c60-soft);
  color: var(--c30-dark);
}
.sp-toc a i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c60-soft);
  color: var(--c10-dark);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}
.sp-toc li.on a {
  background: var(--c30-tint);
  color: var(--c30-dark);
  font-weight: 600;
}
.sp-toc li.on a i {
  background: var(--c10);
  color: var(--c30-dark);
}
.sp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.sp-related a {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c30-dark);
  text-decoration: none;
}
.sp-related a:hover {
  background: var(--c30-tint);
  border-color: var(--c30);
}
.sp-main {
  padding-top: 40px;
  min-width: 0;
}
.sp-layout.no-toc .sp-main {
  padding-top: 48px;
}
.sp-intro {
  font-size: 1.12rem;
  margin-bottom: 22px;
}
.sp-intro p {
  margin: 0 0 0.8em;
}
.sp-sec {
  display: flex;
  gap: 22px;
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 18px;
  scroll-margin-top: 24px;
}
.sp-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c30);
  color: var(--c10);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  flex: none;
  border-bottom: 3px solid var(--c10);
}
.sp-body {
  min-width: 0;
  flex: 1;
  font-size: 1.02rem;
}
.sp-body h2 {
  font-size: 1.4rem;
  margin: 4px 0 10px;
  padding: 0;
  border: 0;
}
.sp-body > :last-child {
  margin-bottom: 0;
}
.sp-body blockquote {
  margin: 14px 0 0;
  padding: 14px 18px;
  background: var(--c30-tint);
  border-left: 4px solid var(--c10);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: var(--c30-dark);
}
.sp-body blockquote p:last-child {
  margin-bottom: 0;
}
.sp-layout.no-toc .sp-sec:only-child {
  display: block;
}

/* Tentang */
.sp-stats-wrap {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 10px;
  text-align: center;
}
.sp-stats div + div {
  border-left: 1px solid var(--line);
}
.sp-stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--c30);
  line-height: 1.25;
}
.sp-stats span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.sp-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 52px;
}
.sp-two h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
}
.sp-two p {
  font-size: 1.06rem;
  margin: 0 0 12px;
}
.sp-quote {
  margin: 0;
  background: var(--c30);
  color: #fff;
  border: 0;
  border-bottom: 4px solid var(--c10);
  border-radius: 20px;
  padding: 32px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.6;
}
.sp-h-center {
  text-align: center;
  font-size: 1.7rem;
  margin: 0 0 24px;
}
.sp-gap {
  margin-top: 52px;
}
.sp-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sp-val {
  padding: 28px 26px;
}
.sp-val h3 {
  font-size: 1.2rem;
  margin: 14px 0 6px;
}
.sp-val p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.sp-vi {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--c30-tint);
  display: grid;
  place-items: center;
  color: var(--c30);
}
.sp-vi svg {
  width: 26px;
  height: 26px;
}
.sp-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sp-cat {
  background: var(--c60-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  color: var(--c30-dark);
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.sp-cat:hover {
  border-color: var(--c30);
  box-shadow: var(--shadow);
  color: var(--c30-dark);
}
.sp-cat i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c10);
  color: var(--c30-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.is-about .wrap:last-child {
  padding-bottom: 56px;
}

/* Kontak */
.sp-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.sp-mail,
.sp-tips {
  padding: 30px 32px;
}
.sp-mail h2,
.sp-tips h2 {
  font-size: 1.4rem;
  margin: 16px 0 8px;
  padding: 0;
  border: 0;
}
.sp-tips h3 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
}
.sp-mail p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.sp-mail .sp-addr {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--c30-dark);
  margin: 6px 0 18px;
  word-break: break-word;
}
.sp-tips ul {
  margin: 0;
  padding-left: 1.25em;
}
.sp-tips li {
  margin-bottom: 5px;
}
.sp-contact + .wrap {
  padding-bottom: 56px;
}
.sp-note {
  margin-top: 22px;
  background: var(--c30-tint);
  border-left: 4px solid var(--c10);
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  color: var(--c30-dark);
  font-size: 0.95rem;
}
.sp-note b {
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .sp-hero {
    padding: 40px 0 72px;
  }
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: -30px;
  }
  .sp-side {
    position: static;
  }
  .sp-main {
    padding-top: 22px;
  }
  .sp-toc summary {
    cursor: pointer;
  }
  .sp-toc summary::after {
    content: "▾";
    float: right;
    color: var(--c10-dark);
  }
  .sp-toc:not([open]) summary {
    padding-bottom: 0;
  }
  .sp-related {
    display: none;
  }
  .sp-sec {
    padding: 22px 20px;
    gap: 16px;
  }
  .sp-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
  }
  .sp-two {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .sp-values,
  .sp-cats {
    grid-template-columns: 1fr;
  }
  .sp-stats b {
    font-size: 1.6rem;
  }
  .sp-stats span {
    font-size: 0.78rem;
  }
  .sp-contact {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }
  .sp-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
}
@media (max-width: 520px) {
  .sp-sec {
    flex-direction: column;
    gap: 12px;
  }
  .sp-stats {
    padding: 18px 4px;
  }
}

/* ---------- Widget bawaan tema & widget inti ---------- */
.widget-date {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.widget-text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.widget-btn {
  padding: 9px 22px;
  font-size: 0.9rem;
}
.sidebar .widget .tag-cloud {
  gap: 8px;
}
.sidebar .widget .tag-cloud a {
  padding: 4px 13px;
  font-size: 0.84rem;
}
.widget-links,
.sidebar .widget ul:not(.cat-tree):not(.pop-list):not(.cat-tree ul) {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget-links li,
.sidebar .widget_archive li,
.sidebar .widget_recent_entries li,
.sidebar .widget_nav_menu li,
.sidebar .widget_pages li,
.sidebar .widget_categories li,
.sidebar .widget_meta li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.5;
}
.widget-links li:last-child,
.sidebar .widget_archive li:last-child,
.sidebar .widget_recent_entries li:last-child,
.sidebar .widget_nav_menu li:last-child,
.sidebar .widget_pages li:last-child,
.sidebar .widget_categories li:last-child,
.sidebar .widget_meta li:last-child {
  border: 0;
  padding-bottom: 0;
}
.widget-links a,
.sidebar .widget_archive a,
.sidebar .widget_recent_entries a,
.sidebar .widget_nav_menu a,
.sidebar .widget_pages a,
.sidebar .widget_categories a,
.sidebar .widget_meta a {
  color: var(--c30-dark);
  text-decoration: none;
  font-weight: 500;
}
.widget-links a:hover,
.sidebar .widget li a:hover {
  text-decoration: underline;
}
.sidebar .widget_recent_entries .post-date {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.sidebar .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar .widget_tag_cloud .tagcloud a {
  font-size: 0.84rem !important;
  padding: 4px 13px;
  border: 1px solid var(--c30);
  color: var(--c30);
  border-radius: 999px;
  text-decoration: none;
}
.sidebar .widget_tag_cloud .tagcloud a:hover {
  background: var(--c30);
  color: #fff;
}
.widget-search,
.sidebar .widget_search form,
.sidebar .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  background: var(--c60);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.widget-search:focus-within,
.sidebar .widget_search form:focus-within {
  border-color: var(--c30);
  box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.14);
}
.widget-search input[type="search"],
.sidebar .widget_search input[type="search"],
.sidebar .wp-block-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.widget-search button,
.sidebar .widget_search input[type="submit"],
.sidebar .wp-block-search__button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--c30);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.sidebar .widget_search input[type="submit"],
.sidebar .wp-block-search__button {
  width: auto;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
}
.widget-search button:hover {
  background: var(--c30-dark);
}
.sidebar .widget select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--c60);
  font: inherit;
}
.sidebar .widget .wp-block-heading,
.sidebar .widget h2:not(.widget-title) {
  font-size: 1.1rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c10);
}

/* ---------- Iklan ---------- */
.ad-wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}
.ad-slot {
  position: relative;
  margin: 0px 0;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  clear: both;
}
.ad-wrap .ad-slot {
  margin: 0;
}
.ad-slot .ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ad-slot .ad-inner {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.ad-slot .ad-inner > * {
  max-width: 100%;
}
/* Slot yang tidak terisi iklan ikut menghilang (tidak menyisakan ruang kosong). */
.ad-slot ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}
/* Pratinjau posisi (khusus admin) */
.ad-slot--empty .ad-placeholder {
  padding: 18px 16px;
  border: 2px dashed var(--c10);
  border-radius: 10px;
  background: var(--c30-tint);
  color: var(--c30-dark);
  font-size: 0.88rem;
  line-height: 1.5;
}
.ad-slot--empty .ad-placeholder small {
  color: var(--ink-soft);
}
/* Posisi khusus */
.post-grid > .ad-slot {
  grid-column: 1 / -1;
  margin: 0;
}
.entry .ad-slot--post_top {
  margin: 0 0 28px;
}
.entry .ad-slot--post_bottom {
  margin: 28px 0 0;
}
.sidebar > .ad-slot {
  margin: 0 0 24px;
}
.sidebar .widget .ad-slot {
  margin: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
}
.layout > .sidebar {
  align-self: stretch;
}
.ad-sticky-wrap {
  flex: 1 1 auto;
}
.ad-sticky-wrap .ad-slot {
  position: sticky;
  top: calc(var(--ab) + 20px);
  margin: 0;
}
/* Anchor bawah layar */
.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--c60-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(8, 70, 58, 0.14);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.ad-anchor .ad-inner {
  display: block;
  max-width: 100%;
  overflow: hidden;
}
.ad-anchor-close {
  position: absolute;
  right: 8px;
  top: -30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--c60-card);
  color: var(--c30-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.ad-anchor-close:hover {
  background: var(--c30-tint);
}
.has-anchor-ad .footer-bottom {
  padding-bottom: 18px;
}
@media (max-width: 767px) {
  .has-anchor-ad .footer-bottom {
    padding-bottom: 96px;
  }
}
@media (max-width: 767px) {
  .ad-dev-desktop {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .ad-dev-mobile {
    display: none !important;
  }
}
@media (max-width: 980px) {
  .ad-sticky-wrap {
    flex: none;
  }
  .ad-sticky-wrap .ad-slot {
    position: static;
  }
}
@media print {
  .ad-slot,
  .ad-wrap,
  .ad-anchor,
  .ad-sticky-wrap {
    display: none !important;
  }
}

/* ---------- Sosial media ---------- */
.footer-social {
  margin-top: 24px;
}
.footer-social h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links li {
  margin: 0;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.social-links .soc-ico {
  width: 18px;
  height: 18px;
  display: block;
}
.site-footer .social-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
}
.site-footer .social-links a:hover {
  background: var(--c10);
  border-color: var(--c10);
  color: var(--c30-dark);
  text-decoration: none;
  transform: translateY(-2px);
}
.sidebar .social-links a {
  color: var(--c30);
  background: var(--c30-tint);
  border: 1px solid var(--line);
  text-decoration: none;
}
.sidebar .social-links a:hover {
  background: var(--c30);
  border-color: var(--c30);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.sidebar .widget .social-links li {
  padding: 0;
  border: 0;
}
.social-hint {
  margin: 0;
  font-size: 0.85rem;
  padding: 10px 14px;
  border: 1px dashed var(--c10);
  border-radius: 10px;
}
.social-hint a {
  color: var(--c10);
}
@media (max-width: 600px) {
  .social-links a {
    width: 44px;
    height: 44px;
  }
}
