/* =========================================================
   JUMAGI - Jurnal Madani Gizi Indonesia
   Tema: Teal + Hijau limau (sesuai cover dan banner)
   Untuk OJS 3.1 / 3.2 / 3.3 - Default Theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- Palet warna (ubah di sini jika perlu) ----------
   Oranye utama  : #2E8599
   Oranye tua    : #155C6C
   Biru navy     : #0E4A59
   Biru aksen    : #1F6F82
   Teks gelap    : #1F2937
   Latar abu     : #F4F5F7
------------------------------------------------------------ */

body {
    background: #F4F5F7;
}

/* =================== HEADER =================== */
.pkp_structure_head {
    background: linear-gradient(135deg, #0E4A59 0%, #155C6C 55%, #2E8599 100%) !important;
    border-bottom: 4px solid #A8D95B;
}

/* Banner logo penuh selebar header */
.pkp_site_name_wrapper,
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
}
.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
}
.pkp_site_name .is_img img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(14, 74, 89, .25);
}

/* Menu atas (admin, register, login) */
.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:hover {
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
}

/* Menu utama */
.pkp_navigation_primary_row {
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.pkp_navigation_primary > li > a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #fff !important;
    border-radius: 6px;
    padding: 6px 12px !important;
    margin: 6px 4px !important;
    border-bottom: none !important;
    transition: background .2s ease;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
}

/* Submenu (dropdown About) */
.pkp_navigation_primary ul {
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    border: none !important;
    overflow: hidden;
}
.pkp_navigation_primary ul a {
    color: #1F2937 !important;
    font-family: 'Poppins', sans-serif;
    border-left: 3px solid transparent !important;
}
.pkp_navigation_primary ul a:hover {
    background: #EAF6F2 !important;
    color: #155C6C !important;
    border-left-color: #2E8599 !important;
}

/* Tombol Search */
.pkp_navigation_search_wrapper a {
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    border-radius: 6px;
    padding: 6px 12px;
}
.pkp_navigation_search_wrapper a:hover {
    background: rgba(255, 255, 255, .18);
    border-color: transparent !important;
}

/* =================== KONTEN UTAMA =================== */
.pkp_structure_content {
    background: #fff;
}

h1, h2, h3, h4,
.page_title,
.pkp_structure_main h2 {
    font-family: 'Poppins', sans-serif;
    color: #0E4A59;
}

/* Garis oranye di bawah judul bagian */
.page_index_journal .current_issue > h2,
.page_title {
    position: relative;
    padding-bottom: 10px;
}
.page_index_journal .current_issue > h2::after,
.page_title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: #2E8599;
}

/* Link umum */
.pkp_structure_main a {
    color: #1F6F82;
}
.pkp_structure_main a:hover {
    color: #155C6C;
}

/* Cover issue */
.obj_issue_toc .cover img,
.obj_issue_summary .cover img,
.current_issue .cover img {
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* Judul bagian "Articles" */
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
    font-family: 'Poppins', sans-serif;
    color: #155C6C !important;
    font-weight: 600;
}

/* Daftar artikel */
.obj_article_summary {
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #2E8599;
    background: #F3FAF7;
    margin-bottom: 16px;
}
.obj_article_summary > .title a {
    color: #0E4A59 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}
.obj_article_summary > .title a:hover {
    color: #155C6C !important;
}

/* Tombol PDF */
.obj_galley_link {
    border: 2px solid #2E8599 !important;
    color: #155C6C !important;
    border-radius: 20px !important;
    font-weight: 600;
    transition: all .2s ease;
}
.obj_galley_link:hover,
.obj_galley_link:focus {
    background: #2E8599 !important;
    color: #fff !important;
}

/* =================== SIDEBAR =================== */
.pkp_structure_sidebar .pkp_block {
    background: #fff;
    border: 1px solid #EDEFF2;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    padding: 18px !important;
    margin: 0 0 20px 0 !important;
}
.pkp_structure_sidebar .pkp_block .title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0E4A59;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 3px solid #2E8599;
    display: inline-block;
}
.pkp_structure_sidebar .pkp_block img {
    max-width: 100%;
    height: auto;
}

/* Tombol Make a Submission */
.block_make_submission a {
    display: block;
    text-align: center;
    background: #2E8599 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(46, 133, 153, .35);
    transition: background .2s ease;
}
.block_make_submission a:hover {
    background: #155C6C !important;
}

/* =================== FOOTER =================== */
.pkp_structure_footer_wrapper {
    background: #0E4A59 !important;
    border-top: 4px solid #2E8599;
    color: #D6F0F5;
}
.pkp_structure_footer_wrapper a {
    color: #A8D95B !important;
}
.pkp_structure_footer_wrapper a:hover {
    color: #fff !important;
}
.pkp_footer_content {
    color: #D6F0F5;
}
.pkp_brand_footer img {
    filter: brightness(0) invert(1);
    opacity: .75;
}

/* =================== LAYAR HP =================== */
@media (max-width: 991px) {
    .pkp_site_name .is_img img {
        border-radius: 6px;
    }
    .pkp_navigation_primary > li > a {
        margin: 2px 0 !important;
    }
    .pkp_navigation_primary_wrapper {
        background: #155C6C !important;
    }
}

