/* ============================================================
   Journal Management System — Public Site Styles
   RatechPlus Technologies | +234 708 881 7711
   ============================================================ */

:root {
    --jms-primary:       #003366;
    --jms-secondary:     #C8A951;
    --jms-primary-dark:  #002244;
    --jms-primary-light: #e8f0fb;
    --body-bg:           #f8f9fa;
    --card-bg:           #ffffff;
    --border:            #e2e8f0;
    --text:              #1a202c;
    --text-muted:        #718096;
    --radius:            10px;
    --shadow:            0 2px 12px rgba(0,0,0,.07);
    --shadow-md:         0 4px 20px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       font-size: 21px; color: var(--text); background: var(--body-bg); line-height: 1.65; }

img { max-width: 100%; height: auto; }
a   { color: var(--jms-primary); transition: color .15s; }
a:hover { color: var(--jms-primary-dark); text-decoration: underline; }

/* ── Top info bar ─────────────────────────────────────────── */
.top-info-bar {
    background: #000000;
    color: rgba(255,255,255,.90);
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.top-info-bar a { color: rgba(255,255,255,.90); text-decoration: none; }
.top-info-bar a:hover { color: #fff; }

/* ── Navbar ───────────────────────────────────────────────── */
.jms-navbar {
    background: var(--jms-primary);
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid var(--jms-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.jms-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.jms-navbar.nav-hidden { transform: translateY(-100%); }

.jms-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 64px;
}

.navbar-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ADSU circular logo — transparent PNG, no filter */
.nav-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    /* subtle glow so logo pops on dark navbar */
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}
/* CMIAJ text beside logo */
.nav-cmiaj-text {
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    /* Gold accent — matches ADSU colors */
    text-shadow:
        0 1px 3px rgba(0,0,0,0.4),
        0 0 20px rgba(200,169,81,0.3);
    white-space: nowrap;
}

.jms-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.jms-nav-links > li { position: relative; }

.jms-nav-links a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.jms-nav-links a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.jms-nav-links a.active { background: rgba(255,255,255,.15); color: #fff; }

.jms-nav-links .nav-cta {
    background: var(--jms-secondary);
    color: #000 !important;
    font-weight: 700;
    margin-left: 6px;
    border-radius: 6px;
}
.jms-nav-links .nav-cta:hover { background: #b8962e; color: #000 !important; }

/* Dropdown */
.has-dropdown:hover .dropdown-menu-jms { display: block; }
.dropdown-menu-jms {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    list-style: none;
    z-index: 1000;
}
.dropdown-menu-jms li a {
    padding: 9px 18px;
    color: var(--text) !important;
    font-size: 14px;
    background: none;
    border-radius: 0;
    display: block;
}
.dropdown-menu-jms li a:hover { background: var(--jms-primary-light) !important; color: var(--jms-primary) !important; }

/* Mobile toggle */
.navbar-toggler-btn {
    display: none;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-wrapper {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--body-bg);
}
.auth-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card-wide { max-width: 640px; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { max-height: 64px; max-width: 200px; object-fit: contain; }
.auth-journal-name {
    font-size: 18px; font-weight: 800; color: var(--jms-primary);
    text-align: center; padding: 12px; background: var(--jms-primary-light); border-radius: 8px;
}
.auth-title { font-size: 22px; font-weight: 800; color: var(--jms-primary); text-align: center; margin-bottom: 4px; }
.auth-subtitle { color: var(--text-muted); text-align: center; font-size: 14px; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-form .form-label { font-size: 14px; }

/* ── Homepage Hero ────────────────────────────────────────── */
.jms-hero {
    background: linear-gradient(135deg, var(--jms-primary) 0%, var(--jms-primary-dark) 60%);
    position: relative;
    overflow: clip;
    min-height: 520px;
}
/* When photo uploaded — hero bg becomes fully transparent, photo covers all */
.jms-hero.hero-has-photo {
    background: transparent !important;
    background-color: transparent !important;
}
.jms-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--jms-secondary);
    z-index: 3;
}
.hero-content { position: relative; z-index: 2; }

/* Info box — absolute bottom right corner */
.hero-info-box {
    position: absolute;
    bottom: 24px;
    right: 70px;
    width: 44%;
    z-index: 4;
    padding: 28px 32px;
    border-radius: 14px;
    background: rgba(0,10,40,0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    /* Thin gold sides + bottom, thicker gold top */
    border-top:    4px solid var(--jms-secondary);
    border-left:   1px solid rgba(200,169,81,0.45);
    border-right:  1px solid rgba(200,169,81,0.45);
    border-bottom: 1px solid rgba(200,169,81,0.30);
    box-shadow:
        0 8px 32px rgba(0,0,0,.25),
        0 0 0 0px transparent,
        inset 0 1px 0 rgba(255,255,255,.08);
}

/* hero-glass-left removed — replaced by .hero-info-box */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    color: var(--jms-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.15);
}
/* Badge styled like Browse Issues button */
.hero-badge-btn {
    display: inline-block;
    background: var(--jms-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 8px;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid var(--jms-primary);
    text-shadow: none;
}
.hero-title {
    color: #ffffff;
    font-size: clamp(16px, 2.2vw, 26px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    text-shadow:
        1px 1px 0 rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.7),
        0 4px 16px rgba(0,0,0,0.5);
}
.hero-subtitle { color: rgba(255,255,255,.85); font-size: 13px; max-width: 540px; line-height: 1.6; margin-bottom: 20px; }
.hero-meta { color: rgba(255,255,255,.7); font-size: 11px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta i { color: var(--jms-secondary); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--jms-secondary); color: #000 !important; font-weight: 700;
    padding: 12px 28px; border-radius: 8px; text-decoration: none;
    transition: background .15s, transform .15s; display: inline-block;
}
.btn-hero-primary:hover { background: #b8962e; transform: translateY(-1px); text-decoration: none; }
.btn-hero-secondary {
    background: var(--jms-primary); color: #fff !important; font-weight: 700;
    padding: 12px 28px; border-radius: 8px; text-decoration: none; border: 1px solid var(--jms-primary);
    transition: background .15s, transform .15s; display: inline-block;
}
.btn-hero-secondary:hover { background: var(--jms-primary-dark); transform: translateY(-1px); text-decoration: none; }

/* ── Section titles ───────────────────────────────────────── */
.section-title {
    font-size: 22px; font-weight: 800; color: var(--jms-primary);
    margin-bottom: 6px;
}
.section-divider {
    height: 3px; width: 48px;
    background: var(--jms-secondary);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* ── Article cards ────────────────────────────────────────── */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card-section {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--jms-primary);
    background: var(--jms-primary-light);
    padding: 2px 10px; border-radius: 20px;
    margin-bottom: 10px;
}
.article-card-title {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--jms-primary); }
.article-card-authors { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.article-card-abstract {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 12px;
}
.article-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-muted); padding-top: 10px;
    border-top: 1px solid var(--border); gap: 8px; flex-wrap: wrap;
}
.article-card-doi { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.article-card-doi a { color: var(--jms-primary); }

/* ── Issue card ───────────────────────────────────────────── */
.issue-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s; height: 100%;
}
.issue-card:hover { box-shadow: var(--shadow-md); }
.issue-card-cover {
    background: var(--jms-primary);
    height: 160px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.issue-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-card-cover-placeholder {
    text-align: center; color: rgba(255,255,255,.7); padding: 16px;
}
.issue-card-cover-placeholder .vol { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.issue-card-cover-placeholder .iss { font-size: 13px; color: var(--jms-secondary); font-weight: 600; }
.issue-card-body { padding: 16px; }
.issue-card-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.issue-card-meta  { font-size: 12px; color: var(--text-muted); }
.issue-badge { position: absolute; top: 10px; right: 10px;
               background: var(--jms-secondary); color: #000;
               font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }

/* ── Article detail page ──────────────────────────────────── */
.article-detail-header {
    background: var(--jms-primary);
    padding: 40px 0 32px;
    color: #fff;
}
.article-detail-section-badge {
    display: inline-block; background: rgba(255,255,255,.15);
    color: var(--jms-secondary); font-size: 12px; font-weight: 700;
    padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .06em;
}
.article-detail-title { font-size: clamp(20px, 3vw, 30px); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-detail-meta { font-size: 13px; color: rgba(255,255,255,.75); display: flex; flex-wrap: wrap; gap: 16px; }
.article-detail-meta span { display: flex; align-items: center; gap: 6px; }
.article-detail-meta i { color: var(--jms-secondary); }

.article-body-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.article-body-card h5 { color: var(--jms-primary); font-weight: 700; margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--jms-secondary); display: inline-block; }
.article-abstract { font-size: 15px; line-height: 1.8; color: var(--text); }

.keyword-tag {
    display: inline-block; background: var(--jms-primary-light);
    color: var(--jms-primary); font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; margin: 3px 3px 3px 0;
    text-decoration: none;
}
.keyword-tag:hover { background: var(--jms-primary); color: #fff; }

.article-btn-pdf {
    background: var(--jms-primary); color: #fff !important; font-weight: 700;
    padding: 12px 28px; border-radius: 8px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .15s;
}
.article-btn-pdf:hover { background: var(--jms-primary-dark); text-decoration: none; }

/* ── Search results ───────────────────────────────────────── */
.search-hero {
    background: var(--jms-primary);
    padding: 40px 0;
}
.search-input-wrap { max-width: 640px; }
.search-input-wrap input {
    border-radius: 8px 0 0 8px; border-right: none;
    font-size: 16px; padding: 14px 18px;
}
.search-input-wrap .btn { border-radius: 0 8px 8px 0; }

/* ── Page hero (about, contact, etc.) ─────────────────────── */
.page-hero {
    background: var(--jms-primary);
    padding: 40px 0 32px;
    color: #fff;
    border-bottom: 4px solid var(--jms-secondary);
}
.page-hero h1 { font-size: clamp(22px, 4vw, 32px); font-weight: 800; margin-bottom: 6px; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 15px; margin: 0; }

/* ── Editorial board ──────────────────────────────────────── */
.editor-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; gap: 16px; align-items: flex-start;
    transition: box-shadow .2s;
}
.editor-card:hover { box-shadow: var(--shadow-md); }
.editor-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--jms-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 20px; flex-shrink: 0;
}
.editor-name  { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.editor-role  { color: var(--jms-primary); font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.editor-affil { color: var(--text-muted); font-size: 13px; }

/* ── Footer ───────────────────────────────────────────────── */
.jms-footer {
    background: var(--jms-primary);
    color: rgba(255,255,255,.8);
    padding: 52px 0 0;
    margin-top: 60px;
}
.footer-journal-name { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 10px; }
.footer-institution { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.footer-institution a { color: var(--jms-secondary); text-decoration: none; }
.footer-heading { color: var(--jms-secondary); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--jms-secondary); }
.footer-info-list { list-style: none; padding: 0; }
.footer-info-list li { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.footer-info-list li span { color: rgba(255,255,255,.4); min-width: 90px; font-size: 12px; }
.footer-info-list a { color: var(--jms-secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    margin-top: 36px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.rateplus-tag { font-size: 12px; color: rgba(255,255,255,.4); }
.rateplus-tag a { color: var(--jms-secondary); text-decoration: none; }

/* ── Confirm dialog ───────────────────────────────────────── */
.jms-overlay { display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:2000; }
.jms-confirm-box {
    display:none;position:fixed;top:50%;left:50%;
    transform:translate(-50%,-50%);background:#fff;
    border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.2);
    padding:36px 32px 28px;z-index:2001;width:370px;max-width:94vw;text-align:center;
}
.jms-confirm-icon { width:56px;height:56px;background:var(--jms-primary-light);border-radius:50%;
    display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:24px;color:var(--jms-primary);}
.jms-confirm-title { font-size:18px;font-weight:700;margin-bottom:8px; }
.jms-confirm-msg   { font-size:14px;color:var(--text-muted);margin-bottom:22px; }
.jms-confirm-actions { display:flex;gap:10px;justify-content:center; }

/* ── Loader ───────────────────────────────────────────────── */
.jms-loader-overlay {
    position:fixed;inset:0;background:rgba(255,255,255,.85);
    z-index:3000;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:18px;
}
.flip-book { position:relative;width:60px;height:50px;perspective:200px; }
.flip-book .page { position:absolute;width:28px;height:48px;background:var(--jms-primary);
    border-radius:1px 4px 4px 1px;transform-origin:left center;animation:flipPage 1.2s ease-in-out infinite; }
.flip-book .p1{animation-delay:0s;opacity:1}.flip-book .p2{animation-delay:.2s;opacity:.7}.flip-book .p3{animation-delay:.4s;opacity:.4}
.flip-book .spine{position:absolute;left:0;top:0;width:5px;height:48px;background:var(--jms-secondary);border-radius:2px 0 0 2px;}
@keyframes flipPage{0%{transform:rotateY(0)}50%,100%{transform:rotateY(-140deg)}}
.loader-text{font-size:14px;color:var(--text-muted);animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

/* ── Responsive ───────────────────────────────────────────── */
/* ── Breadcrumb ──────────────────────────────────────────── */
.jms-breadcrumb-bar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.jms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}
.bc-home {
    color: var(--jms-primary);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.bc-home:hover { color: var(--jms-secondary); }
.bc-sep {
    color: var(--text-muted);
    font-size: 10px;
    opacity: .5;
}
.bc-link {
    color: var(--jms-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.bc-link:hover { color: var(--jms-secondary); text-decoration: underline; }
.bc-current {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--jms-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s, background .2s, box-shadow .2s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--jms-secondary);
    color: #000;
    box-shadow: 0 6px 24px rgba(0,0,0,.30);
    transform: translateY(-3px);
}
.back-to-top:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (max 992px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {

    /* Hero info box — shrink width, stay bottom right */
    .hero-info-box {
        width: 65%;
        right: 20px;
        bottom: 20px;
        padding: 22px 24px;
    }

    /* Hero min-height shorter on tablet */
    .jms-hero { min-height: 420px; }

    /* Article detail */
    .article-detail-header { padding: 28px 0 24px; }

    /* Sections grid */
    .sections-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (max 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Navbar ──────────────────────────────────────────── */
    .navbar-toggler-btn { display: block; }
    .jms-nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--jms-primary-dark);
        padding: 10px 0;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .jms-nav-links.open { display: flex; }
    .jms-nav-links .nav-link-item { width: 100%; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .jms-nav-links .nav-cta { margin: 8px 12px; width: calc(100% - 24px); text-align: center; }
    .jms-navbar .container { position: relative; flex-wrap: wrap; min-height: 56px; }
    .dropdown-menu-jms { position: static; box-shadow: none; border: none;
        background: rgba(0,0,0,.2); border-radius: 0; }
    .has-dropdown:hover .dropdown-menu-jms { display: none; }
    .has-dropdown.open .dropdown-menu-jms { display: block; }
    .has-dropdown .dropdown-menu-jms a { color: rgba(255,255,255,.8) !important; }

    /* ── Hero ────────────────────────────────────────────── */
    .jms-hero { min-height: 480px; }

    /* Hero info box — full width at bottom on mobile */
    .hero-info-box {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 24px 20px;
        background: rgba(0,10,40,0.75);
        border: none;
        border-top: 3px solid var(--jms-secondary);
    }

    /* Background image switches to cover on mobile */
    .hero-photo-bg {
        background-size: cover !important;
        background-position: center top !important;
    }

    .hero-title { font-size: 20px; }
    .hero-badge-btn { font-size: 10px; padding: 5px 12px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions a { width: 100%; text-align: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }

    /* ── Article cards ───────────────────────────────────── */
    .article-card { padding: 16px; }
    .article-card-title { font-size: 15px; }
    .article-detail-header { padding: 24px 0 20px; }

    /* ── Auth pages ──────────────────────────────────────── */
    .auth-card { padding: 24px 16px; }

    /* ── Sidebar goes below on mobile ────────────────────── */
    .sidebar-box { margin-top: 24px; }

    /* ── Sections grid 2 columns ─────────────────────────── */
    .sections-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* ── Table responsive text ───────────────────────────── */
    .jms-table { font-size: 13px; }
    .jms-table td, .jms-table th { padding: 8px 10px; }

    /* ── Page hero (about, contact etc) ─────────────────── */
    .page-hero { padding: 32px 0 24px; }
    .page-hero h1 { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (max 576px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 576px) {

    /* Hero */
    .hero-title { font-size: 18px; }
    .hero-meta { font-size: 10px; gap: 8px; }
    .jms-hero { min-height: 420px; }

    /* Logo + CMIAJ text */
    .nav-logo-img { height: 40px; width: 40px; }
    .nav-cmiaj-text { font-size: 16px; letter-spacing: 0.12em; }

    /* Sections 1 column on very small */
    .sections-grid { grid-template-columns: 1fr 1fr; }

    /* Article detail */
    .article-meta-bar { flex-direction: column; gap: 6px; }

    /* PDF viewer height */
    .pdf-viewer-frame { height: 400px; }

    /* Reduce container padding */
    .container { padding-left: 14px; padding-right: 14px; }

    /* Hide some meta on very small screens */
    .article-card-abstract { display: none; }

    /* Buttons full width */
    .btn-hero-primary, .btn-hero-secondary { padding: 11px 20px; font-size: 13px; }

    /* Page hero */
    .page-hero h1 { font-size: 18px; }
    .page-hero p { font-size: 13px; }
}