/* =========================================================
   JMM - Journal of Midwifery Madani
   Tema: Magenta / Pink (identitas) + Kuning heksagon (aksen) + Putih
   OJS 3.1.x - Default Theme
   ========================================================= */

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

/* ---------- Palet warna ----------
   Plum tua      : #6E0A47
   Magenta utama : #A8136B
   Pink          : #D52A88
   Kuning aksen  : #FFC20E
   Pink muda     : #FFF0F7
   Garis pink    : #F5D0E4
------------------------------------ */

html body {
    background: #FFF7FB !important;
}

/* =================== HEADER =================== */
html body .pkp_structure_head {
    background: linear-gradient(100deg, #6E0A47 0%, #A8136B 45%, #D52A88 100%) !important;
    border-bottom: 5px solid #FFC20E !important;
}

/* Banner logo penuh selebar header */
html body .pkp_head_wrapper {
    padding-top: 0 !important;
}
html body .pkp_site_name_wrapper,
html body .pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
html body .pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
html body .pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
}

/* Menu atas (Register, Login, admin) */
html body .pkp_navigation_user_wrapper {
    top: 6px !important;
}
html body .pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500;
}
html body .pkp_navigation_user > li > a:hover {
    color: #FFC20E !important;
}

/* =================== MENU UTAMA =================== */
html body .pkp_navigation_primary_row {
    background: #6E0A47 !important;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
html body #navigationPrimary > li > a {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 14px !important;
    margin: 6px 3px !important;
    border-bottom: none !important;
    transition: background .2s ease, color .2s ease;
}
html body #navigationPrimary > li > a:hover,
html body #navigationPrimary > li > a:focus {
    background: rgba(255, 194, 14, .18) !important;
    color: #FFC20E !important;
}

/* Ikon di menu utama */
html body #navigationPrimary > li > a::before,
html body .pkp_navigation_search_wrapper a::before {
    font-family: 'FontAwesome', 'FA47' !important;
    font-weight: normal !important;
    margin-right: 7px;
    color: #FFC20E;
}
html body #navigationPrimary > li > a[href$="/issue/current"]::before { content: "\f02d"; }
html body #navigationPrimary > li > a[href$="/issue/archive"]::before { content: "\f187"; }
html body #navigationPrimary > li > a[href$="/announcement"]::before { content: "\f0a1"; }
html body #navigationPrimary > li > a[href*="/about"]::before { content: "\f05a"; }
html body #navigationPrimary > li > a[href$="jurnal.uym.ac.id"]::before,
html body #navigationPrimary > li > a[href$="jurnal.uym.ac.id/"]::before,
html body #navigationPrimary > li > a[href$="/index.php"]::before,
html body #navigationPrimary > li > a[href$="/index.php/"]::before,
html body #navigationPrimary > li > a[href$="/index.php/index"]::before { content: "\f015"; }

/* Submenu (dropdown About) */
html body #navigationPrimary ul {
    background: #ffffff !important;
    border: none !important;
    border-top: 3px solid #FFC20E !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 24px rgba(110, 10, 71, .20);
    overflow: hidden;
}
html body #navigationPrimary ul a {
    color: #3B1830 !important;
    font-family: 'Poppins', sans-serif !important;
    border-left: 3px solid transparent !important;
}
html body #navigationPrimary ul a:hover {
    background: #FFF0F7 !important;
    color: #A8136B !important;
    border-left-color: #D52A88 !important;
}

/* Tombol Search */
html body .pkp_navigation_search_wrapper a {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    border-radius: 6px;
    padding: 8px 14px !important;
    border: none !important;
}
html body .pkp_navigation_search_wrapper a:hover {
    background: rgba(255, 194, 14, .18) !important;
    color: #FFC20E !important;
}
html body .pkp_navigation_search_wrapper .fa {
    color: #FFC20E !important;
}

