/**
 * Focus Journals Theme
 * Novelty-inspired OJS 3 stylesheet
 */

/* ================================
   Global Layout
================================ */

body {
    background: #f6f7fb;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.pkp_structure_page {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto;
    background: #fff;
    overflow: visible !important;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
}

.pkp_structure_page,
.pkp_structure_content {
    overflow: visible !important;
}

a {
    color: #4b5fd5;
    text-decoration: none;
}

a:hover {
    color: #26378c;
    text-decoration: underline;
}

/* ================================
   Header
================================ */

/*.pkp_site_name_wrapper {*/
/*    background: #ffffff !important;*/
/*    padding: 26px 28px 18px;*/
/*    border-bottom: 1px solid #e5e5e5;*/
/*    text-align: left;*/
/*}*/

/*.pkp_site_name {*/
/*    margin: 0;*/
/*}*/

/*.pkp_site_name .is_img img {*/
/*    max-height: 78px;*/
/*    width: auto;*/
/*}*/

/*.pkp_navigation_primary_row {*/
/*    background: #3f4778;*/
/*    padding: 0 18px;*/
/*    border-bottom: 3px solid #eef0ff;*/
/*}*/

/*.pkp_navigation_primary {*/
/*    margin: 0;*/
/*}*/

/*.pkp_navigation_primary > li > a {*/
/*    color: #ffffff !important;*/
/*    font-weight: 600;*/
/*    font-size: 13px;*/
/*    padding: 13px 15px;*/
/*}*/

/*.pkp_navigation_primary > li > a:hover,*/
/*.pkp_navigation_primary > li > a:focus {*/
/*    background: #303763;*/
/*    color: #ffffff !important;*/
/*    text-decoration: none;*/
/*}*/

/*.pkp_navigation_user_wrapper {*/
/*    top: 18px;*/
/*    right: 24px;*/
/*}*/

/*.pkp_navigation_user > li > a {*/
/*    color: #4b5fd5;*/
/*    font-size: 12px;*/
/*}*/

/* ================================
   Stable Novelty-style Header
================================ */

.fj-header {
    background: #ffffff;
}

.fj-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}


.fj-issn-strip {
    color: #5964c8;
    font-weight: 700;
    display: flex;
    gap: 22px;
}

.fj-user-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fj-user-nav li {
    display: inline-block;
    margin-left: 12px;
}

.fj-user-nav a {
    color: #4b5fd5;
    font-size: 12px;
}

.fj-brandbar {
    background: #ffffff;
}

.fj-brandbar-inner {
    min-height: 120px;
    display: flex;
    align-items: center;
}

.fj-logo {
    max-height: 82px;
    width: auto;
}

.fj-site-title {
    color: #3f4778;
    font-size: 28px;
    font-weight: 700;
}

.fj-navbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fj-primary-nav {
    flex: 1;
    min-width: 0;
}

.fj-primary-nav .pkp_navigation_primary {
    margin: 0;
    padding: 0;
}

.fj-primary-nav .pkp_navigation_primary > li > a {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 14px;
}

.fj-primary-nav .pkp_navigation_primary > li > a:hover,
.fj-primary-nav .pkp_navigation_primary > li > a:focus {
    background: #303763;
    color: #ffffff !important;
    text-decoration: none;
}

.fj-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 18px;
}

.fj-search input {
    width: 210px;
    height: 30px;
    border: 0;
    border-radius: 2px;
    padding: 0 10px;
    font-size: 12px;
}

