/* ==========================================================
   Layout B — Hero Banner + Sub-menu Kiri (halaman dalam portal).
   Warna & gaya mengikuti header-rb.css dan home-rb.css.
   ========================================================== */
body.lb-page {
    --rb-navy: #0b3d7a;
    --rb-blue: #1a5dab;
    --rb-orange: #f28c1b;
    --rb-orange-dark: #d9531a;
    --rb-ink: #1f2d3d;
    --rb-muted: #5b6b80;
    --rb-line: #dfe5ee;
    --rb-soft: #f4f7fb;
    background: var(--rb-soft);
}
.lb-page .lb-hero, .lb-page .lb-main { font-family: "Poppins", "Roboto", Arial, sans-serif; color: var(--rb-ink); }
.lb-page .lb-hero *, .lb-page .lb-main * { box-sizing: border-box; }
.lb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.lb-hero {
    min-height: 210px;
    display: flex;
    align-items: center;
    padding: 30px 0 76px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(11, 61, 122, .97) 0%, rgba(11, 61, 122, .92) 50%, rgba(11, 61, 122, .55) 100%),
        url(../banner/rsz_banner1.jpg) right center / cover no-repeat;
}
.lb-hero .lb-wrap { width: 100%; }
.lb-crumb { font-size: 13px; color: #d6e4f5; margin-bottom: 8px; }
.lb-crumb a { color: #fff; text-decoration: none; }
.lb-crumb a:hover, .lb-crumb a:focus-visible { color: var(--rb-orange); }
.lb-crumb .sep { margin: 0 7px; opacity: .7; }
.lb-hero h1 {
    font-family: inherit;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    max-width: 920px;
}
.lb-hero h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--rb-orange);
    margin-top: 14px;
}

/* ---------- Grid ---------- */
.lb-main { margin-top: -52px; padding-bottom: 50px; }
.lb-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

/* ---------- Sidebar ---------- */
.lb-box {
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(11, 61, 122, .07);
    margin-bottom: 22px;
    overflow: hidden;
}
.lb-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--rb-navy);
    border-bottom: 1px solid var(--rb-line);
}
.lb-box-title::before { content: ""; width: 5px; height: 18px; border-radius: 3px; background: var(--rb-orange); flex: none; }
.lb-box-title.is-primary { background: var(--rb-navy); color: #fff; border-bottom: 0; }

.lb-submenu a,
.lb-submenu summary {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--rb-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rb-line);
    border-left: 3px solid transparent;
    transition: background .2s, color .2s;
}
.lb-submenu > :last-child,
.lb-submenu > details:last-child > summary { border-bottom: 0; }
.lb-submenu a:hover, .lb-submenu a:focus-visible,
.lb-submenu summary:hover, .lb-submenu summary:focus-visible { background: var(--rb-soft); color: var(--rb-blue); }
.lb-submenu a.active {
    background: #fff4e6;
    color: var(--rb-navy);
    font-weight: 600;
    border-left-color: var(--rb-orange);
}

/* Dropdown bertingkat (Laporan Kinerja ▸ Sekretariat Jenderal / Lembaga ▸ Tahun) */
.lb-submenu summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.lb-submenu summary::-webkit-details-marker { display: none; }
.lb-submenu summary i { font-size: 10px; color: var(--rb-muted); transition: transform .2s; }
.lb-submenu details[open] > summary { color: var(--rb-navy); font-weight: 600; }
.lb-submenu details[open] > summary i { transform: rotate(90deg); color: var(--rb-orange); }
.lb-drop-body { background: #fafbfd; border-bottom: 1px solid var(--rb-line); }
.lb-drop-body > :last-child,
.lb-drop-body > details:last-child > summary { border-bottom: 0; }
.lb-drop-body .lb-depth-1 { padding-left: 32px; }
.lb-drop-body .lb-depth-2 { padding-left: 46px; font-size: 12.5px; }
.lb-drop-body .lb-drop-body { background: #f3f6fa; }

.lb-popular { list-style: none; margin: 0; padding: 14px 18px 4px; }
.lb-popular li { display: flex; gap: 12px; margin-bottom: 14px; }
.lb-popular .num {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--rb-navy);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-popular li:first-child .num { background: var(--rb-orange); }
.lb-popular a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--rb-ink);
    text-decoration: none;
}
.lb-popular a:hover, .lb-popular a:focus-visible { color: var(--rb-orange-dark); }
.lb-popular li > div { min-width: 0; }
.lb-popular .views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 2px 9px 2px 7px;
    border-radius: 999px;
    background: var(--rb-soft);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--rb-muted);
}
.lb-popular .views svg { width: 13px; height: 13px; flex: none; color: var(--rb-orange); }

