/*
 * IJCISS — OJS 3.3.0-15 | Bootstrap 3 theme
 * Full navy header, highly visible journal title, matching sidebar and footer.
 * Upload this INSTEAD OF the previous custom stylesheet.
 * Navy #002A5C | dark blue #073E78 | muted gold #B8AF80 | pale gold #E8DDA4
 */

/* 1) Entire header, including user links, masthead and navigation */
#headerNavigationContainer.navbar,
#headerNavigationContainer.navbar-default {
    background: #002A5C !important;
    background-color: #002A5C !important;
    border: 0 !important;
    border-bottom: 4px solid #B8AF80 !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 12px rgba(0, 30, 65, .12);
    margin-bottom: 0 !important;
}
#headerNavigationContainer > .container-fluid,
#headerNavigationContainer .navbar-header,
#headerNavigationContainer .navbar-collapse {
    background: #002A5C !important;
    background-color: #002A5C !important;
}

/* 2) Journal title: Bootstrap 3 markup uses .site-name > .navbar-brand.
   Put title in its own full-width row ABOVE the navigation links. */
#headerNavigationContainer .navbar-header {
    display: block !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    padding: 13px 0 12px;
    margin: 0 !important;
    min-height: 0;
}
#headerNavigationContainer .site-name,
#headerNavigationContainer h1.site-name,
#headerNavigationContainer div.site-name {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    line-height: 1.3;
    text-align: left;
}
#headerNavigationContainer .navbar-header .navbar-brand,
#headerNavigationContainer .site-name a.navbar-brand,
#headerNavigationContainer .navbar-brand:not(.navbar-brand-logo) {
    display: inline-block !important;
    float: none !important;
    clear: both;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    padding: 6px 0 12px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    text-decoration: none !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
    text-shadow: none !important;
    visibility: visible !important;
}
#headerNavigationContainer .site-name a.navbar-brand:hover,
#headerNavigationContainer .site-name a.navbar-brand:focus {
    color: #E8DDA4 !important;
}
/* If a journal logo is selected instead of a text title, keep it visible. */
#headerNavigationContainer .navbar-brand-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 115px;
}

/* 3) Primary menu; keep it on a separate row below the title */
#headerNavigationContainer .navbar-collapse,
#headerNavigationContainer #nav-menu {
    float: none !important;
    clear: both !important;
    width: 100%;
    border-top: 1px solid rgba(232,221,164,.35) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 4px;
    padding-bottom: 4px;
}
#headerNavigationContainer .navbar-collapse .navbar-nav > li > a {
    color: #FFFFFF !important;
    background: transparent !important;
    font-weight: 500;
    text-shadow: none !important;
}
#headerNavigationContainer .navbar-collapse .navbar-nav > li > a:hover,
#headerNavigationContainer .navbar-collapse .navbar-nav > li > a:focus,
#headerNavigationContainer .navbar-collapse .navbar-nav > .open > a,
#headerNavigationContainer .navbar-collapse .navbar-nav > .active > a {
    color: #E8DDA4 !important;
    background-color: #073E78 !important;
    box-shadow: inset 0 -3px 0 #B8AF80;
}
#headerNavigationContainer .dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid #DCE2DC !important;
    border-top: 3px solid #B8AF80 !important;
}
#headerNavigationContainer .dropdown-menu > li > a {
    color: #002A5C !important;
    background: #FFFFFF !important;
}
#headerNavigationContainer .dropdown-menu > li > a:hover,
#headerNavigationContainer .dropdown-menu > li > a:focus {
    color: #002A5C !important;
    background: #E9EEE8 !important;
}

/* 4) User account/login on top of the header */
#headerNavigationContainer #navigationUser > li > a,
#headerNavigationContainer .nav-pills > li > a,
#headerNavigationContainer .tab-list > li > a,
#headerNavigationContainer .navbar-text {
    color: #FFFFFF !important;
}
#headerNavigationContainer #navigationUser > li > a:hover,
#headerNavigationContainer #navigationUser > li > a:focus {
    color: #E8DDA4 !important;
    background-color: #073E78 !important;
}
#headerNavigationContainer #navigationUser .badge {
    background: #B8AF80 !important;
    color: #002A5C !important;
}

