/* =========================================================
   CCHS — PERBAIKAN NAVBAR BAWAAN OJS 3.5
   Tambahkan di bagian PALING BAWAH stylesheet
   ========================================================= */

/* Header utama */
.pkp_structure_head {
    position: relative;
    z-index: 1000;
    background:
        radial-gradient(
            circle at 86% 15%,
            rgba(255, 255, 255, 0.14) 0,
            rgba(255, 255, 255, 0) 30%
        ),
        linear-gradient(
            135deg,
            #043d32 0%,
            #08705a 52%,
            #10a47a 100%
        ) !important;
    border-top: 5px solid #71dfb7;
    border-bottom: 0;
    box-shadow: 0 8px 25px rgba(0, 48, 38, 0.18);
}

/* Pembungkus header */
.pkp_head_wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 30px 0;
    box-sizing: border-box;
}

/* =========================================================
   JUDUL / LOGO JURNAL
   ========================================================= */

.pkp_site_name_wrapper {
    width: 100%;
}

.pkp_site_name {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 260px 25px 0;
    box-sizing: border-box;
    text-align: left;
}

.pkp_site_name a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.pkp_site_name .is_text {
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.7px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.pkp_site_name .is_img {
    display: block;
    max-width: 780px;
}

.pkp_site_name .is_img img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 115px;
    object-fit: contain;
}

/* Teks tambahan */
.pkp_site_name::before {
    display: block;
    margin-bottom: 8px;
    color: #c9f8e7;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    content: "ISSN: In Process";
}

.pkp_site_name::after {
    display: block;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.5;
    content: "Published by the Faculty of Medicine, Universitas Padjadjaran";
}

/* =========================================================
   LOGIN, REGISTER, PROFILE
   Tetap di kanan atas, tidak turun ke bawah navbar
   ========================================================= */

.pkp_navigation_user_wrapper {
    position: absolute !important;
    top: 24px !important;
    right: 30px !important;
    z-index: 1100;
    width: auto !important;
}

.pkp_navigation_user {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_user > li {
    position: relative;
    margin: 0 !important;
}

.pkp_navigation_user > li > a {
    display: block;
    padding: 8px 13px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: #075d49 !important;
    background: #ffffff !important;
    border-color: #ffffff;
}

/* Jumlah notifikasi */
.pkp_navigation_user .task_count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #075d49 !important;
    background: #ffffff !important;
    border-radius: 20px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

/* Dropdown profile */
.pkp_navigation_user ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 215px;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid #d7ebe3;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 45, 36, 0.24);
}

.pkp_navigation_user ul li {
    margin: 0 !important;
}

.pkp_navigation_user ul a {
    display: block;
    padding: 10px 12px !important;
    color: #174d40 !important;
    background: transparent !important;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none !important;
}

.pkp_navigation_user ul a:hover,
.pkp_navigation_user ul a:focus {
    color: #075d49 !important;
    background: #eaf8f3 !important;
}

/* =========================================================
   BARIS NAVBAR UTAMA
   ========================================================= */

.pkp_navigation_primary_row {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(2, 51, 41, 0.43) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px 14px 0 0;
    box-sizing: border-box;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.pkp_navigation_primary_wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0 60px 0 10px;
    box-sizing: border-box;
}

/* Menu utama */
.pkp_navigation_primary {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1px;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_primary > li {
    position: relative;
    display: flex;
    align-items: stretch;
    margin: 0 !important;
}

.pkp_navigation_primary > li > a {
    display: flex !important;
    align-items: center;
    padding: 17px 14px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-decoration: none !important;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Menu aktif */
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a[aria-current="page"] {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.17) !important;
    box-shadow: inset 0 -3px 0 #8ce8c7;
}

/* Hilangkan garis tema bawaan */
.pkp_navigation_primary > li > a::before,
.pkp_navigation_primary > li > a::after {
    display: none !important;
}

/* =========================================================
   DROPDOWN MENU UTAMA
   ========================================================= */

.pkp_navigation_primary ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1200;
    min-width: 245px;
    margin: 0 !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid #d7ebe3;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px rgba(0, 45, 36, 0.24);
}

.pkp_navigation_primary ul li {
    display: block;
    width: 100%;
    margin: 0 !important;
}

.pkp_navigation_primary ul a {
    display: block !important;
    width: 100%;
    padding: 10px 13px !important;
    box-sizing: border-box;
    color: #174d40 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    text-decoration: none !important;
    white-space: normal;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
    color: #075d49 !important;
    background: #eaf8f3 !important;
}

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

