html,
body {
    background:#ddd
}
.pkp_brand_footer {
    display:none
}

.pkp_site_name_wrapper
{
    margin-bottom: 0px !important;
}
div.pkp_structure_footer_wrapper {
    background-color:#26272b;
    border-bottom:0;
    font-size:15px;
    line-height:20px;
    color:#737373
}
div.pkp_structure_footer_wrapper a {
    color:#fff;
    border-bottom:0;
    text-decoration:none
}
.cpkp_footer_content a {
    text-decoration:none;
    color:#fff
}
table {
    font-family:arial,sans-serif;
    border-collapse:collapse;
    width:100%
}
td,
th {
    border:1px solid #ddd;
    text-align:left;
    padding:8px
}
tr:nth-child(odd) {
    background-color:#ddd
}
div.date {
    display:none
}
img{
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}
img:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

/* Align navigation user wrapper to the right */
#navigationUserWrapper {
    justify-items: end !important;
    padding-right: 15px; /* Added slight padding so it doesn't touch the exact edge */
}

/* Add spacing between icon and text in primary navigation */
#navigationPrimary a i.fa {
    margin-right: 8px;
}

/* === Mobile UI/UX Improvements === */

/* Prevent horizontal scroll on smaller desktop/tablet */
@media screen and (max-width: 1200px) {
    .pkp_navigation_primary_row {
        width: 100% !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

/* Tablet & Mobile Menu fixes */
@media screen and (max-width: 992px) {
    /* Override inline display:grid that prevents the menu from hiding on mobile */
    .pkp_site_nav_menu {
        display: none !important;
    }
    /* Show menu properly when toggled */
    .pkp_site_nav_menu.pkp_site_nav_menu--isOpen {
        display: grid !important;
        background: #fff !important;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        position: relative;
        z-index: 999;
    }
    
    /* Re-center the user wrapper on mobile */
    #navigationUserWrapper {
        justify-items: center !important;
        padding-right: 0;
        margin-top: 15px;
    }
    
    /* Stack navigation items nicely */
    .pkp_nav_list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .pkp_nav_list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .pkp_nav_list li:last-child {
        border-bottom: none;
    }
    .pkp_nav_list li a {
        display: block;
        padding: 12px 20px;
        color: #db8637 !important;
    }
}

/* Mobile Devices (Phones) */
@media screen and (max-width: 768px) {
    /* Make header banner responsive */
    .pkp_site_name a.is_img img {
        height: auto !important;
    }

    /* Stack custom grid layout in content and footer */
    .row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .col-3, .col-4, .col-9, .col-12 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
        margin-bottom: 15px;
    }
    
    /* Center journal cover image */
    .col-3 img {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Center text alignments for better readability */
    .journal_details, .footer .col-4 {
        text-align: center;
    }
    .footer {
        padding-top: 20px;
    }
}

/* === Sidebar UI/UX Enhancements === */

/* Style each block as a modern flat card */
.pkp_structure_sidebar .pkp_block {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 0; /* No border radius */
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

/* Beautiful block titles (Solid Header Style) */
.pkp_structure_sidebar .pkp_block .title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, #db8637 0%, #ed9e56 100%);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    margin: -20px -20px 20px -20px; /* Expand to the edges of the parent padding */
    border-radius: 0; /* No border radius */
    border-bottom: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Custom Sidebar Menu items */
#customblock-sidebarmenu .content ul.cus-menu,
#customblock-sidebarmenu .content ul {
    padding-left: 0;
    margin: 0;
}
#customblock-sidebarmenu .content ul li {
    list-style: none;
    margin-bottom: 8px;
}
#customblock-sidebarmenu .content ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Hover effect with sliding text */
#customblock-sidebarmenu .content ul li a:hover {
    background-color: #db8637;
    color: #ffffff;
    border-color: #db8637;
    padding-left: 20px;
    box-shadow: 0 2px 5px rgba(219, 134, 55, 0.3);
}

/* Ensure FontAwesome icons align properly */
#customblock-sidebarmenu .content ul li a em.fa {
    margin-right: 12px;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

/* Sidebar Images responsive */
.pkp_structure_sidebar .pkp_block .content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Indexed By logos layout */
#customblock-indexed-by p {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
}
#customblock-indexed-by p a {
    display: flex;
    justify-content: center;
    align-items: center;
}
#customblock-indexed-by p a img {
    margin: 0;
}

/* === Make Submission Button === */
.block_make_submission_link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(90deg, #db8637 0%, #ed9e56 100%);
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 15px 20px;
    border-radius: 0; /* Premium flat design */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(219, 134, 55, 0.4);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

/* Hide the default block title since we have a big button */
.pkp_block.block_make_submission .title {
    display: none;
}

/* Hover Effects */
.block_make_submission_link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(219, 134, 55, 0.6);
    background: linear-gradient(90deg, #c7762c 0%, #db8637 100%);
    color: #ffffff !important;
}

/* Shine Animation using pseudo-element */
.block_make_submission_link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    z-index: -1;
    transition: all 0.6s ease;
}

.block_make_submission_link:hover::before {
    left: 150%;
    transition: all 0.6s ease-in-out;
}

/* Hide homepage image */
.pkp_page_index .homepage_image {
    display: none !important;
}