/* 5) Search: clean white field and gold button */
#headerNavigationContainer input[type="search"],
#headerNavigationContainer input[type="text"],
#headerNavigationContainer .form-control {
    background: #FFFFFF !important;
    border: 1px solid #D8DFDE !important;
    color: #002A5C !important;
    border-radius: 4px;
}
#headerNavigationContainer .navbar-form .btn,
#headerNavigationContainer .navbar-form button,
#headerNavigationContainer button[type="submit"],
#headerNavigationContainer input[type="submit"] {
    background: #B8AF80 !important;
    color: #002A5C !important;
    border: 1px solid #B8AF80 !important;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: none !important;
}
#headerNavigationContainer .navbar-form .btn:hover,
#headerNavigationContainer .navbar-form button:hover,
#headerNavigationContainer button[type="submit"]:hover {
    background: #E8DDA4 !important;
    color: #002A5C !important;
}

/* 6) Sidebar blocks: Keywords, Information, Browse, etc. */
.pkp_structure_sidebar .panel,
aside .panel {
    background: #FFFFFF;
    border: 1px solid #D8DEE4 !important;
    border-radius: 5px !important;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 42, 92, .05);
}
.pkp_structure_sidebar .panel > .panel-heading,
.pkp_structure_sidebar .panel-default > .panel-heading,
aside .panel-default > .panel-heading,
.pkp_structure_sidebar .pkp_block .title {
    background: #002A5C !important;
    background-color: #002A5C !important;
    border: 0 !important;
    border-bottom: 3px solid #B8AF80 !important;
    color: #FFFFFF !important;
    padding: 12px 18px;
}
.pkp_structure_sidebar .panel-heading *,
aside .panel-default > .panel-heading *,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar .panel-heading h2,
.pkp_structure_sidebar .panel-heading h3,
.pkp_structure_sidebar .panel-heading .panel-title {
    color: #FFFFFF !important;
    text-decoration: none;
}
.pkp_structure_sidebar .panel-body,
aside .panel-body {
    background: #FFFFFF !important;
    color: #253649;
}
.pkp_structure_sidebar .panel-body a,
aside .panel-body a {
    color: #002A5C !important;
    font-weight: 500;
}
.pkp_structure_sidebar .panel-body a:hover,
.pkp_structure_sidebar .panel-body a:focus,
aside .panel-body a:hover {
    color: #073E78 !important;
    text-decoration: underline;
}
.pkp_structure_sidebar .panel-body li:hover {
    background-color: #F6F7F3;
}
/* If your sidebar uses list-group navigation inside panels */
.pkp_structure_sidebar .list-group-item,
aside .panel .list-group-item {
    color: #002A5C !important;
    background: #FFFFFF !important;
}
.pkp_structure_sidebar .list-group-item:hover,
aside .panel .list-group-item:hover {
    background: #F1F3EE !important;
}

/* 7) Footer matches the cover's dark bottom strip */
.pkp_structure_page > footer.footer,
.pkp_structure_page > .footer {
    background: #002A5C !important;
    color: #FFFFFF !important;
    border-top: 4px solid #B8AF80 !important;
    padding: 28px 30px;
    line-height: 1.7;
}
.pkp_structure_page > footer.footer p,
.pkp_structure_page > footer.footer strong,
.pkp_structure_page > footer.footer b,
.pkp_structure_page > footer.footer div,
.pkp_structure_page > footer.footer span {
    color: #FFFFFF !important;
}
.pkp_structure_page > footer.footer a,
.pkp_structure_page > .footer a {
    color: #E8DDA4 !important;
}
.pkp_structure_page > footer.footer a:hover,
.pkp_structure_page > .footer a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

/* 8) Mobile navigation: don't conceal the title/toggle */
@media (max-width: 767px) {
    #headerNavigationContainer .navbar-header {
        padding: 10px 0;
        position: relative;
        min-height: 64px;
    }
    #headerNavigationContainer .site-name {
        width: calc(100% - 58px) !important;
    }
    #headerNavigationContainer .site-name a.navbar-brand {
        font-size: 19px !important;
        padding: 7px 0 !important;
    }
    #headerNavigationContainer .navbar-toggle {
        border: 1px solid #B8AF80 !important;
        background: transparent !important;
        margin-right: 0;
    }
    #headerNavigationContainer .navbar-toggle .icon-bar {
        background: #FFFFFF !important;
    }
    #headerNavigationContainer .navbar-toggle:hover,
    #headerNavigationContainer .navbar-toggle:focus {
        background: #073E78 !important;
    }
    #headerNavigationContainer .navbar-collapse .navbar-nav .open .dropdown-menu {
        background: #FFFFFF !important;
    }
    #headerNavigationContainer .navbar-collapse .navbar-nav .open .dropdown-menu > li > a {
        color: #002A5C !important;
    }
    .pkp_structure_page > footer.footer {
        padding: 20px 16px;
    }
}
