﻿/************************************************
GLOBAL LAYOUT
************************************************/

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

body {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #000000 !important;
    margin: 0 !important;
}

.pkp_structure_page {
    border: 3px solid #f2960c !important;
    max-width: 1155px !important;
    width: 100% !important;
    margin: 30px auto !important;
    box-shadow: none !important;
}

/*--------------------------------------------------
HEADER
---------------------------------------------------*/
.has_site_logo .pkp_head_wrapper {
    width: 100% !important;
    max-width: 1149px !important;
    background: #ffffff !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px;
}

.pkp_site_name .is_img img {
    max-height: 100px !important;
    padding-top: 10px !important;
}

.pkp_site_name_wrapper {
    width: 99%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff !important;
    padding: 10px;
    border: none !important;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(11, 84, 111, 0.18);
    height: 135px;
    flex-wrap: wrap;
}

.pkp_navigation_user > li:last-child > a {
    color: #0B546F !important;
    margin-right: 15px;
}

.pkp_navigation_user > li > a {
    color: #0B546F !important;
}

.pkp_navigation_user > li > a .task_count {
    color: #0B546F !important;
}

.pkp_navigation_user > li > a:focus .task_count {
    background: #ffffff !important;
}

.pkp_site_name {
    padding: 0px 0 !important;
}

.pkp_navigation_user_wrapper ul a:hover,
.pkp_navigation_user_wrapper ul a:focus {
    border-color: #000;
    color: #0B546F !important;
}

#navigationPrimary ul a {
    line-height: 1.1rem;
}

.pkp_nav_list ul a {
    color: #ffffff !important;
    background: #0F5C5A;
}

.pkp_nav_list ul a:hover,
.pkp_nav_list ul a:focus {
    background: #ffffff !important;
    border-color: #f2960c !important;
    color: #0B546F !important;
}
.pkp_navigation_user>li>a {
    color: #0B546F!important;
}
/*--------------------------------------------------
NAVIGATION MENU
---------------------------------------------------*/
.pkp_navigation_primary_row {
    background: #ffffff !important;
    border-bottom: 1px;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 50px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(11, 84, 111, 0.18);
    max-width: 98%;
}

/* FIX: this selector was declared twice with conflicting backgrounds
   (#ffffff vs #0B1E5B) — consolidated into a single rule. */
#navigationPrimary > li > a {
    padding-bottom: 3px;
    background: #ffffff !important;
    color: #0B546F;
}

#navigationPrimary > li > a:hover,
#navigationPrimary > li > a:focus {
    border-color: #ffffff00;
    border-radius: 10px;
    background: #0F5C5A !important;
    border-bottom: 3px solid #f2960c !important;
    color: #ffffff !important;
}

.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
    border-color: none;
    border-radius: 10px;
    background: #0F5C5A !important;
    border-bottom: 3px solid #f2960c !important;
    color: #ffffff !important;
}

.pkp_navigation_primary_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    color: #ffffff;
    border-color: #ffffff;
    border-width: 3px;
}

.pkp_navigation_primary {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0px !important;
}

.pkp_navigation_search_wrapper a {
    padding-bottom: 0px;
    border-bottom-width: 1px;
    color: #0B546F;
}

.pkp_nav_list {
    margin-top: 0px !important;
}

.pkp_site_nav_menu {
    background: #ffffff !important;
    padding-left: 20px;
}
.pkp_nav_list ul a {
    color: #ffffff !important;
}
/*--------------------------------------------------
DROPDOWN MENU
---------------------------------------------------*/
.pkp_navigation_primary .dropdown-menu {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #e0e6f0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* FIX: text was #ffffff on a #ffffff dropdown background = invisible.
   Changed to a readable dark color matching the theme. */
.pkp_navigation_primary .dropdown-menu a {
    color: #0B546F !important;
}

.pkp_navigation_primary .dropdown-menu a:hover {
    background: #0F5C5A !important;
    color: #ffffff !important;
}
.pkp_navigation_primary .dropdown-menu a {
    color: #ffffff !important;
}
/*--------------------------------------------------
CONTENT PAGE
---------------------------------------------------*/
.pkp_structure_content {
    border-top: 0px solid #500E8A !important;
    background: #ffffff !important;
    width: 100% !important;
    max-width: 1149px;
    display: flex !important;
    flex-wrap: wrap !important;
}

.pkp_structure_main {
    background: #ffffff !important;
    padding: 30px !important;
    padding-top: 0px !important;
    width: 100% !important;
    max-width: 849px;
    flex: 1 1 600px;
    text-align: justify;
}

nav.cmp_breadcrumbs {
    display: none !important;
}

.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4 {
    margin: 0.857rem 0 0.43rem;
}

.pkp_structure_main p,
.pkp_structure_main ul {
    line-height: 1.785rem;
    margin: 0.43rem 0;
}

.pkp_structure_main p:last-child {
    margin-bottom: 0;
    font-family: none !important;
    font-size: 15px !important;
    font-weight: 0 !important;
    color: #000000 !important;
    text-align: justify !important;
    font-style: normal;
}

/*--------------------------------------------------
SIDE BAR
---------------------------------------------------*/
.pkp_structure_sidebar {
    flex: 1 1 260px;
    width: 100%;
    max-width: 300px;
}

.pkp_block h2 {
    background: #0F5C5A;
    color: #ffffff !important;
    padding: 9px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    width: 100%;
    border-bottom: 4px solid #f2960c !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    text-align: center !important;
}

.pkp_structure_sidebar > * {
    position: relative;
    box-shadow: 0 5px 14px rgba(11, 30, 91, 0.08);
    margin: 20px;
}

.pkp_block {
    padding: 0.000rem;
    border-radius: 6px;
}

.pkp_block .content p:last-child {
    margin-top: 0px !important;
    margin: 20px;
    padding-bottom: 10px;
}

.pkp_block .content ul li {
    margin-left: 20px;
}

.pkp_unstyled_list, .cmp_article_list, .cmp_breadcrumbs ol,
.cmp_announcements.cmp_announcements, .pkp_site_nav_menu ul,
.pkp_page_index .journals ul, .page_catalog_category .subcategories ul,
.page_issue_archive .issues_archive, .page_register .context_optin .contexts,
.obj_article_details .authors, .obj_article_details .galleys_links,
.obj_article_details .supplementary_galleys_links, .obj_article_summary
.galleys_links, .obj_issue_toc .articles, .obj_issue_toc .galleys_links,
.pkp_block .content ul {
    margin-top: 0px !important;
}

.pkp_block .title {
    border-bottom: 4px solid #f7bc4a;
}

.pkp_page_index .additional_content {
    margin-left: 0.000rem;
    margin-right: 0.000rem;
}

#customblock-downloads .title,
#customblock-downloads h2.title {
    background: #e74b00 !important;
    width: 100%;
    color: #ffffff !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding: 7px;
    text-align: center !important;
    box-shadow: 0 5px 15px rgba(11, 30, 91, 0.08);
}

