/* ============================================================
   SIMAS - Website Panduan (Sesi 1)
   Tema: ungu elegan bernuansa Islami
   File ini BARU dan tidak mengubah css/style.css lama.
   ============================================================ */

:root {
  /* Warna utama ungu */
  --ungu-deep: #241239;
  --ungu-tua: #3d1f5e;
  --ungu-primer: #5b2a86;
  --ungu-medium: #7a4ba8;
  --ungu-soft: #b79ad9;
  --ungu-pastel: #ede4f7;
  --ungu-pastel-2: #f6f1fc;

  /* Netral + aksen */
  --putih: #ffffff;
  --tinta: #2e2440;
  --abu: #6f6587;
  --garis: #e6ddf2;
  --emas: #c9a86a;
  --emas-soft: #f7ecd4;

  /* Bentuk & bayangan */
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 16px 44px rgba(61, 31, 94, 0.12);
  --shadow-card: 0 10px 28px rgba(61, 31, 94, 0.1);

  --font-head: "Poppins", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Kerangka halaman: body jadi kolom flex setinggi layar agar footer
   selalu berada setelah seluruh konten, berapa pun panjang isinya. */
body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--putih);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ungu-tua); line-height: 1.25; letter-spacing: -0.01em; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ---------- Topbar ---------- */
.simas-topbar {
  background: var(--ungu-deep);
  color: #e4d9f2;
  font-size: 13px;
  padding: 8px 0;
}
.simas-topbar i { color: var(--emas); }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emas); display: inline-block; margin: 0 10px; }

