/*
Theme Name: Astra Child - PA Kwandang
Theme URI: https://pa-kwandang.go.id
Description: Tema Modern Pengadilan Agama Kwandang dengan standar visual Ditjen Badilag MA RI.
Author: Tim TI PA Kwandang
Author URI: https://pa-kwandang.go.id
Template: astra
Version: 1.1.0
*/

/* Google Fonts dimuat secara non-blocking melalui functions.php */

:root {
    --pa-green: #056E4F;
    --pa-green-dark: #034833;
    --pa-green-light: #0d8a65;
    --pa-gold: #ff9900;
    --pa-gold-hover: #e08600;
    --pa-bg-light: #f8faf9;
    --pa-text: #2c3e50;
    --pa-border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--pa-text);
    background-color: #f1f5f3;
}

h1, h2, h3, h4, h5, h6, .site-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Sembunyikan Judul Halaman di Beranda Utama */
.home .entry-title,
.home .page-title,
.home .ast-archive-description,
.home .entry-header {
    display: none !important;
}

/* TOP BAR (Waktu & Tanggal + Akses Cepat) */
.kwd-topbar {
    background-color: var(--pa-green-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--pa-gold);
}
.kwd-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.kwd-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.kwd-topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.kwd-topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.kwd-topbar a:hover {
    color: var(--pa-gold);
}

/* HEADER BANNER LOGO */
.kwd-header-banner {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid var(--pa-border);
}
.kwd-header-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.kwd-logo-img {
    max-height: 85px;
    height: auto;
    width: auto;
    display: block;
}

/* MENU BAR UTAMA (PASTI SEBARIS PENUH TANPA TURUN) */
.kwd-navbar-wrap {
    background-color: var(--pa-green);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--pa-gold);
}
.kwd-navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
}
.kwd-main-nav {
    width: 100%;
}
.kwd-main-nav,
.kwd-main-nav ul,
.kwd-main-nav ol,
.kwd-main-nav li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.kwd-main-nav li::before,
.kwd-main-nav li::after,
.kwd-main-nav li::marker {
    content: none !important;
    display: none !important;
}

.kwd-main-nav > ul,
.kwd-main-nav ul.kwd-menu-ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: nowrap !important; /* WAJIB TIDAK BUNGKUS */
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}
.kwd-main-nav > ul > li {
    position: relative;
    flex: 1 1 auto;
    text-align: center;
}
.kwd-main-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 8px !important;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.81rem !important;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap !important; /* ANTI TURUN */
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}
.kwd-main-nav > ul > li:hover > a,
.kwd-main-nav > ul > li.current-menu-item > a {
    background-color: var(--pa-green-dark);
    color: var(--pa-gold);
    border-bottom-color: var(--pa-gold);
}

/* DROPDOWN SUBMENU - CLEAN, NO FLOATING BULLETS, BISA DISCROLL SEMPURNA, EXPAND KE BAWAH */
.kwd-main-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    max-width: 340px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border-top: 3px solid var(--pa-gold);
    border-radius: 0 0 6px 6px;
    display: none;
    z-index: 1000;
    flex-direction: column;
    text-align: left;
    max-height: calc(85vh - 50px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: var(--pa-green) #f1f5f9;
}
.kwd-main-nav ul li ul::-webkit-scrollbar {
    width: 6px;
}
.kwd-main-nav ul li ul::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.kwd-main-nav ul li ul::-webkit-scrollbar-thumb {
    background-color: var(--pa-green);
    border-radius: 4px;
}
.kwd-main-nav ul li:hover > ul {
    display: flex;
}
.kwd-main-nav ul li ul li {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}
.kwd-main-nav ul li ul li:last-child {
    border-bottom: none;
}
.kwd-main-nav ul li ul li a {
    display: block;
    padding: 9px 16px !important;
    color: #334155 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem !important;
    font-weight: 500;
    text-decoration: none;
    text-transform: none;
    white-space: normal !important;
    line-height: 1.4;
    transition: all 0.15s ease;
}
.kwd-main-nav ul li ul li:hover > a {
    background-color: #f0fdf4;
    color: var(--pa-green) !important;
    padding-left: 20px !important;
    font-weight: 600;
}

