/* ==========================================================================
   STYLE KARTU ARTIKEL & TEMA OJS 3 - JURNAL PEJUANG
   Inspirasi: Journal Arikesi / APJI Style
   Warna: Navy (#112b3c), Gold/Aksen (#fcac31), Teal (#00626b)
   ========================================================================== */

/* 1. Import Font Google Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* 2. Global Typography & Reset Layar Penuh */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f7f9fa;
    color: #2b2b2b;
}

*,
*:before,
*:after {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

a {
    color: #112b3c;
    transition: color 0.2s ease-in-out;
}

a:hover, 
a:focus {
    color: #fcac31;
    text-decoration: none;
}

/* ==========================================================================
   3. STRUKTUR LAYOUT KONTEN (CENTER / POSISI DI TENGAH LAYAR)
   ========================================================================== */

/* Memposisikan seluruh wrapper website tepat di tengah layar */
.pkp_structure_page {
    margin-top: 20px !important;
    margin-bottom: 2.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1160px !important;
    width: 95% !important;
    float: none !important;
    background: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px;
    overflow: hidden;
}

/* Memastikan Header, Konten Utama, dan Footer berada di tengah */
.pkp_head_wrapper,
.pkp_structure_content,
.pkp_structure_footer {
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    float: none !important;
}

/* Jika tidak ada sidebar, pastikan konten utama mengisi penuh dan rata tengah */
.pkp_structure_main {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.pkp_site_name .is_img img {
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   4. MENU NAVIGASI HEADER
   ========================================================================== */
.pkp_navigation_primary_row {
    background: #ffffff;
    border-bottom: 2px solid #f0f0f0;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    font-weight: 600;
    color: #112b3c !important;
    padding: 0 15px !important;
    line-height: 42px !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover {
    color: #fcac31 !important;
}

/* Dropdown Menu Header */
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul {
    background: #00626b !important;
    border-radius: 0 !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li a {
    color: #ffffff !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li a:hover {
    background-color: #fcac31 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   5. KARTU ARTIKEL (ARTICLE SUMMARY CARD - PERSIS SCREENSHOT)
   ========================================================================== */

/* Kontainer Kartu Artikel */
.obj_article_summary {
    background-color: #ffffff !important;
    border: 1px solid #111111 !important;
    padding: 18px 22px !important;
    margin-bottom: 24px !important;
    /* Sudut kanan atas melengkung khas */
    border-radius: 0 1.5rem 0 0 !important;
    /* Bayangan solid navy tebal di sisi kanan dan bawah */
    box-shadow: 6px 6px 0 #112b3c !important;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.obj_article_summary:hover {
    box-shadow: 6px 6px 0 #fcac31 !important;
    transform: translateY(-2px);
}

/* Judul Artikel */
.obj_article_summary .title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.obj_article_summary .title a {
    color: #112b3c !important;
    text-decoration: none !important;
    display: block;
}

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

/* Metadata Penulis & Halaman */
.obj_article_summary .meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}

.obj_article_summary .meta .authors {
    flex: 1;
    color: #333333;
}

/* Ikon FontAwesome Merah di Atas Penulis */
.obj_article_summary .meta .authors:before {
    content: "\f0c0"; /* Icon users */
    font-family: FontAwesome;
    display: block;
    color: #dc302b; /* Warna merah */
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/* Penulis (Nama Tebal + Afiliasi) */
.obj_article_summary .meta .authors .consent,
.obj_article_summary .meta .authors span {
    display: block;
    margin-bottom: 3px;
}

.obj_article_summary .meta .authors b,
.obj_article_summary .meta .authors strong {
    font-weight: 700;
    color: #111111;
}

/* Nomor Halaman di Kanan Atas */
.obj_article_summary .meta .pages {
    font-size: 0.95rem !important;
    color: #777777 !important;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

/* Tautan DOI */
.obj_article_summary .article_doi,
.obj_article_summary a[href*="doi.org"] {
    font-size: 0.92rem;
    line-height: 1.8;
}

.obj_article_summary a[href*="doi.org"] {
    color: #112b3c !important;
    text-decoration: underline !important;
    word-break: break-all;
}

.obj_article_summary a[href*="doi.org"]:hover {
    color: #fcac31 !important;
}

/* Baris Tombol PDF & Statistik Unduhan */
.obj_article_summary .galleys_links {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 14px 0 0 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
    color: #222222;
}

/* Tombol PDF Navy */
.obj_article_summary .obj_galley_link {
    background-color: #112b3c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.2s ease;
}

/* Ikon PDF */
.obj_article_summary .obj_galley_link.pdf:before {
    content: "\f1c1"; /* Icon PDF FontAwesome */
    font-family: FontAwesome;
    font-size: 0.95rem;
}

.obj_article_summary .obj_galley_link:hover {
    background-color: #fcac31 !important;
    color: #ffffff !important;
}

/* Ikon Statistik Views & Downloads */
.obj_article_summary .galleys_links em.fa,
.obj_article_summary .galleys_links i.fa {
    font-style: normal;
    color: #112b3c;
    margin-right: 4px;
}

.obj_article_summary .galleys_links b,
.obj_article_summary .galleys_links strong {
    font-weight: 700;
    color: #111111;
}

/* ==========================================================================
   6. HALAMAN DETAIL ARTIKEL (ARTICLE DETAILS PAGE)
   ========================================================================== */
.obj_article_details .page_title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    color: #112b3c;
    margin-bottom: 20px;
}

.obj_article_details .abstract {
    text-align: justify;
    line-height: 1.7;
    color: #333333;
}

.obj_article_details .entry_details .cover_image img,
.obj_issue_toc .cover img {
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. SIDEBAR MENU VERTIKAL (GAYA APJI)
   ========================================================================== */
.vertical-menu {
    width: 100%;
    margin-bottom: 15px;
}

.vertical-menu a {
    background-color: #00626b;
    color: #ffffff !important;
    display: block;
    font-weight: 700;
    padding: 10px 18px;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
    border-radius: 1rem 0 0 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.vertical-menu a:hover {
    background-color: #fcac31;
}

.vertical-menu a.active {
    background-color: #111111;
}

.vertical-menu-a a {
    background-color: #112b3c;
    color: #ffffff !important;
    display: block;
    font-weight: 700;
    padding: 14px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-radius: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.vertical-menu-a a:hover {
    background-color: #fcac31;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.pkp_structure_footer_wrapper {
    background: #ffffff;
    border-top: 1px solid #e1e8ed;
    border-bottom: 8px solid #112b3c;
    margin-top: 30px;
    padding: 20px 0;
}

.pkp_brand_footer {
    display: none;
}
