/* CUSTOM STYLES FOR BLOG PORTAL */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* GENERAL */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* LAYOUT DASAR */
.site-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

/* Layar lebar: jarak tetap antara konten terakhir dan footer
   (padding, bukan margin, agar tidak "runtuh" bersama margin elemen di dalamnya) */
@media (min-width: 992px) {
    .site-main {
        padding-bottom: 64px;
    }
}

.site-main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* TOPBAR */
.site-topbar {
    background: #1b1f4b;
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    padding: 8px 0;
}

.site-topbar a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.site-topbar a:hover {
    color: #fff;
}

.topbar-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.topbar-social a:hover {
    background: rgba(255, 255, 255, .1);
}

/* HEADER UTAMA */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(27, 31, 75, .08);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: var(--text-dark);
}

.site-brand:hover {
    color: var(--text-dark);
}

.site-brand-logo {
    height: 44px;
    width: auto;
    flex-shrink: 0;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.site-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.site-brand-tagline {
    font-size: .76rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* Navigasi desktop */
.site-nav {
    margin-left: auto;
}

.site-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.site-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.site-nav-link:hover,
.site-nav-link[aria-expanded="true"] {
    color: var(--primary-color);
    background: rgba(102, 126, 234, .08);
}

.site-nav-link.active {
    color: var(--primary-color);
}

/* Garis penanda menu aktif, menempel di tepi bawah header */
.site-nav-link.active::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -15px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary-color);
}

.site-nav .dropdown-toggle::after {
    transition: transform .2s ease;
}

.site-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.site-header .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    margin-top: 10px !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(27, 31, 75, .12);
    animation: slideDown .18s ease;
}

.site-header .dropdown-item {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .92rem;
    color: var(--text-dark);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    background: rgba(102, 126, 234, .08);
    color: var(--primary-color);
}

.site-header .dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}

.site-header .dropdown-item.text-danger:hover {
    background: rgba(229, 72, 77, .08);
    color: #e5484d;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tombol aksi */
.site-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .site-nav + .site-actions {
        padding-left: 16px;
        border-left: 1px solid var(--border-color);
    }
}

.site-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: background .2s ease, color .2s ease;
}

.site-icon-btn:hover,
.site-icon-btn[aria-expanded="true"] {
    background: rgba(102, 126, 234, .1);
    color: var(--primary-color);
}

.site-login-btn {
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    margin-left: 4px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s ease;
}

.site-login-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.site-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px 0 4px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: .9rem;
}

.site-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
}

/* Panel pencarian */
.site-search {
    border-top: 1px solid var(--border-color);
    background: #f8f9fc;
}

.site-search .container-lg {
    padding-top: 16px;
    padding-bottom: 16px;
}

.site-search-form {
    position: relative;
    display: flex;
    gap: 8px;
}

.site-search-form > .bi-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.site-search-form .form-control {
    height: 48px;
    padding-left: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.site-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, .15);
}

.site-search-form .btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
}

/* Menu mobile */
.site-offcanvas {
    width: 300px !important;
}

.site-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.site-offcanvas .offcanvas-title {
    font-weight: 700;
}

.site-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
}

.mobile-nav a,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    text-align: left;
}

.mobile-nav a {
    justify-content: flex-start;
}

.mobile-nav a .bi,
.mobile-nav-toggle span .bi {
    width: 22px;
    margin-right: 10px;
    color: var(--text-light);
}

.mobile-nav a:hover,
.mobile-nav-toggle:hover {
    background: rgba(102, 126, 234, .08);
    color: var(--primary-color);
}

.mobile-nav a.active,
.mobile-nav-toggle.active {
    background: rgba(102, 126, 234, .12);
    color: var(--primary-color);
}

.mobile-nav a.active .bi,
.mobile-nav-toggle.active .bi {
    color: var(--primary-color);
}

.mobile-nav-toggle > .bi-chevron-down {
    transition: transform .2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] > .bi-chevron-down {
    transform: rotate(180deg);
}

.mobile-subnav {
    margin: 2px 0 8px 44px;
    padding-left: 12px;
    border-left: 2px solid var(--border-color);
}

.mobile-subnav a {
    padding: 8px 10px;
    font-weight: 500;
    font-size: .92rem;
}

.mobile-nav-label {
    margin: 18px 12px 6px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.mobile-footer {
    margin-top: auto;
    padding-top: 24px;
}

.mobile-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(102, 126, 234, .1);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-social:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsif header */
@media (max-width: 1199.98px) {
    .site-brand-tagline {
        display: none;
    }

    .site-nav-link {
        padding: 10px;
    }

    .site-nav-link.active::before {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 991.98px) {
    .site-header-inner {
        min-height: 64px;
        gap: 12px;
    }

    .site-actions {
        margin-left: auto;
    }

    .site-brand-logo {
        height: 38px;
    }
}

@media (max-width: 575.98px) {
    .site-brand-title {
        font-size: .98rem;
        white-space: normal;
    }

    .site-icon-btn {
        width: 38px;
        height: 38px;
    }
}

/* BREADCRUMB */
.site-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    font-size: .86rem;
}

.site-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 12px 0;
}

.site-breadcrumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--text-light);
}

.site-breadcrumb li + li::before {
    content: "\203A";
    margin: 0 10px;
    color: #a0aec0;
    font-size: 1.1rem;
    line-height: 1;
}

.site-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.site-breadcrumb a:hover {
    color: var(--primary-color);
}