/* Indikator Panah Sub-menu Bertingkat (Level 3 - Expand ke Bawah) */
.kwd-main-nav ul li ul li.menu-item-has-children > a::after {
    content: " ▾";
    float: right;
    font-size: 0.75rem;
    color: var(--pa-gold);
}

/* 3rd Level Submenu - In-flow Nested Accordion di Dalam Scroll Container */
.kwd-main-nav ul li ul li ul {
    position: static !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: 3px solid var(--pa-gold);
    background: #f8fafc !important;
    display: none;
    max-height: none !important;
    overflow: visible !important;
}
.kwd-main-nav ul li ul li:hover > ul {
    display: flex !important;
}
.kwd-main-nav ul li ul li ul li a {
    font-size: 0.78rem !important;
    padding: 7px 14px 7px 22px !important;
    color: #475569 !important;
}
.kwd-main-nav ul li ul li ul li:hover > a {
    background-color: #e2e8f0;
    color: var(--pa-green) !important;
    padding-left: 26px !important;
}

/* Cegah dropdown menu paling kanan terpotong tepi layar desktop */
.kwd-main-nav > ul > li:last-child > ul {
    left: auto;
    right: 0;
}

/* Penyesuaian ukuran font navigasi 6 menu utama pada layar laptop/desktop menengah */
@media (min-width: 992px) and (max-width: 1180px) {
    .kwd-main-nav > ul > li > a {
        font-size: 0.74rem !important;
        padding: 12px 5px !important;
    }
}

/* MOBILE NAVIGATION BAR & RESPONSIVE MENU (STANDAR SK 2722/2026 LAMPIRAN II.B.1) */
.kwd-mobile-nav-bar {
    display: none;
}
@media (max-width: 991px) {
    .kwd-navbar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    .kwd-mobile-nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.88rem;
        font-weight: 600;
    }
    .kwd-mobile-nav-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .kwd-mobile-menu-toggle {
        background: var(--pa-green-dark);
        color: var(--pa-gold);
        border: 1.5px solid var(--pa-gold);
        border-radius: 6px;
        padding: 6px 14px;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.84rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
    }
    .kwd-mobile-menu-toggle:hover,
    .kwd-mobile-menu-toggle[aria-expanded="true"] {
        background: var(--pa-gold);
        color: var(--pa-green-dark);
    }
    .kwd-main-nav {
        display: none;
        width: 100%;
        background: var(--pa-green-dark);
        max-height: 75vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .kwd-main-nav.mobile-open {
        display: block !important;
    }
    .kwd-main-nav > ul,
    .kwd-main-nav ul.kwd-menu-ul {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    .kwd-main-nav > ul > li {
        flex: none;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .kwd-main-nav > ul > li > a {
        justify-content: space-between;
        padding: 12px 16px !important;
        white-space: normal !important;
        border-bottom: none;
    }
    .kwd-main-nav > ul > li.menu-item-has-children > a::after {
        content: " ▾";
        color: var(--pa-gold);
        font-size: 0.85rem;
        margin-left: 8px;
    }
    .kwd-main-nav ul li ul {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 3px solid var(--pa-gold);
        display: none !important;
    }
    .kwd-main-nav ul li:hover > ul,
    .kwd-main-nav ul li ul li:hover > ul {
        display: none !important;
    }
    .kwd-main-nav ul li.mobile-sub-open > ul {
        display: flex !important;
    }
}

/* SLIDER COMPONENT (TAJAM, FULL VISIBLE, ANTI BLUR & ANTI CROP) */
.kwd-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 10px auto 25px;
    border-radius: 8px;
    overflow: hidden;
    background: #033a2a; /* Latar belakang hijau peradilan gelap mewah */
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.kwd-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6; /* Rasio banner 16:6 ideal */
    min-height: 220px;
    max-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .kwd-slider-container {
        aspect-ratio: 16 / 8;
        min-height: 180px;
    }
}
.kwd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kwd-slide.active {
    opacity: 1;
    z-index: 2;
}
.kwd-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}
.kwd-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important; /* 100% UTUH TANPA TERPOTONG & TANPA BLUR */
    display: block;
    margin: 0 auto;
}
.kwd-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(3, 72, 51, 0.95));
    color: #fff;
    padding: 25px 25px 15px;
    text-align: left;
}
.kwd-slide-caption h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: #fff;
}
.kwd-slide-caption p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
}
@media (max-width: 768px) {
    .kwd-slide-caption {
        display: none; /* di hp fokus gambar banner agar tidak menutupi */
    }
}
.kwd-slider-prev, .kwd-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s;
}
.kwd-slider-prev:hover, .kwd-slider-next:hover {
    background: var(--pa-green);
}
.kwd-slider-prev { left: 15px; }
.kwd-slider-next { right: 15px; }
.kwd-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.kwd-dot {
    width: 11px;
    height: 11px;
    background: rgba(255,255,255,0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.kwd-dot.active {
    background: var(--pa-gold);
    transform: scale(1.2);
}

/* CONTAINER & LAYOUT */
.kwd-site-container {
    max-width: 1240px;
    margin: 15px auto 40px;
    padding: 0 15px;
}

/* SPLIT BAWAH (70% KONTEN / TAB BERITA : 30% SIDEBAR - BERDAMPINGAN SECARA PRESISI) */
.kwd-bottom-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: flex-start !important;
    margin-top: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.kwd-home-full {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
}
.kwd-split-left,
.kwd-bottom-split > .kwd-main-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 365px) !important;
    box-sizing: border-box !important;
}
.kwd-split-right,
.kwd-sidebar {
    width: 340px !important;
    flex: 0 0 340px !important;
    box-sizing: border-box !important;
}
@media (max-width: 991px) {
    .kwd-bottom-split {
        flex-direction: column !important;
    }
    .kwd-split-left,
    .kwd-main-content,
    .kwd-split-right,
    .kwd-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* RESPONSIF GAMBAR & KONTEN HALAMAN ANTI-ZOOM OUT */
.kwd-main-content img,
.entry-content img,
.post-content img,
.ast-single-post-order img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* HILANGKAN FITUR KOMENTAR SEPENUHNYA */
#comments,
.comments-area,
.comment-respond,
.ast-comment-template,
#respond {
    display: none !important;
}