.fj-search button {
    height: 30px;
    background: #ffffff;
    color: #3f4778;
    border: 0;
    border-radius: 2px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .fj-topbar-inner,
    .fj-navbar-inner {
        display: block;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .fj-issn-strip {
        display: block;
        margin-bottom: 6px;
    }

    .fj-issn-strip span {
        display: block;
    }

    .fj-brandbar-inner {
        min-height: 90px;
        justify-content: center;
        text-align: center;
    }

    .fj-search {
        margin: 10px 0 0;
    }

    .fj-search input {
        width: 100%;
    }
}

/* Top strip simulation */

.pkp_navigation_user_wrapper {
    position: absolute;
    top: 12px;
    right: 20px;
}

/* Logo row */

/*.pkp_site_name_wrapper {*/
/*    background: #ffffff !important;*/
/*    padding: 20px 20px;*/
/*    border-bottom: 1px solid #e5e5e5;*/
/*}*/

/* Navigation bar */

/*.pkp_navigation_primary_row {*/
/*    background: #3f4778;*/
/*}*/

/*.pkp_navigation_primary > li > a {*/
/*    color: #ffffff !important;*/
/*    font-weight: 600;*/
/*}*/

/* Search alignment */

/*.pkp_search {*/
/*    float: right;*/
/*    margin-top: 10px;*/
/*}*/


/* ================================
   Site Index / Journals Page
================================ */

.fj-site-index {
    background: #f5f5f5;
    padding: 0;
}

.fj-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 18px 46px;
}

.fj-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcdc;
}

/* ================================
   Journal Grid
================================ */