.site-breadcrumb li[aria-current] span {
    color: var(--text-dark);
    font-weight: 600;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HEADER HALAMAN DAFTAR (berita, kategori, tag) */
.list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.list-header-icon {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.list-header h1 {
    margin: 0 0 2px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.list-header p {
    margin: 0;
    color: var(--text-light);
}

.list-header-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(102, 126, 234, .1);
    color: var(--primary-color);
    vertical-align: middle;
}

.list-filter {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.list-filter .input-group-text {
    background: rgba(102, 126, 234, .08);
    border-color: var(--border-color);
    color: var(--primary-color);
}

.list-filter .form-select {
    border-color: var(--border-color);
}

.list-filter .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
}

@media (max-width: 575.98px) {
    .list-header h1 {
        font-size: 1.3rem;
    }

    .site-breadcrumb li[aria-current] span {
        max-width: 180px;
    }
}

/* HERO SECTION */
.hero-section {
    padding: 60px 30px !important;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    line-height: 1.2;
    font-weight: 800;
}

/* CARDS */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-title a {
    text-decoration: none;
}

.card-title a:hover {
    color: var(--secondary-color);
}

/* POST CARD */
.post-card {
    border: none;
    overflow: hidden;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

.post-card .card-img-top {
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.post-title a {
    position: relative;
}

.post-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.post-title a:hover::after {
    width: 100%;
}

/* ARTICLE DETAIL */
.article-detail {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.article-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-content pre code {
    background: none;
    color: var(--text-dark);
    padding: 0;
}

/* WIDGETS (SIDEBAR) */
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: var(--primary-color);
}

.widget-title i {
    color: var(--primary-color);
}

.widget-empty {
    color: var(--text-light);
    font-size: .9rem;
    margin: 0;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Daftar artikel (terbaru & populer) */
.widget-post-list,
.widget-rank-list,
.widget-category-list,
.widget-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-post-list li + li,
.widget-rank-list li + li {
    border-top: 1px dashed var(--border-color);
}

.widget-post,
.widget-rank {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-dark);
}

.widget-post-list li:first-child .widget-post,
.widget-rank-list li:first-child .widget-rank {
    padding-top: 0;
}

.widget-post-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(102, 126, 234, .1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.widget-post-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.widget-post-title {
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.4;
    transition: color .2s ease;
}

.widget-post-meta {
    color: var(--text-light);
    font-size: .78rem;
}

.widget-post-meta i {
    margin-right: 2px;
}

.widget-post:hover .widget-post-title,
.widget-rank:hover .widget-post-title {
    color: var(--primary-color);
}

.widget-post:hover .widget-post-thumb img {
    transform: scale(1.06);
}

.widget-rank-number {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--primary-color);
    background: rgba(102, 126, 234, .1);
}

.widget-rank-list li:first-child .widget-rank-number {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Kategori */
.widget-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background .2s ease, color .2s ease;
}

.widget-category i {
    color: var(--text-light);
    margin-right: 6px;
}

.widget-category:hover,
.widget-category.active {
    background: rgba(102, 126, 234, .1);
    color: var(--primary-color);
}

.widget-category.active {
    font-weight: 600;
}

.widget-category:hover i,
.widget-category.active i {
    color: var(--primary-color);
}

.widget-count {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
    background: #edf2f7;
    color: var(--text-light);
}

.widget-category.active .widget-count {
    background: var(--primary-color);
    color: #fff;
}

/* Tag */
.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .82rem;
    text-decoration: none;
    color: var(--text-dark);
    background: #f7fafc;
    border: 1px solid var(--border-color);
    transition: all .2s ease;
}

.widget-tag:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sosial media */
.widget-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.widget-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    opacity: .9;
}

.social-facebook  { background: #1877f2; }
.social-twitter   { background: #111; }
.social-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-youtube   { background: #ff0000; }

/* Kontak */
.widget-contact {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.widget-contact .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .25);
}

.widget-contact .widget-title i {
    color: #fff;
}

.widget-contact .widget-title::after {
    background: #fff;
}

.widget-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .9rem;
    margin-bottom: 10px;
    word-break: break-word;
}

.widget-contact-list li:last-child {
    margin-bottom: 0;
}

.widget-contact-list i {
    margin-top: 3px;
    opacity: .85;
}

.widget-contact-list a {
    color: #fff;
    text-decoration: none;
}

.widget-contact-list a:hover {
    text-decoration: underline;
}

/* COMMENTS */
.comment-item {
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reply-item {
    border-left: 3px solid var(--primary-color);
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    background: #1b1f4b;
    color: rgba(255, 255, 255, .7);
    font-size: .93rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* Netralkan aturan elemen "footer ul li ..." bawaan template Sash */
.site-footer-links li {
    display: block;
}

.site-footer ul li a {
    display: inline;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
    border-radius: 0;
}

.site-footer-main {
    padding: 44px 0 32px;
}

.site-footer-org {
    margin: -6px 0 18px;
    font-size: .82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .55);
}

.site-footer-map {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #a5b4fc !important;
}

.site-footer-map:hover {
    color: #fff !important;
}

.site-footer-contact li > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 800;
}

.site-footer-desc {
    max-width: 380px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.site-footer-social {
    display: flex;
    gap: 10px;
}

.site-footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    font-size: 1.05rem;
    transition: background .2s ease, transform .2s ease;
}

.site-footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.site-footer-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.site-footer-links,
.site-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-links li + li {
    margin-top: 9px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-footer .col-lg-2 { flex: 0 0 auto; width: 20%; }
    .site-footer .col-lg-4:last-child { width: 26.666%; }
    .site-footer .col-lg-4:first-child { width: 33.333%; }
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transition: background .2s ease;
}

.site-footer-links a:hover::before {
    background: var(--primary-color);
}

.site-footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    word-break: break-word;
}

.site-footer-contact li + li {
    margin-top: 14px;
}

.site-footer-contact .bi {
    margin-top: 2px;
    color: #a5b4fc;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* ruang kanan agar tautan tidak tertutup tombol live chat melayang */
    padding: 18px 92px 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

@media (min-width: 1600px) {
    /* tombol chat sudah di luar lebar konten */
    .site-footer-bottom { padding-right: 0; }
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-bottom strong {
    color: #fff;
}

.site-footer-bottom ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .site-footer-main {
        padding: 40px 0 28px;
    }

    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* PAGINATION */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* BADGES */
.badge {
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .hero-section {
        padding: 40px 20px !important;
        min-height: 250px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }



    .article-detail {
        padding: 15px;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* DARK MODE (aktif lewat class body.dark-mode, bukan setting OS) */
body.dark-mode {
    background: #1a202c;
    color: #e2e8f0;
    --text-dark: #e2e8f0;
    --text-light: #a0aec0;
    --border-color: #4a5568;
}

body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .article-detail {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .widget-count,
body.dark-mode .widget-tag {
    background: #1a202c;
}

body.dark-mode .widget-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body.dark-mode .site-header,
body.dark-mode .site-offcanvas {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .site-header .dropdown-menu {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .site-search {
    background: #1a202c;
}

body.dark-mode .site-search-form .form-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .site-offcanvas .btn-close {
    filter: invert(1);
}

body.dark-mode .site-topbar {
    background: #11142e;
}

body.dark-mode .article-content {
    color: #cbd5e0;
}

body.dark-mode .article-content code {
    background: #1a202c;
}

body.dark-mode .article-content pre {
    background: #1a202c;
    color: #e2e8f0;
}

/* UTILITIES */
.transition-all {
    transition: all 0.3s ease;
}

.object-fit-cover {
    object-fit: cover;
}

.fs-1 {
    font-size: 3rem;
}

.gap-4 {
    gap: 2rem;
}

.gap-3 {
    gap: 1rem;
}

/* Daftar di isi artikel (bullet/angka direset oleh template Sash) */
.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
    display: list-item;
    margin-bottom: .35rem;
}

/* BLOK KOSONG (empty state) */
.empty-block {
    text-align: center;
    padding: 56px 24px;
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
}

.empty-block > .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 20px;
    font-size: 32px;
    color: var(--primary-color);
    background: rgba(102, 126, 234, .1);
}

.empty-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.empty-block p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-block p:last-child {
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-heading .bi {
    color: var(--primary-color);
}

/* GALERI: daftar album */
.album-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform .2s ease, box-shadow .2s ease;
}

.album-card:hover {
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(27, 31, 75, .1);
}

.album-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, .15), rgba(118, 75, 162, .15));
}

.album-cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-cover-placeholder,
.photo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(102, 126, 234, .45);
}

.album-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 18, 45, .65);
    backdrop-filter: blur(4px);
}

.album-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px 18px;
}

.album-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    transition: color .2s ease;
}

.album-card:hover .album-title {
    color: var(--primary-color);
}

.album-desc {
    color: var(--text-light);
    font-size: .9rem;
}

.album-meta {
    margin-top: 4px;
    color: var(--text-light);
    font-size: .8rem;
}

/* GALERI: detail album */
.album-header {
    margin-bottom: 24px;
}

.album-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.album-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--text-light);
    font-size: .88rem;
}

.album-header-meta .bi {
    margin-right: 4px;
}

.album-header-desc {
    margin: 14px 0 0;
    color: var(--text-dark);
    line-height: 1.7;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    cursor: zoom-in;
    background: linear-gradient(135deg, rgba(102, 126, 234, .15), rgba(118, 75, 162, .15));
}

