/* ==========================================================================
   1. REMOVE ALL SYSTEM BRANDING, IMAGES & LOGOS
   ========================================================================== */
.pkp_structure_footer .pkp_brand_footer,
.pkp_footer_content .developed_by,
.footer-brand,
.pkp_brand,
footer .brand,
footer a img[src*="pkp"], 
footer a img[src*="ojs"],
.pkp_structure_sidebar .block_developed_by,
[class*="developed_by"],
[class*="pkp_brand"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ==========================================================================
   2. COLLAPSE EMPTY VERTICAL SPACE
   ========================================================================== */
.pkp_structure_footer, 
footer, 
.pkp_structure_footer_wrapper, 
.pkp_footer_content,
[class*="site-footer"] {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    min-height: unset !important;
    height: auto !important;
}

/* ==========================================================================
   3. FORCE CUSTOM TEXT TO OCCUPY 100% FULL SPAN (SMASH COLUMNS)
   ========================================================================== */
/* Targets structural layout rows, grid columns, and inner text elements */
.pkp_structure_footer .container,
.pkp_structure_footer .row,
.pkp_footer_content,
.page_footer,
.custom_text,
footer div,
footer section,
footer p,
[class*="footer-content"],
[class*="footer_content"],
[class*="custom-text"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
}
/* ==========================================================================
   4. FIX BROWSE BLOCK & CURRENT ISSUE SIDEBAR/FOOTER LINKS
   ========================================================================== */
/* Prevent the Browse block content links from inheriting a hidden layout */
.pkp_block.block_browse,
.block_browse div,
.block_browse ul,
.block_browse li,
.block_browse li a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    clear: none !important;
}

/* Ensure the list layout behaves naturally and isn't squished to 0px */
.block_browse ul {
    list-style: none !important;
    padding-left: 10px !important;
    margin-top: 5px !important;
}

.block_browse li {
    padding: 4px 0 !important;
}

/* Make sure the text color stands out and is completely clickable */
.block_browse li a {
    color: inherit; /* Inherits your theme's default footer link color */
    text-decoration: none;
}
.block_browse li a:hover {
    text-decoration: underline;
}