/**
 * CEJou Strategic Framework - Footer & Sidebar Polish
 * Memperbaiki posisi footer agar full-width dan membersihkan total sidebar.
 */

/* 1. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,700;1,400&display=swap');

:root {
    --cejou-purple: #3b1e54;
    --cejou-gold: #b08d57;
    --cejou-bg: #f8fafc;
    --sidebar-width: 320px;
}

/* 2. RESET & BASE */
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    color: #1e293b;
    overflow-x: hidden;
}

/* 3. LAYOUT UTAMA */
.pkp_structure_page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pkp_structure_content {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    flex: 1 0 auto; /* Memastikan konten mendorong footer ke bawah */
}

/* Area Konten Utama */
.pkp_structure_main {
    flex: 1;
    padding: 2rem 4rem;
    min-width: 0;
    background-color: white;
}

/* Sidebar */
.pkp_structure_sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background-color: var(--cejou-purple);
    color: white;
    padding: 2.5rem 1.5rem;
}

/* 4. FORCE 1 COLUMN ARTIKEL */
.obj_issue_toc .sections, 
.obj_issue_toc .section_group,
.obj_issue_toc .grid {
    display: block !important;
    column-count: 1 !important;
    grid-template-columns: 1fr !important;
}

/* 5. KARTU ARTIKEL MODERN */
.obj_article_summary, .article-card {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #f1f5f9 !important;
    border-left: 6px solid var(--cejou-gold) !important;
    border-radius: 1.25rem !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    background: white !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: 0.3s;
    display: block !important;
}

.obj_article_summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(59, 30, 84, 0.1) !important;
}

.obj_article_summary .title a {
    color: var(--cejou-purple) !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    text-decoration: none !important;
}

/* 6. PERBAIKAN SIDEBAR TOTAL (MENGHAPUS KOTAK PUTIH & BAYANGAN) */
.pkp_block {
    margin-bottom: 2rem;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.pkp_block .title, 
.pkp_block h2, 
.pkp_block h3 {
    background: transparent !important;
    color: var(--cejou-gold) !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 1.2rem !important;
    padding: 0 0 0.5rem 0 !important;
    box-shadow: none !important;
}

.pkp_block .content {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.85rem;
}

.pkp_block a {
    color: rgba(255,255,255,0.8) !important;
    transition: 0.2s;
}

.pkp_block a:hover {
    color: var(--cejou-gold) !important;
}

/* 7. FOOTER FIX (FULL WIDTH) */
.pkp_structure_footer {
    width: 100% !important;
    max-width: 100% !important;
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding: 4rem 2rem !important;
    margin: 0 !important;
    clear: both !important;
    border-top: 8px solid var(--cejou-purple) !important;
    position: relative !important;
    display: block !important;
    left: 0 !important;
}

.pkp_structure_footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Link Color */
.pkp_structure_footer a {
    color: var(--cejou-gold) !important;
    text-decoration: none;
}

/* 8. RESPONSIVE */
@media (max-width: 1024px) {
    .pkp_structure_content { flex-direction: column; }
    .pkp_structure_sidebar { width: 100%; flex: none; }
    .pkp_structure_main { padding: 2rem 1.5rem; }
}

/* Tambahan: Menghilangkan border navigasi yang mengganggu */
.pkp_navigation_primary_wrapper {
    border-bottom: 4px solid var(--cejou-gold);
    background: var(--cejou-purple);
}