.fj-journals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.fj-journal-card {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    padding: 18px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fj-journal-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.fj-journal-title {
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5e5e5;
    line-height: 1.25;
}

.fj-journal-title a {
    color: #4b5fd5;
    font-size: 18px;
    font-weight: 700;
}

.fj-journal-title a:hover {
    color: #26378c;
}

.fj-journal-description {
    color: #333;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.fj-journal-description p {
    margin: 0 0 10px;
}

.fj-journal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.fj-btn {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fj-btn-primary {
    background: #232a4d;
    color: #ffffff !important;
    border: 1px solid #232a4d;
}

.fj-btn-primary:hover {
    background: #3f4778;
    border-color: #3f4778;
}

.fj-btn-outline {
    background: #ffffff;
    color: #232a4d !important;
    border: 1px solid #bfc3d9;
}

.fj-btn-outline:hover {
    background: #f0f2ff;
    border-color: #4b5fd5;
}

/* ================================
   Generic OJS Blocks / Sidebars
================================ */

.pkp_structure_sidebar .block,
.block {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    margin-bottom: 16px;
    padding: 14px;
}

.block .title {
    background: #f1f1f1;
    color: #3f4778;
    font-size: 14px;
    font-weight: 700;
    margin: -14px -14px 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #e3e3e3;
}

.block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.block li {
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
    font-size: 13px;
}

.block li:last-child {
    border-bottom: 0;
}

/* ================================
   Novelty-style Article Cards
================================ */

.fj-article-card {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;
}

.fj-article-card:last-child {
    border-bottom: 0;
}

.fj-article-thumb img,
.fj-thumb-placeholder {
    width: 135px;
    height: 95px;
    object-fit: cover;
    border: 1px solid #e1e1e1;
    background: #f2f3ff;
}

.fj-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5964c8;
    font-size: 12px;
    font-weight: 700;
}

.fj-article-content {
    min-width: 0;
}

.fj-article-section {
    display: inline-block;
    background: #5964c8;
    color: #ffffff;
    padding: 3px 7px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fj-article-title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.fj-article-title a {
    color: #4b5fd5;
    font-weight: 700;
}

.fj-article-title a:hover {
    color: #26378c;
}

.fj-article-authors {
    color: #444444;
    font-size: 12px;
    margin-bottom: 5px;
}

.fj-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #777777;
    font-size: 11px;
    margin-bottom: 8px;
}

.fj-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fj-small-btn {
    display: inline-block;
    border: 1px solid #cfd3ff;
    color: #5964c8 !important;
    background: #ffffff;
    padding: 4px 9px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.fj-small-btn:hover {
    background: #f0f2ff;
}

.fj-small-btn-primary {
    background: #5964c8;
    color: #ffffff !important;
    border-color: #5964c8;
}

.fj-small-btn-primary:hover {
    background: #3f4778;
    border-color: #3f4778;
}

/* OJS issue TOC compatibility */
.obj_issue_toc .section {
    margin-top: 22px;
}

.obj_issue_toc .section h2 {
    font-size: 17px;
    color: #3f4778;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
    margin-bottom: 5px;
}

.obj_issue_toc .articles {
    margin: 0;
    padding: 0;
    list-style: none;
}

.obj_issue_toc .articles > li {
    margin: 0;
    padding: 0;
}

@media (max-width: 640px) {
    .fj-article-card {
        grid-template-columns: 1fr;
    }

    .fj-article-thumb img,
    .fj-thumb-placeholder {
        width: 100%;
        height: 170px;
    }
}

/* ================================
   Footer
================================ */

.pkp_structure_footer_wrapper {
    background: #252940;
    color: #ffffff;
    border-top: 0;
    margin-top: 0;
}

.pkp_structure_footer {
    padding: 28px;
    font-size: 13px;
}

.pkp_structure_footer a {
    color: #ffffff;
}


/* =========================================
   FINAL HEADER FIX
========================================= */

.fj-topbar {
    height: 36px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.fj-topbar-inner {
    max-width: 1280px;
    height: 36px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fj-issn-strip {
    font-size: 13px;
    color: #4b5fd5;
    font-weight: 700;
}

.fj-user-nav ul,
.fj-user-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fj-user-nav ul {
    display: flex;
    gap: 18px;
}

.fj-user-nav a {
    font-size: 13px;
    color: #4b5fd5;
}

/* Journal title row */

.fj-brandbar {
    background: #fff;
    border-bottom: 0;
}

.fj-brandbar-inner {
    max-width: 1280px;
    min-height: 130px;
    margin: 0 auto;
    padding: 34px 18px 24px;
    display: flex;
    align-items: center;
}

.fj-brand-link {
    text-decoration: none !important;
}

.fj-site-title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #3f4778;
}

/* Navigation row */

.fj-navbar {
    background: #3f4778 !important;
    min-height: 52px !important;
}

.fj-navbar-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Fix vertical bullet menu */

.fj-primary-nav {
    flex: 1 !important;
}

.fj-primary-nav > ul,
.fj-primary-nav .pkp_navigation_primary {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
}

.fj-primary-nav .pkp_navigation_primary > li {
    display: inline-block !important;
    position: relative !important;
}

.fj-primary-nav .pkp_navigation_primary > li::marker {
    content: "" !important;
}

.fj-primary-nav .pkp_navigation_primary > li > a {
    display: block !important;
    padding: 16px 18px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.fj-primary-nav .pkp_navigation_primary > li > a:hover {
    background: #303763 !important;
    color: #ffffff !important;
}

.fj-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 20px !important;
}

.fj-search input {
    width: 220px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 3px !important;
    padding: 0 12px !important;
}

.fj-search button {
    height: 34px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: #232a4d !important;
    padding: 0 18px !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .fj-navbar-inner {
        display: block !important;
        padding: 10px 15px !important;
    }

    .fj-primary-nav .pkp_navigation_primary {
        display: block !important;
    }

    .fj-primary-nav .pkp_navigation_primary > li {
        display: block !important;
    }

    .fj-primary-nav .pkp_navigation_primary > li > a {
        padding: 10px 0 !important;
    }

    .fj-search {
        margin: 12px 0 0 !important;
    }

    .fj-search input {
        width: 100% !important;
    }
}

/* Mobile */

@media (max-width: 768px) {
    .fj-brandbar-inner {
        min-height: auto;
        padding: 24px 15px;
    }

    .fj-site-title {
        font-size: 24px;
    }

    .fj-navbar-inner {
        display: block;
        padding: 10px 15px;
    }

    .fj-primary-nav .pkp_navigation_primary {
        display: block !important;
    }

    .fj-primary-nav .pkp_navigation_primary > li > a {
        padding: 10px 0;
    }

    .fj-search {
        margin: 12px 0 0;
    }

    .fj-search input {
        width: 100%;
    }
}

/* =========================================
   Force right sidebar visibility - Journal page
========================================= */

/* FINAL OVERRIDE: Force 3-column journal homepage */

.pkp_structure_page {
    max-width: 1280px !important;
    overflow: visible !important;
}

.pkp_structure_content {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
}

.fj-journal-homepage {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding-top: 25px;

    display: grid !important;
    grid-template-columns: 230px calc(100% - 230px - 250px - 36px) 250px !important;
    gap: 18px !important;
    align-items: start !important;
}

.fj-sidebar-left {
    grid-column: 1 !important;
    display: block !important;
}

.fj-main-content {
    grid-column: 2 !important;
    display: block !important;
    min-width: 0 !important;
    padding: 0 10px;
}

.fj-sidebar-right {
    grid-column: 3 !important;
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 0 !important;
    background: transparent !important;
    z-index: 10 !important;
}

.fj-sidebar-right .fj-widget,
.fj-sidebar-right .fj-action-widget,
.fj-sidebar-right .fj-social-widget {
    display: block !important;
    margin-bottom: 16px !important;
}

@media (max-width: 1050px) {
    .fj-journal-homepage {
        grid-template-columns: 220px minmax(0, 1fr) !important;
    }

    .fj-sidebar-right {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .fj-journal-homepage {
        display: block !important;
    }

    .fj-sidebar-left,
    .fj-main-content,
    .fj-sidebar-right {
        display: block !important;
        width: 100% !important;
    }
}

.fj-sidebar {
    min-width: 0;
}

/* Widgets */

.fj-widget,
.fj-action-widget,
.fj-social-widget {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    margin-bottom: 16px;
    padding: 14px;
}

.fj-widget-title {
    background: #f1f1f1;
    color: #3f4778;
    font-size: 14px;
    font-weight: 700;
    margin: -14px -14px 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #e3e3e3;
}

.fj-widget p {
    font-size: 13px;
    margin: 0 0 10px;
}

.fj-widget-list,
.fj-menu-list,
.fj-volume-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fj-widget-list li,
.fj-menu-list li,
.fj-volume-list li {
    border-bottom: 1px solid #eeeeee;
    padding: 9px 0;
    font-size: 13px;
}

.fj-widget-list li:last-child,
.fj-menu-list li:last-child,
.fj-volume-list li:last-child {
    border-bottom: 0;
}

.fj-widget-list span {
    display: block;
    color: #888;
    font-size: 11px;
    margin-top: 3px;
}

.fj-issue-cover {
    width: 100%;
    height: auto;
    border: 1px solid #eeeeee;
    margin-bottom: 10px;
}

.fj-issue-meta {
    font-size: 13px;
    margin-bottom: 8px;
}

.fj-link-button,
.fj-readmore {
    display: inline-block;
    color: #5964c8;
    font-size: 12px;
    font-weight: 700;
}

.fj-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fj-keywords a {
    background: #f2f3ff;
    color: #5964c8;
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 12px;
}

.fj-call-box {
    background: #5964c8;
    color: #ffffff;
    padding: 18px;
    text-align: center;
}

.fj-call-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
}

.fj-call-box p {
    color: #ffffff;
}

.fj-call-box a {
    display: inline-block;
    background: #ffffff;
    color: #5964c8;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Main journal card */

.fj-hero-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.fj-hero-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 12px;
}

.fj-journal-description h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.fj-journal-description {
    font-size: 13px;
    color: #333333;
}

/* Current issue */

.fj-current-issue {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    padding: 18px;
}

.fj-section-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 18px;
}

.fj-section-tabs span {
    padding: 0 0 10px;
    font-size: 13px;
    color: #777777;
}

.fj-section-tabs .active {
    color: #5964c8;
    border-bottom: 2px solid #5964c8;
    font-weight: 700;
}

.fj-current-issue h2 {
    color: #5964c8;
    font-size: 18px;
    margin: 0 0 6px;
}

.fj-current-issue h3 {
    font-size: 14px;
    margin: 0 0 6px;
}

.fj-published-date {
    color: #777777;
    font-size: 12px;
}

/* Article card upgrade */

.fj-article-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 14px;
}

.fj-thumb-placeholder {
    width: 110px;
    height: 80px;
    background: #eef0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #5964c8;
}

.fj-article-title {
    font-size: 15px;
    margin-bottom: 6px;
}

.fj-article-title a {
    color: #4b5fd5;
    font-weight: 700;
}

.fj-article-authors {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
}

.fj-article-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.fj-badge {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 2px;
    border: 1px solid #ddd;
    background: #fff;
}

.fj-badge-views {
    border-color: #f0c27d;
    color: #c77b00;
}

.fj-badge-citations {
    border-color: #cfd3ff;
    color: #4b5fd5;
}

/* Right widgets */

.fj-action-widget {
    display: grid;
    gap: 8px;
}

.fj-action-widget a {
    display: block;
    text-align: center;
    border: 1px solid #cfd3ff;
    color: #5964c8;
    padding: 9px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
}

.fj-action-widget a:hover {
    background: #5964c8;
    color: #ffffff;
    text-decoration: none;
}

.fj-social-widget {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fj-social-widget a {
    width: 28px;
    height: 28px;
    border: 1px solid #cfd3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5964c8;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.fj-editor strong {
    color: #333333;
    font-size: 13px;
}

.fj-editor p {
    color: #666666;
    font-size: 12px;
}

.fj-stats-box {
    display: grid;
    gap: 8px;
}

.fj-stats-box div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 6px;
    font-size: 13px;
}

.fj-stats-box span {
    color: #5964c8;
    font-weight: 700;
}

/*Fix search alignment*/
.fj-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fj-main-nav {
    flex: 1;
}

.fj-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.fj-search input {
    width: 180px;
    height: 30px;
}

.fj-search button {
    height: 30px;
}

/* stabilize layout */

.pkp_page_login .pkp_structure_content {
    display: block;
}


@media (max-width: 768px) {
    .fj-top-inner,
    .fj-nav-inner {
        display: block;
    }

    .fj-issn {
        display: block;
        margin-bottom: 8px;
    }

    .fj-issn span {
        display: block;
        margin-bottom: 4px;
    }

    .fj-search {
        padding: 10px 0;
    }

    .fj-search input {
        width: 100%;
    }

    .fj-widget,
    .fj-action-widget,
    .fj-social-widget {
        margin-bottom: 16px;
    }

    .fj-article-card {
        grid-template-columns: 1fr;
    }

    .fj-article-thumb img,
    .fj-thumb-placeholder {
        width: 100%;
        height: 160px;
    }
}



/* ================================
   Responsive
================================ */

@media (max-width: 1100px) {
    .fj-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pkp_structure_page {
        max-width: 100%;
        box-shadow: none;
    }

    .pkp_site_name_wrapper {
        text-align: center;
        padding: 22px 15px;
    }

    .pkp_navigation_primary_row {
        padding: 0 10px;
    }

    .fj-container {
        padding: 24px 14px 36px;
    }

    .fj-journals-grid {
        grid-template-columns: 1fr;
    }

    .fj-journal-card {
        min-height: auto;
    }

    .fj-page-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .fj-journal-actions {
        flex-direction: column;
    }

    .fj-btn {
        width: 100%;
        text-align: center;
    }
}


/* ================================
   Article Metrics Badges
================================ */

.fj-article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.fj-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #555;
    padding: 3px 7px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.2;
}

.fj-badge strong {
    color: #333;
    font-weight: 700;
    background: #f5f5f5;
    padding: 1px 5px;
    border-radius: 2px;
}

.fj-badge-citations {
    border-color: #cfd3ff;
    color: #4b5fd5;
}

.fj-badge-views {
    border-color: #f1c27d;
    color: #d17a00;
}

.fj-badge-downloads {
    border-color: #d9d9d9;
    color: #666;
}

.fj-doi {
    color: #d17a00;
}

/* Issue article spacing fix */
.fj-issue-wrapper {
    margin-top: 10px;
}

/* Sidebar polish */

.fj-sidebar .fj-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.fj-widget-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #3f4778;
}

.fj-menu-list li {
    margin-bottom: 6px;
}

.fj-menu-list a {
    font-size: 13px;
    color: #4b5fd5;
}