.pkp_navigation_search_wrapper {
    position: absolute !important;
    top: 0;
    right: 8px;
    z-index: 1050;
    display: flex;
    align-items: center;
    height: 100%;
}

.pkp_search_desktop {
    margin: 0 !important;
}

.pkp_search_desktop .search_prompt,
.pkp_navigation_search_wrapper a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.11) !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    text-decoration: none !important;
}

.pkp_search_desktop .search_prompt:hover,
.pkp_search_desktop .search_prompt:focus,
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
    color: #075d49 !important;
    background: #ffffff !important;
}

/* Form pencarian saat terbuka */
.pkp_search.is_open,
.pkp_search {
    z-index: 1300;
}

.pkp_search .search_controls {
    background: #ffffff;
}

.pkp_search .search_prompt {
    text-decoration: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .pkp_head_wrapper {
        padding-right: 22px;
        padding-left: 22px;
    }

    .pkp_site_name {
        padding-right: 220px;
    }

    .pkp_navigation_user_wrapper {
        right: 22px !important;
    }

    .pkp_navigation_primary > li > a {
        padding-right: 10px !important;
        padding-left: 10px !important;
        font-size: 12px;
    }
}

/* =========================================================
   MOBILE OJS
   ========================================================= */

@media (max-width: 768px) {
    .pkp_structure_head {
        border-top-width: 4px;
    }

    .pkp_head_wrapper {
        padding: 14px 15px !important;
    }

    /* Judul tidak tertutup tombol hamburger */
    .pkp_site_name {
        padding: 6px 55px 12px 0 !important;
    }

    .pkp_site_name .is_text {
        font-size: 26px;
    }

    .pkp_site_name .is_img img {
        max-height: 75px;
    }

    .pkp_site_name::before {
        margin-bottom: 5px;
        font-size: 9px;
        letter-spacing: 1.1px;
    }

    .pkp_site_name::after {
        margin-top: 7px;
        font-size: 11px;
    }

    /* Tombol menu */
    .pkp_site_nav_toggle {
        top: 16px !important;
        right: 15px !important;
        left: auto !important;
        width: 42px;
        height: 42px;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 8px;
    }

    /* Menu mobile yang terbuka */
    .pkp_site_nav_menu {
        margin: 8px 0 0 !important;
        padding: 10px !important;
        background: #ffffff !important;
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(0, 45, 36, 0.20);
    }

    .pkp_navigation_primary_row {
        background: transparent !important;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .pkp_navigation_primary_wrapper {
        display: block;
        min-height: 0;
        padding: 0 !important;
    }

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

    .pkp_navigation_primary > li {
        display: block;
        width: 100%;
    }

    .pkp_navigation_primary > li > a {
        display: block !important;
        width: 100%;
        padding: 11px 13px !important;
        box-sizing: border-box;
        color: #174d40 !important;
        background: transparent !important;
        border-radius: 7px;
        white-space: normal;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus,
    .pkp_navigation_primary > li.current > a {
        color: #075d49 !important;
        background: #eaf8f3 !important;
        box-shadow: none;
    }

    /* Dropdown mobile menjadi bagian dari menu */
    .pkp_navigation_primary ul {
        position: static !important;
        min-width: 0;
        margin: 3px 0 6px 12px !important;
        padding: 4px !important;
        background: #f4fbf8 !important;
        border: 0;
        border-left: 3px solid #72dcb7;
        border-radius: 5px;
        box-shadow: none;
    }

    .pkp_navigation_primary ul a {
        padding: 9px 11px !important;
    }

    /* User menu tidak lagi absolute */
    .pkp_navigation_user_wrapper {
        position: static !important;
        width: 100% !important;
        margin-top: 8px;
    }

    .pkp_navigation_user {
        display: block !important;
        width: 100%;
        padding-top: 8px !important;
        border-top: 1px solid #dcece6;
    }

    .pkp_navigation_user > li {
        display: block;
        width: 100%;
        margin-bottom: 4px !important;
    }

    .pkp_navigation_user > li > a {
        display: block;
        width: 100%;
        padding: 10px 13px !important;
        box-sizing: border-box;
        color: #174d40 !important;
        background: #f1f9f6 !important;
        border: 0;
        border-radius: 7px;
    }

    .pkp_navigation_user > li > a:hover,
    .pkp_navigation_user > li > a:focus {
        color: #075d49 !important;
        background: #e3f5ee !important;
    }

    .pkp_navigation_user ul {
        position: static;
        min-width: 0;
        margin: 4px 0 0 10px !important;
        box-shadow: none;
    }

    /* Search mobile */
    .pkp_navigation_search_wrapper {
        position: static !important;
        display: block;
        height: auto;
        margin-top: 8px;
    }

    .pkp_navigation_search_wrapper a,
    .pkp_search_desktop .search_prompt {
        width: 100%;
        height: auto;
        padding: 10px 13px !important;
        box-sizing: border-box;
        color: #174d40 !important;
        background: #f1f9f6 !important;
        border: 0;
        border-radius: 7px;
        justify-content: flex-start;
    }
}

/* =========================================================
   HP KECIL
   ========================================================= */

@media (max-width: 480px) {
    .pkp_head_wrapper {
        padding: 12px !important;
    }

    .pkp_site_name {
        padding-right: 50px !important;
    }

    .pkp_site_name .is_text {
        font-size: 23px;
    }

    .pkp_site_name::before {
        max-width: 230px;
    }

    .pkp_site_name::after {
        max-width: 270px;
    }

    .pkp_site_nav_toggle {
        top: 13px !important;
        right: 12px !important;
    }
}
/* =========================================================
   CCHS — JARAK DAFTAR PEER REVIEWER
   ========================================================= */

body.pkp_page_reviewer .page_content,
.pkp_page_reviewer .page_content,
.page_reviewer .page_content {
    color: #334e47;
    font-size: 14px;
    line-height: 1.8;
}

/* Memberikan jarak antar-reviewer jika dipisahkan dengan <br> */
body.pkp_page_reviewer .page_content br,
.pkp_page_reviewer .page_content br,
.page_reviewer .page_content br {
    display: block;
    content: "";
    margin-bottom: 8px;
}

/* Jarak jika setiap reviewer dibuat dalam paragraf */
body.pkp_page_reviewer .page_content p,
.pkp_page_reviewer .page_content p,
.page_reviewer .page_content p {
    margin-top: 0;
    margin-bottom: 12px;
}
/* =========================================================
   CCHS — NAVBAR MENYATU DENGAN BACKGROUND HEADER
   ========================================================= */

@media (min-width: 769px) {

    /* Hilangkan blok hijau/olive bawaan tema */
    .pkp_site_nav_menu,
    .pkp_navigation_primary_row,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_primary,
    #navigationPrimary {
        background: transparent !important;
    }

    /* Navbar mengikuti gradient header */
    .pkp_navigation_primary_row {
        border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Efek saat menu disentuh */
    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus {
        background: rgba(255, 255, 255, 0.11) !important;
    }

    /* Menu halaman aktif */
    .pkp_navigation_primary > li.current > a,
    .pkp_navigation_primary > li > a[aria-current="page"] {
        background: rgba(255, 255, 255, 0.14) !important;
        box-shadow: inset 0 -3px 0 #8ce8c7 !important;
    }

    /* Tombol pencarian ikut menyatu */
    .pkp_search_desktop .search_prompt,
    .pkp_navigation_search_wrapper a {
        background: rgba(255, 255, 255, 0.10) !important;
        border-color: rgba(255, 255, 255, 0.24) !important;
    }
}
/* =========================================================
   CCHS — LOGO DI SEBELAH KIRI JUDUL
   ========================================================= */

.pkp_site_name > a {
    display: flex !important;
    align-items: center;
    gap: 20px;
    width: fit-content;
    max-width: 100%;
}

/* Logo CCHS */
.pkp_site_name > a::before {
    display: block;
    flex: 0 0 98px;
    width: 98px;
    height: 98px;
    content: "";
    background-image: url("/public/site/images/admin/logo-cchs.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Judul tetap rapi di samping logo */
.pkp_site_name .is_text {
    display: block;
    min-width: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .pkp_site_name > a::before {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
    }

    .pkp_site_name > a {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pkp_site_name > a {
        align-items: center;
        gap: 12px;
    }

    .pkp_site_name > a::before {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .pkp_site_name .is_text {
        font-size: 24px !important;
        line-height: 1.15;
    }
}

/* HP kecil */
@media (max-width: 480px) {
    .pkp_site_name > a::before {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .pkp_site_name > a {
        gap: 10px;
    }

    .pkp_site_name .is_text {
        font-size: 20px !important;
    }
}