/* =====================================================
   JPRIMA OJS 3.3 FINAL CSS
   Full Width Responsive Banner + Clean Modern UI
   ===================================================== */

/* =========================
   GLOBAL
========================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #f5f7f9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* =========================
   REMOVE OLD HEADER STYLE
========================= */

/* sembunyikan teks judul lama */
.pkp_site_name .is_text {
    display: none !important;
}

/* sembunyikan logo lama kecil */
.pkp_site_name img:first-child {
    display: block !important;
}

/* =========================
   HEADER FULL WIDTH
========================= */

.pkp_structure_head {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pkp_head_wrapper {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* wrapper banner */
.pkp_site_name_wrapper {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* link banner */
.pkp_site_name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
}

/* force image full width */
.pkp_site_name a {
    display: block !important;
    width: 100% !important;
}

/* banner image */
.pkp_site_name img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
    border: 0;
}

/* =========================
   NAVIGATION
========================= */

.pkp_navigation_primary_row {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.pkp_navigation_user_wrapper {
    background: #ffffff;
}

/* menu utama */
.pkp_navigation_primary > li > a {
    position: relative;
    color: #555 !important;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* hover animation */
.pkp_navigation_primary > li > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #7A0019;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 6px;
    z-index: -1;
}

.pkp_navigation_primary > li > a:hover::before {
    transform: scaleX(1);
}

.pkp_navigation_primary > li > a:hover {
    color: #ffffff !important;
}

/* active */
.pkp_navigation_primary > li.active > a {
    background: #7A0019 !important;
    color: #ffffff !important;
}

/* =========================
   DROPDOWN
========================= */

.pkp_navigation_primary .dropdown-menu {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
    visibility: hidden;
}

.pkp_navigation_primary li:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.pkp_navigation_primary .dropdown-menu li a {
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.pkp_navigation_primary .dropdown-menu li a:hover {
    background: #7A0019 !important;
    color: #ffffff !important;
    padding-left: 22px;
}

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

.pkp_structure_content {
    max-width: 1200px;
    margin: 25px auto;
    padding: 20px;
}

/* =========================
   ARTICLE CARD
========================= */

.obj_article_summary {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: all 0.25s ease;
}

.obj_article_summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.obj_article_summary .title a {
    color: #7A0019 !important;
    text-decoration: none;
    font-weight: 700;
}

.obj_article_summary .title a:hover {
    color: #4d0010 !important;
}

/* =========================
   BUTTON PDF
========================= */

.obj_issue_toc .galleys_links a {
    background: #7A0019;
    color: #ffffff !important;
    padding: 7px 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.obj_issue_toc .galleys_links a:hover {
    background: #4d0010;
}

/* =========================
   SIDEBAR
========================= */

.pkp_block {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* =========================
   SEARCH BUTTON
========================= */

button,
input[type="submit"],
.pkp_search button {
    background: #7A0019 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px;
}

button:hover,
input[type="submit"]:hover,
.pkp_search button:hover {
    background: #4d0010 !important;
}

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

.pkp_structure_footer {
    background: #7A0019;
    color: #ffffff;
    padding: 30px 20px;
    margin-top: 40px;
}

.pkp_structure_footer a {
    color: #ffffff !important;
}

/* hide PKP footer */
.pkp_brand_footer,
img[alt*="PKP"],
a[href*="pkp.sfu.ca"] {
    display: none !important;
}

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

@media (max-width: 768px) {

    body {
        font-size: 14px;
    }

    .pkp_structure_content {
        padding: 12px;
        margin-top: 15px;
    }

    .obj_article_summary {
        padding: 14px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px;
        font-size: 14px;
    }

    .pkp_navigation_primary .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
    }

    .pkp_site_name img {
        width: 100% !important;
        height: auto !important;
    }
}
