/* =======================================================
   USER GUIDELINE
   Dipakai oleh: kartu di Pusat Bantuan (faq/index) dan halaman guideline/index.
   Memakai variabel warna dari style.css (--deep-navy, --ocean-blue, --lime-accent).
   ======================================================= */

/* ---------- Kartu di Pusat Bantuan (urutan pertama) ---------- */
.faq-guideline-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 20px 0 8px;
    padding: 26px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0a3566 100%);
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-guideline-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(217, 225, 80, 0.12);
}

.faq-guideline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(4, 32, 61, 0.28);
}

.faq-guideline-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--lime-accent);
    color: var(--deep-navy);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.faq-guideline-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.faq-guideline-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(217, 225, 80, 0.18);
    color: var(--lime-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.faq-guideline-body h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.faq-guideline-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.faq-guideline-cta {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--lime-accent);
    color: var(--deep-navy);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .faq-guideline-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
    }

    .faq-guideline-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Halaman guideline ---------- */
.guide-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #01203a 100%);
    padding: 70px 0 80px;
    text-align: center;
}

.guide-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.guide-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(217, 225, 80, 0.16);
    color: var(--lime-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.guide-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
}

.guide-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
}

.guide-page {
    padding: 40px 0 100px;
    background: #fff;
    color: #222;
}

.guide-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin: 8px 0 0;
}

/* position: sticky tidak jalan karena style.css memasang overflow-x: hidden pada html & body
   (body jadi scroll container). Khusus halaman ini diganti ke clip, yang tidak membuat scroll container. */
html:has(.guide-page),
body:has(.guide-page) {
    overflow-x: clip !important;
}

/* ---- Daftar isi (sidebar, ikut menempel saat scroll) ---- */
.guide-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0;
    padding: 18px 14px;
    border-left: 4px solid var(--lime-accent);
    border-radius: 10px;
    background: #f7f8fa;
}

.guide-toc-label {
    margin: 0 0 12px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
}

.guide-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-toc > ul > li {
    margin-bottom: 4px;
}

.guide-toc ul ul {
    margin: 2px 0 6px 12px;
    padding-left: 10px;
    border-left: 1px solid #e3e6ea;
}

.guide-toc a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--deep-navy);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.guide-toc ul ul a {
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
}

.guide-toc a:hover {
    background: #eceff3;
}

.guide-toc a.is-active {
    background: var(--deep-navy);
    color: #fff;
}

/* Di desktop daftar isi sudah menempel di samping, jadi tombol mengambang tidak diperlukan */
@media (min-width: 961px) {
    .toc-float-btn,
    .toc-float-panel {
        display: none;
    }
}

/* ---- Daftar isi mengambang (memakai gaya .toc-float-* dari style.css) ---- */
.guide-float-panel {
    width: 320px;
}

.guide-float-panel ul ul,
.guide-float-panel .toc-float-sub {
    margin: 0 0 4px 14px;
    padding: 0 0 0 10px;
    border-left: 1px solid #e3e6ea;
}

.guide-float-panel .toc-float-sub .toc-float-link {
    padding: 7px 12px;
    font-size: 0.8rem;
    color: #555;
}

.guide-float-panel .toc-float-link {
    font-weight: 600;
}

.guide-float-panel .toc-float-sub .toc-float-link {
    font-weight: 500;
}

.guide-float-panel .toc-float-link.is-active {
    background: var(--deep-navy);
    color: #fff;
}

/* ---- Isi ---- */
.guide-content {
    min-width: 0;
}

.guide-section {
    padding: 8px 0;
    scroll-margin-top: 100px;
}

.guide-section + .guide-section {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid #eee;
}

.guide-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--deep-navy);
}

.guide-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--deep-navy);
    color: var(--lime-accent);
    font-size: 1rem;
    font-weight: 800;
}

.guide-content p {
    margin: 0 0 16px;
    line-height: 1.75;
    color: #333;
}

.guide-sub {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    scroll-margin-top: 100px;
}

.guide-sub h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.guide-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--lime-accent);
    color: var(--deep-navy);
    font-size: 0.8rem;
    font-weight: 800;
}

.guide-tag-sm {
    padding: 2px 8px;
    font-size: 0.72rem;
}

.guide-subsub {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed #e3e3e3;
    scroll-margin-top: 100px;
}

.guide-h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.guide-subsub > .guide-h4:first-child {
    margin-top: 0;
}

/* Langkah bernomor */
.guide-steps {
    list-style: none;
    counter-reset: guide-step;
    margin: 0 0 18px;
    padding: 0;
}