/* =================== KONTEN UTAMA =================== */
html body .pkp_structure_content {
    background: #ffffff;
}
html body #pkp_content_main h1,
html body #pkp_content_main h2,
html body #pkp_content_main h3,
html body .page_title {
    font-family: 'Poppins', sans-serif !important;
    color: #6E0A47 !important;
}

/* Garis kuning di bawah judul */
html body .page_index_journal .current_issue > h2,
html body .page_title {
    position: relative;
    padding-bottom: 10px;
}
html body .page_index_journal .current_issue > h2::after,
html body .page_title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #FFC20E, #D52A88);
}

/* Link umum */
html body #pkp_content_main a {
    color: #A8136B;
}
html body #pkp_content_main a:hover {
    color: #D52A88;
}

/* Cover issue */
html body .obj_issue_toc .cover img,
html body .obj_issue_summary .cover img,
html body .current_issue .cover img {
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(110, 10, 71, .22);
}

/* Judul bagian "Articles" */
html body .obj_issue_toc .section > h2,
html body .obj_issue_toc .section > h3 {
    font-family: 'Poppins', sans-serif !important;
    color: #A8136B !important;
    font-weight: 600;
    border-bottom: 2px solid #F5D0E4;
    padding-bottom: 6px;
}

/* Daftar artikel */
html body .obj_article_summary {
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #D52A88;
    background: #FFF7FB;
    margin-bottom: 16px;
    transition: box-shadow .2s ease, transform .2s ease;
}
html body .obj_article_summary:hover {
    box-shadow: 0 6px 18px rgba(110, 10, 71, .12);
    transform: translateY(-2px);
}
html body .obj_article_summary > .title a {
    color: #6E0A47 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}
html body .obj_article_summary > .title a:hover {
    color: #D52A88 !important;
}

/* Tombol PDF */
html body .obj_galley_link {
    border: 2px solid #D52A88 !important;
    color: #A8136B !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    font-weight: 600;
    transition: all .2s ease;
}
html body .obj_galley_link:hover,
html body .obj_galley_link:focus {
    background: #D52A88 !important;
    color: #ffffff !important;
}

/* Tombol umum */
html body .cmp_button,
html body .pkp_button,
html body button.submit,
html body .cmp_form .buttons button {
    background: #A8136B !important;
    border-color: #6E0A47 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

/* =================== 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 > .homepage_image {
    order: 0 !important;
}
html body #pkp_content_main .page_index_journal > .cmp_announcements {
    order: 3 !important;
}
html body #pkp_content_main .page_index_journal > .current_issue {
    order: 5 !important;
}

/* =================== SIDEBAR =================== */
html body .pkp_structure_sidebar .pkp_block {
    background: #ffffff;
    border: 1px solid #F5D0E4;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(110, 10, 71, .06);
    padding: 18px !important;
    margin: 0 0 20px 0 !important;
}
html body .pkp_structure_sidebar .pkp_block .title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    color: #6E0A47;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 3px solid #FFC20E;
    display: inline-block;
}
html body .pkp_structure_sidebar .pkp_block img {
    max-width: 100%;
    height: auto;
}

/* Tombol Make a Submission */
html body .block_make_submission a {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #A8136B 0%, #D52A88 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    border-bottom: 4px solid #FFC20E !important;
    padding: 12px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(168, 19, 107, .30);
}
html body .block_make_submission a:hover {
    background: #6E0A47 !important;
}

/* Ikon menu sidebar (Bootstrap Icons) diwarnai magenta */
html body .pkp_block img[src*="bootstrap-icons"] {
    filter: invert(13%) sepia(88%) saturate(4200%) hue-rotate(311deg) brightness(82%) contrast(98%);
    transition: transform .2s ease;
}
html body .pkp_block a:has(img[src*="bootstrap-icons"]) {
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
html body .pkp_block a:has(img[src*="bootstrap-icons"]):hover {
    background: #FFF0F7 !important;
    color: #A8136B !important;
    padding-left: 16px !important;
}
html body .pkp_block a:has(img[src*="bootstrap-icons"]):hover img {
    transform: scale(1.15);
}

/* =================== FOOTER =================== */
html body .pkp_structure_footer_wrapper {
    background: #4F0733 !important;
    border-top: 5px solid #FFC20E !important;
    color: #F5D0E4;
}
html body .pkp_structure_footer_wrapper a {
    color: #FFC20E !important;
}
html body .pkp_structure_footer_wrapper a:hover {
    color: #ffffff !important;
}
html body .pkp_footer_content {
    color: #F5D0E4;
}
html body .pkp_brand_footer img {
    filter: brightness(0) invert(1);
    opacity: .75;
}

/* =================== LAYAR HP =================== */
@media (max-width: 991px) {
    html body .pkp_navigation_primary_wrapper {
        background: #6E0A47 !important;
    }
    html body #navigationPrimary > li > a {
        margin: 2px 0 !important;
    }
    html body .pkp_site_nav_toggle {
        background: #A8136B !important;
        color: #ffffff !important;
    }
}

/* =================== SEARCH PUTIH (override sitestyle) =================== */
html body #headerNavigationContainer .pkp_navigation_search_wrapper a,
html body #headerNavigationContainer .pkp_navigation_search_wrapper a.pkp_search,
html body #headerNavigationContainer .pkp_navigation_search_wrapper a:visited,
html body #headerNavigationContainer .pkp_navigation_search_wrapper a span,
html body #headerNavigationContainer .pkp_navigation_search_wrapper .fa,
html body #headerNavigationContainer .pkp_navigation_search_wrapper .fa-search,
html body #headerNavigationContainer .pkp_navigation_search_wrapper a::before,
html body .pkp_structure_head .pkp_navigation_search_wrapper a,
html body .pkp_structure_head .pkp_navigation_search_wrapper .fa {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body #headerNavigationContainer .pkp_navigation_search_wrapper a {
    border: 2px solid rgba(255, 255, 255, .85) !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
}
html body #headerNavigationContainer .pkp_navigation_search_wrapper a:hover,
html body #headerNavigationContainer .pkp_navigation_search_wrapper a:hover .fa {
    background: #FFC20E !important;
    border-color: #FFC20E !important;
    color: #6E0A47 !important;
    -webkit-text-fill-color: #6E0A47 !important;
}

