/* --- Custom CSS for Bunayya Journal --- */

/* 1. Boxed layout - limit max width and center page */
body {
    background-color: #f0f0f0 !important;
    padding: 30px !important;
}

.pkp_structure_page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    border: 1px solid #c5c5c5 !important;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25) !important;
}

/* Remove theme's vertical alignment lines */
.pkp_structure_main:before,
.pkp_structure_main:after {
    display: none !important;
}

/* --- HEADER --- */
.pkp_structure_head {
    position: relative !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pkp_head_wrapper {
    background: url('https://jurnal.ar-raniry.ac.id/public/site/images/mzaidan/newlogo-bunayya-2.png') no-repeat center center !important;
    background-size: cover !important;
    height: 300px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

.pkp_head_wrapper .pkp_site_name {
    display: none !important;
}

/* --- NAVIGATION BAR --- */
.pkp_navigation_primary_wrapper {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgba(49, 27, 99, 0.85) !important;
    text-align: center !important;
    z-index: 10 !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

.pkp_navigation_primary {
    display: inline-block !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: bold;
    padding: 15px 20px !important;
    display: inline-block;
}

.pkp_navigation_primary > li > a:hover {
    background-color: rgba(0, 90, 158, 0.9) !important;
}

.pkp_navigation_primary ul a {
    padding: 12px 20px !important;
    line-height: 1.5em !important;
}

/* --- CONTENT & SIDEBAR --- */
.pkp_structure_content {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 25px;
}

.pkp_structure_main {
    flex: 1;
    min-width: 0;
}

.pkp_structure_sidebar {
    flex: 0 0 280px;
    padding-left: 25px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    body {
        padding: 15px !important;
    }
    
    .pkp_head_wrapper {
        height: 150px !important;
        max-width: 100% !important;
        margin: 0 !important;
        /* This is the fix for mobile: it stretches the image */
        background-size: 100% 100% !important; 
    }
    
    .pkp_navigation_primary_wrapper {
        position: relative !important;
        background-color: #311b63 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .pkp_navigation_primary > li {
        display: block !important;
        width: 100%;
    }
    
    .pkp_structure_content {
        flex-direction: column !important;
    }
    
    .pkp_structure_sidebar {
        padding-left: 0 !important;
        margin-top: 25px !important;
        border-top: 1px solid #eee;
        padding-top: 25px;
    }
}