/*======================================================
    OJS 3.3 MODERN THEME (FIXED)
======================================================*/

:root{
    --primary:#8B1E1F;
    --primary-dark:#470606;
    --bg:#f5f7fa;
    --border:#e6e6e6;
    --text:#444;
    --radius:12px;
    --shadow:0 3px 12px rgba(0,0,0,.08);
}

body{
    background:var(--bg);
    font-family:"Segoe UI", sans-serif;
    color:var(--text);
    margin:0;
    padding:0;
}

/*======================================================
    CONTAINER
======================================================*/

.pkp_structure_page{
    max-width:1400px;
    margin:auto;
    background:#fff;
}

/*======================================================
    HEADER & HEADER IMAGE (FIXED)
======================================================*/

.pkp_structure_head{
    background:#8B1E1F;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    width:100%;
}

.pkp_head_wrapper{
    max-width:1400px;
    margin:auto;
    padding:0;
    width:100%;
}

/* Memastikan gambar header muncul penuh dan proporsional */
.pkp_site_name_wrapper{
    width:100%;
    display:block;
}

.pkp_site_name{
    display:block !important;
    padding:0 !important;
    margin:0 !important;
    width:100%;
}

.pkp_site_name a{
    display:block !important;
    width:100%;
}

.pkp_site_name img,
.pkp_site_name .is_img img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    object-fit:contain;
    max-height: none !important;
}
/* Banner Homepage */

.pkp_homepage_image{
    width:100%;
    max-width:none;
    margin:0 auto;
    padding:0;
}

.pkp_homepage_image img{
    display:block;
    width:100%;
    max-width:1280px;
    height:auto;
    margin:auto;
}
/*======================================================
    MENU
======================================================*/

.pkp_navigation_primary_wrapper{
    margin-left:40px;
}

.pkp_navigation_primary ul{
    background:var(--primary);
    border:none;
    border-radius:0 0 8px 8px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    padding:5px 0;
}
/* Item submenu */
.pkp_navigation_primary ul li{
    width:100%;
}

/* Link submenu */
.pkp_navigation_primary ul li a{
    display:block;
    color:#fff !important;
    background:transparent !important;
    border-radius:0;
    padding:12px 18px;
}

/* Hover submenu */
.pkp_navigation_primary ul li a:hover{
    background:var(--primary-dark) !important;
    color:#fff !important;
}

/*======================================================
    CONTENT LAYOUT
======================================================*/

.pkp_structure_content{
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
    display:flex;
    gap:30px;
    align-items:flex-start;
}

.pkp_structure_main{
    flex:1;
    min-width:0; /* Mencegah flex child meluap */
    padding:0 !important;
}


/*======================================================
    SIDEBAR (FIXED DOUBLE CONTAINER)
======================================================*/

.pkp_structure_sidebar{
    width:300px;
    margin-left:60px;
    padding-left:60px;
    flex-shrink:0;
   
}

/* Styling satu tingkat untuk tiap block sidebar */
.pkp_structure_sidebar .pkp_block{
    width:100%;
    margin:0 0 25px 0 !important;
    padding:0 !important;
    border-radius:var(--radius);
    overflow:hidden;
    background:#fff;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
}

.pkp_structure_sidebar .pkp_block .title{
    background:var(--primary);
    color:#fff;
    padding:15px 18px;
    margin:0;
    font-size:16px;
    font-weight:600;
    letter-spacing:.3px;
    border-radius:0;
}

.pkp_structure_sidebar .pkp_block .content{
    background:#fff;
    padding:20px;
    border:none;
    box-shadow:none;
}

/* Menghilangkan nesting/double block bawaan OJS */
.pkp_structure_sidebar .pkp_block .pkp_block{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    margin:0 !important;
    padding:0 !important;
}

.pkp_structure_sidebar .pkp_block .pkp_block .content{
    padding:0 !important;
}

.pkp_structure_sidebar .pkp_screen_reader{
    display:none !important;
}

/*======================================================
    SECTION TITLE & ABOUT
======================================================*/

.page_index_journal h2{
    font-size:28px;
    color:var(--primary);
    border-left:6px solid var(--primary);
    padding-left:15px;
    margin-bottom:20px;
}

.homepage_about{
    margin-bottom:35px;
}

.homepage_about p{
    text-align:justify;
    line-height:1.8;
}

/*======================================================
    CURRENT ISSUE & ARTICLES
======================================================*/

.current_issue{
    background:transparent;
    padding:0;
    margin-top:30px;
    box-shadow:none;
}

.current_issue .heading{
    display:flex;
    gap:30px;
    margin-bottom:30px;
    align-items:flex-start;
}

.current_issue .cover img{
    width:220px;
    border-radius:10px;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
}

.current_issue_title{
    font-size:26px;
    font-weight:bold;
    color:#222;
    margin-bottom:15px;
}

.published{
    margin-top:15px;
    font-size:14px;
}

