/* =====================================================
   ORA Mathematics - ORA Publishing
   Custom CSS for Professional Academic Layout
   ===================================================== */

/* ===================================================
   HEADER EMPTY SPACE & BRANDING FIX
   =================================================== */

/* Remove empty space from header area */
.pkp_structure_head,
.pkp_head_wrapper,
#headerLogo,
.pkp_site_name,
.pkp_navigation_primary_row,
header,
.pkp_header_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Professional Header Spacing (ISO 9241 compliant) */
.pkp_structure_head {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Enhance Navigation Font Clarity */
.pkp_navigation_primary a, .pkp_navigation_user a {
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}

/* Hide empty header logo container */
.pkp_site_name:empty,
.pkp_site_name_image:empty,
.pkp_site_name img[src=""],
.pkp_site_name a:empty {
    display: none !important;
    height: 0 !important;
}

/* ===================================================
   FOOTER CLEANUP & BRANDING REMOVAL
   =================================================== */

/* Remove empty space and center content */
.pkp_structure_footer,
.pkp_structure_footer_wrapper,
.pkp_site_footer,
footer {
    margin-top: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    min-height: 0 !important;
    text-align: center !important;
    font-size: 0.95em;
    color: #444;
}

/* Hide all OJS/PKP Branding elements */
a[href*="pkp"], a[href*="ojs"], a[href*="openjournal"],
img[src*="pkp"], img[alt*="PKP"], img[alt*="OJS"],
.pkp_footer_powered_by, .pkp_brand_footer, .pkp_block_developed_by,
#pkpBrand, .ojs-powered-by, [class*="workflow_powered"] {
    display: none !important;
    visibility: hidden !important;
}

/* Remove gap between main content and footer */
.pkp_structure_main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===================================================
   ACADEMIC TEXT JUSTIFICATION & BODY STYLING
   =================================================== */

/* Justify all primary text for academic readability */
p, .pkp_structure_main p, .abstract p, .article-details p, 
.pkp_block p, .page_content p, .article-full-text p {
    text-align: justify !important;
    line-height: 1.6;
}

/* Professional CTA: Make a Submission Button */
.pkp_block.block_make_submission a {
    background-color: #005596 !important; /* Oxford Blue */
    color: #fff !important;
    border-radius: 4px;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    display: block;
    transition: background 0.3s ease;
}

.pkp_block.block_make_submission a:hover {
    background-color: #003d6b !important;
}

/* ===================================================
   OJS SYSTEM CLEANUP
   =================================================== */

/* Remove space from empty blocks or rows */
.pkp_navigation_primary_row:empty,
.pkp_navigation_user_wrapper:empty,
.pkp_structure_footer .row:empty {
    display: none !important;
}