/**
 * OJS 3.3.0.22 LTS - FULL CONSOLIDATED THEME
 * Header: Logo + Injected Title Text "Bangladesh Journal of Transfusion Medicine"
 * Body Background: Solid Navy (#111827)
 * Content: Dark Gradient with Enhanced Red Glow
 * Footer: NARROW COMPACT LAYOUT - RIGHT ALIGNED
 */

/* --- 1. GLOBAL SETTINGS & ACCESSIBILITY --- */
body {
    background-color: #111827 !important;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #e5e7eb !important; 
}

/* Ensure all standard text elements are visible */
p, span, li, div, section {
    color: #e5e7eb;
}

/* Global Link Color for Dark Background */
a {
    color: #fca5a5 !important; 
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* --- 2. HEADER: LOGO AND INJECTED TITLE --- */
.pkp_structure_head {
    background: #BF2121 !important; 
    border-bottom: none;
    padding: 10px 0 !important;
    min-height: auto !important;
}

.pkp_site_name_wrapper {
    display: flex !important;
    align-items: center !important; 
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px !important; 
}

.pkp_site_name {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #FFFFFF !important; 
    gap: 15px;
}

/* Specific styling for the Journal Title as text */
.pkp_site_name .is_text {
    color: #FFFFFF !important; /* Force title text to white */
}

.pkp_site_name .is_text:hover {
    color: #fca5a5 !important;
    text-decoration: none !important;
}

.pkp_site_name.is_img img {
    max-height: 60px !important; 
    width: auto !important;
    display: block !important;
}


.pkp_site_name .pkp_screen_reader {
    display: none !important;
}

/* --- 3. NAVIGATION: FULL WIDTH & CLICK STATES --- */
.pkp_site_nav_menu {
    background-color: #111827 !important; 
    border-bottom: 1px solid #A11D1D;
    width: 100% !important; 
}

.pkp_site_nav_menu .pkp_navigation_primary_wrapper {
    max-width: 100% !important; 
    padding: 0 30px !important;
}

/* Base Link Style */
.pkp_navigation_primary > li > a, 
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-weight: 700 !important;
    /* Removed text-transform: capitalize to allow "Make a Submission" with lowercase 'a' */
    text-transform: none !important; 
    font-size: 14px; 
    padding: 12px 15px !important;
    background: transparent !important;
    transition: background 0.3s ease, color 0.3s ease;
    display: block;
}

/* HOVER AND ACTIVE/CURRENT STATES */
/* Added additional selectors for OJS 3.3 current/active states */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li[class*="current"] > a,
.pkp_navigation_primary > li.active > a,
.pkp_navigation_primary > li.pkp_navigation_active > a {
    background-color: #BF2121 !important; 
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Fallback for nested menu current states */
.pkp_navigation_primary .current a,
.pkp_navigation_primary .active a {
    background-color: #BF2121 !important;
    color: #ffffff !important;
}

/* --- 4. MAIN CONTENT AREA: RED GLOW --- */
.pkp_structure_main {
    background: linear-gradient(145deg, #1f1e26 0%, #111827 100%) !important;
    border-radius: 20px !important; 
    border: 1px solid #BF2121 !important; 
    box-shadow: 0 0 35px rgba(191, 33, 33, 0.6) !important; 
    margin: 40px auto !important;
    padding: 40px !important;
    max-width: 1100px;
    position: relative;
}

/* REMOVED BACKGROUNDS FROM PSEUDO-ELEMENTS */
.pkp_structure_main:before, 
.pkp_structure_main:after {
    background: none !important;
    background-image: none !important;
    display: none !important;
}

.pkp_structure_main h1, 
.pkp_structure_main h2, 
.pkp_structure_main h3, 
.pkp_structure_main h4 {
    color: #ffffff !important;
    font-weight: 700;
}

/* --- 5. NOTIFICATIONS --- */
.cmp_notification {
    background: #1f1e26 !important; 
    color: #ffffff !important;
    border-left: 6px solid #EF4444 !important; 
    border-radius: 4px;
    margin-bottom: 20px;
}

/* --- 6. SIDEBAR TITLES --- */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title {
    color: #ffffff !important;
    border-bottom: 2px solid #BF2121 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    display: block !important;
    padding-bottom: 5px !important;
}

/* --- 7. FOOTER SETTINGS --- */
.pkp_structure_footer_wrapper {
    background: #111827 !important; 
    color: #ffffff !important;
    padding: 0 !important; 
    margin: 0 !important;
    border-top: 1px solid #1f2937;
}

.pkp_structure_footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important; 
    align-items: flex-start !important;
    padding: 15px 40px !important; 
    max-width: 1100px;
    margin: 0 auto !important;
}

.pkp_footer_content {
    text-align: left !important;
    max-width: 450px;
}

.pkp_footer_content h2, 
.pkp_footer_content strong:first-child,
.pkp_footer_content p strong {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.pkp_footer_content p,
.pkp_footer_content div {
    color: #9ca3af !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.pkp_footer_content a {
    color: #BF2121 !important; 
    font-weight: 500 !important;
}

.pkp_structure_footer_wrapper::after {
    content: "© 2026 Blood Transfusion Society of Bangladesh (BTSB). All rights reserved.";
    display: block;
    background-color: #0d121d; 
    color: #6b7280;
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    width: 100%;
}

/* --- 8. BUTTONS --- */
.pkp_button_primary, .cmp_button, .block_make_submission a {
    background: linear-gradient(135deg, #BF2121, #991b1b) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 4px;
}

/* --- 9. CLEANUP --- */
.pkp_brand_footer, 
.pkp_footer_content .pkp_brand_footer,
footer .pkp_brand_footer,
.built_by_ojs {
    display: none !important;
}

/* --- 10. MOBILE ADJUSTMENTS --- */
@media (max-width: 767px) {
    .pkp_site_name {
        flex-direction: column !important;
        text-align: center !important;
    }
    .pkp_site_name::after {
        font-size: 1.2rem !important;
        max-width: 100%;
    }
    .pkp_structure_footer {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }
}