/* ==========================================================================
   MASTER STYLESHEET OJS 3 - CHILD MANUSCRIPT THEME
   Jurnal: IJSS (International Journal of Social Sciences)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER & BANNER (FULL WIDTH 1350px x 200px)
   -------------------------------------------------------------------------- */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_head_wrapper .header_view {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background-color: #0b5394 !important;
}

.pkp_site_name_wrapper,
.pkp_site_name {
    width: 100% !important;
    max-width: 1350px !important;
    min-height: 200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
}

/* Paksa wrapper dan tautan link membentang penuh 1350px */
.pkp_site_name .is_img,
.pkp_site_name .is_img a {
    display: block !important;
    width: 100% !important;
    max-width: 1350px !important;
    height: 200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Paksa gambar mengisi penuh seluruh bidang 1350x200px tanpa mengecil di tengah */
.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: 1350px !important;
    min-width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    object-fit: cover !important; /* Memenuhi area 1350x200 secara penuh tanpa ada sisa ruang */
    object-position: center !important;
    margin: 0 auto !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Navigasi profil/login di kanan atas */
.pkp_head_wrapper .pkp_navigation_user_wrapper {
    position: absolute;
    top: 12px;
    right: 25px;
    z-index: 999;
}

.pkp_navigation_user > li > a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   2. DETAIL ARTIKEL (Abstrak, DOI & Referensi Rata Kiri-Kanan)
   -------------------------------------------------------------------------- */
.obj_article_details .item.abstract .value,
.article-summary .abstract {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.75;
    font-size: 0.98rem;
    color: #2d3748;
}

.obj_article_details .item.doi {
    margin-top: 10px;
    margin-bottom: 20px;
    display: inline-block;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 6px;
    border-left: 3px solid #006699;
}

.obj_article_details .item.doi .label {
    font-weight: 700;
    color: #1e293b;
    margin-right: 6px;
}

.obj_article_details .item.doi .value a {
    color: #006699;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.92rem;
}

.obj_article_details .item.doi .value a:hover {
    text-decoration: underline;
}

.obj_article_details .item.citations .value,
.obj_article_details .item.references .value {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.7;
    font-size: 0.92rem;
}

.obj_article_details .item.citations .value p {
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   3. DAFTAR TERBITAN (ISSUE TOC): 2-CARD GRID DI LAPTOP
   -------------------------------------------------------------------------- */
.obj_issue_toc .sections .section .articles,
.issue_toc .cmp_article_list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-top: 15px;
}

.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.obj_article_summary .title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.obj_article_summary .title a {
    color: #0f172a;
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: #006699;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR CLEAN & MODERN (TANPA KOTAK BERLAPIS)
   -------------------------------------------------------------------------- */
/* Hilangkan seluruh garis & bayangan pembungkus luar bawaan tema */
.pkp_structure_sidebar,
.pkp_structure_sidebar .pkp_block,
#customblock-sidebar,
#customblock-sidebar .content {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Beri jarak antar blok widget di sidebar */
.pkp_structure_sidebar .pkp_block {
    margin-bottom: 24px !important;
}

/* Judul Blok Default OJS (jika ada) */
.pkp_block .title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reset Struktur Tabel Sidebar */
#customblock-sidebar table.hoverTable {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    border: none !important;
}

#customblock-sidebar table.hoverTable tbody,
#customblock-sidebar table.hoverTable tr,
#customblock-sidebar table.hoverTable td,
#customblock-sidebar table.hoverTable th {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Header Kategori Menu (ABOUT THIS JOURNAL, ISSUES, dsb.) */
#customblock-sidebar table.hoverTable th {
    background: #0b5394 !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    margin-top: 18px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    box-shadow: 0 2px 5px rgba(11, 83, 148, 0.2) !important;
}

#customblock-sidebar table.hoverTable tr:first-child th {
    margin-top: 0 !important;
}

#customblock-sidebar table.hoverTable th p {
    margin: 0 !important;
    color: #ffffff !important;
}

/* Gambar Cover Jurnal */
#customblock-sidebar table.hoverTable th img {
    width: 100% !important;
    max-width: 200px !important;
    height: auto !important;
    margin: 10px auto 4px auto !important;
    display: block !important;
    border-radius: 6px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Tombol Tautan Menu */
#customblock-sidebar table.hoverTable td {
    margin-bottom: 5px !important;
}

#customblock-sidebar table.hoverTable td a {
    display: block !important;
    padding: 9px 14px !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
}