/* =================== MENU SIDEBAR BERIKON =================== */
/* Ikon Bootstrap Icons diwarnai oranye */
.pkp_block img[src*="bootstrap-icons"] {
    filter: invert(58%) sepia(93%) saturate(2400%) hue-rotate(2deg) brightness(101%) contrast(96%);
    transition: transform .2s ease;
}
/* Efek saat baris menu disorot */
.pkp_block a:has(img[src*="bootstrap-icons"]) {
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.pkp_block a:has(img[src*="bootstrap-icons"]):hover {
    background: #EAF6F2;
    color: #155C6C !important;
    padding-left: 16px !important;
}
.pkp_block a:has(img[src*="bootstrap-icons"]):hover img {
    transform: scale(1.15);
}

/* =================== JOURNAL INFORMATION DI ATAS CURRENT ISSUE =================== */
html body #pkp_content_main .page_index_journal {
    display: flex !important;
    flex-direction: column !important;
}
html body #pkp_content_main .page_index_journal > .additional_content {
    order: 1 !important;
    margin-bottom: 30px;
}
html body #pkp_content_main .page_index_journal > .current_issue {
    order: 5 !important;
}

/* =========================================================
   JUMAGI - PENYERAGAMAN WARNA (menimpa CSS situs)
   Oranye #2E8599 / #155C6C, Navy #0E4A59
   ========================================================= */
html body .pkp_structure_head {
    background: linear-gradient(135deg, #0E4A59 0%, #155C6C 55%, #2E8599 100%) !important;
    border-bottom: 5px solid #A8D95B !important;
}
html body .pkp_navigation_primary_row,
html body .pkp_navigation_primary_wrapper {
    background: #0E4A59 !important;
}
html body .pkp_navigation_primary_row {
    border-bottom: 4px solid #A8D95B !important;
}
html body #navigationPrimary > li > a,
html body .pkp_navigation_search_wrapper a,
html body .pkp_search .search_prompt {
    color: #ffffff !important;
}
html body #navigationPrimary > li > a:hover,
html body #navigationPrimary > li > a:focus {
    color: #A8D95B !important;
    border-color: #2E8599 !important;
}
html body #navigationPrimary ul a:hover {
    background: #EAF6F2 !important;
    color: #155C6C !important;
    border-left-color: #2E8599 !important;
}
html body #pkp_content_main h1,
html body #pkp_content_main h2,
html body #pkp_content_main h3 {
    color: #0E4A59 !important;
}
html body #pkp_content_main .obj_article_summary .title a {
    color: #0E4A59 !important;
}
html body #pkp_content_main .obj_article_summary .title a:hover {
    color: #155C6C !important;
}
html body .block_make_submission a {
    background: #2E8599 !important;
    border-color: #0E4A59 !important;
    color: #ffffff !important;
}
html body .pkp_structure_footer_wrapper {
    background: #0E4A59 !important;
    border-top: 4px solid #A8D95B !important;
}

/* =================== IKON DI MENU ATAS =================== */
@font-face {
    font-family: 'FA47';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff');
    font-weight: normal;
    font-style: normal;
}
html body #navigationPrimary a::before,
html body #navigationUser a::before {
    font-family: 'FontAwesome', 'FA47' !important;
    font-weight: normal;
    font-style: normal;
    display: inline-block !important;
    margin-right: 7px;
    visibility: visible !important;
    font-size: 0.95em;
    opacity: .95;
}
/* Home (jurnal) */
html body #navigationPrimary a[href$="/JUMAGI"]::before,
html body #navigationPrimary a[href$="/JUMAGI/"]::before,
html body #navigationPrimary a[href$="/JUMAGI/index"]::before { content: "\f015" !important; }
/* Current */
html body #navigationPrimary a[href*="/issue/current"]::before { content: "\f02d" !important; }
/* Archives */
html body #navigationPrimary a[href*="/issue/archive"]::before { content: "\f187" !important; }
/* Announcements */
html body #navigationPrimary a[href*="/announcement"]::before { content: "\f0a1" !important; }
/* Home Journal Universitas Yatsi Madani (portal semua jurnal) */
html body #navigationPrimary a[href$="jurnal.uym.ac.id"]::before,
html body #navigationPrimary a[href$="jurnal.uym.ac.id/"]::before,
html body #navigationPrimary a[href$="/index.php"]::before,
html body #navigationPrimary a[href$="/index.php/"]::before,
html body #navigationPrimary a[href$="/index.php/index"]::before { content: "\f19c" !important; }
/* About + submenu */
html body #navigationPrimary a[href$="/about"]::before { content: "\f05a" !important; }
html body #navigationPrimary a[href*="/about/submissions"]::before { content: "\f1d8" !important; }
html body #navigationPrimary a[href*="/about/editorialTeam"]::before { content: "\f0c0" !important; }
html body #navigationPrimary a[href*="/about/privacy"]::before,
html body #navigationPrimary a[href*="/privacystatement"]::before { content: "\f023" !important; }
html body #navigationPrimary a[href*="/about/contact"]::before { content: "\f0e0" !important; }
/* Menu user: hanya Register dan Login */
html body #navigationUser a[href*="/user/register"]::before { content: "\f234" !important; }
html body #navigationUser a[href*="/login"]::before { content: "\f090" !important; }

