/* ==========================================================================
   STYLE SHEET JURNAL PENGABDIAN MANAJEMEN (JPM)
   Tema: Color Harmony V3 (Header Gradient + Kontras Ekstra)
   ========================================================================== */

/* 1. TYPOGRAPHY & GLOBAL VARIABLES */
:root {
    --primary-green: #1b5e20; 
    --primary-blue: #004494;  
    --hover-green: #144d18;
    --hover-blue: #003377;
    --bg-body: #e2e8f0;       
    --bg-content: #ffffff;
    --text-dark: #1e293b;     
    --text-gray: #64748b;
    --border-color: #cbd5e1;  
}

body, .pkp_structure_page {
    background: var(--bg-body) !important; 
    color: var(--text-dark);
    font-family: 'Open Sans', 'Roboto', "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 2. HEADER & LOGO (BACKGROUND MENGIKUTI FOOTER) */
.pkp_structure_head {
    /* Background header diubah menjadi gradien persis seperti footer */
    background: linear-gradient(135deg, #1b5e20, #004494) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: none !important; 
    /* Menambahkan garis emas/kuning tipis sebagai pemisah elegan antara header dan menu */
    border-bottom: 3px solid #ffdd57 !important; 
}

.pkp_site_name .is_img {
    display: inline-block;
}

.pkp_site_name .is_img img {
    max-height: 280px; 
    width: auto;
    padding: 20px 0;
    transition: max-height 0.3s ease;
}

/* 3. MENU LOGIN / AKUN (HEADER) */
.pkp_navigation_user {
    margin-top: 15px;
}

/* Karena background header sekarang gelap, tombol login dibuat menonjol (putih) */
.pkp_navigation_user > li > a {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 14px;
    background-color: #ffffff; 
    border: 2px solid #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    margin-left: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background-color: #ffdd57; /* Hover kuning emas agar serasi dengan garis bawah header */
    color: var(--primary-blue);
    border-color: #ffdd57;
}

/* 4. NAVIGATION (MENU UTAMA) */
.pkp_navigation_primary_row {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue)) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pkp_navigation_primary > li > a {
    color: #ffffff;
    font-weight: 600;
    padding: 16px 25px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}

/* 5. MAIN CONTENT AREA (KOTAK TENGAH) */
.pkp_structure_main {
    background-color: var(--bg-content) !important;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    margin-top: 35px;
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
}

/* 6. SIDEBAR WIDGETS */
.pkp_structure_sidebar {
    margin-top: 35px;
}

.pkp_structure_sidebar .block {
    background-color: var(--bg-content) !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px; 
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-blue);
}

.pkp_structure_sidebar .block .title {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 800;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   7. DESAIN NAVIGASI SIDEBAR (KOTAK GRADIENT)
   ========================================================================== */
.pkp_structure_sidebar .block .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pkp_structure_sidebar .block .content ul li {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.pkp_structure_sidebar .block_custom .content a:not(:has(img)),
.pkp_structure_sidebar .block .content ul li a {
    display: block !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #1b5e20, #004494) !important; 
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border-radius: 4px !important;
    border: none !important;
    text-align: center !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1) !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.pkp_structure_sidebar .block_custom .content a:not(:has(img)):hover,
.pkp_structure_sidebar .block .content ul li a:hover {
    background: linear-gradient(135deg, #228B22, #0056b3) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2) !important;
}

.pkp_structure_sidebar .block_custom .content a:has(img) {
    display: inline-block !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border: none !important;
}

/* 8. ARTICLES LIST */
.cmp_article_list .article_summary {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.cmp_article_list .article_summary:last-child {
    border-bottom: none;
}
.cmp_article_list .title a {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.cmp_article_list .title a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* 9. FOOTER */
.pkp_structure_footer_wrapper {
    background: linear-gradient(135deg, #1b5e20, #004494) !important;
    color: #ffffff;
    padding: 40px 30px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-green);
}

.pkp_structure_footer_wrapper .pkp_structure_footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pkp_footer_content {
    flex: 1;
    margin: 0 !important;
    text-align: left;
    color: #ffffff !important;
}

.pkp_brand_footer {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right;
    display: block !important;
}

.pkp_structure_footer_wrapper a,
.pkp_brand_footer a,
.pkp_brand_footer p,
.pkp_brand_footer span {
    color: #ffffff !important;
    text-decoration: none;
}

.pkp_structure_footer_wrapper a:hover {
    color: #ffdd57 !important;
    text-decoration: underline;
}

/* 10. EDITORIAL TEAM LIST */
.editorial-list {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}
.editorial-list li {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
    display: flex; 
    align-items: flex-start;
    gap: 25px;
}
.editorial-list .img-profile {
    flex-shrink: 0;
    width: 110px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #fff;
    padding: 3px;
}
.editorial-list .img-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.editorial-list .team-content {
    flex-grow: 1;
}
.editorial-list .team-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-green);
    font-size: 18px;
}
.editorial-list .team-content p {
    margin: 0 0 10px 0;
    color: var(--primary-blue);
    font-weight: 600;
}
.editorial-list .team-aff ul {
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
}

/* 11. BUTTON GLOBAL FIX */
.cmp_button_link, .pkp_button {
    background: linear-gradient(135deg, #1b5e20, #004494) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 700;
    border: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.cmp_button_link:hover, .pkp_button:hover {
    background: linear-gradient(135deg, #228B22, #0056b3) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* RESPONSIVE DESIGN UNTUK MOBILE */
@media (max-width: 768px) {
    .pkp_site_name .is_img img {
        max-height: 130px; 
    }
    .pkp_navigation_user {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .pkp_structure_footer_wrapper .pkp_structure_footer {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .pkp_brand_footer {
        margin-top: 25px !important;
        text-align: center;
    }
    
    .editorial-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .editorial-list .team-aff ul {
        padding-left: 0;
        list-style: none;
    }
    .pkp_structure_main {
        padding: 15px;
    }
}