/* CARDS & SECTIONS */
.kwd-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--pa-border);
    margin-bottom: 25px;
    overflow: hidden;
}
.kwd-card-header {
    background: linear-gradient(135deg, var(--pa-green), var(--pa-green-dark));
    color: #ffffff;
    padding: 12px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--pa-gold);
}
.kwd-card-body {
    padding: 18px;
}

/* QUICK LINK APP GRID (4 KOLOM) */
.kwd-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 15px 0 25px;
}
.kwd-app-grid > br,
.kwd-app-grid > p {
    display: none !important;
}
@media (max-width: 768px) {
    .kwd-app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.kwd-app-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #334155;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.kwd-app-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(5, 110, 79, 0.15);
    border-color: var(--pa-green);
    color: var(--pa-green);
}
.kwd-app-item img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 140px !important;
    width: auto !important;
    margin-bottom: 8px;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}
.kwd-app-item span {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

/* INOVASI SATKER (3 KOLOM) */
.kwd-inovasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0 25px;
}
.kwd-inovasi-grid > br,
.kwd-inovasi-grid > p {
    display: none !important;
}
@media (max-width: 768px) {
    .kwd-inovasi-grid {
        grid-template-columns: 1fr;
    }
}
.kwd-inovasi-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.25s ease;
}
.kwd-inovasi-item:hover {
    border-color: var(--pa-gold);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.22);
    transform: translateY(-2px);
}
.kwd-inovasi-item img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 110px !important;
    width: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}
.kwd-inovasi-item .title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pa-green-dark);
}
.kwd-inovasi-item .desc {
    font-size: 0.78rem;
    color: #64748b;
}

