/* ============================================
   Modern OJS Theme - Custom Stylesheet
   For Bootstrap 3 Theme (Cerulean or similar)
   ============================================ */

/* Color Variables */
:root {
    --primary-blue: #1e3a5f;
    --primary-dark: #0d1b2a;
    --accent-orange: #e67e22;
    --accent-hover: #d35400;
    --text-light: #ffffff;
    --bg-subtle: #f8f9fa;
    --border-subtle: #e2e8f0;
    --bg-boxed: #f1f5f9;
    /* Background for outside the box */
}

/* ============================================
   BOXED LAYOUT
   ============================================ */
body {
    background-color: var(--bg-boxed) !important;
}

.pkp_structure_page {
    max-width: 1240px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Ensure static elements align with the box */
.pkp_structure_head,
.pkp_structure_footer {
    max-width: 1240px !important;
    margin: 0 auto !important;
}

@media (max-width: 1240px) {

    .pkp_structure_page,
    .pkp_structure_head,
    .pkp_structure_footer {
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none;
    }
}

/* ============================================
   LOGO - Left-aligned, Above Menu
   ============================================ */
.navbar-brand,
.navbar-brand-logo {
    display: block !important;
    float: left !important;
    text-align: left;
    padding: 10px 15px !important;
    margin: 0 !important;
    height: auto !important;
}

.navbar-brand img,
.navbar-brand-logo img {
    max-height: 70px;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.navbar-header {
    float: none !important;
    width: 100%;
    padding: 10px 0;
    margin-bottom: 0;
}

/* Menu below logo */
.navbar-collapse {
    clear: both;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.navbar-nav {
    float: none !important;
    margin: 0 !important;
}

.navbar-nav>li {
    float: left;
}

/* Search bar - inside navbar, right side */
.pull-md-right {
    float: right !important;
    margin: 0 !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-collapse {
    position: relative;
}

.navbar-form.navbar-left {
    float: none !important;
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-form .form-group {
    display: inline-block;
    margin: 0;
}

.navbar-form .form-control {
    display: inline-block;
    width: 160px;
    vertical-align: middle;
    border-radius: 20px 0 0 20px;
    border-right: none;
    height: 34px;
    background: #ffffff !important;
    color: #333333 !important;
}

.navbar-form .btn {
    border-radius: 0 20px 20px 0;
    margin-left: -5px;
    height: 34px;
    padding: 6px 15px;
    background: #e67e22 !important;
    color: #ffffff !important;
    border: none;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar,
.navbar-default,
.navbar-inverse {
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav>li>a,
.navbar-inverse .navbar-nav>li>a,
.navbar-brand,
.navbar-default .navbar-brand,
.navbar-inverse .navbar-brand {
    color: #ffffff !important;
}

.navbar-default .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus,
.navbar-inverse .navbar-nav>li>a:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.navbar-default .navbar-nav>.active>a,
.navbar-inverse .navbar-nav>.active>a {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Dropdown menus */
.navbar .dropdown-menu {
    background: #1e3a5f;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-menu>li>a {
    color: #ffffff !important;
    padding: 10px 20px;
}

.navbar .dropdown-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   BUTTONS - Orange Accent
   ============================================ */
.btn-primary,
.btn-default,
.btn-info {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-default:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-default:focus,
.btn-info:focus {
    background: #d35400 !important;
    border-color: #d35400 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

/* Galley/PDF buttons */
a.galley-link,
.galleys a,
.galley_link {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 20px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin: 4px;
}

a.galley-link:hover,
.galleys a:hover,
.galley_link:hover {
    background: linear-gradient(135deg, #d35400, #c0392b) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

/* ============================================
   ARTICLE CARDS / LISTINGS
   ============================================ */
.article-summary,
.media,
.list-group-item,
.obj_article_summary {
    background: #ffffff;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-summary:hover,
.media:hover,
.list-group-item:hover,
.obj_article_summary:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1e3a5f !important;
}

/* Article titles */
.article-summary .title,
.media-heading,
.article-title a {
    color: #1e3a5f !important;
    font-weight: 700;
    font-size: 1.25em;
    line-height: 1.4;
}

.article-summary .title:hover,
.media-heading:hover,
.article-title a:hover {
    color: #e67e22 !important;
}

/* Author names */
.article-summary .authors,
.meta .authors {
    color: #64748b;
    font-size: 0.95em;
    margin-top: 8px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.page-header,
.panel-title {
    color: #1e3a5f !important;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: #e67e22;
    transition: color 0.2s ease;
}

a:hover {
    color: #d35400;
    text-decoration: none;
}

/* ============================================
   PANELS / SIDEBARS
   ============================================ */
.panel {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.panel-heading {
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    padding: 15px 20px;
}

.panel-heading a,
.panel-title a {
    color: #ffffff !important;
}

.panel-body {
    padding: 20px;
}

/* ============================================
   MAKE A SUBMISSION BLOCK
   ============================================ */
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a) !important;
    border-radius: 12px;
    padding: 25px !important;
    text-align: center;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

    display: none;
    /* Hide standard block title if it exists */
}

/* Style the text inside the block */
    color: #ffffff !important;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 400;
}

/* Enhancement for the actual link/button */
    background: #e67e22 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 2px solid #e67e22 !important;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

    background: transparent !important;
    color: #e67e22 !important;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

/* Ensure no extra margin on last paragraph in blocks */
    margin-bottom: 25px !important;
}

.well {
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

/* ============================================
   TEXT VISIBILITY FIXES - Blue Background Areas
   ============================================ */
/* Ensure ALL text in blue backgrounds is white */
.panel-heading *,
.panel-heading h1,
.panel-heading h2,
.panel-heading h3,
.panel-heading h4,
.panel-heading h5,
.panel-heading h6,
.panel-heading p,
.panel-heading span,
.panel-heading li,
.panel-heading label,
.panel-heading strong {
    color: #ffffff !important;
}

.navbar *,
.navbar h1,
.navbar h2,
.navbar h3,
.navbar h4,
.navbar h5,
.navbar h6,
.navbar p,
.navbar span,
.navbar li {
    color: #ffffff !important;
}

/* Article page specific fixes */
.article-header,
.article-full-header,
.page-header-article {
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a) !important;
    padding: 30px !important;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-header *,
.article-full-header *,
.page-header-article *,
.article-header h1,
.article-header h2,
.article-header h3,
.article-full-header h1,
.article-full-header h2,
.article-full-header h3,
.article-header p,
.article-header span,
.article-header a,
.article-full-header p,
.article-full-header span,
.article-full-header a {
    color: #ffffff !important;
}

/* Article details section */
.article-details .panel-heading *,
.article-sidebar .panel-heading * {
    color: #ffffff !important;
}

/* Jumbotron / Hero areas */
.jumbotron {
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a) !important;
}

.jumbotron *,
.jumbotron h1,
.jumbotron h2,
.jumbotron h3,
.jumbotron p,
.jumbotron a {
    color: #ffffff !important;
}

/* Alert boxes */
.alert-info {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
    color: #ffffff !important;
}

.alert-info * {
    color: #ffffff !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer,
.footer,
.pkp_structure_footer {
    background: #0d1b2a !important;
    color: #ffffff;
    padding: 40px 0;
}

footer a,
.footer a,
.pkp_structure_footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover,
.footer a:hover,
.pkp_structure_footer a:hover {
    color: #e67e22 !important;
}

/* Footer Image Responsiveness */
.pkp_brand_footer img,
.pkp_structure_footer img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Search form */
.search-form .btn,
.navbar-form .btn {
    background: #e67e22 !important;
    border-color: #e67e22 !important;
    color: #ffffff !important;
    border-radius: 8px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 20px;
}

.breadcrumb>li+li::before {
    color: #64748b;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination>li>a,
.pagination>li>span {
    color: #1e3a5f;
    border-radius: 8px !important;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
}

.pagination>li>a:hover {
    background: #1e3a5f;
    color: #ffffff;
    border-color: #1e3a5f;
}

.pagination>.active>a,
.pagination>.active>span {
    background: #1e3a5f !important;
    border-color: #1e3a5f !important;
}

/* ============================================
   ISSUE COVERS / IMAGES
   ============================================ */
.cover img,
.issue-cover img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .navbar-nav {
        background: #0d1b2a;
    }

    .article-summary,
    .media {
        padding: 16px !important;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Responsive Logo */
    .navbar-brand,
    .navbar-brand-logo {
        float: none !important;
        text-align: center;
        width: 100%;
        padding: 10px 0 !important;
    }

    .navbar-brand img,
    .navbar-brand-logo img {
        margin: 0 auto;
        max-height: 60px;
        /* Slightly smaller for mobile if needed */
    }

    /* Responsive search bar */
    .pull-md-right {
        position: static !important;
        float: none !important;
        width: 100%;
        margin: 5px 0 !important;
        /* Reduced vertical space */
        transform: none;
        text-align: center;
    }

    .navbar-form.navbar-left {
        width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 5px 10px !important;
        margin: 0 !important;
    }

    .navbar-form .form-control {
        flex: 1 1 auto !important;
        width: auto !important;
        background: #ffffff !important;
        color: #333333 !important;
        margin: 0 !important;
        height: 38px !important;
        border-radius: 20px 0 0 20px !important;
    }

    .navbar-form .btn {
        flex: 0 0 90px !important;
        width: 90px !important;
        margin: 0 !important;
        font-weight: 700;
        height: 38px !important;
        border-radius: 0 20px 20px 0 !important;
    }

    /* Floating galley link fix in header on mobile */
    .pkp_structure_head .galley_link,
    .pkp_structure_head a.pdf,
    .pkp_structure_head .pdf_galley_link {
        position: relative !important;
        float: none !important;
        display: inline-block !important;
        margin: 10px auto !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Small icons alignment in top bar */
    .navbar-text.navbar-right {
        float: none !important;
        text-align: center;
        width: 100%;
        display: block;
        margin: 10px 0;
    }

    /* Hide OJS branding in footer on mobile */
    .pkp_brand_footer,
    .pkp_structure_footer .pkp_brand_footer,
    .pkp_structure_footer img[src*="ojs_brand"] {
        display: none !important;
    }

    /* Increase space before authors section on mobile */
    .article-details .authors,
    .article-main .authors,
    .authors {
        margin-top: 30px !important;
        display: block;
    }
}

/* ============================================
   HIDE SIDEBAR ON ARTICLE VIEW PAGE
   ============================================ */
.article-view .sidebar,
.article-view aside,
.article-view .pkp_structure_sidebar,
body.article .sidebar,
body.article aside,
.page_article .sidebar,
.page_article aside,
.article-details aside {
    display: none !important;
}

/* Make article content full width when sidebar is hidden */
.article-view .main-content,
.article-view .pkp_structure_main,
body.article .main-content,
body.article .pkp_structure_main,
.page_article .main-content,
.page_article .pkp_structure_main,
.article-details .col-md-8,
.article-details .col-sm-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: -4rem;
}

/* Mobile reset for article content margin */
@media (max-width: 768px) {

    .article-view .main-content,
    .article-view .pkp_structure_main,
    body.article .main-content,
    body.article .pkp_structure_main,
    .page_article .main-content,
    .page_article .pkp_structure_main,
    .article-details .col-md-8,
    .article-details .col-sm-8 {
        margin-top: 10px !important;
        /* Stop overlap with sidebar */
    }
}

/* ============================================
   RESPONSIVE TABLES - Article Content
   ============================================ */
.article-full-text table,
.article-details table,
.article-main table,
.article-abstract table,
.obj_article_details table {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 2rem;
    background-color: transparent;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
    /* Makes tables scrollable on mobile */
    border: 1px solid var(--border-subtle);
}

.article-full-text table th,
.article-full-text table td,
.article-details table th,
.article-details table td {
    padding: 12px 15px;
    vertical-align: top;
    border-top: 1px solid var(--border-subtle);
    text-align: left;
}

.article-full-text table thead th,
.article-details table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-subtle);
    background-color: var(--primary-blue);
    color: #ffffff;
    font-weight: 600;
}

.article-full-text table tbody tr:nth-of-type(odd),
.article-details table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
    /* Striped rows */
}

.article-full-text table tbody tr:hover,
.article-details table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

/* Ensure table captions are styled */
table caption {
    padding: 10px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: left;
    caption-side: top;
}

/* ============================================
   RESPONSIVE IMAGES - Article Content
   ============================================ */
.article-full-text img,
.article-details img,
.article-main img,
.article-abstract img,
.obj_article_details img,
.item.abstract img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 8px auto;
}

/* Figure and Table Captions */
figure {
    margin: 1.5rem 0;
    display: block;
    text-align: center;
}

figcaption,
.figure .label,
.caption,
table caption,
.table .label,
.article-full-text .label,
.article-details .label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
    text-align: center !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    caption-side: top !important;
}

/* Ensure figure and table numbers (Figure 1, Table 1, etc.) are bold and visible */
figcaption strong,
table caption strong,
.label strong {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
}

/* ============================================
   ARTICLE METADATA LAYOUT - 3 Columns
   Download buttons, Published, Keywords
   ============================================ */

/* Show sidebar as full width row instead of side column */
.article-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: -1;
    margin-bottom: 30px;
}

/* Make list-group horizontal */
.article-sidebar .list-group {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    background: transparent;
    border: none;
    align-items: stretch;
}

/* Download buttons column */
.article-sidebar .download {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Published date column */
.article-sidebar .list-group-item.date-published {
    flex: 0 0 auto;
    width: 180px;
    max-width: 180px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: none;
    border-left: 4px solid #1e3a5f;
}

/* Keywords column */
.article-sidebar .list-group-item.keywords {
    flex: 3;
    min-width: 350px;
    max-height: 9.4rem;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: none;
    border-left: 4px solid #e67e22;
    overflow: hidden;
}

/* Labels styling */
.list-group-item strong {
    display: block;
    color: #1e3a5f;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

/* Keywords value - same line-height as published */
.list-group-item.keywords .value {
    line-height: 1.5;
    font-size: 1em;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .article-sidebar .list-group {
        flex-direction: column !important;
        gap: 8px !important;
        /* Reduced from 15px */
    }

    .article-sidebar .download,
    .article-sidebar .list-group-item.date-published,
    .article-sidebar .list-group-item.keywords {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    /* Remove keyword height limit on mobile to see all content */
    .article-sidebar .list-group-item.keywords {
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 8px !important;
        /* Reduced from 20px */
    }

    .article-sidebar .list-group-item.date-published {
        margin-bottom: 8px !important;
        /* Reduced from 20px */
    }

    /* Reduced space before authors */
    .article-details .authors,
    .article-main .authors,
    .authors {
        margin-top: 20px !important;
        padding-top: 15px !important;
        border-top: 1px solid #eee;
    }

    /* Make Submission Block - Mobile Responsiveness */
        padding: 20px !important;
    }

        display: block !important;
        width: 100% !important;
        padding: 12px 10px !important;
        white-space: normal !important;
        /* Allow text wrapping if needed */
    }

    /* Add space after View All Issues button on mobile */
    .homepage-issues~a.btn,
    .obj_issue_summary+a.btn,
    .all_issues_link,
    a[href*="issue/archive"] {
        margin-bottom: 40px !important;
        display: inline-block !important;
    }
}
/* ============================================
   TEXT JUSTIFICATION OVERRIDE
   ============================================ */
.obj_article_details .article-main-content,
.obj_article_details .article-main-content p,
.obj_article_details .article-abstract,
.obj_article_details .article-abstract p,
.obj_article_details .article-fulltext,
.obj_article_details .article-fulltext p,
.obj_article_details .article-references,
.obj_article_details .article-references li,
.obj_article_details .article-author-bios,
.obj_article_details .citation-box,
.item.abstract p,
.item.abstract,
section.item p {
    text-align: justify !important;
}


/* ============================================
   ISSUE ARCHIVE PAGE STYLING
   ============================================ */
.page_issue_archive .issues.media-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    padding: 20px 0 !important;
}

.page_issue_archive .issue-summary.media {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.page_issue_archive .issue-summary.media:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.page_issue_archive .issue-summary .media-left {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page_issue_archive .issue-summary .media-left .cover {
    display: block !important;
}

.page_issue_archive .issue-summary .media-left img.media-object {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.page_issue_archive .issue-summary .media-body {
    padding: 20px !important;
    text-align: left !important;
}

.page_issue_archive .issue-summary .media-heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 10px !important;
    line-height: 1.4 !important;
}

.page_issue_archive .issue-summary .media-heading a.title {
    color: #1e3a5f !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.page_issue_archive .issue-summary .media-heading a.title:hover {
    color: #e67e22 !important;
}

.page_issue_archive .issue-summary .series.lead {
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 400 !important;
    margin-top: 5px !important;
}

.page_issue_archive .issue-summary .description {
    font-size: 13px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
}

/* Page Title */
.page_issue_archive h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #e67e22 !important;
}

/* Pagination Styling */
.page_issue_archive .cmp_pagination {
    margin-top: 30px !important;
    text-align: center !important;
}

.page_issue_archive .cmp_pagination a {
    display: inline-block !important;
    padding: 10px 20px !important;
    margin: 0 5px !important;
    background: #1e3a5f !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.page_issue_archive .cmp_pagination a:hover {
    background: #e67e22 !important;
}


/* ============================================
   ISSUE ARCHIVE - STRONGER OVERRIDES
   ============================================ */
#main-content.page_issue_archive .issues.media-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    padding: 20px 0 !important;
    list-style: none !important;
}

#main-content.page_issue_archive .issues .issue-summary.media,
#main-content.page_issue_archive div.issue-summary.media {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-content.page_issue_archive .issue-summary.media:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

#main-content.page_issue_archive .issue-summary .media-left {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
}

#main-content.page_issue_archive .issue-summary .media-left a.cover {
    display: block !important;
    width: 100% !important;
}

#main-content.page_issue_archive .issue-summary .media-left img,
#main-content.page_issue_archive .issue-summary .media-left img.media-object {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

#main-content.page_issue_archive .issue-summary .media-body {
    padding: 20px !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
}

#main-content.page_issue_archive .issue-summary h2.media-heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 10px !important;
    line-height: 1.4 !important;
}

#main-content.page_issue_archive .issue-summary h2.media-heading a.title {
    color: #1e3a5f !important;
    text-decoration: none !important;
}

#main-content.page_issue_archive .issue-summary h2.media-heading a.title:hover {
    color: #e67e22 !important;
}