.lb-archive { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; }
.lb-archive a {
    border: 1px solid var(--rb-line);
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rb-navy);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.lb-archive a:hover, .lb-archive a:focus-visible { background: var(--rb-orange); border-color: var(--rb-orange); color: #fff; }

/* ---------- Konten ---------- */
.lb-content {
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(11, 61, 122, .07);
    padding: 28px 32px;
    min-height: 380px;
    font-size: 14px;
    line-height: 1.75;
    color: #3a4757;
    overflow-wrap: break-word;
}
.lb-content img { max-width: 100%; height: auto; }
.lb-content iframe, .lb-content table { max-width: 100%; }

/* Tipografi konten: satu ukuran & keluarga huruf untuk semua isi lama dari CMS,
   menimpa kelas/inline style lama (f1-s-*, font Roboto, ukuran acak).
   Komponen yang didesain khusus diberi kelas .lb-custom dan tidak ikut aturan ini. */
.lb-content p:not(.lb-custom *), .lb-content li:not(.lb-custom *), .lb-content td, .lb-content th, .lb-content dd, .lb-content dt,
.lb-content blockquote, .lb-content label,
.lb-content div:not([class*="lk-"]):not(.lb-meta):not(.lb-custom):not(.lb-custom *),
.lb-content span:not([class*="fa"]):not(.views):not(.lb-custom *),
.lb-content font, .lb-content article {
    font-family: "Poppins", "Roboto", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
    letter-spacing: 0 !important;
}
.lb-content p { margin: 0 0 14px; text-align: justify; color: #3a4757; }
.lb-content ul, .lb-content ol { margin: 0 0 14px; padding-left: 22px; }
.lb-content li { margin-bottom: 6px; }
.lb-content b, .lb-content strong { font-weight: 600; color: var(--rb-ink); }
.lb-content :is(h1, h2, h3, h4, h5, h6):not(.lb-custom *) {
    font-family: "Poppins", "Roboto", Arial, sans-serif !important;
    color: var(--rb-navy) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 22px 0 10px !important;
    text-align: left !important;
}
.lb-content :is(h1, h2):not(.lb-custom *) { font-size: 18px !important; }
.lb-content h3:not(.lb-custom *) { font-size: 16.5px !important; }
.lb-content h4:not(.lb-custom *) { font-size: 15px !important; }
.lb-content :is(h5, h6):not(.lb-custom *) { font-size: 14px !important; }
.lb-content > :first-child, .lb-content > :first-child > :first-child { margin-top: 0 !important; }
.lb-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.lb-content td, .lb-content th { padding: 8px 10px; border: 1px solid var(--rb-line); vertical-align: top; font-size: 13.5px !important; }
.lb-content th, .lb-content thead td { background: var(--rb-soft); color: var(--rb-navy); font-weight: 600; }
.lb-content a { color: var(--rb-blue); }
.lb-content a:hover { color: var(--rb-orange-dark); }
.lb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: var(--rb-muted);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rb-line);
}
.lb-meta i { color: var(--rb-orange); margin-right: 5px; }
.lb-meta span { font-size: 12.5px !important; }
.lb-content .isi-berita { font-family: inherit; color: #3a4757; }

/* Judul halaman sedikit lebih kecil agar seimbang dengan isi */
.lb-hero h1 { font-size: 28px; font-weight: 600; }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
    .lb-grid { grid-template-columns: 1fr; }
    .lb-content { order: -1; padding: 22px 18px; }
    .lb-hero h1 { font-size: 25px; }
}
@media (max-width: 575px) {
    .lb-hero { min-height: 160px; padding: 22px 0 64px; }
    .lb-hero h1 { font-size: 21px; }
}

