/* ====================================================
   BJNRD BRANDING & CUSTOM OVERRIDES FOR OJS 3.3
   ==================================================== */

/* --- 1. Header & Navigation Bar Styling --- */
.pkp_structure_head {
    background-color: #ffffff !important;
    border-bottom: 3px solid #0B3C2B;
}

.pkp_navigation_primary_wrapper {
    background-color: #0B3C2B !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 18px !important;
}

.pkp_navigation_primary > li > a:hover {
    background-color: #145941 !important;
    color: #f1c40f !important; /* Gold Accent */
}

/* --- 2. Main Content & Layout Enhancements --- */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
}

.pkp_structure_main {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Section Headings */
.pkp_block h2, .cmp_heading, h2 {
    color: #0B3C2B;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* --- 3. Article List Cards --- */
.obj_article_summary {
    background: #fdfdfd;
    border: 1px solid #e9ecef;
    border-left: 5px solid #0B3C2B;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px !important;
    transition: all 0.2s ease-in-out;
}

.obj_article_summary:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.obj_article_summary .title a {
    color: #0B3C2B !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

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

/* PDF Buttons */
.obj_galley_link {
    background-color: #ffffff !important;
    color: #0B3C2B !important;
    border: 1.5px solid #0B3C2B !important;
    border-radius: 4px;
    font-weight: bold;
    padding: 5px 15px;
    transition: 0.2s;
}

.obj_galley_link:hover {
    background-color: #0B3C2B !important;
    color: #ffffff !important;
}

/* --- 4. Sidebar Styling --- */
.pkp_structure_sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pkp_block {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.pkp_block .title {
    font-size: 1rem;
    font-weight: 700;
    color: #0B3C2B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================================
   FOOTER STRUCTURE & RESIZING OVERRIDES
   ==================================================== */

/* 1. Make the overall footer background compact */
.pkp_structure_footer_wrapper {
    background-color: #0B3C2B !important;
    color: #ffffff !important;
    padding: 20px 0 15px 0 !important; /* Reduced padding from top and bottom */
    margin-top: 40px !important;
}

.pkp_structure_footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. Style Content & Center Copyright */
.custom-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Scale down the CC & Norad Logos */
.footer-license-img,
.footer-norad-img {
    height: 38px !important; /* Keeps them small and clean */
    width: auto !important;
}

/* Copyright Text Styling */
.footer-copyright p {
    color: #e0e0e0;
    font-size: 0.88rem;
    margin: 5px 0 0 0;
    font-weight: 400;
}

/* 3. Scale Down the OJS / PKP Brand Footer Logo */
.pkp_brand_footer {
    display: block !important;
    margin: 15px auto 0 auto !important;
    max-width: 130px !important; /* Shrinks the OJS image */
    height: auto !important;
    opacity: 0.8;
    filter: brightness(0) invert(1); /* Makes the logo white */
    transition: opacity 0.2s;
}

.pkp_brand_footer:hover {
    opacity: 1;
}