#customblock-sidebar table.hoverTable td a:hover {
    background: #f0f9ff !important;
    border-color: #0b5394 !important;
    color: #0b5394 !important;
    transform: translateX(4px);
}

/* Item Tanpa Link (Non-Link Teks) */
#customblock-sidebar table.hoverTable td:not(:has(a)) {
    padding: 9px 14px !important;
    font-size: 0.86rem !important;
    color: #94a3b8 !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 6px !important;
    font-style: italic;
}

/* Cards untuk Logo Pengindeks / Partner */
.pkp_block .content img:not(th img) {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 8px auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   5. FOOTER RINGKAS (Tanpa Logo & Tanpa Blok Kosong Atas)
   -------------------------------------------------------------------------- */
.pkp_structure_footer > .pkp_brand_footer,
.pkp_structure_footer > .container > .row:first-child,
.pkp_structure_footer .footer_brand,
.pkp_brand_footer,
.pkp_structure_footer img[src*="pkp"] {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer.pkp_structure_footer {
    padding: 22px 0 !important;
    margin-top: 40px !important;
    background-color: #0b2239 !important;
    border-top: 3px solid #006699 !important;
    color: #94a3b8 !important;
}

.pkp_structure_footer .pkp_footer_content {
    margin: 0 auto !important;
    padding: 0 15px !important;
    max-width: 1100px !important;
    text-align: center !important;
    line-height: 1.6;
}

.footer-top-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
}

.footer-top-section a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    margin: 0 6px !important;
    transition: color 0.2s ease;
}

.footer-top-section a:hover {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   6. HALAMAN FOCUS AND SCOPE (Tampilan Hero & Kartu Grid)
   -------------------------------------------------------------------------- */
.fs-wrapper {
    max-width: 100%;
    margin: 15px auto 35px auto;
    color: #1e293b;
}

.fs-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #0b5394 100%);
    border-radius: 10px;
    padding: 26px 30px;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(11, 83, 148, 0.25);
    margin-bottom: 25px;
}

.fs-hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.fs-hero p {
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    color: #f1f5f9;
}

.fs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.fs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px -3px rgba(0, 0, 0, 0.07);
    border-color: #0b5394;
}

.fs-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 14px;
}

.fs-card-header .fs-icon {
    width: 32px;
    height: 32px;
    background: #eff6ff;
    color: #0b5394;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.fs-card-header h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fs-pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fs-pill-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.fs-pill-item:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
    padding-left: 14px;
}

.fs-pill-dot {
    width: 6px;
    height: 6px;
    background: #0b5394;
    border-radius: 50%;
}

.fs-mission {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-left: 4px solid #0b5394;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fs-mission-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.fs-mission p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #44403c;
    text-align: justify;
}

/* --------------------------------------------------------------------------
   7. HALAMAN EDITORIAL TEAM (Hierarki & Profil Kartu)
   -------------------------------------------------------------------------- */
.editorial-board-wrapper {
    max-width: 100%;
    margin: 15px auto 35px auto;
    color: #1e293b;
}

.team-role-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}

.team-role-heading:first-of-type {
    margin-top: 0;
}

.team-role-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0b5394;
}

.team-role-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
}

.team-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.team-grid-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.editor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.editor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px -2px rgba(11, 83, 148, 0.1);
    border-color: #0b5394;
}

.editor-card.lead-editor {
    border-left: 5px solid #0b5394;
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

.editor-card.managing-editor {
    border-left: 5px solid #0284c7;
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

.editor-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.editor-affil {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.editor-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #edf2f7;
    padding-top: 8px;
    font-size: 0.82rem;
}

.editor-country {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #334155;
}

.editor-badge-link {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

/* --------------------------------------------------------------------------
   8. MEDIA QUERIES (RESPONSIF MOBILE / HP)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    .pkp_site_name .is_img img {
        height: auto !important;
        max-height: 160px;
    }

    .pkp_structure_sidebar {
        width: 100% !important;
        margin-top: 25px;
    }
}

@media screen and (max-width: 768px) {
    /* Grid Artikel, Grid Focus & Scope, dan Editorial Team kembali ke 1 kolom di HP */
    .obj_issue_toc .sections .section .articles,
    .issue_toc .cmp_article_list,
    .fs-grid,
    .team-grid-double {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .pkp_site_name .is_img img {
        height: auto !important;
        max-height: 110px;
    }

    .fs-hero {
        padding: 18px 20px;
    }

    .footer-top-section a {
        display: inline-block;
        margin: 4px 6px !important;
    }

    .obj_article_details .item.doi {
        display: block;
        word-break: break-all;
    }
}