#main-content.page_issue_archive .issue-summary .series.lead {
    font-size: 14px !important;
    color: #666666 !important;
    font-weight: 400 !important;
    margin-top: 5px !important;
}

#main-content.page_issue_archive .issue-summary .description {
    font-size: 13px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-top: 10px !important;
}


/* ============================================
   ISSUE TOC - ARTICLE CARDS
   ============================================ */
.article-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px) !important;
}

.article-card-cover {
    width: 100% !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

.article-card-cover img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

.article-card-body {
    padding: 20px !important;
}

.article-card-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
}

.article-card-title a {
    color: #1e3a5f !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.article-card-title a:hover {
    color: #e67e22 !important;
}

.article-card-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 0 10px !important;
    font-style: italic !important;
}

.article-card-authors {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 8px !important;
}

.article-card-authors i {
    color: #007bff !important;
    margin-right: 5px !important;
}

.article-card-pages {
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 10px !important;
}

.article-card-pages i {
    color: #007bff !important;
    margin-right: 5px !important;
}

.article-card-metrics {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    padding: 10px 0 !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
}

.article-card-metrics .metric {
    font-size: 12px !important;
    color: #666 !important;
}

.article-card-metrics .metric i {
    color: #007bff !important;
    margin-right: 4px !important;
}

