/* ========================================
   JURNAL PENGABDIAN MASYARAKAT (JPM)
   COMPLETE STYLESHEET v4.0 (Final)
   ======================================== */

/* ========================================
   1. HIDE DEFAULT OJS HEADER
   ======================================== */
.pkp_site_name,
.pkp_navigation_primary,
.pkp_navigation_user,
.pkp_search,
.pkp_site_name_wrapper,
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper,
.pkp_breadcrumbs {
    display: none !important;
}

/* ========================================
   2. INFORMATIVE HEADER (REDESIGNED)
   ======================================== */
.jpm-header-wrapper {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.jpm-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Baris 1: Identitas & CTA */
.jpm-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.jpm-header-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.jpm-header-logo {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jpm-header-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.jpm-header-logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
}

.jpm-header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff;
    line-height: 1.2;
}

.jpm-header-affiliation {
    font-size: 13px;
    color: #dbeafe;
    margin-bottom: 8px;
    font-weight: 500;
}

.jpm-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jpm-badge-issn, .jpm-badge-sinta {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.jpm-badge-issn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.jpm-badge-issn:hover { background: rgba(255, 255, 255, 0.25); color: #fff; text-decoration: none; }

.jpm-badge-sinta {
    background: #fbbf24;
    color: #78350f;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jpm-badge-sinta:hover { background: #f59e0b; color: #78350f; text-decoration: none; transform: translateY(-1px); }

.jpm-header-cta .jpm-action-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Baris 2: Menu Navigasi (Link yang diminta) */
.jpm-header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.jpm-nav-link {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.jpm-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
}

/* Baris 3: Info Strip */
.jpm-header-info-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    font-size: 12px;
    color: #bfdbfe;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.1);
}

.jpm-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tombol Umum */
.jpm-action-btn {
    background: #ffffff;
    color: #1e3a8a;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jpm-action-btn:hover {
    background: #fbbf24;
    color: #78350f;
    transform: translateY(-2px);
    text-decoration: none;
}

.jpm-action-btn.primary {
    background: #fbbf24;
    color: #78350f;
}

.jpm-action-btn.primary:hover {
    background: #f59e0b;
}

/* ========================================
   3. SIDEBAR & POLICY STYLES (Tetap Sama)
   ======================================== */
.jpm-sidebar-widget { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 13px; color: #1e293b; width: 100%; line-height: 1.5; }
.jpm-card { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.jpm-card-header { background: #1e3a8a; color: #ffffff; font-weight: 700; font-size: 13px; text-align: center; padding: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.jpm-menu-item { display: block; padding: 9px 12px; color: #1e293b; text-decoration: none; border-bottom: 1px solid #e2e8f0; font-weight: 500; border-left: 3px solid transparent; transition: all 0.25s ease-in-out; }
.jpm-menu-item:hover { background-color: #eff6ff; color: #1e3a8a; border-left: 3px solid #2563eb; padding-left: 14px; text-decoration: none; }
.jpm-logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 12px; }
.jpm-logo-grid a { display: inline-block; transition: transform 0.2s ease; border-radius: 4px; }
.jpm-logo-grid a:hover { transform: scale(1.1); text-decoration: none; }
.jpm-logo-grid img { height: 32px; width: auto; display: block; }

/* Responsive */
@media (max-width: 768px) {
    .jpm-header-top { flex-direction: column; text-align: center; }
    .jpm-header-identity { flex-direction: column; text-align: center; }
    .jpm-header-text h1 { font-size: 20px; }
    .jpm-header-badges { justify-content: center; }
    .jpm-header-nav { gap: 2px; }
    .jpm-nav-link { font-size: 13px; padding: 6px 10px; }
    .jpm-header-info-strip { gap: 8px; font-size: 11px; }
}