.photo-item img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.photo-zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: rgba(15, 18, 45, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

.photo-item:hover img,
.photo-item:focus-visible img {
    transform: scale(1.06);
}

.photo-item:hover .photo-zoom,
.photo-item:focus-visible .photo-zoom {
    opacity: 1;
}

.photo-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.other-albums {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.other-albums a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

.other-albums a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* LIGHTBOX */
.lightbox .modal-content {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 10px;
    background: #111;
}

.lightbox figcaption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    color: #fff;
    font-size: .92rem;
}

.lightbox-counter {
    flex-shrink: 0;
    opacity: .7;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    transition: background .2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.lightbox-close {
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 22px;
    transform: translateY(-50%);
}

.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }

.modal-backdrop.show {
    opacity: .88;
}

body.dark-mode .album-card,
body.dark-mode .empty-block,
body.dark-mode .other-albums a {
    background: #2d3748;
    border-color: #4a5568;
}

/* NAVIGASI BAWAH (mobile, gaya aplikasi) */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 20px rgba(27, 31, 75, .06);
}

.bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-light);
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease;
}

.bottom-nav-item .bi {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
    color: var(--primary-color);
}

.bottom-nav-item:active .bi {
    transform: scale(.88);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Penanda tab aktif: pil di belakang ikon */
.bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 50%;
    width: 48px;
    height: 30px;
    border-radius: 15px;
    background: rgba(102, 126, 234, .14);
    transform: translateX(-50%);
    z-index: -1;
}

.bottom-nav-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

@media (max-width: 991.98px) {
    /* Ruang agar konten & footer tidak tertutup navigasi bawah */
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

body.dark-mode .bottom-nav {
    background: rgba(45, 55, 72, .96);
    border-color: #4a5568;
}

/* HALAMAN STATIS (Tentang, Kontak, dll) */
.static-page {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.static-page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.static-page-header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.static-page-meta {
    margin: 0;
    color: var(--text-light);
    font-size: .88rem;
}

.static-page-image {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 12px;
}

.static-page-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .static-page {
        padding: 20px;
    }

    .static-page-header h1 {
        font-size: 1.5rem;
    }
}

body.dark-mode .static-page {
    background: #2d3748;
    border-color: #4a5568;
}

/* Format dari editor Quill pada isi artikel/halaman */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-content .ql-align-center { text-align: center; }
.article-content .ql-align-right { text-align: right; }
.article-content .ql-align-justify { text-align: justify; }
.article-content .ql-indent-1 { padding-left: 3em; }
.article-content .ql-indent-2 { padding-left: 6em; }
.article-content .ql-indent-3 { padding-left: 9em; }

.article-content .ql-video,
.article-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 1.5rem 0;
    border: 0;
    border-radius: 12px;
}

/* KOMENTAR (halaman detail berita) */
.comments-section {
    margin-top: 40px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.comments-title .bi {
    color: var(--primary-color);
}

.comments-count {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .8rem;
    background: rgba(102, 126, 234, .12);
    color: var(--primary-color);
}

.comment-list,
.comment-replies {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    display: flex;
    gap: 14px;
}

.comment-list > .comment + .comment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-avatar {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(102, 126, 234, .12);
}

.comment-avatar.small {
    flex-basis: 36px;
    height: 36px;
    font-size: .85rem;
}

.comment-avatar.is-staff {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
}

.comment-head strong {
    color: var(--text-dark);
}

.comment-head time {
    font-size: .8rem;
    color: var(--text-light);
}

.comment-staff {
    padding: 1px 8px;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
}

.comment-text {
    margin: 6px 0 0;
    line-height: 1.65;
    color: var(--text-dark);
    word-wrap: break-word;
}

.comment-replies {
    margin-top: 14px;
    padding-left: 16px;
    border-left: 2px solid rgba(102, 126, 234, .25);
}

.comment-replies .comment + .comment {
    margin-top: 14px;
}

.comments-empty {
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    background: #f8f9fc;
}

.comment-form {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.comment-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.comment-form .form-control {
    border-radius: 10px;
}

/* Jebakan bot: disembunyikan dari pengunjung, tetap ada di HTML */
.comment-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .comments-section {
        padding: 20px;
    }
}

body.dark-mode .comments-section {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .comments-empty {
    background: #1a202c;
}

/* PROFIL PIMPINAN & ANGGOTA DPRD */
.mp-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    padding: 32px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1b1f4b 0%, #2a2a7a 55%, #4b3fd6 100%);
}

.mp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.mp-hero > * { position: relative; z-index: 1; }
.mp-hero h1 { font-size: 2rem; font-weight: 800; margin: 6px 0; }
.mp-hero p { margin: 0; color: rgba(255, 255, 255, .78); }
.mp-hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a5b4fc; }

.mp-section { margin-bottom: 40px; }

/* Kartu anggota */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.mp-leaders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    justify-content: center;
    gap: 22px;
}

.mp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mp-card:hover {
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(27, 31, 75, .1);
}

.mp-card.is-leader { border-color: rgba(245, 165, 36, .5); }

.mp-photo,
.mp-profile-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(102, 126, 234, .18), rgba(118, 75, 162, .18));
}

.mp-photo img,
.mp-profile-photo img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease;
}

.mp-card:hover .mp-photo img { transform: scale(1.04); }

.mp-initial {
    font-size: 3.4rem;
    font-weight: 800;
    color: rgba(102, 126, 234, .6);
}

.mp-role {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: #1f2437;
    background: #f5c542;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.mp-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
}

.mp-name {
    font-weight: 700;
    line-height: 1.35;
    transition: color .2s ease;
}

.mp-card.is-leader .mp-name { font-size: 1.05rem; }
.mp-card:hover .mp-name { color: var(--primary-color); }

.mp-faction {
    --faction: #667eea;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 2px 10px 2px 8px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(102, 126, 234, .1);
    background: color-mix(in srgb, var(--faction) 14%, transparent);
    text-decoration: none;
}

.mp-faction::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--faction);
}

.mp-faction.is-lg { padding: 5px 14px 5px 12px; font-size: .88rem; }

.mp-meta {
    font-size: .8rem;
    color: var(--text-light);
}

.mp-meta .bi { margin-right: 3px; }

/* Komposisi fraksi */
.mp-composition {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.mp-bar {
    display: flex;
    height: 18px;
    gap: 3px;
    overflow: hidden;
    border-radius: 10px;
}

.mp-bar span { min-width: 6px; }

.mp-legend {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px 16px;
    margin: 16px 0 0;
    padding: 0;
}

.mp-legend a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: .9rem;
}

.mp-legend a:hover { background: rgba(102, 126, 234, .08); }
.mp-legend .dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.mp-legend .name { flex: 1; font-weight: 600; }
.mp-legend .seats { font-weight: 700; }
.mp-legend small { color: var(--text-light); font-weight: 500; }

/* Filter */
.mp-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.mp-filter-search { position: relative; flex: 1 1 220px; }
.mp-filter-search .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.mp-filter-search .form-control { padding-left: 36px; }
.mp-filter .form-select { flex: 0 1 190px; }
.mp-filter .form-control,
.mp-filter .form-select,
.mp-filter .btn { border-radius: 10px; }

/* Komisi */
.mp-commissions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.mp-commission {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color .2s ease;
}

.mp-commission:hover { border-color: var(--primary-color); color: var(--text-dark); }
.mp-commission strong { font-size: 1.05rem; }
.mp-commission span { font-size: .88rem; color: var(--text-light); }
.mp-commission em { margin-top: auto; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--primary-color); }

/* Halaman profil */
.mp-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.mp-profile-photo { border-radius: 14px; }
.mp-profile-photo .mp-initial { font-size: 5rem; }

.mp-profile-role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(102, 126, 234, .12);
}

.mp-profile-role.is-leader { color: #1f2437; background: #f5c542; }

.mp-profile h1 {
    margin: 10px 0 12px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.mp-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px 24px;
    margin: 22px 0;
}

.mp-details dt {
    margin-bottom: 2px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-light);
}