.article-card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 15px !important;
}

.article-card-actions .btn-article {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.article-card-actions .btn-abstract {
    background: #6c757d !important;
    color: #fff !important;
}

.article-card-actions .btn-abstract:hover {
    background: #5a6268 !important;
}

.article-card-actions .btn-pdf {
    background: #dc3545 !important;
    color: #fff !important;
}

.article-card-actions .btn-pdf:hover {
    background: #c82333 !important;
}

.article-card-actions .btn-html {
    background: #28a745 !important;
    color: #fff !important;
}

.article-card-actions .btn-html:hover {
    background: #218838 !important;
}

.article-card-actions .btn-other {
    background: #17a2b8 !important;
    color: #fff !important;
}

.article-card-actions .btn-other:hover {
    background: #138496 !important;
}

/* Responsive */
@media (max-width: 576px) {
    .article-card-actions {
        flex-direction: column !important;
    }
    
    .article-card-actions .btn-article {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ============================================
   ISSUE TOC - ENHANCED ARTICLE SUMMARY CARDS
   ============================================ */
.obj_issue_toc .article-summary.media,
.sections .article-summary.media {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.obj_issue_toc .article-summary.media:hover,
.sections .article-summary.media:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px) !important;
}

.obj_issue_toc .article-summary .media-heading,
.sections .article-summary .media-heading {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

.obj_issue_toc .article-summary .media-heading a,
.sections .article-summary .media-heading a {
    color: #1e3a5f !important;
    text-decoration: none !important;
}

.obj_issue_toc .article-summary .media-heading a:hover,
.sections .article-summary .media-heading a:hover {
    color: #e67e22 !important;
}

.obj_issue_toc .article-summary .authors,
.sections .article-summary .authors {
    color: #555 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.obj_issue_toc .article-summary .article-metrics,
.sections .article-summary .article-metrics {
    padding: 10px 0 !important;
    margin: 10px 0 !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
}

.obj_issue_toc .article-summary .btn-group,
.sections .article-summary .btn-group {
    margin-top: 15px !important;
}

.obj_issue_toc .article-summary .btn-group .galley_link,
.obj_issue_toc .article-summary .btn-group .btn,
.sections .article-summary .btn-group .galley_link,
.sections .article-summary .btn-group .btn,
.obj_issue_toc .article-summary .btn-group a,
.sections .article-summary .btn-group a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s !important;
    background: #007bff !important;
    color: #fff !important;
    border: none !important;
}

.obj_issue_toc .article-summary .btn-group a:hover,
.sections .article-summary .btn-group a:hover {
    background: #0056b3 !important;
}

/* PDF Button */
.obj_issue_toc .article-summary .btn-group a[href*="pdf"],
.obj_issue_toc .article-summary .btn-group a[href*="PDF"],
.sections .article-summary .btn-group a[href*="pdf"],
.sections .article-summary .btn-group a[href*="PDF"] {
    background: #dc3545 !important;
}

.obj_issue_toc .article-summary .btn-group a[href*="pdf"]:hover,
.obj_issue_toc .article-summary .btn-group a[href*="PDF"]:hover,
.sections .article-summary .btn-group a[href*="pdf"]:hover,
.sections .article-summary .btn-group a[href*="PDF"]:hover {
    background: #c82333 !important;
}

/* HTML Button */
.obj_issue_toc .article-summary .btn-group a[href*="html"],
.obj_issue_toc .article-summary .btn-group a[href*="HTML"],
.sections .article-summary .btn-group a[href*="html"],
.sections .article-summary .btn-group a[href*="HTML"] {
    background: #28a745 !important;
}

.obj_issue_toc .article-summary .btn-group a[href*="html"]:hover,
.obj_issue_toc .article-summary .btn-group a[href*="HTML"]:hover,
.sections .article-summary .btn-group a[href*="html"]:hover,
.sections .article-summary .btn-group a[href*="HTML"]:hover {
    background: #218838 !important;
}


/* ============================================
   GLOBAL TEXT JUSTIFICATION
   ============================================ */
body,
p,
.description,
.abstract,
.content,
.article-abstract,
.article-fulltext,
.obj_article_details,
.article-card-body,
.media-body,
.article-summary,
.issue-summary,
.pkp_structure_content,
.main_entry,
.entry_details,
section,
article {
    text-align: justify !important;
}

/* Keep headings left-aligned */
h1, h2, h3, h4, h5, h6,
.media-heading,
.article-card-title,
.page-header,
.page_title {
    text-align: left !important;
}

/* Keep navigation and buttons centered/left */
nav,
.navbar,
.btn,
.btn-group,
.article-card-actions,
.download-buttons,
footer {
    text-align: inherit !important;
}


/* ============================================
   CITATION CARD STYLING
   ============================================ */
.citation-card .citation_formats {
    margin-top: 15px !important;
}

.citation-card .citation_formats_button {
    background: #007bff !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.2s !important;
}

.citation-card .citation_formats_button:hover {
    background: #0056b3 !important;
}

.citation-card .citation_formats_list {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    padding: 15px !important;
    display: none !important;
}

.citation-card .citation_formats_list[aria-hidden="false"] {
    display: block !important;
}

.citation-card .citation_formats_styles {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.citation-card .citation_formats_styles li {
    margin-bottom: 8px !important;
}

.citation-card .citation_formats_styles a {
    color: #007bff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    display: block !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

.citation-card .citation_formats_styles a:hover {
    background: #f0f0f0 !important;
}

.citation-card .citation_formats_list .label {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #666 !important;
    margin: 15px 0 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.citation-card .citation_formats_styles .fa-download {
    margin-right: 8px !important;
    color: #28a745 !important;
}


/* ============================================
   CITATION DROPDOWN FIX - VISIBLE BY DEFAULT
   ============================================ */
.citation-card .citation_formats_list,
.info-card .citation_formats_list,
#cslCitationFormats {
    display: block !important;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    padding: 15px !important;
}

.citation-card .citation_formats_button,
.info-card .citation_formats_button {
    display: none !important;
}

.citation_formats_styles {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

.citation_formats_styles li {
    margin-bottom: 5px !important;
}

.citation_formats_styles a {
    color: #007bff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    display: block !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s !important;
}

.citation_formats_styles a:hover {
    background: #007bff !important;
    color: #fff !important;
}

.citation_formats_list .label {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #333 !important;
    margin: 15px 0 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #ddd !important;
}


/* ============================================
   SIDEBAR VISIBILITY FIX
   ============================================ */
.article-info-sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 280px !important;
    flex-shrink: 0 !important;
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 10px !important;
}

.article-info-sidebar .info-card {
    display: block !important;
    visibility: visible !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.article-info-sidebar .info-card h4 {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #ddd !important;
}

/* Citation Box Visibility */
.citation-card,
.info-card.citation-card {
    display: block !important;
    visibility: visible !important;
}

.citation-box {
    display: block !important;
    visibility: visible !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.citation_formats,
.citation_formats_list {
    display: block !important;
    visibility: visible !important;
}


/* ============================================
   CITATION TOOLS VISIBILITY FIX
   ============================================ */
.item.citation,
.sub_item.citation_display {
    display: block !important;
    visibility: visible !important;
    background: #f0f7ff !important;
    border: 2px solid #007bff !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.item.citation .label,
.citation_display .label {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    margin-bottom: 15px !important;
}

#citationOutput {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    margin-bottom: 15px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.citation_formats_button {
    display: block !important;
    width: 100% !important;
    background: #007bff !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: center !important;
}

.citation_formats_button:hover {
    background: #0056b3 !important;
}

.citation_formats_list {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    padding: 15px !important;
}

.citation_formats_styles {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.citation_formats_styles li {
    margin-bottom: 8px !important;
}

.citation_formats_styles a {
    display: block !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
}

.citation_formats_styles a:hover {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
}

.citation_formats_list .label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    margin: 15px 0 10px !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
}


/* ============================================
   CITATION DROPDOWN - COLLAPSED BY DEFAULT
   ============================================ */
.citation_formats_list,
#cslCitationFormats {
    display: none !important;
}

.citation_formats_list[aria-hidden="false"],
#cslCitationFormats[aria-hidden="false"],
.citation_formats_list.open,
#cslCitationFormats.open {
    display: block !important;
}

.citation_formats_button {
    display: inline-block !important;
    background: #007bff !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.citation_formats_button:hover {
    background: #0056b3 !important;
}


/* Citation Section Spacing */
.citation-section {
    margin-bottom: 40px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px solid #eee !important;
}


/* ============================================
   DOWNLOAD SECTION STYLING
   ============================================ */
.download-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%) !important;
    padding: 25px 30px !important;
    border-radius: 12px !important;
    margin: 25px 0 !important;
}

.download-section h3 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
}

.download-section .download-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.download-section .btn-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 24px !important;
    background: #ffffff !important;
    color: #1e3a5f !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.download-section .btn-download:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
    background: #e67e22 !important;
    color: #ffffff !important;
}

.download-section .btn-download i {
    font-size: 18px !important;
}

@media (max-width: 576px) {
    .download-section .download-buttons {
        flex-direction: column !important;
    }
    .download-section .btn-download {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ============================================
   MAKE SUBMISSION WIDGET STYLING
   ============================================ */
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 25px !important;
    border: none !important;
    box-shadow: none !important;
}

    display: none !important; /* Hide default title */
}

    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-radius: 12px !important;
    padding: 25px 20px !important;
    text-align: center !important;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.45) !important;
}

