/* FILE LOCATION: cij/jps/public_html/assets/css/main.css */
/* Web URL on your server: https://www.cij.com.ng/jps/public_html/assets/css/main.css */

:root {
  --journal-primary:      #29166F;
  --journal-primary-dark: #29166F;
  --cij-accent:           #e8a020;
  --text-dark:            #1a1a2e;
  --text-muted:           #6c757d;
  --border-light:         #e9ecef;
  --card-shadow:          0 2px 12px rgba(0,0,0,.08);
  --radius:               8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: #f8f9fa;
    margin: 0;
}

/* ── Global Top Bar ────────────────────────────────────── */
.global-topbar {
    background: var(--journal-primary);
    font-size: .82rem;
    min-height: 36px;
}
.global-topbar a { font-size: .85rem; }

/* ── CIJ Main Header ───────────────────────────────────── */
.cij-main-header {
    background: #fff;
    border-bottom: 3px solid var(--journal-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cij-logo-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}
.cij-logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--journal-primary);
    letter-spacing: -1px;
}
.cij-logo-sub {
    font-size: .78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
}

/* ── Journal Header ────────────────────────────────────── */
.journal-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.journal-header-title {
    font-size: 1.4rem;
    font-weight: 700;
}
.journal-nav-link {
    color: var(--text-dark);
    font-size: .88rem;
    transition: background .15s;
    text-decoration: none;
}
.journal-nav-link:hover {
    background: var(--journal-primary);
    color: #fff !important;
}

/* ── Page Hero (journals list) ─────────────────────────── */
.page-hero {
    padding: 2.5rem 0;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    font-size: .82rem;
}

/* ── Section Headings ──────────────────────────────────── */
.section-h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--journal-primary);
    border-bottom: 2px solid var(--journal-primary);
    padding-bottom: .4rem;
    margin-bottom: 1.2rem;
}
.section-heading-bar {
    border-bottom: 2px solid var(--journal-primary);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* ── Journal Cards (journals list page) ────────────────── */
.jl-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--jl-color, var(--journal-primary));
    transition: box-shadow .2s, transform .2s;
}
.jl-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.jl-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #f5f5f5;
}
.jl-cover {
    width: 50px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}
