/*
Theme Name:   JDIH Flotim Jabar Style
Theme URI:    https://jdih.florestimurkab.go.id
Description:  Tema Custom JDIH Flores Timur (Referensi JDIH Jabar).
Author:       Tim IT JDIH - Timur Rimba
Template:     astra
Version:      2.0.0
Text Domain:  jdih-flotim-theme
*/

/* 1. IMPORT FONT (Inter - Font Standar Modern) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body, h1, h2, h3, h4, h5, h6, button, input, select, textarea {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: #333;
}

:root {
    /* Palet Warna Mirip JDIH Jabar */
    --jdih-blue-dark: #1e3a8a;   /* Biru Gelap (Navy) */
    --jdih-blue-light: #2563eb;  /* Biru Terang (Link/Button) */
    --jdih-gold: #fbbf24;        /* Aksen Kuning/Emas (Opsional) */
    --jdih-bg: #f3f4f6;          /* Abu-abu sangat muda (Background) */
    --jdih-text-main: #1f2937;   /* Teks Hitam Abu */
}
/* =========================================
   CUSTOM HEADER - FLOTIM IDENTITY
   ========================================= */
.site-header-custom {
    background: #fff;
    border-bottom: 2px solid #f1f5f9;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Branding */
.header-branding .logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.main-logo {
    height: 55px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-top {
    font-size: 22px;
    font-weight: 800;
    color: var(--jdih-blue-dark);
    line-height: 1;
}

.brand-bottom {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-menu-custom {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu-custom a {
    text-decoration: none;
    color: var(--jdih-blue-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-menu-custom a:hover {
    color: var(--jdih-blue-light);
}

/* =========================================
   OPTIMASI BUTTON ADMIN & MOBILE TOGGLE
   ========================================= */

.btn-admin-access {
    background: #f1f5f9;
    color: var(--jdih-blue-dark);
    width: 42px; /* Sedikit lebih besar agar nyaman ditekan */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Transisi lebih halus */
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-admin-access:hover {
    background: var(--jdih-blue-dark);
    color: #fff;
    transform: translateY(-2px); /* Efek melayang */
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2); /* Shadow biru transparan */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle - Dioptimalkan untuk Touch Target */
.mobile-menu-toggle {
    display: none;
    background: #f8fafc; /* Beri background tipis agar terlihat seperti tombol */
    border: 1px solid #e2e8f0;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 20px;
    color: var(--jdih-blue-dark);
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:active {
    transform: scale(0.95); /* Efek klik pada layar sentuh */
    background: #edf2f7;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-navigation {
        display: none; /* Sembunyikan menu standar */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Gunakan flex agar ikon tepat di tengah */
    }

    .btn-admin-access {
        margin-left: auto; /* Geser ke samping toggle pada mobile */
        margin-right: 10px;
    }
}

/* =========================================
   JDIH FLOTIM - FINAL POLISHED (JABAR STYLE)
   ========================================= */

/* 1. RESET CONTAINER ASTRA (Agar Full Width) */
.home .site-content .ast-container,
.home #primary, .home #main, .home article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* 2. HEADER & MENU */
.main-header-bar { border-bottom: 1px solid #f0f0f0; }
.main-navigation a {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    color: #1e3a8a !important; /* Navy */
}

/* 3. HERO SECTION */
.jdih-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important;
    padding: 140px 20px 120px; /* Padding bawah ditambah untuk ruang stats */
    text-align: center;
    color: white;
    position: relative;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- PERBAIKAN SEARCH BOX (HORIZONTAL CAPSULE) --- */
.hero-search-box .jdih-search-wrapper {
    background: #fff;
    border-radius: 60px; /* Lebih bulat */
    padding: 10px 15px;  /* Padding lebih tipis agar ramping */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-width: 950px;    /* Lebih lebar */
    margin: 0 auto;
    border: 4px solid rgba(255,255,255,0.1); /* Efek glow tipis */
}

/* Paksa Grid menjadi Baris Horizontal */
.hero-search-box .jdih-search-grid {
    display: flex !important; /* Pakai Flexbox */
    align-items: center;
    gap: 0; /* Hapus celah default */
}

.hero-search-box .jdih-field {
    flex-grow: 1; /* Isi ruang kosong */
    padding: 0 15px;
    border-right: 1px solid #eee; /* Garis pemisah antar kolom */
    margin-bottom: 0 !important;
}

.hero-search-box .jdih-field:last-child {
    border-right: none;
    flex-grow: 0; /* Tombol tidak perlu melebar */
    padding-right: 5px;
}

/* Inputan Transparan */
.hero-search-box input, 
.hero-search-box select {
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    height: 45px !important;
    width: 100%;
    color: #333;
    padding: 0 !important;
}
.hero-search-box input:focus, .hero-search-box select:focus { outline: none; }

/* Tombol Cari Bulat */
.hero-search-box .jdih-btn-search {
    border-radius: 50px;
    background: #fbbf24; /* Kuning Emas */
    color: #1e3a8a;
    font-weight: 800;
    padding: 0 35px;
    height: 45px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}
.hero-search-box .jdih-btn-search:hover {
    background: #f59e0b;
    transform: translateY(-1px);
}

/* 4. STATISTIK (OVERLAP) */
.jdih-stats {
    background: #fff;
    width: 90% !important;
    max-width: 1100px !important;
    margin: -60px auto 0 auto !important; /* Naik ke atas */
    padding: 35px 0;
    border-radius: 16px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
}
.stat-item { text-align: center; padding: 10px; }
.stat-number {
    font-size: 2.8rem;
    color: #1e3a8a;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. DOKUMEN TERBARU (Layout Rapi) */
.jdih-latest {
    background: #f8fafc; /* Abu lembut */
    padding: 100px 20px 80px;
}

/* Container agar tulisan tidak mepet kiri */
.jdih-latest .ast-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px;
}

.section-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header h2 {
    color: #1e3a8a;
    font-weight: 800;
    font-size: 2rem;
    margin: 0;
}

/* Grid Dokumen */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.doc-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #1e3a8a;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}
.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* 6. HILANGKAN FOOTER ASTRA (Powered By) */
.ast-footer-copyright {
    padding: 20px 0;
    border-top: 1px solid #eee;
}
.ast-footer-copyright p { font-size: 14px; color: #888; }

/* ========================
   SINGLE PRODUK HUKUM
   ======================== */
.jdih-single-wrapper {
    background: #f8fafc;
    padding: 60px 20px;
    min-height: 80vh;
}
.jdih-single-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.single-header {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 5px solid #1e3a8a;
    margin-bottom: 30px;
    text-align: center;
}
.meta-jenis {
    display: inline-block;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.meta-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}
.st-berlaku { background: #dcfce7; color: #166534; }
.st-dicabut { background: #fee2e2; color: #991b1b; }

.single-title {
    font-size: 2rem;
    color: #1f2937;
    line-height: 1.4;
    margin: 15px 0;
    font-weight: 800;
}
.single-date { color: #6b7280; font-size: 14px; }

/* Body Layout */
.single-body {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Kiri Lebar, Kanan Sempit */
    gap: 30px;
}

/* Download Box */
.download-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.pdf-info h3 { margin: 0 0 5px 0; font-size: 18px; color: #1e3a8a; }
.pdf-info p { margin: 0; font-size: 13px; color: #666; }
.pdf-action { margin-left: auto; display: flex; flex-direction: column; gap: 10px; }

.btn-download {
    background: #1e3a8a; color: white; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; text-align: center;
    transition: 0.2s;
}
.btn-download:hover { background: #1e40af; transform: translateY(-2px); }

.btn-preview {
    background: #fff; color: #1e3a8a; border: 1px solid #1e3a8a; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; text-align: center;
}
.btn-preview:hover { background: #eff6ff; }

/* Abstrak */
.abstrak-box { background: #fff; padding: 30px; border-radius: 12px; }
.abstrak-box h3 { border-bottom: 2px solid #f3f4f6; padding-bottom: 15px; margin-bottom: 20px; }
.abstrak-text { font-size: 16px; line-height: 1.8; color: #374151; }

/* Sidebar Meta */
.meta-card { background: #fff; padding: 25px; border-radius: 12px; }
.meta-card h3 { font-size: 16px; margin-bottom: 20px; color: #1e3a8a; font-weight: 800; text-transform: uppercase; }
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table th { text-align: left; padding: 12px 0; color: #6b7280; font-size: 13px; font-weight: 600; width: 40%; border-bottom: 1px solid #f3f4f6; }
.meta-table td { text-align: right; padding: 12px 0; color: #1f2937; font-weight: 600; font-size: 14px; border-bottom: 1px solid #f3f4f6; }
.meta-table tr:last-child th, .meta-table tr:last-child td { border-bottom: none; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .single-body { grid-template-columns: 1fr; } /* Jadi 1 kolom di HP */
    .download-box { flex-direction: column; text-align: center; }
    .pdf-action { margin-left: 0; width: 100%; }
}

/* Melebarkan Wadah Halaman Detail */
.jdih-single-container {
    max-width: 1400px !important; /* Sebelumnya 1100px */
}

/* ========================
   STYLE HALAMAN ARSIP
   ======================== */

/* Header Arsip (Hero Biru) */
.jdih-archive-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.jdih-archive-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
}
.jdih-archive-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Container Arsip (Agar tidak mentok pinggir) */
.main-archive-area {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px 60px;
}

/* Controls (Filter & Jumlah) */
.archive-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.result-count { color: #64748b; font-size: 14px; }
.sort-box select {
    padding: 8px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    background: white;
    cursor: pointer;
}

/* Tabel Modern */
.jdih-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Agar sudut tumpul terlihat */
    border: 1px solid #e2e8f0;
}
.jdih-table {
    border: 1px solid #dee2e6 !important;
}
.jdih-table thead {
    background: #f1f5f9;
}
.jdih-table th {
    background: #1e3a8a !important; /* Header Biru Tua */
    color: #ffffff !important;
    text-transform: none !important; /* Flotim tidak pakai All Caps di tabel */
    font-size: 14px !important;
    padding: 12px 15px !important;
    border: 1px solid #2d4a99;
}
.jdih-table th.text-center { text-align: center; }

.jdih-table td {
    border: 1px solid #dee2e6 !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    vertical-align: top !important;
}
.jdih-table tr:nth-child(even) {
    background-color: #f9f9f9; /* Baris selang-seling */
}

/* Elemen Tabel */
.table-doc-title {
    color: #1e3a8a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.table-doc-title:hover { color: #2563eb; text-decoration: underline; }

.jenis-badge {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.nomor-text { font-weight: 600; color: #0f172a; }

.font-bold { font-weight: 700; }

/* Status Pills */
.status-pill {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.st-berlaku { background: #dcfce7; color: #15803d; } /* Hijau */
.st-dicabut { background: #fee2e2; color: #b91c1c; } /* Merah */

/* Tombol Aksi */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
}
.btn-view { background: #eff6ff; color: #1d4ed8; }
.btn-down { background: #f0fdf4; color: #15803d; }

.btn-view:hover { background: #1d4ed8; color: white; }
.btn-down:hover { background: #15803d; color: white; }

/* Empty State */
.empty-state {
    padding: 60px !important;
    color: #94a3b8;
    font-style: italic;
}
.empty-state i { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }

/* Pagination */
.jdih-pagination {
    margin-top: 30px;
    text-align: center;
}
.jdih-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.jdih-pagination .current, .jdih-pagination .page-numbers:hover {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* ========================
   JDIH BKN STYLE (ARCHIVE)
   ======================== */
.jdih-bkn-archive { background: #f4f7fa; padding-bottom: 60px; }

.archive-header-simple {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #e1e8f0;
    margin-bottom: 40px;
}
.archive-header-simple h1 { color: #1e3a8a; font-weight: 800; margin: 0; }
.archive-header-simple p { color: #64748b; margin-top: 5px; }

.bkn-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Sidebar Filter */
.bkn-sidebar .filter-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}
.filter-card h3 { font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; color: #475569; }

.btn-filter {
    width: 100%;
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* Card List */
.bkn-grid { display: flex; flex-direction: column; gap: 20px; }
.bkn-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    transition: 0.3s;
}
.bkn-card:hover { border-color: #3b82f6; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }

.bkn-tag {
    font-size: 10px;
    font-weight: 800;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}
.bkn-title { font-size: 18px; margin: 10px 0; font-weight: 700; }
.bkn-title a { color: #1e293b; text-decoration: none; }
.bkn-title a:hover { color: #2563eb; }

.bkn-meta { font-size: 13px; color: #64748b; display: flex; gap: 20px; }

.bkn-card-footer { display: flex; gap: 10px; }
.bkn-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.bkn-btn.primary { background: #1e3a8a; color: white; }
.bkn-btn.secondary { background: #f1f5f9; color: #475569; }

/* Responsive BKN */
@media (max-width: 992px) {
    .bkn-layout { grid-template-columns: 1fr; }
    .bkn-card { flex-direction: column; align-items: flex-start; gap: 20px; }
    .bkn-card-footer { width: 100%; }
    .bkn-btn { flex: 1; }
}

/* ========================
   BKN SEARCH BOX STYLE
   ======================== */
.bkn-search-filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bkn-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 15px;
    background: #f8fafc;
    transition: 0.2s;
}

.search-input-wrapper input:focus {
    background: #fff;
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    outline: none;
}

.btn-search-bkn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-search-bkn:hover {
    background: #1e40af;
}

.btn-clear-search {
    color: #94a3b8;
    font-size: 20px;
    transition: 0.2s;
}

.btn-clear-search:hover {
    color: #ef4444;
}

/* Empty State */
.bkn-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.bkn-empty-state i {
    font-size: 50px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.bkn-empty-state h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.bkn-empty-state p {
    color: #64748b;
    margin-bottom: 25px;
}

/* Mobile Search */
@media (max-width: 600px) {
    .bkn-search-form {
        flex-direction: column;
    }
    .btn-search-bkn {
        width: 100%;
    }
}

/* ========================
   FRONT-PAGE GAYA BKN
   ======================== */

.bkn-home { background: #fff; }

.bkn-hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.bkn-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* BKN Search Main */
.bkn-search-main { max-width: 800px; margin: 0 auto; }
.search-group {
    display: flex;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    align-items: center;
}
.search-group i { color: #94a3b8; padding-left: 20px; font-size: 18px; }
.search-group input {
    flex-grow: 1;
    border: none !important;
    padding: 15px !important;
    font-size: 16px;
    outline: none;
}
.search-group button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Category Grid */
.bkn-categories { padding: 80px 0; background: #f8fafc; }
.bkn-section-title { text-align: center; margin-bottom: 50px; }
.bkn-section-title h2 { font-size: 2.2rem; color: #1e293b; font-weight: 800; }

.bkn-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.cat-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.cat-card:hover { transform: translateY(-10px); border-color: #1e3a8a; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.cat-icon { font-size: 40px; color: #1e3a8a; margin-bottom: 20px; }
.cat-card h3 { font-size: 18px; color: #1e293b; margin-bottom: 10px; font-weight: 700; }
.cat-count { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; }

/* Latest List Mini */
.bkn-latest { padding: 80px 0; }
.bkn-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.btn-more { color: #1e3a8a; text-decoration: none; font-weight: 700; }

.bkn-item-mini {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 25px;
}
.item-date {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}
.item-date .day { display: block; font-size: 20px; font-weight: 800; color: #1e3a8a; }
.item-date .month { font-size: 11px; text-transform: uppercase; font-weight: 700; color: #64748b; }

.item-info { flex-grow: 1; }
.item-tag { font-size: 10px; font-weight: 800; color: #2563eb; text-transform: uppercase; }
.item-info h3 { font-size: 16px; margin: 5px 0; }
.item-info h3 a { color: #1e293b; text-decoration: none; }
.btn-outline {
    border: 1px solid #cbd5e1;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

/* ========================
   HALAMAN PROFIL STYLE
   ======================== */
.profil-wrapper { background: #fdfdfd; padding-bottom: 80px; }

.profil-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}
.profil-hero h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.profil-hero p { opacity: 0.8; font-weight: 300; }

.profil-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

/* Sidebar Navigasi */
.profil-sidebar .sticky-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.profil-sidebar h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: #64748b; }
.profil-menu { list-style: none; padding: 0; margin: 0; }
.profil-menu li { margin-bottom: 10px; }
.profil-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 14px;
}
.profil-menu a:hover, .profil-menu a.active {
    background: #eff6ff;
    color: #1e3a8a;
}

/* Konten */
.profil-content { background: #fff; padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0; }
.section-title { font-size: 2rem; color: #1e293b; font-weight: 800; margin-bottom: 30px; }
.section-divider { border: 0; border-top: 1px solid #f1f5f9; margin: 40px 0; }

/* Visi Misi Box */
.visi-box {
    background: #1e3a8a;
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}
.visi-box h3 { color: #fbbf24; font-size: 1.5rem; margin-bottom: 10px; }
.visi-box p { font-style: italic; font-size: 1.2rem; line-height: 1.6; }

.misi-list h3 { margin-bottom: 15px; color: #1e3a8a; }
.misi-list ul { padding-left: 20px; }
.misi-list li { margin-bottom: 10px; line-height: 1.6; color: #475569; }

.struktur-img-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 60px;
    text-align: center;
    border-radius: 12px;
    color: #94a3b8;
}

/* Responsive Profil */
@media (max-width: 992px) {
    .profil-layout { grid-template-columns: 1fr; }
    .profil-sidebar { display: none; }
}

/* ========================
   FOOTER STYLE
   ======================== */
.jdih-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #3b82f6;
}

.footer-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo { width: 45px; height: auto; }
.footer-brand h3 { color: #fff; margin: 0; font-size: 20px; }
.footer-desc { line-height: 1.6; margin-bottom: 20px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 35px; height: 35px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; transition: 0.3s;
}
.social-links a:hover { background: #3b82f6; transform: translateY(-3px); }

.footer-links, .contact-info { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }

.contact-info li { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.contact-info i { color: #3b82f6; margin-top: 4px; }

.footer-bottom {
    background: #020617;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p { margin: 0; font-size: 12px; }

/* Responsive Footer */
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ========================
   STATISTIK VISUAL STYLE
   ======================== */
.statistik-wrapper { background: #f1f5f9; padding-bottom: 80px; }

.stats-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 60px 0; color: white; text-align: center; margin-bottom: 40px;
}
.stats-hero h1 { font-size: 2.5rem; font-weight: 800; color: white; }

.stats-summary { margin-bottom: 40px; display: flex; justify-content: center; }
.summary-card {
    background: #fff; padding: 30px; border-radius: 16px;
    display: flex; align-items: center; gap: 25px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-bottom: 4px solid #fbbf24;
}
.summary-card i { font-size: 40px; color: #1e3a8a; }
.sum-num { font-size: 40px; font-weight: 800; color: #1e3a8a; display: block; line-height: 1; }
.sum-label { font-size: 14px; color: #64748b; font-weight: 600; text-transform: uppercase; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 30px;
}
.chart-card {
    background: #fff; padding: 30px; border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.chart-card h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 25px;
    color: #1e293b; border-left: 4px solid #1e3a8a; padding-left: 15px;
}

/* Cetak */
@media print {
    .jdih-footer, .site-header, .btn-print-stats, .stats-hero p, .profil-sidebar { display: none !important; }
    body { background: white !important; }
    .statistik-wrapper { padding: 0 !important; }
    .stats-hero { background: white !important; color: black !important; padding: 0 !important; }
    .stats-hero h1 { color: black !important; font-size: 24pt !important; }
    .chart-card { page-break-inside: avoid; border: 1px solid #eee !important; box-shadow: none !important; }
}

/* ========================
   PANDUAN ADMIN STYLE
   ======================== */
.panduan-wrapper { background: #f8fafc; padding-bottom: 80px; }
.panduan-hero { background: #0f172a; padding: 60px 0; color: white; text-align: center; margin-bottom: 50px; }
.panduan-hero h1 { font-size: 2.2rem; font-weight: 800; color: #fff; }
.panduan-body { max-width: 900px !important; }
.panduan-card {
    background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0;
    margin-bottom: 25px; display: flex; gap: 25px; transition: 0.3s;
}
.step-num {
    background: #eff6ff; color: #1e3a8a; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}

/* ========================
   CLEANUP & LAYOUT ALIGN
   ======================== */
.flotim-breadcrumbs { display: none !important; }
.home .jdih-container { max-width: 1200px !important; }

/* Final Polish Layout */
.bkn-layout, .jdih-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Animasi masuk halaman login */
#login {
    animation: fadeInDown 0.8s ease-out;
}

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

/* Card Berita */
.post-thumb img {
    transition: transform 0.5s ease;
}
.doc-card:hover .post-thumb img {
    transform: scale(1.1);
}

/* Penyesuaian Grid untuk layar sedang */
@media (max-width: 992px) {
    .single-body {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   CUSTOM CONTACT FORM STYLE
   ========================================= */
.jdih-form-container {
    background: #ffffff;
    padding: 20px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--jdih-blue-dark);
    margin-bottom: 8px;
}

/* Input Styling */
.wpcf7-form-control:not([type="submit"]) {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    font-size: 15px !important;
    transition: 0.3s;
}

.wpcf7-form-control:focus {
    border-color: var(--jdih-blue-light) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none;
}

/* Button Styling */
.form-submit .wpcf7-submit {
    background: var(--jdih-blue-dark) !important;
    color: #fff !important;
    padding: 15px 40px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.form-submit .wpcf7-submit:hover {
    background: var(--jdih-blue-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* =========================================
   FAQ ACCORDION STYLE
   ========================================= */
.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--jdih-blue-dark);
    cursor: pointer;
    transition: 0.3s;
}

.faq-question i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

/* Active State */
.faq-item.active {
    border-color: var(--jdih-blue-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.faq-item.active .faq-question {
    color: var(--jdih-blue-light);
    background: #eff6ff;
}

.faq-item.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}
.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--jdih-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-main {
    background: var(--jdih-blue-dark);
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.btn-outline {
    border: 1px solid var(--jdih-blue-dark);
    color: var(--jdih-blue-dark);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================
   GALLERY GRID STYLE
   ========================================= */
.jdih-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Container Navigasi */
.header-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Mendorong semua konten ke kanan */
    gap: 10px;
}

/* List Menu Utama */
.nav-menu-custom {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Tombol Ikon Admin */
.btn-admin-access {
    background: #f1f5f9;
    color: var(--jdih-blue-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 15px; /* Jarak dari menu terakhir */
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-admin-access:hover {
    background: var(--jdih-blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* Responsif Mobile */
@media (max-width: 992px) {
    .btn-admin-access {
        margin-left: auto; /* Tetap di kanan pada mobile sebelum hamburger */
        margin-right: 15px;
    }
}