/* Background Icon Effect */
    content: "\f1d8" !important; /* Paper plane icon */
    font-family: "FontAwesome" !important;
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    font-size: 80px !important;
    color: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(-15deg) !important;
}

    display: block !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}

    background: #ffffff !important;
    color: #0056b3 !important;
    border-color: #ffffff !important;
    padding-left: 30px !important;
    padding-right: 10px !important;
}

    content: "\f093" !important; /* Upload icon */
    font-family: "FontAwesome" !important;
    margin-right: 10px !important;
    font-size: 18px !important;
}


/* ============================================

/* ============================================
   MAKE SUBMISSION WIDGET - TRANSPARENT
   ============================================ */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

    display: block !important;
    background: transparent !important;
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    padding: 10px 15px !important;
    border: 2px solid #333333 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

    background: #333333 !important;
    color: #ffffff !important;
}

    content: "\f093" !important; /* fa-upload */
    font-family: "FontAwesome" !important;
    margin-right: 8px !important;
}


/* ============================================
   MAKE SUBMISSION WIDGET - TRANSPARENT
   ============================================ */
.block_make_submission .content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.block_make_submission a {
    display: block !important;
    background: transparent !important;
    color: #1e3a5f !important; /* Theme blue color */
    border: 2px solid #1e3a5f !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.block_make_submission a:hover {
    background: #1e3a5f !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.block_make_submission a:before {
    content: "\f093" !important; /* fa-upload */
    font-family: "FontAwesome" !important;
    margin-right: 8px !important;
}


