/* ============================================================
   1. JOURNAL ARCHIVE & CARD STYLES
   ============================================================ */
.archive-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #004a99; /* Updated to match TQMJ Blue */
}

.archive-header h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.archive-header .archive-description {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

.journal-archive .card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.journal-archive .card:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.journal-archive .card-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #004a99;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.journal-archive .card-cnt {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    display: none;
}

.journal-archive .card-cnt.in {
    display: block;
}

/* ============================================================
   2. SIDEBAR CUSTOM MENU STYLES (Individualize Theme)
   ============================================================ */
/* Styling for your Custom Block menus */
.pkp_structure_sidebar .sidebar-list p.hvr-underline-from-center {
    margin-bottom: 12px !important;
    padding-left: 5px;
    display: block;
}

.pkp_structure_sidebar .sidebar-list a {
    color: #004a99 !important; /* Thi-Qar Blue */
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.pkp_structure_sidebar .sidebar-list a:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* Align Font Awesome icons */
.pkp_structure_sidebar .fa {
    width: 25px;
    text-align: center;
    margin-right: 8px;
    color: #444;
}

/* ============================================================
   3. ARTICLE PAGE CLEANUP (Removing Vertical Lines)
   ============================================================ */
/* Remove lines in Individualize Theme Grid */
.page_article .pkp_structure_main {
    border-right: none !important;
}

.page_article .pkp_structure_sidebar {
    border-left: none !important;
}

/* Remove internal OJS 3.5 borders between abstract and metadata */
.obj_article_details .main_entry {
    border-right: none !important;
    border-left: none !important;
    padding-right: 25px;
}

.obj_article_details .entry_details {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Force layout to be clean on mobile */
@media (max-width: 992px) {
    .obj_article_details .main_entry {
        padding-right: 0;
    }
}

/* ============================================================
   4. NAVIGATION & BRANDING
   ============================================================ */
/* Match Navigation to Journal Header Blue */
.pkp_navigation_primary_wrapper {
    background-color: #004a99 !important;
}

.pkp_navigation_primary > li > a {
    color: #ffffff !important;
}

.pkp_navigation_primary > li > a:hover {
    background-color: #003366 !important;
}

/* Footer styling adjustment */
.journal-footer {
    border-top: 4px solid #004a99;
}
/* 1. HIDE OJS BRANDING FOOTER COMPLETELY */
.pkp_structure_footer_wrapper .pkp_brand_footer, 
.pkp_structure_footer_wrapper .pkp_footer_content .pkp_brand_footer,
footer .pkp_brand_footer,
.footer-bottom + .pkp_brand_footer,
img[src*="ojs_brand"],
.pkp_brand_footer_logo {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
}

/* 2. REMOVE VERTICAL LINES ON ARTICLE PAGE */
/* This targets the specific borders seen in your screenshots */
.obj_article_details .main_entry, 
.obj_article_details .entry_details,
.page_article .pkp_structure_main,
.page_article .pkp_structure_sidebar,
.item.details_column,
.item.main_column {
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* 3. SIDEBAR MENU IMPROVEMENT */
.pkp_structure_sidebar .sidebar-list p.hvr-underline-from-center {
    margin-bottom: 12px !important;
}

.pkp_structure_sidebar .sidebar-list a {
    color: #004a99 !important;
    text-decoration: none !important;
}

/* 4. MATCH NAV BAR TO TQMJ BLUE */
.pkp_navigation_primary_wrapper, 
header .pkp_navigation_primary_wrapper {
    background-color: #004a99 !important;
}