/* ---------- Navigasi ---------- */
.simas-nav { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--garis); box-shadow: 0 4px 22px rgba(61,31,94,.06); }
.simas-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ungu-tua), var(--ungu-medium)); position: relative; overflow: hidden; flex-shrink: 0; }
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A86A' stroke-opacity='0.4'%3E%3Cpath d='M22 5 L25 17 L37 22 L25 27 L22 39 L19 27 L7 22 L19 17 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.brand-text strong { display: block; font-family: var(--font-head); color: var(--ungu-tua); letter-spacing: .05em; line-height: 1; }
.brand-text small { color: var(--abu); font-size: 11px; }
.simas-menu .nav-link { font-weight: 600; font-size: 14px; color: #3c3252; margin: 0 4px; border-radius: 999px; padding: 8px 14px !important; }
.simas-menu .nav-link:hover { color: var(--ungu-primer); background: var(--ungu-pastel-2); }
.simas-menu .nav-link.active { color: #fff; background: var(--ungu-primer); }

/* ---------- Tombol ---------- */
.btn-simas-primary { background: var(--ungu-primer); border: 1px solid var(--ungu-primer); color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 700; box-shadow: 0 10px 24px rgba(91,42,134,.3); transition: transform .2s, box-shadow .2s, background .2s; }
.btn-simas-primary:hover { background: var(--ungu-tua); border-color: var(--ungu-tua); color: #fff; transform: translateY(-1px); }
.btn-simas-gold { background: linear-gradient(135deg, var(--emas), #b08a3e); border: 1px solid transparent; color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 700; box-shadow: 0 10px 24px rgba(201,168,106,.35); transition: transform .2s; }
.btn-simas-gold:hover { color: #fff; transform: translateY(-1px); }
.btn-simas-outline { border: 1px solid #d5c8ea; background: #fff; color: var(--ungu-tua); border-radius: 999px; padding: 12px 26px; font-weight: 700; transition: border-color .2s, transform .2s; }
.btn-simas-outline:hover { border-color: var(--ungu-primer); color: var(--ungu-primer); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.simas-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ungu-pastel-2) 0%, #fbf8ff 55%, #fff 100%); }
.simas-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%235B2A86' stroke-opacity='0.10'%3E%3Cpath d='M48 10 L55 41 L86 48 L55 55 L48 86 L41 55 L10 48 L41 41 Z'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; padding: 72px 0 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--garis); border-radius: 999px; padding: 7px 16px 7px 8px; font-size: 13px; font-weight: 700; color: var(--ungu-tua); box-shadow: 0 6px 18px rgba(61,31,94,.08); }
.hero-badge .bd-icon { min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--ungu-tua); color: var(--emas); padding: 0 8px; }
.hero-title { font-size: clamp(30px, 4.6vw, 50px); margin: 20px 0 16px; }
.hero-title .hl { background: linear-gradient(135deg, var(--ungu-primer), var(--ungu-medium)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--abu); font-size: 16.5px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Visual hero: kartu + siluet masjid + lentera */
.hero-visual { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.hero-card-top { background: linear-gradient(135deg, var(--ungu-tua), var(--ungu-primer) 60%, var(--ungu-medium)); color: #fff; padding: 26px; position: relative; overflow: hidden; }
.hero-card-top::after { content: ""; position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; border: 1.5px solid rgba(201,168,106,.5); border-radius: 50%; box-shadow: 0 0 0 18px rgba(201,168,106,.12), 0 0 0 36px rgba(201,168,106,.07); }
.mosque-sil { display: block; width: 100%; height: auto; margin-top: 10px; opacity: .95; }
.hero-card-body { padding: 20px 22px 24px; }
.mini-row { display: flex; align-items: center; gap: 12px; background: var(--ungu-pastel-2); border: 1px solid var(--garis); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mini-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--garis); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-card); font-size: 13px; animation: floatY 4.5s ease-in-out infinite; }
.float-chip strong { display: block; line-height: 1.2; }
.float-chip small { color: var(--abu); }
.chip-1 { left: -14px; bottom: 42px; }
.chip-2 { right: -10px; top: 36px; animation-delay: 1.2s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Section umum ---------- */
.simas-section { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ungu-primer); background: var(--ungu-pastel); border-radius: 999px; padding: 7px 15px; }
.eyebrow i { color: var(--emas); }
.sec-title { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 10px; }
.sec-sub { color: var(--abu); max-width: 680px; }

/* ---------- Kartu panduan ---------- */
.panduan-card { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 26px 24px; height: auto; display: flex; flex-direction: column; gap: 10px; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; overflow: hidden; }
/* Kartu tunggal dalam satu kolom grid boleh memenuhi tinggi kolom agar
   kartu sebaris sama tinggi. Bila ada kartu lain di kolom yang sama,
   tinggi 100% membuat kartu meluber menimpa footer, jadi dibatasi. */
.panduan-card:only-child { height: 100%; }
.panduan-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--ungu-primer), var(--emas)); opacity: 0; transition: opacity .22s; }
.panduan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: #d3c2ec; }
.panduan-card:hover::before { opacity: 1; }
.panduan-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--ungu-primer), var(--ungu-medium)); box-shadow: 0 8px 18px rgba(91,42,134,.28); }
.panduan-icon.gold { background: linear-gradient(135deg, var(--emas), #a8823d); box-shadow: 0 8px 18px rgba(201,168,106,.35); }
.panduan-card h3 { font-size: 18px; margin: 6px 0 0; }
.panduan-card p { color: var(--abu); font-size: 14.5px; margin: 0; flex: 1; }
.card-link { font-weight: 700; font-size: 14px; color: var(--ungu-primer); display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.card-link:hover { color: var(--ungu-tua); }
.badge-segera { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--emas-soft); color: #8a6d2b; border: 1px solid #e8d5a8; padding: 4px 10px; border-radius: 999px; }

/* ---------- Info strip ---------- */
.info-strip { background: var(--ungu-tua); color: #e9def7; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; }
.info-strip::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A86A' stroke-opacity='0.22'%3E%3Cpath d='M48 10 L55 41 L86 48 L55 55 L48 86 L41 55 L10 48 L41 41 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.info-strip h2 { color: #fff; }
.info-strip p { color: #cbbde2; }
.info-point { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; }
.info-point i { color: var(--emas); margin-top: 4px; }

/* ---------- Halaman isi / stub ---------- */
.page-hero { background: linear-gradient(135deg, var(--ungu-tua), var(--ungu-primer)); color: #fff; border-radius: 0 0 34px 34px; padding: 54px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10'%3E%3Cpath d='M48 10 L55 41 L86 48 L55 55 L48 86 L41 55 L10 48 L41 41 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d9cbee; }
.prose-simas { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); }
.prose-simas h2 { font-size: 20px; margin-top: 26px; }
.prose-simas h2:first-child { margin-top: 0; }
.prose-simas li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.simas-footer { background: var(--ungu-deep); color: #d9cdea; margin-top: 40px; position: relative; overflow: hidden; flex-shrink: 0; }
.footer-ornament { height: 6px; background: linear-gradient(90deg, var(--ungu-medium), var(--emas), var(--ungu-medium)); }
.simas-footer .container { padding-top: 48px; padding-bottom: 10px; }
.footer-title { color: #fff; font-size: 15px; font-family: var(--font-body); font-weight: 800; margin-bottom: 14px; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-menu a { color: #d9cdea; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-sub { color: #bda9d9; }
.footer-desc { color: #bda9d9; font-size: 14px; max-width: 380px; }
.footer-logo { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding: 16px 0; font-size: 13px; color: #bda9d9; }

/* ---------- Reveal animasi ringan ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
  .hero-inner { padding: 52px 0 48px; }
  .chip-1 { left: 6px; }
  .chip-2 { right: 6px; }
  .simas-section { padding: 48px 0; }
}
@media (max-width: 575.98px) {
  .simas-topbar { font-size: 12px; }
  .hero-actions .btn { width: 100%; }
  .info-strip { padding: 26px 22px; }
  .float-chip { position: static; margin-top: 12px; }
  .hero-visual { display: grid; gap: 4px; }
}

/* ============================================================
   SESI 2 - tambahan: breadcrumb, artikel, ilustrasi, pencarian, FAQ
   ============================================================ */
.simas-dropdown { border: 1px solid var(--garis); border-radius: 14px; box-shadow: var(--shadow-card); padding: 8px; }
.simas-dropdown .dropdown-item { border-radius: 10px; font-size: 14px; font-weight: 600; color: #3c3252; padding: 9px 12px; }
.simas-dropdown .dropdown-item:hover { background: var(--ungu-pastel-2); color: var(--ungu-primer); }
.simas-search-nav .form-control { border-radius: 999px; border-color: var(--garis); font-size: 13.5px; min-width: 170px; }
.simas-search-nav .form-control:focus { border-color: var(--ungu-primer); box-shadow: 0 0 0 .2rem rgba(91,42,134,.12); }
.simas-breadcrumb { background: transparent; padding: 0; margin: 0 0 14px; font-size: 13.5px; }
.simas-breadcrumb a { color: var(--ungu-primer); font-weight: 600; }
.simas-breadcrumb .breadcrumb-item.active { color: var(--abu); font-weight: 600; }
.simas-search-box .input-group { background: #fff; border: 1px solid var(--garis); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-card); }
.simas-search-box .input-group-text { background: transparent; border: 0; color: var(--ungu-primer); padding-left: 16px; }
.simas-search-box .form-control { border: 0; background: transparent; }
.simas-search-box .form-control:focus { box-shadow: none; }
.simas-search-box .btn { border-radius: 999px; padding: 10px 28px; }
.ilustrasi-tutorial { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--garis); background: linear-gradient(135deg, var(--ungu-tua), var(--ungu-primer) 60%, var(--ungu-medium)); color: #fff; position: relative; }
.ilustrasi-pattern { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.12'%3E%3Cpath d='M48 10 L55 41 L86 48 L55 55 L48 86 L41 55 L10 48 L41 41 Z'/%3E%3C/g%3E%3C/svg%3E"); }
.ilustrasi-isi { padding: 30px 28px 10px; text-align: center; }
.ilustrasi-ikon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 12px; font-size: 24px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: var(--emas-soft); }
.ilustrasi-isi strong { display: block; font-size: 17px; }
.ilustrasi-isi small { color: #d9cbee; display: block; max-width: 420px; margin: 6px auto 0; }
.alert-contoh { background: var(--emas-soft); border: 1px solid #e8d5a8; color: #6d5420; border-radius: 14px; font-size: 14px; }
.meta-kecil { font-size: 12px; color: var(--abu); font-weight: 600; }
.artikel-layout { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(22px, 4vw, 40px); }
.artikel-layout h2 { font-size: 20px; margin-top: 28px; }
.langkah-list { counter-reset: langkah; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.langkah-list > li { display: flex; gap: 14px; background: var(--ungu-pastel-2); border: 1px solid var(--garis); border-radius: 16px; padding: 16px 18px; counter-increment: langkah; }
.langkah-list > li::before { content: counter(langkah); flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--ungu-primer), var(--ungu-medium)); }
.langkah-list strong { display: block; color: var(--ungu-tua); }
.langkah-list p { margin: 4px 0 0; color: #4a4260; font-size: 15px; }
.tips-box { background: #fff; border: 1px dashed #c9b3e6; border-radius: 16px; padding: 18px 20px; margin-top: 20px; }
.tips-box h3 { font-size: 16px; }
.tips-box ul { margin: 8px 0 0; padding-left: 20px; color: #4a4260; font-size: 14.5px; }
.artikel-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.faq-accordion .accordion-item { border: 1px solid var(--garis); border-radius: 16px !important; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.faq-accordion .accordion-button { font-weight: 700; color: var(--ungu-tua); font-size: 15.5px; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--ungu-pastel-2); color: var(--ungu-primer); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(91,42,134,.12); }
.faq-accordion .accordion-body { color: #4a4260; font-size: 15px; }
.chip-kategori { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--garis); background: #fff; color: var(--ungu-tua); font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 8px 16px; transition: all .2s; }
.chip-kategori:hover { border-color: var(--ungu-primer); color: var(--ungu-primer); }
.chip-kategori.aktif { background: var(--ungu-primer); border-color: var(--ungu-primer); color: #fff; }
.footer-note { font-size: 12.5px; color: #bda9d9; margin-top: 14px; }

/* ============================================================
   SESI 3 - tambahan: logo dinamis, gambar artikel, empty state, sumber data
   ============================================================ */
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: var(--ungu-pastel-2); padding: 4px; flex-shrink: 0; }
.artikel-gambar { margin: 20px 0 4px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--garis); background: var(--ungu-pastel-2); }
.artikel-gambar img { display: block; width: 100%; height: auto; }
.artikel-isi :where(h2, h3) { margin-top: 26px; }
.artikel-isi :where(p) { color: #4a4260; }
.artikel-isi :where(ul, ol):not(.langkah-list) { padding-left: 22px; color: #4a4260; }
.kosong-state { text-align: center; background: #fff; border: 1px dashed #cdbbe8; border-radius: var(--radius); padding: 40px 26px; box-shadow: var(--shadow-card); }
.kosong-state .kosong-ikon { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; font-size: 24px; color: var(--ungu-primer); background: var(--ungu-pastel); }
.kosong-state h3 { font-size: 19px; margin-bottom: 6px; }
.kosong-state p { color: var(--abu); max-width: 460px; margin: 0 auto 16px; }
.notice-sumber { background: var(--ungu-pastel-2); border: 1px solid var(--garis); border-left: 4px solid var(--emas); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; color: #4a4260; margin-bottom: 18px; }
.notice-sumber code { background: #fff; border: 1px solid var(--garis); border-radius: 6px; padding: 1px 6px; color: var(--ungu-primer); }

/* ============================================================
   SESI 9 - penyempurnaan pengalaman pengguna dan desain
   Fokus: konsistensi komponen, ornamen Islami proporsional,
   keterbacaan, dan kenyamanan sentuh di layar kecil.
   ============================================================ */
:root {
  --emas-lembut: #d8bc85;
  --emas-tipis: #fbf4e4;
  --bg-halaman: #fbf9fe;
  --ring-fokus: 0 0 0 3px rgba(201, 168, 106, 0.42);
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  background: var(--bg-halaman);
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; min-width: 0; }
img, svg { max-width: 100%; }
p, li, td, th, a, strong, small, h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- Aksesibilitas dasar ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--ungu-tua);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; color: #fff; }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.page-link:focus-visible,
.accordion-button:focus-visible {
  outline: 2px solid var(--emas);
  outline-offset: 3px;
}

/* ---------- Tombol dan form yang konsisten ---------- */
.btn-simas-primary,
.btn-simas-gold,
.btn-simas-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 11px 24px;
  font-size: 14.5px;
  line-height: 1.15;
}
.btn-simas-primary.btn-sm,
.btn-simas-gold.btn-sm,
.btn-simas-outline.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13.5px;
  box-shadow: none;
}
.btn-simas-primary:focus-visible,
.btn-simas-gold:focus-visible,
.btn-simas-outline:focus-visible {
  box-shadow: var(--ring-fokus) !important;
}
/* Teks ungu tua pada emas lembut agar kontras tetap nyaman dibaca. */
.btn-simas-gold {
  background: linear-gradient(135deg, #e6cd98, var(--emas));
  color: var(--ungu-deep);
}
.btn-simas-gold:hover {
  background: linear-gradient(135deg, #f0dbaa, var(--emas-lembut));
  color: var(--ungu-deep);
}
/* Tombol Login Admin di sisi kanan navigasi utama. */
.btn-simas-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(201, 168, 106, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ungu-tua), var(--ungu-primer));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(61, 31, 94, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-simas-login:hover,
.btn-simas-login:focus {
  background: linear-gradient(135deg, var(--ungu-primer), var(--ungu-medium));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 42, 134, 0.3);
}
.btn-simas-login:focus-visible { box-shadow: var(--ring-fokus) !important; }
.btn-simas-login i { color: var(--emas-lembut); }
@media (max-width: 991.98px) {
  .btn-simas-login { width: 100%; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-simas-login { transition: none; }
}
.form-control,
.form-select {
  border: 1px solid var(--garis);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 14.5px;
  color: var(--tinta);
  background-color: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ungu-medium);
  box-shadow: 0 0 0 0.2rem rgba(91, 42, 134, 0.12);
}
.form-label { font-weight: 700; font-size: 13.5px; color: var(--ungu-tua); }
.input-group-text {
  border-color: var(--garis);
  background: var(--ungu-pastel-2);
  color: var(--ungu-primer);
}
.simas-search-box .form-control { padding: 0.5rem 0.55rem; }
.simas-search-nav .form-control { width: 190px; min-width: 0; }

/* ---------- Notifikasi ---------- */
.alert-contoh,
.notice-sumber {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.alert-contoh i,
.notice-sumber i { margin-top: 3px; flex-shrink: 0; }
.alert-contoh { box-shadow: 0 6px 18px rgba(201, 168, 106, 0.12); }
.alert-contoh strong { color: #5c4717; }

/* ---------- Navigasi aktif ---------- */
.simas-menu .nav-link.active { position: relative; }
.simas-menu .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emas-lembut);
  transform: translateX(-50%);
}
.simas-dropdown .dropdown-item.active {
  background: var(--ungu-pastel);
  color: var(--ungu-primer);
  font-weight: 800;
}
.simas-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; }
.page-hero .simas-breadcrumb a { color: rgba(255, 255, 255, 0.9); }
.page-hero .simas-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .simas-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.55); }
.page-hero .simas-breadcrumb .breadcrumb-item.active { color: var(--emas-lembut); }

/* ---------- Ornamen mihrab, lentera, dan pola geometri ---------- */
.page-hero::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -52px;
  width: 320px;
  height: 320px;
  border: 1.5px solid rgba(201, 168, 106, 0.38);
  border-radius: 170px 170px 18px 18px;
  box-shadow: 0 0 0 24px rgba(201, 168, 106, 0.07), 0 0 0 48px rgba(201, 168, 106, 0.04);
  pointer-events: none;
}
.page-hero > .container { z-index: 2; }
.hero-lantern {
  position: absolute;
  top: -22px;
  right: 26px;
  width: 44px;
  height: auto;
  z-index: 4;
  transform-origin: 50% 0;
  animation: lenteraAyun 7s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(61, 31, 94, 0.18));
}
@keyframes lenteraAyun {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.sec-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emas), rgba(201, 168, 106, 0));
}
.text-center .sec-title::after { margin-left: auto; margin-right: auto; }
.artikel-layout { position: relative; overflow: hidden; }
.artikel-layout::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ungu-primer), var(--emas), var(--ungu-primer));
}
.simas-footer::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201, 168, 106, 0.12);
  border-radius: 120px 120px 0 0;
  pointer-events: none;
}
.simas-footer .container,
.footer-bottom { position: relative; z-index: 1; }
.simas-footer .row > [class*="col-"] { min-width: 0; }
.footer-menu { grid-template-columns: minmax(0, 1fr); }
.footer-menu li { min-width: 0; }
.footer-menu.footer-info li,
.footer-menu.footer-info a { overflow-wrap: anywhere; word-break: break-word; }
.footer-bottom span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Kartu dan cuplikan pencarian ---------- */
.panduan-card > * { position: relative; z-index: 1; }
.panduan-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 168, 106, 0.16);
  border-radius: 60px 60px 0 0;
  transform: rotate(38deg);
  pointer-events: none;
  z-index: 0;
}
.badge-segera { text-decoration: none; color: #7b5f24; }
.badge-segera:hover { color: #5c4717; background: #f2e2bf; }
.card-cuplikan { color: #5a5270 !important; font-size: 14px !important; }
mark.sorot {
  background: var(--emas-tipis);
  color: #5b4512;
  padding: 0 0.12em;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(201, 168, 106, 0.4);
}
.chip-angka {
  display: inline-block;
  min-width: 20px;
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(91, 42, 134, 0.08);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.chip-kategori.aktif .chip-angka { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hasil-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--garis);
}
.daftar-artikel { scroll-margin-top: 96px; }

/* ---------- Artikel mini (terkait) ---------- */
.artikel-mini-list { display: grid; gap: 10px; margin: 4px 0 6px; }
.artikel-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--garis);
  border-radius: 14px;
  background: var(--ungu-pastel-2);
  color: var(--tinta);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.artikel-mini:hover {
  border-color: #c9b3e6;
  background: #fff;
  color: var(--tinta);
  transform: translateY(-1px);
}
.artikel-mini-ikon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--ungu-primer), var(--ungu-medium));
}
.artikel-mini-teks { flex: 1; min-width: 0; }
.artikel-mini-teks strong { display: block; font-size: 13.5px; line-height: 1.35; color: var(--ungu-tua); }
.artikel-mini-teks small { display: block; color: var(--abu); font-size: 11.5px; margin-top: 2px; }
.artikel-mini-panah { color: var(--ungu-soft); font-size: 12px; flex-shrink: 0; }

/* ---------- Pagination ---------- */
.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
}
.simas-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.simas-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--garis);
  border-radius: 12px;
  background: #fff;
  color: var(--ungu-tua);
  font-size: 14px;
  font-weight: 700;
}
.simas-pagination .page-link:hover { background: var(--ungu-pastel-2); border-color: #c9b3e6; color: var(--ungu-primer); }
.simas-pagination .active .page-link { background: var(--ungu-primer); border-color: var(--ungu-primer); color: #fff; }
.simas-pagination .disabled .page-link { background: var(--ungu-pastel-2); color: #a99cbc; }
.pagination-info { margin: 0; font-size: 12.5px; color: var(--abu); font-weight: 600; }

/* ---------- Tabel responsif ---------- */
.table-responsive { -webkit-overflow-scrolling: touch; }
.table-kategori-wrap { border: 1px solid var(--garis); border-radius: 14px; overflow-x: auto; overflow-y: hidden; }
.table-simas { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table-simas th,
.table-simas td { padding: 11px 12px; border-bottom: 1px solid var(--garis); vertical-align: middle; }
.table-simas thead th {
  background: var(--ungu-pastel-2);
  color: var(--ungu-tua);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-simas tbody tr:last-child td { border-bottom: 1px solid var(--garis); }
.table-simas tfoot th,
.table-simas tfoot td { background: var(--emas-tipis); border-bottom: 0; font-weight: 800; color: var(--ungu-tua); }
.table-simas .baris-aktif td { background: var(--ungu-pastel); }
.kategori-tabel { display: flex; align-items: center; gap: 8px; color: var(--ungu-tua); font-weight: 600; line-height: 1.35; }
.kategori-tabel:hover { color: var(--ungu-primer); }
.kategori-tabel i { width: 16px; flex-shrink: 0; text-align: center; color: var(--ungu-primer); }
.kategori-tabel span { min-width: 0; }
.angka-tabel {
  display: inline-block;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--ungu-pastel);
  color: var(--ungu-tua);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.artikel-isi table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.artikel-isi th,
.artikel-isi td { border: 1px solid var(--garis); padding: 10px 12px; vertical-align: top; }
.artikel-isi thead th { background: var(--ungu-pastel-2); }
.artikel-isi img { border-radius: 12px; }
.artikel-isi blockquote { border-left: 4px solid var(--emas); background: var(--emas-tipis); padding: 12px 16px; border-radius: 0 12px 12px 0; color: #4a4260; }
.artikel-isi a { color: var(--ungu-primer); text-decoration: underline; }
.artikel-isi pre { max-width: 100%; overflow-x: auto; padding: 12px 14px; border-radius: 12px; background: var(--ungu-pastel-2); border: 1px solid var(--garis); font-size: 13px; }
.artikel-isi code { background: var(--ungu-pastel-2); border: 1px solid var(--garis); border-radius: 5px; padding: 1px 5px; color: var(--ungu-primer); }
.artikel-isi pre code { border: 0; padding: 0; background: transparent; }

/* ---------- Detail artikel ---------- */
.artikel-meta-hero { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: #e4d9f2; }
.artikel-meta-hero i { color: var(--emas-lembut); }
.artikel-sekitar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.artikel-sekitar-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--garis);
  border-radius: 14px;
  background: var(--ungu-pastel-2);
  color: var(--tinta);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.artikel-sekitar-item:hover { border-color: #c9b3e6; background: #fff; color: var(--tinta); }
.artikel-sekitar-item strong { display: block; margin-top: 4px; color: var(--ungu-tua); font-size: 14px; line-height: 1.4; }
.artikel-sekitar-next { text-align: right; }
@media (min-width: 992px) {
  .sidebar-sticky { position: sticky; top: 96px; }
}
.tips-cari { margin: 0; padding-left: 20px; color: #4a4260; font-size: 14px; display: grid; gap: 6px; }
.tips-cari strong { color: var(--ungu-tua); }

/* ---------- Empty state pencarian ---------- */
.kosong-cari { padding: 36px 24px; }
.kosong-cari .saran-cari {
  text-align: left;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #cdbbe8;
}
.kosong-cari .saran-cari h4 { font-size: 15px; color: var(--ungu-tua); margin-bottom: 10px; }
.kosong-cari .artikel-mini + .artikel-mini { margin-top: 8px; }

/* ---------- FAQ interaktif ---------- */
.faq-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.faq-search { flex: 1 1 280px; min-width: 0; }
.faq-search .input-group {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: 999px;
  padding: 5px;
  box-shadow: var(--shadow-card);
}
.faq-search .input-group-text { background: transparent; border: 0; color: var(--ungu-primer); padding-left: 14px; }
.faq-search .form-control { border: 0; background: transparent; box-shadow: none; min-width: 0; }
.faq-search .form-control:focus { box-shadow: none; }
.faq-search .btn { border-radius: 999px; }
.faq-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jumlah { margin: 8px 0 0; }
.faq-accordion .accordion-button { display: flex; align-items: center; gap: 12px; }
.faq-nomor {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--ungu-tua);
  background: var(--ungu-pastel);
}
.faq-accordion .accordion-button:not(.collapsed) .faq-nomor { background: var(--ungu-primer); color: #fff; }
.faq-accordion .accordion-button::after { margin-left: auto; flex-shrink: 0; }
.faq-kosong { margin-top: 16px; }

/* ---------- Halaman 404 ---------- */
.notfound-card { padding: clamp(24px, 4vw, 40px); }
.notfound-visual { position: relative; text-align: center; padding-top: 8px; }
.notfound-arch {
  position: relative;
  width: min(280px, 82%);
  margin: 0 auto;
  padding: 34px 20px 26px;
  border: 1.5px solid rgba(201, 168, 106, 0.5);
  border-bottom: 0;
  border-radius: 150px 150px 0 0;
  background: linear-gradient(180deg, var(--ungu-pastel-2), #fff);
  overflow: hidden;
}
.notfound-arch::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%235B2A86' stroke-opacity='0.14'%3E%3Cpath d='M36 7 L42 30 L65 36 L42 42 L36 65 L30 42 L7 36 L30 30 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.notfound-angka {
  position: relative;
  display: block;
  font-family: var(--font-head);
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: var(--ungu-primer);
  letter-spacing: 0.02em;
}
.notfound-ket {
  position: relative;
  display: block;
  margin-top: 6px;
  color: #8a6d2b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.notfound-masjid { display: block; width: min(320px, 92%); margin: -2px auto 0; color: var(--ungu-soft); }
.notfound-lentera {
  position: absolute;
  top: -6px;
  right: 6%;
  width: 42px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(61, 31, 94, 0.12));
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.page-hero-404 { padding-bottom: 46px; }
.ilustrasi-isi { position: relative; z-index: 1; }
.ilustrasi-tutorial::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto;
  height: 62%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
  pointer-events: none;
}

/* ---------- Modul kategori ---------- */
.modul-link { display: flex; align-items: center; gap: 8px; }
.modul-link > span:not(.modul-angka) { flex: 1; min-width: 0; }
.modul-angka {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ungu-pastel);
  color: var(--ungu-tua);
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
}

/* ---------- Penyesuaian responsif ---------- */
@media (max-width: 1199.98px) {
  .float-chip { display: none; }
}
@media (max-width: 991.98px) {
  .page-hero::after { right: -90px; width: 240px; height: 240px; opacity: 0.7; }
  .page-hero { padding: 46px 0 52px; }
  .hero-lantern { right: 12px; width: 36px; top: -16px; }
  .sidebar-sticky { position: static; }
}
@media (max-width: 767.98px) {
  .simas-section { padding: 42px 0; }
  .page-hero h1, .hero-title { font-size: clamp(27px, 8vw, 38px); }
  .sec-title { font-size: clamp(22px, 6vw, 28px); }
  .page-hero p { font-size: 14.5px; }
  .simas-search-nav .form-control { width: 100%; }
  .simas-search-nav .btn { min-width: 52px; }
  .hero-inner { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 575.98px) {
  .simas-topbar .container { flex-wrap: wrap; gap: 4px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 10.5px; }
  .page-hero::after { display: none; }
  .hero-lantern { display: none; }
  .chip-kategori { padding: 7px 12px; font-size: 12.5px; min-height: 36px; }
  .simas-search-box .btn { padding: 9px 16px; }
  .simas-search-box .input-group { padding: 4px; }
  .artikel-sekitar { grid-template-columns: 1fr; }
  .artikel-sekitar-next { text-align: left; }
  .notfound-lentera { display: none; }
  .notfound-actions .btn { width: 100%; }
  .faq-search, .faq-aksi { flex: 1 1 100%; width: 100%; }
  .faq-aksi .btn { flex: 1 1 auto; }
  .table-simas { min-width: 250px; }
  .artikel-layout { padding: 20px 16px; }
  .panduan-card { padding: 22px 18px; }
  .simas-pagination .page-link { min-width: 38px; min-height: 38px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-lantern { animation: none; }
  .panduan-card, .artikel-mini, .artikel-sekitar-item { transition: none; }
}