/* ============================================
   ARTICLE CONTENT & TEXT STYLING IMPROVEMENTS
   ============================================ */

/* Main Article Content Container */
.article-fulltext {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #2c3e50 !important;
    padding: 20px 0 !important;
}

/* Paragraphs */
.article-fulltext p {
    margin-bottom: 24px !important;
    text-align: justify !important;
}

/* Headings within Article Text */
.article-fulltext h2, 
.article-fulltext h3, 
.article-fulltext h4 {
    color: #1e3a5f !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
}

.article-fulltext h2 {
    font-size: 24px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 10px !important;
}

.article-fulltext h3 {
    font-size: 20px !important;
}

/* Lists */
.article-fulltext ul, 
.article-fulltext ol {
    margin-bottom: 24px !important;
    padding-left: 20px !important;
}

.article-fulltext li {
    margin-bottom: 10px !important;
}

/* Blockquotes */
.article-fulltext blockquote {
    border-left: 4px solid #007bff !important;
    background: #f8f9fa !important;
    padding: 15px 20px !important;
    margin: 30px 0 !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 17px !important;
}

/* Figures and Images */
.article-fulltext figure {
    margin: 40px 0 !important;
    text-align: center !important;
}

.article-fulltext img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.article-fulltext figcaption {
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #666 !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Tables */
.article-fulltext table {
    width: 100% !important;
    margin: 30px 0 !important;
    border-collapse: collapse !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    font-size: 14px !important;
}

.article-fulltext th {
    background: #f1f5f9 !important;
    color: #1e3a5f !important;
    font-weight: 700 !important;
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

.article-fulltext td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.article-fulltext tr:last-child td {
    border-bottom: none !important;
}

.article-fulltext tr:hover td {
    background: #f8fafc !important;
}

/* Links within text */
.article-fulltext a {
    color: #007bff !important;
    text-decoration: none !important;
    border-bottom: 1px dotted #007bff !important;
    transition: all 0.2s !important;
}

.article-fulltext a:hover {
    color: #0056b3 !important;
    border-bottom: 1px solid #0056b3 !important;
    background: rgba(0, 123, 255, 0.05) !important;
}


/* ============================================
   GLOBAL & HOMEPAGE STYLING IMPROVEMENTS
   ============================================ */

/* Main Content Area */
.pkp_structure_content {
    font-family: "Open Sans", sans-serif !important;
    color: #444 !important;
    line-height: 1.7 !important;
}

/* Headings */
h1, h2, h3 {
    color: #1e3a5f !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

h2 {
    font-size: 24px !important;
    border-bottom: 2px solid #e67e22 !important;
    padding-bottom: 15px !important;
    display: inline-block !important;
    margin-top: 30px !important;
}

/* Custom Pages (About, Editorial Team, etc.) */
.page:not(.page_article) p {
    text-align: justify !important;
    font-size: 15px !important;
    margin-bottom: 20px !important;
}

/* Lists in custom pages */
.page ul, .page ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

.page li {
    margin-bottom: 10px !important;
    position: relative !important;
}

/* Homepage Issue Summary - Improved Grid */
.homepage-issues {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.obj_issue_summary {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.obj_issue_summary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: #007bff !important;
}

.obj_issue_summary .cover {
    text-align: center !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.obj_issue_summary .cover img {
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.5s ease !important;
}

.obj_issue_summary:hover .cover img {
    transform: scale(1.05) !important;
}

.obj_issue_summary .series {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

/* Buttons */
.btn-primary, .cmp_button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.2s !important;
}

.btn-primary:hover, .cmp_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4) !important;
}

/* Announcements */
.cmp_announcements .obj_announcement_summary {
    background: #f8f9fa !important;
    border-left: 4px solid #e67e22 !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    border-radius: 0 8px 8px 0 !important;
}

.obj_announcement_summary .title {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
}

.obj_announcement_summary .date {
    color: #666 !important;
    font-size: 13px !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
}


/* ============================================
   GLOBAL TABLE STYLING FOR CUSTOM PAGES
   ============================================ */
.page table {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 25px !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.page table tr {
    border-bottom: 1px solid #e2e8f0 !important;
}

.page table tr:last-child {
    border-bottom: none !important;
}

.page table th, 
.page table strong { /* Some older OJS content uses strong in first row instead of th */
    padding: 15px !important;
    background-color: #f1f5f9 !important;
    color: #1e3a5f !important;
    font-weight: 700 !important;
    text-align: left !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
}

.page table td {
    padding: 12px 15px !important;
    vertical-align: top !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

.page table tr:hover td {
    background-color: #f8fafc !important;
}


/* ============================================
   H2 HEADING UNDERLINE FIX
   ============================================ */
h2 {
    display: inline-block !important;
    padding-bottom: 5px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e67e22 !important;
    line-height: 1.3 !important;
}

/* Ensure global style doesn not conflict */
.pkp_structure_content h2 {
    margin-top: 30px !important;
    padding-bottom: 8px !important;
}


/* ============================================
   WIDGET HEADINGS FIX (No Underline/Background)
   ============================================ */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.block .title {
    border-bottom: none !important;
    background: transparent !important;
    padding-bottom: 5px !important;
    margin-bottom: 10px !important;
    display: block !important;
    width: 100% !important;
    color: #1e3a5f !important; /* Keep the color */
}


/* ============================================
   WIDGET HEADINGS REFINEMENT
   ============================================ */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.block .title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #1e3a5f !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}

.pkp_structure_sidebar .block,
.pkp_structure_sidebar .pkp_block {
    margin-bottom: 30px !important;
}


/* ============================================
   WIDGET HEADINGS IMPROVED VISIBILITY
   ============================================ */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.block .title {
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    padding: 10px 15px !important;
    background: #f1f5f9 !important; /* Light gray/blue bg */
    border-left: 4px solid #1e3a5f !important; /* Theme blue accent */
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: none !important;
    line-height: 1.4 !important;
    border-radius: 0 4px 4px 0 !important;
    display: block !important;
    width: auto !important;
}

.pkp_structure_sidebar .block,
.pkp_structure_sidebar .pkp_block {
    margin-bottom: 30px !important;
}


/* ============================================
   WIDGET HEADINGS - REDUCED LEFT SPACING
   ============================================ */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.block .title {
    padding-left: 10px !important; /* Reduced from 15px */
    margin-left: -5px !important; /* Pull slightly left to align with content */
    width: calc(100% + 10px) !important; /*Compensate width */
}


/* ============================================
   WIDGET MARGIN FIX - RESTORE SIDE, REMOVE TOP
   ============================================ */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .pkp_block .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.block .title {
    margin-top: 0 !important; /* Remove top space */
    padding-left: 15px !important; /* Restore padding */
    margin-left: 0 !important; /* Restore margin */
    width: auto !important; /* Restore width */
    margin-bottom: 10px !important;
}

/* Ensure block itself deals with spacing */
.pkp_structure_sidebar .block,
.pkp_structure_sidebar .pkp_block {
    margin-top: 30px !important;
}


/* ============================================
   HOMEPAGE CUSTOM CONTENT ISOLATION
   ============================================ */
.additional_content,
.journal-description {
    /* Reset container styles */
    font-family: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

.additional_content h1, 
.additional_content h2, 
.additional_content h3, 
.additional_content h4, 
.additional_content h5, 
.additional_content h6,
.journal-description h1, 
.journal-description h2, 
.journal-description h3, 
.journal-description h4, 
.journal-description h5, 
.journal-description h6 {
    /* Reset headings */
    color: inherit !important;
    font-weight: bold !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    display: block !important;
    width: auto !important;
    font-size: revert !important;
}

.additional_content p,
.journal-description p {
    text-align: left !important;
    margin-bottom: 10px !important;
}

.additional_content ul, .additional_content ol,
.journal-description ul, .journal-description ol {
    margin-bottom: 10px !important;
    padding-left: 40px !important; /* Standard browser default */
}

.indexing-bar h4 {
   /* Specific fix for indexing bar title which needs to keep its style */
   color: #ffffff !important;
   border-bottom: none !important;
   text-align: center !important;
   margin-bottom: 25px !important;
   padding-bottom: 15px !important;
}

.indexing-bar .indexing-title::after {
   /* Restore the underline for indexing bar */
   content: "" !important;
   position: absolute !important;
   bottom: 0 !important;
   left: 50% !important;
   transform: translateX(-50%) !important;
   width: 60px !important;
   height: 3px !important;
   background: #e67e22 !important;
   border-radius: 3px !important;
}


/* ============================================
   GLOBAL & HOMEPAGE STYLING IMPROVEMENTS (SCOPED)
   ============================================ */

/* Main Content Area - Scoped Font */
.pkp_structure_content {
    font-family: "Open Sans", sans-serif !important;
    line-height: 1.7 !important;
}

/* Scoped Headings - Avoids homepage custom content */
.page:not(.page_index_journal) h1, 
.page:not(.page_index_journal) h2, 
.page:not(.page_index_journal) h3,
.current_issue h2,
.cmp_announcements h2 {
    color: #1e3a5f !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

/* Underline for specific H2s only */
.page:not(.page_index_journal) h2,
.current_issue h2,
.cmp_announcements h2 {
    font-size: 24px !important;
    border-bottom: 2px solid #e67e22 !important;
    padding-bottom: 8px !important;
    display: inline-block !important;
    margin-top: 30px !important;
}

/* Custom Pages Paragraphs (About, Editorial Team, etc.) - Excludes Homepage */
.page:not(.page_article):not(.page_index_journal) p {
    text-align: justify !important;
    font-size: 15px !important;
    margin-bottom: 20px !important;
    color: #444 !important;
}

/* Lists in custom pages - Excludes Homepage */
.page:not(.page_index_journal) ul, 
.page:not(.page_index_journal) ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

.page:not(.page_index_journal) li {
    margin-bottom: 10px !important;
    position: relative !important;
}

/* Homepage Issue Summary */
.homepage-issues {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.obj_issue_summary {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.obj_issue_summary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-color: #007bff !important;
}

.obj_issue_summary .cover {
    text-align: center !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.obj_issue_summary .cover img {
    max-width: 100% !important;
    height: auto !important;
    transition: transform 0.5s ease !important;
}

.obj_issue_summary:hover .cover img {
    transform: scale(1.05) !important;
}

.obj_issue_summary .series {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

/* Buttons */
.btn-primary, .cmp_button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.2s !important;
}

.btn-primary:hover, .cmp_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4) !important;
}

/* Announcements */
.cmp_announcements .obj_announcement_summary {
    background: #f8f9fa !important;
    border-left: 4px solid #e67e22 !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    border-radius: 0 8px 8px 0 !important;
}

.obj_announcement_summary .title {
    font-size: 18px !important;
    margin: 0 0 10px 0 !important;
}

.obj_announcement_summary .date {
    color: #666 !important;
    font-size: 13px !important;
    font-style: italic !important;
    margin-bottom: 15px !important;
}


/* ============================================
   HOMEPAGE CUSTOM CONTENT STYLING (Override App CSS)
   ============================================ */

/* Main Container */
.additional_content {
    font-family: "Open Sans", sans-serif !important;
    color: #444 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
}

/* Embase Announcement Card */
#embase-announcement-wrapper .card-container {
    max-width: 800px !important;
    margin: 30px auto !important;
    perspective: 1000px !important;
}

#embase-announcement-wrapper .card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfd 100%) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
}

#embase-announcement-wrapper .card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 6px !important;
    background: linear-gradient(90deg, #ff8c00, #ff0080) !important;
}

#embase-announcement-wrapper .badge {
    background: rgba(255, 140, 0, 0.1) !important;
    color: #e67e22 !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    margin-bottom: 1rem !important;
    border: 1px solid rgba(255, 140, 0, 0.2) !important;
}

#embase-announcement-wrapper h2 {
    color: #1e3a5f !important;
    font-size: 2rem !important;
    margin: 10px 0 15px !important;
    font-weight: 800 !important;
}

#embase-announcement-wrapper p {
    color: #555 !important;
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
}

#embase-announcement-wrapper .logo-section img {
    max-height: 60px !important;
    margin-bottom: 20px !important;
}

/* Attachment Box */
#embase-announcement-wrapper .attachment-box {
    background: #f1f5f9 !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
}

