/* ====================================
   CSS FINAL - MAJALAH PATOLOGI INDONESIA (REVISI)
   Tema: Professional Medical Journal
   ==================================== */

/* ==========================
   WARNA DASAR & LINK
   ========================== */
a {
    color: #185abd;
}
a:hover {
    color: #0f3f7f;
}

/* ==========================
   MENU UTAMA
   ========================== */
#navigationPrimary a {
    /* !important dipertahankan karena seringkali dibutuhkan untuk menimpa style tema OJS */
    color: #185abd !important;
    font-weight: 600;
}
#navigationPrimary a:hover {
    color: #0f3f7f !important;
}

/* LOGIN / REGISTER */
#navigationUser a {
    color: #185abd !important;
}
#navigationUser a:hover {
    color: #0f3f7f !important;
}

/* ==========================
   HEADER & LOGO (STABIL)
   ========================== */
.pkp_structure_head_wrapper {
    min-height: 220px;
    display: flex;
    align-items: center;
}

/* LOGO */
.pkp_structure_head .pkp_site_name img {
    max-height: 200px;
    width: auto;
}

/* HEADER TITLE */
.pkp_site_name a {
    color: #0f2f5f;
    font-weight: bold;
}

/* SPASI HEADER AMAN */
.pkp_structure_head {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* ==========================
   BUTTON STYLE
   ========================== */
.pkp_button,
button,
input[type="submit"] {
    background-color: #2d6cdf !important;
    border-color: #2d6cdf !important;
    color: #ffffff !important;
    border-radius: 20px;
    font-weight: 600;
    padding: 7px 16px;
    transition: all 0.2s ease;
}
.pkp_button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #1b4ea1 !important;
}

/* ==========================
   CURRENT ISSUE
   ========================== */
.current_issue {
    background: #f5f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.current_issue h2 {
    color: #0f3f7f;
    font-weight: bold;
}

/* ==========================
   JUDUL ARTIKEL (RINGKASAN)
   ========================== */
.obj_article_summary h3 a {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

/* ==========================
   SIDEBAR STYLE
   ========================== */
.pkp_block {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0px 1px 7px rgba(0,0,0,0.06);
}

/* JUDUL SIDEBAR */
.pkp_block h2 {
    border-bottom: 2px solid #185abd;
    padding-bottom: 6px;
    font-weight: bold;
}

/* SIDEBAR IMAGE */
.pkp_block img {
    max-width: 100%;
    height: auto;
}


/* ==========================
   FOOTER SLIM FIX
   ========================== */

/* Wrapper */
.pkp_structure_footer_wrapper {
    background-color: #eeeeee;
    color: #333;
    font-size: 13px;
    text-align: center;
    padding: 20px 50px 0px 40px !important; /* Diambil dari revisi akhir */
    margin-top: 10px !important;
    line-height: 1.4;
}

/* Inner footer area */
.pkp_structure_footer {
    padding: 0 !important;
    margin: 0 auto !important; /* Diperbaiki untuk centering */
    max-width: 1050px; /* Diperbaiki untuk centering */
    text-align: center;
}

/* Reset margin bawaan OJS */
.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper div {
    margin: 2px 0 !important;
    padding: 0 !important;
}

/* Footer link */
.pkp_structure_footer_wrapper a {
    color: #185abd;
}


/* ==========================
   HOMEPAGE LAYOUT
   ========================== */
.page_index .obj_issue_toc {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
}

.page_index h2 {
    border-left: 4px solid #185abd;
    padding-left: 10px;
}


/* ==========================
   JOURNAL PROFILE
   ========================== */
.journal-description {
    background: #f5f8ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}



/* =========================================
   ARTICLE PAGE LAYOUT (DIBERSIHKAN & MENGGUNAKAN FLEXBOX)
   ========================================= */

/* BACKGROUND CONTAINER ARTIKEL */
.page_article .obj_article_details {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
}

/* Judul, Authors, DOI: Biarkan mengambil lebar penuh */
.page_article h1 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 10px;
}
.page_article .authors {
    color: #444;
    font-style: italic;
}
.page_article .doi {
    background: #f5f8ff;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    font-size: 13px;
}

/* ABSTRACT BLOCK */
.page_article .abstract {
    background: #f9fbff;
    padding: 15px;
    border-left: 4px solid #185abd;
    margin-top: 15px;
    border-radius: 6px;
}

.page_article .abstract h2 {
    color: #0f3f7f;
}

/* ================================
   STRUKTUR DUA KOLOM (FLEXBOX SOLUTION)
   ================================ */

/* Hapus float OJS dan jadikan .row sebagai Flex Container utama */
.page_article .obj_article_details > .row {
    display: flex !important;
    align-items: flex-start;
    gap: 24px; /* Jarak antara kolom kiri dan kanan */
}

/* KOLOM KIRI (Konten Utama: Judul, Abstrak, Download, dll.) */
.page_article .main_entry {
    flex: 1 1 auto; /* Ini memastikan kolom kiri mengambil semua ruang sisa */
    min-width: 0;
}

/* KOLOM KANAN (Metadata/Entry Details) */
.page_article .entry_details {
    /* Tetapkan lebar tetap 260px untuk kolom kanan */
    flex: 0 0 260px !important; 
    max-width: 260px;
    
    /* Reset properti OJS bawaan */
    margin-left: 0 !important;
    float: none !important;
    clear: none !important;
    position: static !important; /* Paksa meta jangan jatuh ke bawah */

    /* Styling box metadata */
    background: #f5f8ff;
    padding: 14px;
    border-radius: 10px;
    border-left: 3px solid #185abd;
}

/* Styling item metadata di dalam .entry_details (opsional) */
.page_article .entry_details .item {
    background: none; /* Hilangkan background jika .item memiliki background bawaan */
    border: none;
    padding: 0;
}


/* ==========================
   RESPONSIVE FIX
   ========================== */
@media (max-width: 768px) {
    /* ... (Header dan Logo tetap sama) ... */
    
    /* Stack artikel ketika mobile */
    .page_article .obj_article_details > .row {
        flex-direction: column;
        gap: 0;
    }

    .page_article .main_entry {
        flex: auto;
    }

    .page_article .entry_details {
        max-width: 100%; /* Kolom metadata mengambil lebar penuh */
        flex: auto;
    }
}