.guide-steps > li {
    counter-increment: guide-step;
    position: relative;
    margin: 0 0 10px;
    padding: 10px 14px 10px 52px;
    min-height: 44px;
    border-radius: 10px;
    background: #f7f8fa;
    line-height: 1.65;
    color: #333;
}

.guide-steps > li::before {
    content: counter(guide-step);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--deep-navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.guide-steps ul {
    list-style: disc;
    margin: 8px 0 2px 18px;
    padding: 0;
}

.guide-steps ul li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Daftar menu (bagian 2) */
.guide-menu-list {
    list-style: none;
    counter-reset: guide-menu;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.guide-menu-list > li {
    counter-increment: guide-menu;
    position: relative;
    padding: 16px 18px 16px 58px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    line-height: 1.6;
    color: #444;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-menu-list > li:hover {
    border-color: var(--lime-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.guide-menu-list > li::before {
    content: counter(guide-menu);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--deep-navy);
    color: var(--lime-accent);
    font-weight: 800;
}

.guide-menu-list > li strong {
    display: block;
    margin-bottom: 2px;
    color: var(--deep-navy);
}

/* Daftar centang */
.guide-checklist {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.guide-checklist > li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 30px;
    line-height: 1.7;
    color: #333;
}

.guide-checklist > li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lime-accent);
    color: var(--deep-navy);
    font-size: 0.62rem;
}

/* Kotak "Hal yang perlu diperhatikan" */
.guide-callout {
    margin: 18px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--ocean-blue);
    border-radius: 10px;
    background: #eef3fb;
}

.guide-content .guide-callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.guide-callout-title i {
    color: var(--ocean-blue);
}

.guide-callout ul {
    list-style: disc;
    margin: 0 0 0 20px;
    padding: 0;
}

.guide-callout ul li {
    margin-bottom: 8px;
    line-height: 1.65;
    color: #333;
}

.guide-callout ul li:last-child {
    margin-bottom: 0;
}

/* Kotak peringatan (batas waktu / konsekuensi) */
.guide-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 0;
    padding: 16px 20px;
    border: 1px solid #f3d98b;
    border-left: 4px solid #e0a800;
    border-radius: 10px;
    background: #fff8e1;
}

.guide-alert > i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #c68a00;
    font-size: 1.05rem;
}

.guide-content .guide-alert p {
    margin: 0;
    line-height: 1.7;
    color: #4a3b00;
}

/* Pilihan metode */
.guide-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 18px;
}

.guide-option {
    padding: 18px 20px;
    border: 1px solid #e3e6ea;
    border-top: 4px solid var(--lime-accent);
    border-radius: 12px;
    background: #fff;
}

.guide-option h5 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--deep-navy);
}

.guide-content .guide-option p {
    margin: 0;
    font-size: 0.93rem;
}

/* Tips (bagian 8) */
.guide-tips {
    list-style: none;
    counter-reset: guide-tip;
    margin: 0;
    padding: 0;
}

.guide-tips > li {
    counter-increment: guide-tip;
    position: relative;
    margin-bottom: 12px;
    padding: 16px 18px 16px 62px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    line-height: 1.65;
    color: #444;
}

.guide-tips > li::before {
    content: counter(guide-tip);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lime-accent);
    color: var(--deep-navy);
    font-weight: 800;
}

.guide-tips > li strong {
    color: var(--deep-navy);
}

/* Navigasi bawah */
.guide-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.guide-footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-back {
    background: var(--deep-navy);
    color: #fff;
}

.guide-back:hover {
    background: var(--ocean-blue);
}

.guide-top {
    border: 1px solid #ddd;
    color: var(--deep-navy);
}

.guide-top:hover {
    border-color: var(--lime-accent);
    background: #fafbe8;
}

/* ---- Responsif ---- */
@media (max-width: 960px) {
    /* Layar kecil: daftar isi pindah ke atas artikel, dan tombol mengambang (seperti di Terms) yang dipakai */
    .guide-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .guide-toc {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 8px;
    }

    .guide-toc > ul {
        columns: 2;
        column-gap: 28px;
    }

    .guide-toc > ul > li {
        break-inside: avoid;
    }
}

@media (max-width: 600px) {
    .guide-toc > ul {
        columns: 1;
    }
}

@media (max-width: 700px) {
    .guide-hero {
        padding: 50px 0 56px;
    }

    .guide-hero h1 {
        font-size: 1.8rem;
    }

    .guide-section h2 {
        font-size: 1.3rem;
    }

    .guide-sub {
        padding: 18px 16px;
    }

    .guide-menu-list,
    .guide-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-footer-nav a {
        width: 100%;
        justify-content: center;
    }
}