/* =================== SEARCH PUTIH - OJS 3.1 (form.pkp_search) =================== */
html body .pkp_structure_head .pkp_search,
html body .pkp_structure_head .pkp_search .search_prompt,
html body .pkp_structure_head .pkp_search .search_prompt:visited,
html body .pkp_structure_head .pkp_search .search_prompt::before,
html body .pkp_structure_head .pkp_search .search_cancel,
html body .pkp_structure_head .pkp_search .search_cancel::before,
html body .pkp_structure_head .pkp_search button,
html body .pkp_structure_head .pkp_search .fa,
html body #headerNavigationContainer .pkp_search .search_prompt,
html body #headerNavigationContainer .pkp_search .search_prompt::before,
html body #headerNavigationContainer .headerSearchPrompt,
html body #headerNavigationContainer .headerSearchPrompt::before {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600 !important;
}
html body #headerNavigationContainer .pkp_search .search_prompt::before,
html body .pkp_structure_head .pkp_search .search_prompt::before {
    font-family: 'FontAwesome', 'FA47' !important;
    font-weight: normal !important;
}
html body #headerNavigationContainer .pkp_search .search_prompt:hover,
html body #headerNavigationContainer .pkp_search .search_prompt:hover::before {
    color: #FFC20E !important;
    -webkit-text-fill-color: #FFC20E !important;
}
/* Kotak isian saat Search dibuka */
html body #headerNavigationContainer .pkp_search input[type="text"] {
    background: #ffffff !important;
    color: #3B1830 !important;
    -webkit-text-fill-color: #3B1830 !important;
    border: 2px solid #FFC20E !important;
    border-radius: 20px !important;
}