/* ==========================================================
   Kartu berita (portal/berita_card.php) — dipakai Berita & Arsip.
   Bungkus dengan <section class="bl lb-custom">.
   ========================================================== */
.bl { --bl-navy: #0b3d7a; --bl-blue: #1a5dab; --bl-orange: #f28c1b; --bl-orange-dark: #d9531a; --bl-ink: #1f2d3d; --bl-text: #4a5869; --bl-muted: #5b6b80;
      --bl-line: #dfe5ee; --bl-soft: #f4f7fb;
      font-family: "Poppins", "Roboto", Arial, sans-serif; color: var(--bl-ink); }
.bl * { box-sizing: border-box; }
.bl a { text-decoration: none; }
.bl [hidden] { display: none !important; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 14px; background: #fff; color: var(--bl-ink);
           transition: border-color .2s, box-shadow .2s, transform .2s; }
.bl-card:hover, .bl-card:focus-visible { border-color: #f6c58d; box-shadow: 0 12px 26px rgba(11, 61, 122, .1); transform: translateY(-2px); outline: none; }
.bl-thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e8f0fb, #d3e2f6); display: grid; place-items: center; color: #9fb6d6; overflow: hidden; }
.bl-thumb svg { width: 44px; height: 44px; }
.bl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bl-card:hover .bl-thumb img { transform: scale(1.04); }
.bl-tag { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px;
          background: #fdebd5; color: #9a4a0b; font-size: 11px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.bl-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bl-tag.is-berita        { background: #e3eefc; color: #1a5dab; }
.bl-tag.is-reformasi     { background: #fdebd5; color: #b2560a; }
.bl-tag.is-akuntabilitas { background: #dcf3e6; color: #17804a; }
.bl-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.bl-date { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--bl-muted); }
.bl-date svg { width: 13px; height: 13px; color: var(--bl-orange); }
.bl-title { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--bl-navy);
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card:hover .bl-title { color: var(--bl-blue); }
.bl .bl-desc { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--bl-text); text-align: left;
               display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--bl-blue); }
.bl-more svg { width: 14px; height: 14px; transition: transform .2s; }
.bl-card:hover .bl-more { color: var(--bl-orange-dark); }
.bl-card:hover .bl-more svg { transform: translateX(4px); }

.bl-empty { padding: 40px 16px; border: 1px dashed var(--bl-line); border-radius: 14px; text-align: center; font-size: 13px; color: var(--bl-muted); }

/* Nomor halaman: tombol (JS) atau <ul> dari LegacyPagination */
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.bl .bl-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bl .bl-pager li { margin: 0; }
.bl .bl-pager button,
.bl .bl-pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 0; padding: 0 10px;
                  border: 1px solid var(--bl-line); border-radius: 8px; background: #fff;
                  font: inherit; font-size: 13px; font-weight: 600; color: var(--bl-navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bl .bl-pager button:hover:not(:disabled),
.bl .bl-pager a:hover { border-color: var(--bl-orange); color: var(--bl-orange-dark); }
.bl .bl-pager button[aria-current="page"],
.bl .bl-pager li.active a { background: var(--bl-navy); border-color: var(--bl-navy); color: #fff; pointer-events: none; }
.bl .bl-pager button:disabled { opacity: .45; cursor: default; }

@media (max-width: 1199px) { .bl .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .bl .bl-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-thumb img, .bl-more svg { transition: none; } .bl-card:hover { transform: none; } }