#customblock-downloads .content {
    text-align: center;
}

#customblock-downloads .content a {
    display: inline-block !important;
    white-space: nowrap !important;
}

/*--------------------------------------------------
FOOTER
---------------------------------------------------*/
.pkp_structure_footer_wrapper {
    background: #0B546F !important;
    border-top: 0px solid #f7bc4a !important;
    border-bottom: none !important;
}

.pkp_footer_content {
    border-top: 2px solid #ff6b00 !important;
    color: #ffffff;
    text-align: center;
}

.pkp_brand_footer {
    display: none !important;
}

.pkp_structure_footer a {
    color: #ffffff !important;
}






@media screen and (max-width: 480px) {
.pkp_site_nav_toggle {
    padding: 30px;
    padding-top: 50px;
}
.pkp_site_nav_toggle>span:before, 
.pkp_site_nav_toggle>span:after {
    background: #000000;
}
.pkp_site_nav_toggle>span {
    border-bottom: 3px solid #000000;
}
}




@media screen and (max-width: 768px) {
.pkp_site_nav_toggle {
    padding: 30px;
    padding-top: 50px;
}
.pkp_site_nav_toggle>span:before, 
.pkp_site_nav_toggle>span:after {
    background: #000000;
}
.pkp_site_nav_toggle>span {
    border-bottom: 3px solid #000000;
}

.pkp_navigation_user>li>a {
    color: #ffffff!important;
}
}






@media screen and (max-width: 1200px) {
.pkp_site_nav_toggle {
    padding: 30px;
    padding-top: 50px;
}
.pkp_site_nav_toggle>span:before, 
.pkp_site_nav_toggle>span:after {
    background: #000000;
}
.pkp_site_nav_toggle>span {
    border-bottom: 3px solid #000000;
}
}




@media screen and (max-width:768px){

    /* Header */
    .pkp_navigation_primary_row{
        position:relative;
    }

    /* Mobile menu */
    .pkp_site_nav_menu{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#ffffff;
        z-index:9999;
    }

    #navigationPrimary{
        display:block;
        width:100%;
        margin:0;
        padding:0;
    }

    #navigationPrimary li{
        display:block;
        width:100%;
        text-align:left;
    }

    #navigationPrimary li a{
        display:block;
        padding:12px 20px;
        color:#27055A;
    }
.pkp_navigation_user.pkp_navigation_user {
background: #0F5C5A;
}
.pkp_navigation_user > li:last-child > a {
    color: #ffffff !important;

}
}

/************************************************
MOBILE DROPDOWN (tap to open/close)
Add this inside your existing
@media (max-width: 1024px) { ... } block,
or as its own media query below it.
************************************************/

@media (max-width: 1024px) {

    /* Parent <li> that contains a submenu needs relative
       positioning so the submenu can anchor under it */
    #navigationPrimary > li {
        position: relative !important;
    }

    /* Hide the submenu by default on mobile */
    #navigationPrimary ul {
        display: none !important;
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    /* Reveal the submenu once the parent link has been
       tapped and gained focus (CSS-only toggle, no JS) */
    #navigationPrimary > li:focus-within > ul {
        display: block !important;
    }

    /* Also support a JS-driven toggle class, see script below */
    #navigationPrimary > li.mobile-dropdown-open > ul {
        display: block !important;
    }

    /* Add a visual indicator (caret) on items that have a submenu.
       :has() detects this in pure CSS -- no JS required.
       (Supported in current Chrome, Safari, Firefox, Edge.) */
    #navigationPrimary > li:has(> ul) > a::after {
        content: "▾";
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.2s ease;
    }
    #navigationPrimary > li.mobile-dropdown-open > a::after,
    #navigationPrimary > li:focus-within > a::after {
        transform: rotate(180deg);
    }

    /* Fallback for browsers without :has() support: if you're using
       the optional JS file, it still adds .has_submenu manually,
       so this keeps working either way. */
    #navigationPrimary > li.has_submenu > a::after {
        content: "▾";
        display: inline-block;
        margin-left: 6px;
        transition: transform 0.2s ease;
    }

    /* Submenu items styled full-width, indented */
    #navigationPrimary ul li a {
        display: block !important;
        padding: 10px 20px !important;
        text-align: center !important;
    }
}