.obj_article_summary{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:25px;
    margin-bottom:25px;
    transition:.25s;
}

.obj_article_summary:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.10);
}

.obj_article_summary .title{
    font-size:22px;
    line-height:1.5;
    margin-bottom:10px;
}

.obj_article_summary .title a{
    color:var(--primary);
    font-weight:700;
}

.obj_article_summary .title a:hover{
    color:var(--primary-dark);
    text-decoration:none;
}

.obj_article_summary .authors{
    color:#666;
    line-height:1.7;
    margin-bottom:15px;
}

.obj_article_summary .pages{
    display:inline-block;
    background:#fafafa;
    color:#666;
    border:1px solid #dee2e6;
    padding:5px 15px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}

/*======================================================
    BUTTONS
======================================================*/

.obj_galley_link{
    display:inline-block;
    background:var(--primary);
    color:#fff !important;
    padding:10px 20px;
    border:none;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    outline:none;
    transition:all .3s ease;
}

.obj_galley_link:hover{
    background:var(--primary-dark);
    color:#fff !important;
    text-decoration:none;
}

.block_make_submission_link{
    display:block;
    background:var(--primary);
    color:#fff !important;
    text-align:center;
    padding:15px;
    border-radius:8px;
    font-weight:bold;
    text-decoration:none;
}

.block_make_submission_link:hover{
    background:var(--primary-dark);
    text-decoration:none;
}

.read_more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:12px 24px;
    background:var(--primary);
    color:#fff !important;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    line-height:1.2;
}

.read_more::after{
    content:"\203A";
    font-size:18px;
    line-height:1;
    margin-top:10px;
}

.read_more:hover{
    background:var(--primary-dark);
    text-decoration:none;
}

/*======================================================
    SIDEBAR MENU ITEMS
======================================================*/

.pkp_structure_sidebar .content p{
    margin:0;
}

.pkp_structure_sidebar .content p:not(:last-child){
    border-bottom:1px solid #efefef;
}

.pkp_structure_sidebar .content a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 18px;
    color:#444;
    text-decoration:none;
    border-left:4px solid transparent;
    transition:all .25s ease;
}

.pkp_structure_sidebar .content a::after{
    content:"›";
    color:#999;
    font-size:18px;
    opacity:0;
    transform:translateX(-5px);
    transition:.25s;
}

.pkp_structure_sidebar .content a:hover{
    background:#faf7f7;
    color:var(--primary);
    border-left-color:var(--primary);
    padding-left:24px;
}

.pkp_structure_sidebar .content a:hover::after{
    opacity:1;
    transform:translateX(0);
    color:var(--primary);
}

/*======================================================
FOOTER MODERN
======================================================*/

.pkp_structure_footer_wrapper{
    background:#8B1E1F !important;
    color:#fff !important;
    margin-top:60px;
}

.pkp_structure_footer{
    max-width:1300px;
    margin:auto;
    padding:45px 35px;
    background:transparent !important;
}

.pkp_footer_content{
    background:transparent !important;
    color:#fff;
}

/* Layout */

.footer-wrapper{

    display:flex;

    justify-content:space-between;

    gap:80px;

    flex-wrap:wrap;

}

/* Column */

.footer-column{

    flex:1;

    min-width:280px;

}

.footer-column h3{

    margin:0 0 20px;

    color:#fff;

    font-size:22px;

    font-weight:700;

    position:relative;

}

.footer-column h3::after{

    content:"";

    display:block;

    width:50px;

    height:3px;

    background:#FFD166;

    margin-top:10px;

    border-radius:50px;

}

.footer-column p{

    margin:12px 0;

    line-height:1.8;

    color:#f3f3f3;

}

.footer-column strong{

    font-size:16px;

}

.footer-column a{

    color:#FFD166;

    text-decoration:none;

    transition:.25s;

}

.footer-column a:hover{

    color:#fff;

    text-decoration:underline;

}

/* Divider */

.footer-wrapper + hr{

    margin:35px 0 20px;

    border:none;

    border-top:1px solid rgba(255,255,255,.2);

}

/* Bottom */

.footer-bottom{

    text-align:center;

    color:#ddd;

    font-size:14px;

    line-height:1.8;

}

/* Responsive */

@media(max-width:768px){

.footer-wrapper{

    flex-direction:column;

    gap:35px;

}

.footer-column{

    min-width:100%;

}

}

/*======================================================
    RESPONSIVE
======================================================*/

@media(max-width:992px){
    .pkp_structure_content{
        flex-direction:column;
    }
    
    .pkp_structure_main,
    .pkp_structure_sidebar{
        width:100% !important;
    }
    
    .current_issue .heading{
        flex-direction:column;
    }
}

@media(max-width:768px){
    .pkp_navigation_primary{
        flex-direction:column;
        gap:0;
    }

    .obj_article_summary{
        padding:18px;
    }

    .page_index_journal h2{
        font-size:22px;
    }

    .current_issue .cover img{
        width:180px;
    }
}