.jl-cover-placeholder {
    width: 50px;
    height: 68px;
    background: #e8f0fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--jl-color, var(--journal-primary));
    opacity: .6;
    flex-shrink: 0;
}
.jl-title { font-size: .92rem; font-weight: 700; margin: 0 0 .2rem; }
.jl-title a { color: var(--text-dark); text-decoration: none; }
.jl-title a:hover { color: var(--jl-color, var(--journal-primary)); text-decoration: underline; }
.jl-body { padding: .9rem 1rem; flex: 1; }
.jl-footer { padding: .75rem 1rem; border-top: 1px solid #f5f5f5; }
.jl-btn {
    background: var(--jl-color, var(--journal-primary));
    color: #fff !important;
    border: none;
    font-size: .85rem;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: .45rem .9rem;
    border-radius: 5px;
    transition: filter .15s;
}
.jl-btn:hover { filter: brightness(1.15); }

/* ── Journal Hero ──────────────────────────────────────── */
.journal-hero { padding: 2rem 0; }
.journal-cover-img { border: 3px solid rgba(255,255,255,.3); }
.journal-stats-bar { background: #fff; font-size: .85rem; }

/* ── Article List ──────────────────────────────────────── */
.article-list-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: box-shadow .2s;
}
.article-list-item:hover { box-shadow: var(--card-shadow); }
.art-type-badge-sm {
    display: inline-block;
    font-size: .7rem;
    padding: .15rem .5rem;
    background: var(--journal-primary);
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .3rem;
}
.art-list-title { font-size: 1rem; font-weight: 600; margin: .3rem 0 .2rem; }
.art-list-title a { color: var(--text-dark); text-decoration: none; }
.art-list-title a:hover { color: var(--journal-primary); text-decoration: underline; }

/* ── Sidebar Cards ─────────────────────────────────────── */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
}
.sidebar-heading {
    font-size: .95rem;
    font-weight: 700;
    color: var(--journal-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

/* ── TOC ────────────────────────────────────────────────── */
.toc-type-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.toc-article-row {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: .85rem;
}
.toc-art-title { font-size: .98rem; font-weight: 600; margin: .25rem 0 .2rem; }
.toc-art-title a { color: var(--text-dark); text-decoration: none; }
.toc-art-title a:hover { color: var(--journal-primary); }
.toc-dl-btn {
    font-size: .75rem; padding: .2rem .55rem;
    border-radius: 4px;
    border: 1px solid var(--fmt-color, #999);
    color: var(--fmt-color, #999);
    background: transparent;
    transition: all .15s;
    cursor: pointer;
}
.toc-dl-btn:hover { background: var(--fmt-color, #999); color: #fff; }
.abstract-preview { border-left: 3px solid var(--journal-primary); }

/* ── Keyword tags ──────────────────────────────────────── */
.kw-tag {
    display: inline-block;
    background: #e8f0fa;
    color: var(--journal-primary);
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .8rem;
    margin: .15rem;
    text-decoration: none;
}
.kw-tag:hover { background: var(--journal-primary); color: #fff; }

/* ── Metric Box ────────────────────────────────────────── */
.metric-box {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: .8rem .5rem;
    text-align: center;
}
.metric-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--journal-primary);
    line-height: 1;
}
.metric-label { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Info table ─────────────────────────────────────────── */
.info-table { border-collapse: collapse; width: 100%; }
.info-table td {
    padding: .35rem .2rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    font-size: .88rem;
}
.info-table tr:last-child td { border-bottom: none; }

/* ── Share buttons ──────────────────────────────────────── */
.share-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .3rem .7rem; border-radius: 4px; font-size: .82rem;
    font-weight: 500; text-decoration: none; border: 1px solid;
    cursor: pointer; transition: filter .15s;
}
.share-btn.twitter  { background:#000; color:#fff; border-color:#000; }
.share-btn.linkedin { background:#0077b5; color:#fff; border-color:#0077b5; }
.share-btn.facebook { background:#1877f2; color:#fff; border-color:#1877f2; }
.share-btn.email    { background:#6c757d; color:#fff; border-color:#6c757d; }
.share-btn.copy-url { background:#fff; color:#333; border-color:#ccc; }
.share-btn:hover    { filter: brightness(1.15); }

/* ── Latest Article Cards (home page) ──────────────────── */
.latest-article-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
    height: 100%;
}
.latest-article-card:hover { box-shadow: var(--card-shadow); }
.la-journal-badge {
    display: inline-block;
    font-size: .7rem;
    padding: .15rem .5rem;
    background: var(--journal-primary);
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .4rem;
}
.la-title { font-size: .92rem; font-weight: 600; margin-bottom: .3rem; }
.la-title a { color: var(--text-dark); text-decoration: none; }
.la-title a:hover { color: var(--journal-primary); text-decoration: underline; }

/* ── Site footer ────────────────────────────────────────── */
.site-footer { background: #29166F; color: #adb5bd; }
.footer-brand { color: #fff; font-size: 1rem; font-weight: 700; }
.footer-heading {
    color: #fff;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: .7rem;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: .85rem;
    transition: color .15s;
}
.footer-links a:hover { color: var(--cij-accent); }
.footer-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #adb5bd;
    text-decoration: none; transition: background .2s;
}
.footer-social:hover { background: var(--journal-primary); color: #fff; }
.idx-badge {
    background: rgba(255,255,255,.08);
    color: #ccc;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .75rem;
}
.idx-badge-img {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}
.idx-badge-img:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.idx-badge-img img {
    display: block;
    max-width: 100px;
    object-fit: contain;
}

/* ── Utilities ──────────────────────────────────────────── */
.btn-xs { font-size: .75rem; padding: .2rem .5rem; }
.doi-link { font-size: .8rem; word-break: break-all; }
.break-all { word-break: break-all; }