.mp-details dd { margin: 0; font-weight: 600; color: var(--text-dark); }

.mp-bio {
    margin-bottom: 40px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    line-height: 1.8;
}

.mp-bio p:last-child { margin-bottom: 0; }

@media (max-width: 767.98px) {
    .mp-hero { padding: 24px; }
    .mp-hero h1 { font-size: 1.5rem; }
    .mp-profile { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .mp-profile-photo { max-width: 240px; margin: 0 auto; width: 100%; }
    .mp-profile h1 { font-size: 1.5rem; }
    .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mp-leaders { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .mp-body { padding: 10px 12px 12px; }
    .mp-filter .form-select { flex: 1 1 140px; }
}

body.dark-mode .mp-card,
body.dark-mode .mp-composition,
body.dark-mode .mp-filter,
body.dark-mode .mp-commission,
body.dark-mode .mp-profile,
body.dark-mode .mp-bio {
    background: #2d3748;
    border-color: #4a5568;
}

/* JDIH */
.jdih-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1b1f4b 0%, #23306b 50%, #8a5a00 140%);
}

.jdih-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.jdih-hero > * { position: relative; z-index: 1; }
.jdih-hero-text { flex: 1 1 480px; }
.jdih-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: #f5c542; }
.jdih-hero h1 { font-size: 2rem; font-weight: 800; margin: 6px 0; }
.jdih-hero p { color: rgba(255, 255, 255, .78); margin-bottom: 18px; max-width: 620px; }

.jdih-search { position: relative; display: flex; gap: 8px; max-width: 620px; }
.jdih-search > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6b7189; z-index: 1; }
.jdih-search .form-control { height: 50px; padding-left: 44px; border: 0; border-radius: 12px; }
.jdih-search .btn { height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; }

.jdih-hero-stat { text-align: center; padding: 18px 26px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.jdih-hero-stat strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.jdih-hero-stat span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

.jdih-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 28px; }
.jdih-shortcut {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
    color: var(--text-dark); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.jdih-shortcut:hover, .jdih-shortcut.active { border-color: var(--primary-color); color: var(--text-dark); transform: translateY(-2px); }
.jdih-shortcut.active { background: rgba(102, 126, 234, .06); }
.jdih-shortcut > .bi {
    flex: 0 0 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary-color); background: rgba(102, 126, 234, .12);
}
.jdih-shortcut strong { display: block; }
.jdih-shortcut small { color: var(--text-light); }

.jdih-filter {
    position: sticky; top: 96px; padding: 18px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
}
.jdih-filter h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.jdih-filter .form-label { font-size: .8rem; font-weight: 600; color: var(--text-light); }
.jdih-filter .form-select { border-radius: 10px; }

.jdih-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.jdih-result-head h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.jdih-result-head span { color: var(--text-light); font-size: .9rem; }

.jdih-list { list-style: none; padding: 0; margin: 0; }
.jdih-item {
    display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 10px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 14px;
}
.jdih-item-icon {
    flex: 0 0 42px; height: 52px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #c4363b; background: rgba(229, 72, 77, .08);
}
.jdih-item-body { flex: 1; min-width: 0; }
.jdih-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--text-light); }
.jdih-type { font-weight: 700; color: var(--primary-color); text-transform: uppercase; letter-spacing: .03em; font-size: .75rem; }
.jdih-item-title { display: block; margin: 6px 0 8px; font-weight: 600; line-height: 1.45; color: var(--text-dark); text-decoration: none; }
.jdih-item-title:hover { color: var(--primary-color); }
.jdih-item-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .82rem; color: var(--text-light); }
.jdih-item-foot a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.jdih-item-foot a:hover { text-decoration: underline; }