/* TAB ARTIKEL BERITA & PENGUMUMAN */
.kwd-news-tab-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--pa-border);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 100%;
}
.kwd-news-tab-header {
    display: flex;
    background: #f1f5f9;
    border-bottom: 2px solid var(--pa-green);
}
.kwd-tab-btn {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.kwd-tab-btn:hover {
    color: var(--pa-green);
    background: #e2e8f0;
}
.kwd-tab-btn.active {
    background: var(--pa-green);
    color: #ffffff;
}
.kwd-tab-pane {
    display: none;
}
.kwd-tab-pane.active {
    display: block;
}
.kwd-news-list {
    padding: 5px 0;
}
.kwd-news-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.kwd-news-item:hover {
    background: #f8fafc;
}
.kwd-news-item:last-child {
    border-bottom: none;
}
.kwd-news-thumb {
    flex: 0 0 130px;
    width: 130px;
    height: 86px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    position: relative;
    border: 1px solid #e2e8f0;
}
.kwd-news-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}
.kwd-news-item:hover .kwd-news-thumb img {
    transform: scale(1.05);
}
.kwd-news-body {
    flex: 1 1 auto;
    min-width: 0;
}
.kwd-news-meta {
    margin-bottom: 4px;
}
.badge-date {
    background: #e6f4ea;
    color: var(--pa-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-ann {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.kwd-news-title {
    margin: 4px 0 6px;
    font-size: 0.96rem;
    line-height: 1.4;
}
.kwd-news-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}
.kwd-news-title a:hover {
    color: var(--pa-green);
}
.kwd-news-excerpt {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
}
@media (max-width: 576px) {
    .kwd-news-item {
        flex-direction: column;
        gap: 12px;
    }
    .kwd-news-thumb {
        width: 100%;
        height: 160px;
        flex: 0 0 160px;
    }
}

/* ARSIP LENGKAP BERITA & PENGUMUMAN CARDS */
.kwd-archive-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.2s ease;
}
.kwd-archive-card:hover {
    box-shadow: 0 4px 12px rgba(5, 110, 79, 0.08);
    border-color: #cbd5e1;
}
.kwd-archive-thumb {
    flex: 0 0 160px;
    width: 160px;
    height: 108px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    position: relative;
    border: 1px solid #e2e8f0;
}
.kwd-archive-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}
.kwd-archive-card:hover .kwd-archive-thumb img {
    transform: scale(1.04);
}
.kwd-archive-body {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 640px) {
    .kwd-archive-card {
        flex-direction: column;
        gap: 14px;
    }
    .kwd-archive-thumb {
        width: 100%;
        height: 180px;
        flex: 0 0 180px;
    }
}