#embase-announcement-wrapper .file-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#embase-announcement-wrapper .file-icon {
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #e67e22 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}
#embase-announcement-wrapper .file-icon::before { content: "\f1c4" !important; font-family: FontAwesome !important; }

#embase-announcement-wrapper .file-name {
    display: block !important;
    font-weight: 700 !important;
    color: #333 !important;
}

#embase-announcement-wrapper .file-size {
    font-size: 0.85rem !important;
    color: #777 !important;
}

#embase-announcement-wrapper .download-btn {
    background: #1e3a5f !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
#embase-announcement-wrapper .download-btn:hover { background: #162c4a !important; transform: translateY(-2px) !important; }

/* Text Content Enhancement */
.additional_content h2 {
    color: #1e3a5f !important;
    border-bottom: 2px solid #e67e22 !important;
    padding-bottom: 10px !important;
    margin-top: 40px !important;
    display: inline-block !important;
}

.additional_content ul {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin: 20px 0 30px !important;
}

.additional_content li.show {
    background: #fff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    border-left: 4px solid #007bff !important;
    font-weight: 600 !important;
    color: #444 !important;
    transition: transform 0.2s !important;
}

.additional_content li.show:hover {
    transform: translateX(5px) !important;
    background: #f8f9fa !important;
}

/* Contact Info Highlight */
.additional_content p a[href*="mailto"] {
    display: inline-block !important;
    background: #eef2f7 !important;
    color: #1e3a5f !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    margin: 5px !important;
    border: 1px solid #dbeafe !important;
}
.additional_content p a[href*="mailto"]:hover {
    background: #1e3a5f !important;
    color: #fff !important;
    text-decoration: none !important;
}