.jdih-status { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.jdih-status.is-valid   { background: rgba(19, 191, 166, .14); color: #0f7f6f; }
.jdih-status.is-revoked { background: rgba(229, 72, 77, .12); color: #b42d32; }
.jdih-status.is-amends  { background: rgba(14, 165, 233, .12); color: #0369a1; }
.jdih-status.is-changed { background: rgba(245, 165, 36, .16); color: #8a5a00; }
.jdih-status.is-unknown { background: #eef0f6; color: #5b617a; }

.jdih-source { margin-top: 18px; font-size: .82rem; color: var(--text-light); }

/* Detail */
.jdih-doc { padding: 28px; background: #fff; border: 1px solid var(--border-color); border-radius: 18px; }
.jdih-doc h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.4; color: var(--text-dark); margin-bottom: 18px; }
.jdih-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.jdih-actions .btn { border-radius: 10px; font-weight: 600; }
.jdih-abstract { padding: 16px 18px; margin-bottom: 22px; border-left: 4px solid var(--primary-color); background: #f8f9fc; border-radius: 0 12px 12px 0; }
.jdih-abstract h2, .jdih-subtitle { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.jdih-abstract p { margin: 0; }
.jdih-meta-table { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 0; border-top: 1px solid var(--border-color); }
.jdih-meta-table dt, .jdih-meta-table dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--border-color); }
.jdih-meta-table dt { font-weight: 600; color: var(--text-light); font-size: .88rem; padding-right: 12px; }
.jdih-meta-table dd { color: var(--text-dark); }

.jdih-related { padding: 18px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; }
.jdih-related h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.jdih-related ul { list-style: none; padding: 0; margin: 0 0 10px; }
.jdih-related li + li { border-top: 1px dashed var(--border-color); }
.jdih-related a { display: block; padding: 10px 0; font-size: .88rem; color: var(--text-dark); text-decoration: none; line-height: 1.45; }
.jdih-related a:hover { color: var(--primary-color); }
.jdih-related small { display: block; font-weight: 700; color: var(--primary-color); }

@media (max-width: 991.98px) {
    .jdih-filter { position: static; }
}

@media (max-width: 575.98px) {
    .jdih-hero { padding: 22px; }
    .jdih-hero h1 { font-size: 1.5rem; }
    .jdih-hero-stat { width: 100%; }
    .jdih-doc { padding: 20px; }
    .jdih-doc h1 { font-size: 1.2rem; }
    .jdih-meta-table { grid-template-columns: 1fr; }
    .jdih-meta-table dt { border-bottom: 0; padding-bottom: 0; }
}

body.dark-mode .jdih-shortcut,
body.dark-mode .jdih-filter,
body.dark-mode .jdih-item,
body.dark-mode .jdih-doc,
body.dark-mode .jdih-related {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .jdih-abstract { background: #1a202c; }

/* JDIH: halaman detail (versi 2) */
.jdih-head {
    position: relative;
    display: flex;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #1b1f4b 0%, #23306b 55%, #6b4a10 140%);
}

.jdih-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.jdih-head > * { position: relative; z-index: 1; }

.jdih-head-icon {
    flex: 0 0 64px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1b1f4b;
    background: #f5c542;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.jdih-head-main { flex: 1; min-width: 0; }
.jdih-head h1 { font-size: 1.55rem; font-weight: 800; line-height: 1.4; margin: 12px 0 10px; }

.jdih-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jdih-chip {
    padding: 3px 11px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    text-decoration: none;
}
a.jdih-chip:hover { color: #fff; background: rgba(255, 255, 255, .25); }
.jdih-chip.is-type { color: #1b1f4b; background: #f5c542; }
.jdih-head .jdih-status { font-size: .78rem; padding: 3px 11px; }

.jdih-head-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: rgba(255, 255, 255, .78); margin-bottom: 18px; }
.jdih-head-facts .bi { margin-right: 4px; }
.jdih-head .jdih-actions { margin-bottom: 0; }
.jdih-head .btn { border-radius: 10px; font-weight: 600; }

/* Penampil PDF */
.jdih-viewer {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    scroll-margin-top: 96px;
}

.jdih-viewer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 18px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-dark);
    background: #f8f9fc;
}

.jdih-viewer-bar .bi-file-earmark-pdf { color: #c4363b; margin-right: 6px; }

.jdih-viewer-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
}

.jdih-viewer-btn:hover { background: rgba(102, 126, 234, .12); color: var(--primary-color); }

.jdih-viewer-frame { position: relative; height: 82vh; min-height: 560px; background: #525659; }
.jdih-viewer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jdih-viewer-frame:fullscreen { height: 100vh; }

.jdih-viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: .9rem;
}

.jdih-viewer-mobile,
.jdih-viewer-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 36px 20px;
    text-align: center;
    color: var(--text-light);
}

.jdih-viewer-empty { display: flex; }
.jdih-viewer-mobile > .bi,
.jdih-viewer-empty > .bi { font-size: 2.6rem; color: #c4363b; }

@media (max-width: 767.98px) {
    .jdih-viewer-frame { display: none; }
    .jdih-viewer-mobile { display: flex; }
}

/* Kartu metadata */
@media (min-width: 992px) { .jdih-side { position: sticky; top: 96px; } }

.jdih-meta-card {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.jdih-meta-card h2 {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.jdih-meta-card dl { margin: 0; }
.jdih-meta-card dl > div { padding: 8px 0; border-top: 1px dashed var(--border-color); }
.jdih-meta-card dl > div:first-child { border-top: 0; padding-top: 0; }
.jdih-meta-card dt { font-size: .76rem; font-weight: 600; color: var(--text-light); margin-bottom: 2px; }
.jdih-meta-card dt .bi { margin-right: 4px; }
.jdih-meta-card dd { margin: 0; font-weight: 600; color: var(--text-dark); word-break: break-word; }

.jdih-related-list { list-style: none; padding: 0; margin: 0 0 10px; }
.jdih-related-list li + li { border-top: 1px dashed var(--border-color); }
.jdih-related-list a { display: block; padding: 9px 0; font-size: .86rem; line-height: 1.45; color: var(--text-dark); text-decoration: none; }
.jdih-related-list a:hover { color: var(--primary-color); }
.jdih-related-list small { display: block; font-weight: 700; color: var(--primary-color); }

.jdih-abstract h2 .bi { margin-right: 6px; color: var(--primary-color); }

@media (max-width: 575.98px) {
    .jdih-head { flex-direction: column; padding: 22px; gap: 14px; }
    .jdih-head-icon { flex-basis: auto; width: 52px; height: 64px; font-size: 1.6rem; }
    .jdih-head h1 { font-size: 1.15rem; }
    .jdih-head .btn { flex: 1 1 auto; }
}

body.dark-mode .jdih-viewer,
body.dark-mode .jdih-meta-card { background: #2d3748; border-color: #4a5568; }
body.dark-mode .jdih-viewer-bar { background: #1a202c; border-color: #4a5568; }

/* Badge status di kepala JDIH (latar gelap): warna solid agar terbaca */
.jdih-head .jdih-status.is-valid   { background: #13bfa6; color: #fff; }
.jdih-head .jdih-status.is-revoked { background: #e5484d; color: #fff; }
.jdih-head .jdih-status.is-amends  { background: #0ea5e9; color: #fff; }
.jdih-head .jdih-status.is-changed { background: #f5a524; color: #1f2437; }
.jdih-head .jdih-status.is-unknown { background: rgba(255, 255, 255, .2); color: #fff; }

/* ============================================
   AGENDA & HASIL RAPAT
   ============================================ */
.rp-hero, .rp-head {
    position: relative; overflow: hidden; margin-bottom: 24px; border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #1b1f4b 0%, #2b2f7a 55%, #0f766e 140%);
}
.rp-hero::after, .rp-head::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 20px 20px;
}
.rp-hero > *, .rp-head > * { position: relative; z-index: 1; }
.rp-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
.rp-hero-text { flex: 1 1 480px; }
.rp-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; }
.rp-hero h1 { font-size: 2rem; font-weight: 800; margin: 6px 0; color: #fff; }
.rp-hero p { color: rgba(255, 255, 255, .78); margin-bottom: 18px; max-width: 620px; }
.rp-search { position: relative; display: flex; gap: 8px; max-width: 560px; }
.rp-search > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6b7189; z-index: 1; }
.rp-search .form-control { height: 50px; padding-left: 44px; border: 0; border-radius: 12px; }
.rp-search .btn { height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; }
.rp-hero-stat { text-align: center; padding: 18px 26px; border-radius: 16px; background: rgba(255, 255, 255, .1); }
.rp-hero-stat strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.rp-hero-stat span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

.rp-section { margin-bottom: 36px; }
.rp-type { display: block; font-size: .75rem; font-weight: 700; color: #0f766e; text-transform: uppercase; letter-spacing: .03em; }

.rp-upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rp-up-card { display: flex; gap: 14px; padding: 16px; border: 1px solid #e6e8f0; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.rp-up-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 31, 75, .08); color: inherit; }
.rp-date { flex: 0 0 62px; height: 66px; border-radius: 14px; background: #1b1f4b; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.rp-date b { font-size: 1.5rem; }
.rp-date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; opacity: .8; }
.rp-up-body { min-width: 0; }
.rp-up-body strong { display: block; line-height: 1.35; margin: 2px 0 4px; }
.rp-meta { font-size: .84rem; color: #6b7189; }
.rp-today { display: inline-block; font-size: .7rem; font-weight: 800; background: #f5a524; color: #1f2437; border-radius: 10px; padding: 1px 8px; margin-bottom: 4px; }

.rp-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.rp-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-filter .form-select { width: auto; min-width: 150px; border-radius: 10px; }

.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rp-card { display: flex; flex-direction: column; border: 1px solid #e6e8f0; border-radius: 16px; overflow: hidden; background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.rp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27, 31, 75, .1); color: inherit; }
.rp-card-img { position: relative; aspect-ratio: 16 / 9; background: #eef0f6; display: flex; align-items: center; justify-content: center; }
.rp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-card-img.is-empty { background: linear-gradient(135deg, #e0e7ff, #ccfbf1); color: #4f46e5; font-size: 2.2rem; }
.rp-card-date { position: absolute; left: 10px; bottom: 10px; background: rgba(27, 31, 75, .85); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.rp-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.rp-card-body strong { line-height: 1.4; margin: 4px 0 10px; }
.rp-card-foot { margin-top: auto; }
.rp-badge { display: inline-flex; gap: 4px; align-items: center; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #f1f2f7; color: #6b7189; }
.rp-badge.is-final { background: rgba(19, 191, 166, .12); color: #0f8f7c; }

/* Detail */
.rp-head { padding: 30px 32px; }
.rp-head-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: rgba(255, 255, 255, .15); color: #fff; }
.rp-chip.is-final { background: #13bfa6; }
.rp-chip.is-upcoming { background: #f5a524; color: #1f2437; }
.rp-head h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; margin: 0 0 14px; color: #fff; }
.rp-head-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.rp-head-facts .bi { color: #5eead4; margin-right: 4px; }

.rp-block, .rp-side { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.rp-block h2, .rp-side h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; }
.rp-block h2 .bi, .rp-side h2 .bi { color: #0f766e; margin-right: 6px; }
.rp-conclusion { border-left: 4px solid #13bfa6; }
.rp-agenda { margin: 0; padding-left: 22px; line-height: 1.9; }
.rp-prose { line-height: 1.8; }
.rp-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.rp-prose p:last-child { margin-bottom: 0; }
.rp-pending { display: flex; gap: 16px; align-items: center; background: #f8fafc; }
.rp-pending > .bi { font-size: 2rem; color: #0f766e; }

.rp-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-actions li { border: 1px solid #e6e8f0; border-radius: 12px; padding: 12px 14px; }
.rp-actions p { margin: 4px 0; }
.rp-actions small { color: #6b7189; }
.rp-act-status { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #6b7189; }
.rp-actions li.is-done .rp-act-status { color: #0f8f7c; }
.rp-actions li.is-progress .rp-act-status { color: #0ea5e9; }

.rp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rp-photos figure { margin: 0; }
.rp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; transition: opacity .15s; }
.rp-photos a:hover img { opacity: .85; }
.rp-photos figcaption { font-size: .8rem; color: #6b7189; margin-top: 4px; line-height: 1.4; }

.rp-att-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.rp-att-summary strong { font-size: 2rem; font-weight: 800; line-height: 1; }
.rp-att-summary span { color: #6b7189; font-size: .9rem; }
.rp-att-summary em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.rp-att-summary em.is-ok { background: rgba(19, 191, 166, .12); color: #0f8f7c; }
.rp-att-summary em.is-no { background: rgba(229, 72, 77, .1); color: #c9353a; }
.rp-att-bar { height: 6px; border-radius: 3px; background: #eceef5; overflow: hidden; margin: 10px 0 12px; }
.rp-att-bar span { display: block; height: 100%; background: #13bfa6; }
.rp-att-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.rp-att-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f1f6; font-size: .88rem; }
.rp-att-list li span small { display: block; color: #6b7189; font-size: .74rem; }
.rp-att-list em { flex: 0 0 auto; font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #f1f2f7; color: #6b7189; }
.rp-att-list em.is-present { background: rgba(19, 191, 166, .12); color: #0f8f7c; }
.rp-att-list em.is-absent { background: rgba(229, 72, 77, .1); color: #c9353a; }
.rp-att-others { font-size: .85rem; color: #6b7189; margin: 12px 0 0; }
.rp-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.rp-info dt { color: #6b7189; font-weight: 500; }
.rp-info dd { margin: 0; font-weight: 600; }

@media (max-width: 575.98px) {
    .rp-hero, .rp-head { padding: 22px 18px; border-radius: 14px; }
    .rp-hero h1 { font-size: 1.5rem; }
    .rp-head h1 { font-size: 1.3rem; }
    .rp-hero-stat { display: none; }
    .rp-search .btn { padding: 0 16px; }
    .rp-block, .rp-side { padding: 18px; }
}

body.dark-mode .rp-up-card,
body.dark-mode .rp-card,
body.dark-mode .rp-block,
body.dark-mode .rp-side,
body.dark-mode .rp-actions li { background: #2d3748; border-color: #4a5568; }
body.dark-mode .rp-pending { background: #1a202c; }
body.dark-mode .rp-att-list li { border-color: #4a5568; }

/* Menu utama: rapatkan jarak di layar laptop agar semua item muat dalam satu baris */
.site-brand { flex-shrink: 0; } /* logo & nama situs tidak boleh tertimpa menu */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .site-nav-link { padding: 10px 8px; font-size: .92rem; }
    .site-brand-tagline { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-brand-text { display: none; }
    .site-nav-link { padding: 10px 6px; font-size: .86rem; }
    .site-login-text { display: none; } /* tombol Masuk cukup ikon */
}

/* ============================================
   AGENDA DEWAN
   ============================================ */
.ag-card { background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.ag-card-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; }
.ag-card-title .bi { color: #0f766e; margin-right: 6px; }
.ag-empty { color: #6b7189; }
.ag-status { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 10px; vertical-align: 2px; }
.ag-status.is-postponed { background: #fff4dc; color: #a16207; }
.ag-status.is-cancelled { background: #fde8e8; color: #c9353a; }
.ag-status.is-done { background: rgba(19, 191, 166, .12); color: #0f8f7c; }
.rp-chip.is-cancelled { background: #e5484d; }

/* Hari ini */
.ag-today { background: #fff; border: 1px solid #e6e8f0; border-left: 4px solid #f5a524; border-radius: 16px; padding: 16px 20px; margin-bottom: 24px; }
.ag-today h2 { font-size: 1rem; font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ag-live { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: agPulse 1.8s infinite; }
@keyframes agPulse { 70% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .ag-live { animation: none; } }
.ag-today-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ag-today-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #f8f9fc; border-left: 3px solid var(--c); color: inherit; text-decoration: none; }
.ag-today-item:hover { background: #f1f2f8; color: inherit; }
.ag-today-item b { flex: 0 0 auto; font-size: .9rem; }
.ag-today-item span { flex: 1; font-weight: 600; line-height: 1.35; }
.ag-today-item small { display: block; font-weight: 400; color: #6b7189; font-size: .8rem; }

/* Kalender */
.ag-cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ag-cal-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; min-width: 170px; text-align: center; }
.ag-nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e6e8f0; display: inline-flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; }
.ag-nav:hover { background: #f4f5fb; color: inherit; }
.ag-today-link { margin-left: auto; font-size: .85rem; font-weight: 600; }
.ag-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; margin-bottom: 4px; }
.ag-filter::-webkit-scrollbar { display: none; }
.ag-filter a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 20px; border: 1px solid #e6e8f0; color: #4b5068; text-decoration: none; }
.ag-filter a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ag-filter a.on { background: #1b1f4b; border-color: #1b1f4b; color: #fff; }
.ag-cal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ag-cal th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7189; font-weight: 700; padding: 6px; }
.ag-cal td { vertical-align: top; height: 104px; padding: 5px; border: 1px solid #eef0f5; }
.ag-cal td.out { background: #fafbfd; }
.ag-cal td.out .d { color: #c0c4d2; }
.ag-cal .d { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: .8rem; }
.ag-cal td.today .d { background: #f5a524; color: #1f2437; }
.ag-chip { display: block; font-size: .7rem; line-height: 1.3; padding: 3px 6px; margin-top: 3px; border-radius: 6px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); color: #1f2437; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-chip:hover { color: #1f2437; filter: brightness(.97); }
.ag-chip.is-cancelled { text-decoration: line-through; opacity: .55; }
.ag-chip.is-postponed { font-style: italic; opacity: .75; }
.ag-more { display: block; font-size: .68rem; color: #6b7189; margin-top: 2px; }
@media (max-width: 767.98px) {
    .ag-card { padding: 16px; }
    .ag-cal td { height: 48px; padding: 2px; text-align: center; }
    .ag-cal .d { width: 24px; height: 24px; font-size: .75rem; }
    .ag-cal td.has .d { box-shadow: inset 0 0 0 2px #0f766e; }
    .ag-cal td.today.has .d { box-shadow: none; }
    .ag-chip { font-size: 0; height: 4px; padding: 0; border-left: 0; background: var(--c); margin: 2px auto 0; width: 70%; }
    .ag-more { display: none; }
    .ag-cal-head h2 { font-size: 1.05rem; min-width: 0; flex: 1; }
}

/* Daftar */
.ag-list { list-style: none; margin: 0; padding: 0; }
.ag-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f1f6; }
.ag-list li:last-child { border-bottom: 0; }
.ag-list li.is-past { opacity: .6; }
.ag-list li.is-cancelled .ag-title { text-decoration: line-through; }
.ag-date { flex: 0 0 52px; height: 56px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ag-date b { font-size: 1.3rem; }
.ag-date small { font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.ag-cat { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ag-title { font-weight: 700; color: #1f2437; text-decoration: none; line-height: 1.4; }
.ag-title:hover { color: #0f766e; }
.ag-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: #6b7189; margin-top: 3px; }
.ag-note { font-size: .8rem; color: #a16207; margin-top: 4px; font-style: italic; }

/* Sidebar */
.ag-period { background: linear-gradient(135deg, #1b1f4b, #2b2f7a); border: 0; color: #fff; }
.ag-period h2 { font-size: 1.15rem; font-weight: 800; margin: 2px 0 2px; color: #fff; }
.ag-period p { color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.ag-kicker { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #5eead4; }
.ag-progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-bottom: 12px; }
.ag-progress span { display: block; height: 100%; background: #5eead4; }
.ag-mini { list-style: none; margin: 0; padding: 0; }
.ag-mini li + li { border-top: 1px solid #f0f1f6; }
.ag-mini a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; color: #1f2437; text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.ag-mini a:hover { color: #0f766e; }
.ag-mini small { display: block; font-weight: 400; color: #6b7189; font-size: .78rem; margin-top: 1px; }
.ag-mini .dot { flex: 0 0 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.ag-mini .bi { color: #0f766e; margin-top: 2px; }

/* Detail */
.ag-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; margin: -8px 0 20px; font-weight: 600; }
.ag-alert-warning { background: #fff7e6; color: #8a5a00; border: 1px solid #f5d38a; }
.ag-alert-danger { background: #fdecec; color: #a82a2f; border: 1px solid #f3b4b6; }
.ag-result { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: rgba(19, 191, 166, .1); border: 1px solid rgba(19, 191, 166, .35); color: #0b5e52; text-decoration: none; margin-bottom: 18px; }
.ag-result > .bi:first-child { font-size: 1.8rem; }
.ag-result small { display: block; color: #3d7d73; }
.ag-result:hover { background: rgba(19, 191, 166, .16); color: #0b5e52; }
.ag-dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.ag-dl dt { color: #6b7189; font-weight: 500; }
.ag-dl dd { margin: 0; font-weight: 600; }
@media (max-width: 575.98px) { .ag-dl { grid-template-columns: 1fr; gap: 2px; } .ag-dl dd { margin-bottom: 8px; } }

/* Jadwal masa sidang */
.ag-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7189; background: #f8f9fc; padding: 12px 14px; }
.ag-table td { padding: 12px 14px; vertical-align: top; border-color: #f0f1f6; }
.ag-td-date { white-space: nowrap; background: #fafbfd; font-size: .9rem; }
.ag-td-date.is-today { background: #fff7e6; }
.ag-table tr.is-past td { color: #8a8fa3; }
.ag-table tr.is-cancelled .ag-title { text-decoration: line-through; }

body.dark-mode .ag-card:not(.ag-period),
body.dark-mode .ag-today { background: #2d3748; border-color: #4a5568; }
body.dark-mode .ag-today-item { background: #1a202c; }
body.dark-mode .ag-cal td { border-color: #4a5568; }
body.dark-mode .ag-cal td.out, body.dark-mode .ag-td-date, body.dark-mode .ag-table th { background: #1a202c; }
body.dark-mode .ag-chip, body.dark-mode .ag-title, body.dark-mode .ag-mini a { color: #e2e8f0; }
body.dark-mode .ag-list li, body.dark-mode .ag-mini li + li { border-color: #4a5568; }
body.dark-mode .ag-filter a { border-color: #4a5568; color: #cbd5e0; }

/* ============================================
   KUNJUNGAN KE DPRD
   ============================================ */
.vs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vs-sub { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6b7189; margin: 8px 0 0; }
.vs-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vs-steps li { counter-increment: s; position: relative; padding-left: 44px; line-height: 1.55; }
.vs-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #0f766e; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vs-card { border: 1px solid #e6e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
.vs-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.vs-card > div { padding: 12px 14px; }
.vs-card small { display: block; color: #6b7189; font-size: .76rem; }
.vs-card strong { display: block; margin: 2px 0 4px; line-height: 1.35; }
.vs-card p { font-size: .85rem; color: #4b5068; margin: 0 0 6px; }

.vs-success { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; background: rgba(19, 191, 166, .1); border: 1px solid rgba(19, 191, 166, .35); margin-bottom: 18px; }
.vs-success > .bi { font-size: 2rem; color: #0f8f7c; }
.vs-code { display: inline-block; font: 800 1.8rem/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; background: #1b1f4b; color: #fff; padding: 10px 18px; border-radius: 12px; }
.vs-status { border: 1px solid #e6e8f0; border-radius: 14px; padding: 18px; }
.vs-status-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.vs-status-head small { color: #6b7189; }
.vs-status-head h2 { font-size: 1.2rem; font-weight: 800; margin: 2px 0; }
.vs-status-head p { margin: 0; color: #6b7189; }
.status-pill { flex: 0 0 auto; font-size: .75rem; font-weight: 800; padding: 5px 12px; border-radius: 20px; background: #f1f2f7; color: #4b5068; }
.status-pill.is-requested { background: #fff4dc; color: #a16207; }
.status-pill.is-scheduled { background: rgba(108, 95, 252, .12); color: #5546e8; }
.status-pill.is-done { background: rgba(19, 191, 166, .14); color: #0f8f7c; }
.status-pill.is-rejected { background: #fde8e8; color: #c9353a; }
.vs-progress { display: flex; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: p; }
.vs-progress li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: #9aa0b4; padding-top: 30px; counter-increment: p; }
.vs-progress li::before { content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: #e6e8f0; color: #6b7189; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 1; }
.vs-progress li + li::after { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: #e6e8f0; }
.vs-progress li.on { color: #0f766e; font-weight: 700; }
.vs-progress li.on::before { background: #0f766e; color: #fff; }
.vs-progress li.on::after { background: #0f766e; }

body.dark-mode .vs-card, body.dark-mode .vs-status { background: #2d3748; border-color: #4a5568; }
body.dark-mode .vs-card p { color: #cbd5e0; }
.vs-code-input { text-transform: uppercase; letter-spacing: .08em; }
.vs-code-input::placeholder { text-transform: none; letter-spacing: normal; }

/* ============================================
   FORUM DISKUSI
   ============================================ */
.fm-hero-stats { display: flex; gap: 10px; }
.fm-hero-stats div { text-align: center; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); min-width: 92px; }
.fm-hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.fm-hero-stats span { font-size: .78rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 575.98px) { .fm-hero-stats { width: 100%; } .fm-hero-stats div { flex: 1; min-width: 0; padding: 10px 6px; } }

.fm-board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 18px; margin-bottom: 24px; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.fm-board-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.fm-board-head p { margin: 2px 0 0; color: #4b5068; }
.fm-board-icon { flex: 0 0 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--c); color: #fff; }

.fm-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fm-board { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e6e8f0; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.fm-board:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 31, 75, .08); color: inherit; }
.fm-board .fm-board-icon { flex-basis: 40px; height: 40px; border-radius: 12px; font-size: 1.1rem; }
.fm-board strong { display: block; line-height: 1.3; }
.fm-board small { color: #6b7189; }

.fm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef0f5; }
.fm-search { position: relative; flex: 1 1 220px; }
.fm-search .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa0b4; }
.fm-search .form-control { padding-left: 36px; border-radius: 10px; }
.fm-toolbar .form-select { width: auto; border-radius: 10px; }

.fm-topics { list-style: none; margin: 0; padding: 0; }
.fm-topics li { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #f0f1f6; }
.fm-topics li:last-child { border-bottom: 0; }
.fm-topics li.is-pinned { background: #fbfaff; }
.fm-avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(108, 95, 252, .12); color: #5546e8; }
.fm-avatar.is-official { background: #13bfa6; color: #fff; }
.fm-topic-main { flex: 1; min-width: 0; }
.fm-topic-title { display: block; font-weight: 700; font-size: 1.02rem; color: #1f2437; text-decoration: none; line-height: 1.4; }
.fm-topic-title:hover { color: #0f766e; }
.fm-excerpt { margin: 3px 0 4px; font-size: .88rem; color: #4b5068; }
.fm-meta { font-size: .78rem; color: #8a8fa3; }
.fm-counts { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .8rem; color: #6b7189; white-space: nowrap; }
.fm-badges { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 2px; }
.fm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: #6b7189; text-decoration: none; }
.fm-badge.is-answered { color: #0f8f7c; }
.fm-badge.is-pin { color: #5546e8; }
.fm-badge.is-locked { color: #8a8fa3; }
.fm-empty { text-align: center; padding: 40px 20px; color: #6b7189; }
.fm-empty .bi { font-size: 2.4rem; display: block; margin-bottom: 8px; color: #b4b8c9; }
.fm-rules ol { padding-left: 18px; margin-bottom: 10px; font-size: .88rem; }
.fm-rules li + li { margin-top: 4px; }

/* Halaman topik */
.fm-title { font-size: 1.55rem; font-weight: 800; line-height: 1.3; margin: 0 0 14px; }
.fm-author { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.fm-author small { display: block; color: #8a8fa3; font-size: .78rem; }
.fm-body { line-height: 1.75; overflow-wrap: anywhere; }
.fm-body p:last-child { margin-bottom: 0; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f1f6; }
.fm-report summary { font-size: .8rem; color: #8a8fa3; cursor: pointer; list-style: none; padding: 4px 8px; }
.fm-report summary::-webkit-details-marker { display: none; }
.fm-report[open] summary { color: #c9353a; }
.fm-report form { margin-top: 6px; max-width: 280px; }
.fm-section { font-size: 1.05rem; font-weight: 800; margin: 26px 0 12px; }
.fm-reply { background: #fff; border: 1px solid #e6e8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.fm-reply.is-official { border: 2px solid #13bfa6; background: #f3fcfa; }
.fm-reply .fm-actions { margin-top: 8px; padding-top: 6px; }
.fm-official-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-radius: 12px; background: rgba(19, 191, 166, .1); margin-top: 16px; }
.fm-official-summary h2 { font-size: .95rem; font-weight: 800; color: #0f8f7c; margin: 0; }
.fm-official-summary a { font-size: .85rem; font-weight: 600; color: #0b5e52; }

/* Formulir topik baru */
.fm-counter { float: right; font-size: .75rem; color: #8a8fa3; font-weight: 500; }
.fm-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pick input { position: absolute; opacity: 0; }
.fm-pick label { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 30px; border: 1.5px solid #e2e5ee; cursor: pointer; font-weight: 600; font-size: .88rem; }
.fm-pick label .bi { color: var(--c); }
.fm-pick input:checked + label { background: var(--c); border-color: var(--c); color: #fff; }
.fm-pick input:checked + label .bi { color: #fff; }
.fm-pick input:focus-visible + label { outline: 3px solid rgba(108, 95, 252, .35); }

body.dark-mode .fm-board, body.dark-mode .fm-reply { background: #2d3748; border-color: #4a5568; }
body.dark-mode .fm-reply.is-official { background: #1f3a37; }
body.dark-mode .fm-topics li { border-color: #4a5568; }
body.dark-mode .fm-topics li.is-pinned { background: #262d3d; }
body.dark-mode .fm-topic-title { color: #e2e8f0; }
body.dark-mode .fm-excerpt, body.dark-mode .fm-board-head p { color: #cbd5e0; }
body.dark-mode .fm-board-head { background: #2d3748; border-color: #4a5568; }

/* ===== Akun Saya ===== */
.ac-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #fff; border: 1px solid #e6e8f0; border-radius: 16px; padding: 20px 22px; margin-bottom: 18px; }
.ac-avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.ac-head h1 { font-size: 1.3rem; font-weight: 800; margin: 0 0 4px; }
.ac-head p { margin: 0; font-size: .86rem; color: #6b7189; }
.ac-list { list-style: none; margin: 0; padding: 0; }
.ac-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0f5; }
.ac-list li:first-child { padding-top: 0; }
.ac-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-list a { color: inherit; text-decoration: none; }
.ac-list a:hover { color: #0f766e; }
.ac-list .min-w-0 { min-width: 0; }
.ac-act { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.ac-act li { padding: 6px 0; border-bottom: 1px dashed #e6e8f0; }
.ac-act li:last-child { border-bottom: 0; }
.ac-act span { display: block; font-size: .74rem; color: #8a8fa3; }
body.dark-mode .ac-head { background: #1e2130; border-color: #2c3045; }
body.dark-mode .ac-list li, body.dark-mode .ac-act li { border-color: #2c3045; }
@media (max-width: 575.98px) { .ac-head { padding: 16px; } .ac-list li { flex-wrap: wrap; } }

/* ===== Navigasi bawah: tombol Absen (anggota dewan) & avatar akun ===== */
.bottom-nav-fab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-height: 52px;
    color: #5b4fe9;
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-fab .fab {
    position: absolute;
    top: -26px;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #5b4fe9, #8b5cf6);
    box-shadow: 0 10px 22px rgba(91, 79, 233, .45), 0 0 0 5px #fff;
    transition: transform .15s;
}
.bottom-nav-fab:active .fab { transform: scale(.92); }
.bottom-nav-fab.is-pending .fab { background: linear-gradient(135deg, #e5484d, #f97316); box-shadow: 0 10px 22px rgba(229, 72, 77, .45), 0 0 0 5px #fff; animation: fabPulse 2s infinite; }
.bottom-nav-fab.is-pending { color: #e5484d; }
.bottom-nav-fab .fab em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #fff;
    color: #e5484d;
    font-size: .7rem;
    font-style: normal;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.bottom-nav-fab > span:last-child { padding-bottom: 4px; }
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 10px 22px rgba(229, 72, 77, .45), 0 0 0 5px #fff; }
    50% { box-shadow: 0 10px 22px rgba(229, 72, 77, .45), 0 0 0 5px #fff, 0 0 0 11px rgba(229, 72, 77, .18); }
}
.bottom-nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5b4fe9, #8b5cf6);
}
body.dark-mode .bottom-nav-fab .fab { box-shadow: 0 10px 22px rgba(91, 79, 233, .45), 0 0 0 5px #2d3748; }
body.dark-mode .bottom-nav-fab.is-pending .fab { box-shadow: 0 10px 22px rgba(229, 72, 77, .45), 0 0 0 5px #2d3748; }

/* Kartu akun di menu ponsel */
.mobile-account { margin-bottom: 18px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(91, 79, 233, .1), rgba(139, 92, 246, .06)); border: 1px solid rgba(91, 79, 233, .15); }
.mobile-account-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mobile-account-head b { display: block; line-height: 1.2; }
.mobile-account-head small { color: var(--text-light); font-size: .78rem; }
.mobile-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-account-actions a { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: .84rem; font-weight: 700; color: var(--text-dark); text-decoration: none; }
.mobile-account-actions a.is-primary { background: linear-gradient(135deg, #5b4fe9, #8b5cf6); color: #fff; }
.mobile-account-actions a.is-danger { color: #e5484d; }
body.dark-mode .mobile-account-actions a:not(.is-primary) { background: #2d3748; color: #e2e8f0; }
body.dark-mode .mobile-account-actions a.is-danger { color: #fca5a5; }