/* SIDEBAR WIDGETS */
.kwd-sidebar {
    width: 100%;
}
.kwd-sidebar-widget {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--pa-border);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.kwd-sidebar-title {
    background: var(--pa-green);
    color: #ffffff;
    padding: 10px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border-left: 4px solid var(--pa-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}
.kwd-sidebar-content {
    padding: 15px;
}
.kwd-sidebar-content:empty {
    display: none;
}

/* VERTICAL QUICK MENU */
.kwd-quick-vmenu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kwd-quick-vmenu li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.kwd-quick-vmenu li:last-child {
    border-bottom: none;
}
.kwd-quick-vmenu li a {
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.kwd-quick-vmenu li a:hover {
    color: var(--pa-green);
    padding-left: 5px;
}
.kwd-quick-vmenu li a i {
    color: var(--pa-green);
}

/* FOOTER */
.kwd-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 4px solid var(--pa-green);
}
.kwd-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}
.kwd-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}
@media (max-width: 768px) {
    .kwd-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
.kwd-footer h4,
.kwd-footer-col-item h4,
.kwd-footer-col-item .widgettitle,
.kwd-footer-col-item .widget-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--pa-gold);
    display: inline-block;
    padding-bottom: 5px;
}
.kwd-footer p,
.kwd-footer li,
.kwd-footer-col-item p,
.kwd-footer-col-item li {
    font-size: 0.88rem;
    line-height: 1.6;
}
.kwd-footer ul,
.kwd-footer-col-item ul,
.kwd-footer-col-item .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kwd-footer ul li a,
.kwd-footer-col-item ul li a,
.kwd-footer-col-item .menu li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.kwd-footer ul li a:hover,
.kwd-footer-col-item ul li a:hover,
.kwd-footer-col-item .menu li a:hover {
    color: var(--pa-gold);
    padding-left: 3px;
}
.kwd-copyright {
    border-top: 1px solid #334155;
    padding-top: 15px;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* SEARCH BAR HEADER GAYA BADILAG */
.kwd-header-search-wrap {
    min-width: 320px;
    max-width: 380px;
}
.kwd-search-input-group {
    display: flex;
    align-items: stretch;
    height: 40px;
    border: 2px solid var(--pa-green, #056E4F);
    border-radius: 9999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 110, 79, 0.08);
    transition: all 0.25s ease;
    box-sizing: border-box;
    padding: 0 !important;
}
.kwd-search-input-group:focus-within {
    border-color: var(--pa-gold, #ff9900);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.25);
}
.kwd-header-search-field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    margin: 0 !important;
    height: 100% !important;
    font-size: 0.85rem !important;
    font-family: 'Inter', sans-serif !important;
    color: #334155 !important;
    flex: 1 1 auto !important;
    background: transparent !important;
    border-radius: 0 !important;
}
.kwd-header-search-btn {
    background: var(--pa-green, #056E4F) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 18px !important;
    height: 100% !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}
.kwd-header-search-btn:hover {
    background: #034833 !important;
    color: var(--pa-gold, #ff9900) !important;
}
@media (max-width: 768px) {
    .kwd-header-banner-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .kwd-header-search-wrap {
        width: 100%;
        min-width: 100%;
    }
}

/* WIDGET FOOTER MODULAR */
.kwd-footer-widget {
    margin-bottom: 20px;
}
.kwd-footer-widget:last-child {
    margin-bottom: 0;
}
.kwd-footer-widget h4,
.kwd-footer-widget .widget-title {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--pa-gold, #ff9900);
    display: inline-block;
    padding-bottom: 5px;
}
.kwd-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kwd-footer-widget ul li {
    font-size: 0.88rem;
    line-height: 1.8;
}
.kwd-footer-widget ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}
.kwd-footer-widget ul li a:hover {
    color: var(--pa-gold, #ff9900);
    padding-left: 4px;
}

/* TOPBAR RESPONSIVE UTILITY TANPA BOOTSTRAP CSS */
.kwd-topbar .d-none {
    display: none;
}
@media (min-width: 768px) {
    .kwd-topbar .d-md-inline {
        display: inline;
    }
}

/* KOTAK STATISTIK KUNJUNGAN DI FOOTER */
.kwd-footer-stats-list {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px !important;
}
.kwd-footer-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}
.kwd-footer-stats-list li:last-child {
    border-bottom: none;
}
.kwd-footer-stats-list li strong {
    color: #ffffff;
    font-weight: 700;
}

/* RUNNING TEXT TICKER HTML5 VALID */
.kwd-running-ticker {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}
.kwd-running-track {
    display: inline-block;
    padding-left: 100%;
    animation: kwdMarquee var(--kwd-ticker-duration, 28s) linear infinite;
}
.kwd-running-ticker:hover .kwd-running-track {
    animation-play-state: paused;
}
@keyframes kwdMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .kwd-running-track {
        animation: none;
        padding-left: 0;
        white-space: normal;
    }
}

/* WIDGET SARANA DISABILITAS NATIVE (WCAG) */
.kwd-a11y-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.kwd-a11y-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ff9900;
    color: #111827;
    border: 2px solid #034833;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s, background 0.2s;
}
.kwd-a11y-toggle-btn:hover {
    background: #e08600;
    transform: translateY(-2px);
}
.kwd-a11y-panel {
    display: none;
    width: 270px;
    background: #ffffff;
    border: 2px solid #056E4F;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    margin-bottom: 10px;
    overflow: hidden;
}
.kwd-a11y-panel.show {
    display: block;
}
.kwd-a11y-panel-header {
    background: #056E4F;
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kwd-a11y-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.kwd-a11y-panel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kwd-a11y-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #034833;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.kwd-a11y-action-btn:hover {
    background: #ecfdf5;
    border-color: #056E4F;
}
.kwd-a11y-sr-btn {
    background: #ff9900;
    color: #111827;
    border-color: #e08600;
    font-weight: 700;
}
.kwd-a11y-sr-btn:hover {
    background: #e08600;
    border-color: #b45309;
}
.kwd-a11y-reset-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
    text-align: center;
}
@media (max-width: 576px) {
    .kwd-a11y-widget {
        bottom: 18px;
        left: 12px;
    }
    .kwd-a11y-toggle-btn {
        padding: 9px 13px;
        font-size: 0.82rem;
    }
}