/* ============================================
   EMBASE CARD SIZE ADJUSTMENTS (Larger)
   ============================================ */
#embase-announcement-wrapper .logo-section img {
    max-height: 80px !important; /* Increased from 60px */
}

#embase-announcement-wrapper h2 {
    font-size: 2.4rem !important; /* Increased from 2rem */
}

#embase-announcement-wrapper p {
    font-size: 1.3rem !important; /* Increased from 1.1rem */
}


/* ============================================
   ARTICLE TITLE VISIBILITY FIX
   ============================================ */
.article-title {
    color: #f8f9fa !important; /* Half-white/Off-white for visibility */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; /* Shadow for better contrast */
}


/* ============================================
   ARTICLE TITLE VISIBILITY FIX (Stronger Selector)
   ============================================ */
.obj_article_details .article-header .article-title,
.obj_article_details h1.article-title,
h1.article-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
}


/* ============================================
   TABLE & FIGURE VISIBILITY FIX
   ============================================ */
.article-fulltext table caption,
.article-fulltext figcaption,
.article-fulltext .caption,
.article-fulltext .table-label,
.article-fulltext .figure-label,
.obj_article_details .value table strong, 
.obj_article_details .value figure strong {
    color: #1e3a5f !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* Fix for links that are Table/Figure references if they are white */
.article-fulltext a,
.obj_article_details .value a {
    color: #007bff !important;
    text-shadow: none !important;
}


/* ============================================
   NUCLEAR VISIBILITY FIX FOR TABLES/FIGURES
   ============================================ */
/* Force all bold text in article body to be dark */
.obj_article_details .article-fulltext strong,
.obj_article_details .article-fulltext b,
.obj_article_details .value strong,
.obj_article_details .value b {
    color: #1e3a5f !important;
    text-shadow: none !important;
}

/* Force table headers and captions */
.obj_article_details table th,
.obj_article_details table caption,
.obj_article_details .caption {
    color: #1e3a5f !important;
    text-shadow: none !important; 
}

/* Force specific classes often used for labels */
.obj_article_details .label,
.obj_article_details .table-heading,
.obj_article_details .figure-heading {
    color: #1e3a5f !important;
    text-shadow: none !important;
}


/* ============================================
   RESPONSIVE HOMEPAGE CONTENT
   ============================================ */
@media (max-width: 768px) {
    /* Embase Card Mobile Adjustments */
    #embase-announcement-wrapper .card-container {
        margin: 15px auto !important;
        width: 100% !important;
        padding: 0 10px !important;
    }

    #embase-announcement-wrapper .card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }

    #embase-announcement-wrapper h2 {
        font-size: 1.8rem !important;
        margin-top: 5px !important;
    }

    #embase-announcement-wrapper p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        text-align: justify !important;
    }

    /* Attachment Box Stacking */
    #embase-announcement-wrapper .attachment-box {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        padding: 15px !important;
    }

    #embase-announcement-wrapper .file-info {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    #embase-announcement-wrapper .download-btn {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    /* List Grid Adjustments */
    .additional_content ul {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 10px !important;
    }
}


/* ============================================
   RESPONSIVE CITATION BOX
   ============================================ */
.csl-bib-body,
.csl-entry {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .citation_display .csl-entry {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .citation_display {
        padding: 10px !important;
    }
}


/* ============================================
   HEADING UNDERLINE SPACING FIX (Tighter)
   ============================================ */
.page:not(.page_index_journal) h2,
.current_issue h2,
.cmp_announcements h2 {
    padding-bottom: 3px !important; /* Reduced from 8px/10px */
}


/* ============================================
   HEADING UNDERLINE SPACING FIX (Immediate)
   ============================================ */
.page:not(.page_index_journal) h2,
.current_issue h2,
.cmp_announcements h2 {
    padding-bottom: 0px !important; /* Zero padding */
    border-bottom-width: 3px !important; /* Slightly thicker line for emphasis */
    line-height: 1.2 !important; /* Tighten line height */
    display: inline-block !important; /* Ensure width matches text */
}