/* MODE KONTRAS TINGGI (WCAG HIGH CONTRAST) */
body.kwd-high-contrast,
body.kwd-high-contrast .kwd-header-banner,
body.kwd-high-contrast .kwd-topbar,
body.kwd-high-contrast .kwd-navbar-wrap,
body.kwd-high-contrast .kwd-site-container,
body.kwd-high-contrast .kwd-sidebar-widget,
body.kwd-high-contrast .kwd-card,
body.kwd-high-contrast .kwd-news-tab-card,
body.kwd-high-contrast .kwd-app-item,
body.kwd-high-contrast .kwd-inovasi-item,
body.kwd-high-contrast .kwd-footer,
body.kwd-high-contrast .kwd-a11y-panel {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
body.kwd-high-contrast a,
body.kwd-high-contrast h1,
body.kwd-high-contrast h2,
body.kwd-high-contrast h3,
body.kwd-high-contrast h4,
body.kwd-high-contrast p,
body.kwd-high-contrast span,
body.kwd-high-contrast li,
body.kwd-high-contrast td,
body.kwd-high-contrast th,
body.kwd-high-contrast div {
    color: #ffff00 !important;
}
body.kwd-high-contrast button,
body.kwd-high-contrast .kwd-a11y-toggle-btn,
body.kwd-high-contrast .kwd-header-search-btn {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}
body.kwd-high-contrast button *,
body.kwd-high-contrast .kwd-a11y-toggle-btn *,
body.kwd-high-contrast .kwd-header-search-btn * {
    color: #000000 !important;
}




/* ========================================================
   STANDARISASI TABEL LAPORAN BADILAG (SK 2722/2026)
   ======================================================== */
.kwd-report-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 24px 28px;
    margin-bottom: 30px;
}
.kwd-report-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
}
.kwd-report-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef7f2;
    color: #056E4F;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.kwd-report-title {
    color: #056E4F !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}
.kwd-report-subtitle {
    color: #64748b !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}
.kwd-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.kwd-report-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.92rem !important;
    text-align: left !important;
    margin: 0 !important;
}
.kwd-report-table th {
    background: #056E4F !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
}
.kwd-report-table td {
    padding: 12px 16px !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #334155 !important;
    vertical-align: middle !important;
}
.kwd-report-table tbody tr:nth-child(even) {
    background-color: #f8fafc !important;
}
.kwd-report-table tbody tr:hover {
    background-color: #f1f8f5 !important;
}
.kwd-report-table td a,
.kwd-btn-unduh {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #056E4F !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.kwd-report-table td a::before,
.kwd-btn-unduh::before {
    content: "\f63e" !important;
    font-family: "bootstrap-icons" !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: -0.05em !important;
}
.kwd-report-table td a > i,
.kwd-btn-unduh > i {
    display: none !important;
}
.kwd-report-table td a:hover,
.kwd-btn-unduh:hover {
    background: #034834 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 110, 79, 0.3) !important;
    transform: translateY(-1px) !important;
}
.kwd-badge-pending {
    display: inline-block !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.kwd-badge-nihil {
    display: inline-block !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}
.kwd-folder-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #ff9900 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-top: 25px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.kwd-folder-banner-text {
    font-size: 0.92rem !important;
    color: #334155 !important;
    line-height: 1.5 !important;
}
.kwd-folder-banner-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ff9900 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.kwd-folder-banner-btn:hover {
    background: #e68a00 !important;
    color: #ffffff !important;
}
