/* =========================================================
   Huda Project – Modern Clean Theme for OJS 3.3
   Jurnal Studi Pesantren – versi gabungan
   - Tampilan & warna lama dipertahankan
   - Konten : sidebar proporsional 70 : 30
   - Footer: kiri data, kanan logo
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABEL
   --------------------------------------------------------- */
:root {
    --primary: #12be93;
    --primary-soft: #ffe5e5;
    --secondary: #283593;
    --text-main: #222;
    --text-muted: #666;
    --bg-page: #f5f6fa;
    --bg-card: #ffffff;
    --border-soft: #e2e4ec;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --transition: all 0.25s ease;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;

    /* Ukuran tata letak (ubah di sini bila perlu) */
    --page-width: 1240px;
    --gap-col: 28px;
    --pad-x: 32px;
}


/* ---------------------------------------------------------
   2. GLOBAL
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: radial-gradient(circle at top left, #ffffff 0, #f0f2f7 55%, #e3e6f0 100%);
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #13ac97;
}


/* ---------------------------------------------------------
   3. PAGE WRAPPER
   --------------------------------------------------------- */
.pkp_structure_page {
    width: 100%;
    max-width: var(--page-width);
    margin: 24px auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Matikan float & garis vertikal bawaan OJS */
.pkp_structure_main,
.pkp_structure_sidebar {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
    display: none !important;
}


/* ---------------------------------------------------------
   4. HEADER
   --------------------------------------------------------- */
.pkp_structure_head {
    background-image: url('https://cdn.pixabay.com/photo/2017/07/24/17/46/background-2535510_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px;
    min-height: 200px;
    position: relative;
}

.pkp_head_wrapper {
    position: relative;
    z-index: 1;
    padding: 14px var(--pad-x) 20px;
}

.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.pkp_site_name {
    flex: 1;
    text-align: center;
}

/* Logo besar */
.pkp_site_name .is_img img {
    display: block;
    max-height: 170px;
    max-width: 100%;
    width: fit-content;
    height: fit-content;
}

.pkp_site_name .is_text {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
}

.pkp_site_nav_toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(5, 141, 123, 0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}


/* ---------------------------------------------------------
   5. NAVIGASI
   --------------------------------------------------------- */
.pkp_site_nav_menu {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 var(--pad-x) 10px;
}

.pkp_navigation_primary_row {
    flex: 1;
}

.pkp_navigation_primary_wrapper {
    background: rgba(13, 133, 127, 0.18);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid rgba(19, 182, 182, 0.2);
    backdrop-filter: blur(8px);
}

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

.pkp_navigation_primary > li {
    position: relative;
}

.pkp_navigation_primary > li > a {
    position: relative;
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fefefe;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pkp_navigation_primary > li > a:hover {
    background: rgba(248, 250, 252, 0.14);
}

/* Dropdown desktop */
.pkp_navigation_primary > li > ul {
    position: absolute;
    top: 115%;
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 20;
}

.pkp_navigation_primary > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pkp_navigation_primary > li > ul > li > a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-main);
}

.pkp_navigation_primary > li > ul > li > a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Search & user */
.pkp_navigation_search_wrapper .pkp_search_desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.6);
    color: #f9fafb;
    font-size: 12px;
}

.pkp_navigation_search_wrapper .pkp_search_desktop .fa {
    font-size: 12px;
    opacity: 0.9;
}

.pkp_navigation_search_wrapper .pkp_search_desktop:hover {
    background: rgba(248, 250, 252, 0.18);
}

.pkp_navigation_user_wrapper {
    margin-left: 12px;
}

.pkp_navigation_user {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.pkp_navigation_user li a {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(248, 250, 252, 0.6);
    color: #000000;
}

.pkp_navigation_user li a:hover {
    background: rgba(248, 250, 252, 0.2);
}

/* Perapihan menu desktop */
@media (min-width: 992px) {

    .pkp_site_nav_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 var(--pad-x) 14px;
        background: transparent !important;
        border: none !important;
    }

    .pkp_navigation_primary_row {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pkp_navigation_primary_wrapper {
        flex: 1;
        max-width: 900px;
        margin: 0 auto;
        background: rgba(18, 171, 177, 1);
        border-radius: 999px;
        padding: 4px 10px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .pkp_navigation_primary {
        padding: 0;
        gap: 6px;
    }

    .pkp_navigation_primary > li > a {
        padding: 8px 18px;
    }

    .pkp_navigation_search_wrapper {
        margin-left: auto;
        white-space: nowrap;
    }

    .pkp_navigation_search_wrapper .pkp_search_desktop {
        padding: 6px 14px;
        background: transparent;
    }

    .pkp_navigation_primary > li > ul {
        top: 120%;
    }
}


/* ---------------------------------------------------------
   6. TATA LETAK KONTEN – PROPORSIONAL 70 : 30
   --------------------------------------------------------- */
.pkp_structure_content {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
    grid-template-areas: "main sidebar";
    gap: var(--gap-col);
    align-items: start;
    padding: 24px var(--pad-x) 28px;
    background: var(--bg-page);
}

.pkp_structure_main {
    grid-area: main;
    min-width: 0;
    padding: 0 !important;
}

.pkp_structure_sidebar {
    grid-area: sidebar;
    min-width: 0;
    padding: 0 !important;
}


/* ---------------------------------------------------------
   7. BANNER HOMEPAGE
   --------------------------------------------------------- */
.homepage_image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 5px 0 20px !important;
    box-shadow: var(--shadow-sm);
}

.homepage_image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
}


/* ---------------------------------------------------------
   8. SECTION HALAMAN DEPAN
   --------------------------------------------------------- */
.page_index_journal section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.page_index_journal h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 6px;
}

.page_index_journal h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.homepage_about p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: justify;
}

/* Tabel info jurnal memenuhi lebar & proporsional */
.homepage_about table {
    width: 100% !important;
    border-collapse: collapse;
}

.homepage_about table td {
    padding: 6px 10px;
    vertical-align: top;
}

.homepage_about table td:first-child {
    width: 30%;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   9. CURRENT ISSUE
   --------------------------------------------------------- */
.current_issue_title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 16px;
}

.obj_issue_toc .heading {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.obj_issue_toc .heading .cover {
    flex: 0 0 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.obj_issue_toc .heading .cover img {
    display: block;
    width: 100%;
    height: auto;
}

.obj_issue_toc .published {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.obj_issue_toc .published .label {
    font-weight: 600;
    margin-right: 4px;
}


/* ---------------------------------------------------------
   10. DAFTAR ARTIKEL
   --------------------------------------------------------- */
.sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.cmp_article_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmp_article_list > li {
    margin-bottom: 12px;
}

.obj_article_summary {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.obj_article_summary .title {
    margin: 0 0 6px;
    font-size: 0.98rem;
}

.obj_article_summary .title a {
    color: var(--text-main);
    font-weight: 600;
}

.obj_article_summary .title a:hover {
    color: var(--primary);
}

.obj_article_summary .title .subtitle {
    display: block;
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.obj_article_summary .meta {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.obj_article_summary .authors {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.obj_article_summary .consent {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.obj_article_summary .consent img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.obj_article_summary .consent b {
    font-weight: 600;
    color: var(--text-main);
}

/* Ikon statistik */
.obj_article_summary > img {
    height: 16px;
    width: auto;
    margin-right: 4px;
    vertical-align: middle;
}

/* Galleys (PDF) */
.galleys_links {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.obj_galley_link {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
}

.obj_galley_link:hover {
    background: var(--primary);
    color: #fff;
}

/* View All Issues */
.read_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff !important;
    font-size: 0.86rem;
    font-weight: 500;
}

.read_more:hover {
    background: #1a237e;
}


/* ---------------------------------------------------------
   11. SIDEBAR
   --------------------------------------------------------- */
.pkp_block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin: 0 0 16px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.pkp_structure_sidebar .pkp_block:last-child {
    margin-bottom: 0;
}

.pkp_block .title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 4px;
}

.pkp_block .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.pkp_block .content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pkp_block .content li {
    margin-bottom: 6px;
}

/* Tabel menu sidebar memenuhi lebar kartu */
.pkp_block table {
    width: 100% !important;
}

.block_developed_by a {
    font-size: 0.86rem;
}

/* Gambar di dalam kartu tidak keluar wadah */
.pkp_block img,
.obj_article_summary img,
.obj_issue_toc img,
.page_index_journal img {
    max-width: 100%;
    height: auto;
}

.pkp_block img {
    vertical-align: middle;
}

/* Teks panjang tidak mendorong layout */
.pkp_block,
.pkp_block .content,
.pkp_block .content p,
.pkp_block .content a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* ---------------------------------------------------------
   12. FOOTER – KIRI DATA, KANAN LOGO
   --------------------------------------------------------- */
.pkp_structure_footer_wrapper {
    background: #0f172a;
    color: #e5e7eb;
    padding: 0;
}

.pkp_structure_footer {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 32px var(--pad-x) 28px;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
}

/* Matikan clearfix bawaan tema agar tidak jadi item flex kosong */
.pkp_structure_footer::before,
.pkp_structure_footer::after {
    display: none !important;
}

/* KIRI: data jurnal */
.pkp_structure_footer .pkp_footer_content {
    float: none !important;
    flex: 1 1 auto;
    width: auto !important;
    max-width: 720px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.7;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Paksa rata kiri meski ada inline style dari editor */
.pkp_structure_footer .pkp_footer_content p,
.pkp_structure_footer .pkp_footer_content div,
.pkp_structure_footer .pkp_footer_content span {
    text-align: left !important;
}

.pkp_structure_footer .pkp_footer_content p {
    margin: 0 0 10px;
}

.pkp_structure_footer .pkp_footer_content p:last-child {
    margin-bottom: 0;
}

.pkp_structure_footer .pkp_footer_content strong {
    color: #ffffff;
}

.pkp_structure_footer .pkp_footer_content a {
    color: var(--primary);
}

.pkp_structure_footer .pkp_footer_content a:hover {
    color: #ffffff;
}

.pkp_structure_footer .pkp_footer_content img {
    display: inline-block;
    vertical-align: middle;
    margin: 4px 0;
}

/* KANAN: logo OJS/PKP */
.pkp_structure_footer .pkp_brand_footer {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 0 0 40px !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.pkp_structure_footer .pkp_brand_footer a {
    display: block;
    float: none;
}

.pkp_brand_footer img {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 64px;
    filter: grayscale(100%) brightness(1.4);
    opacity: 0.9;
    transition: var(--transition);
}

.pkp_brand_footer a:hover img {
    filter: none;
    opacity: 1;
}

/* Tablet & HP: data di atas, logo di bawah (rata kiri) */
@media (max-width: 767px) {
    .pkp_structure_footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px var(--pad-x) 20px;
    }

    .pkp_structure_footer .pkp_footer_content {
        max-width: none;
    }

    .pkp_structure_footer .pkp_brand_footer {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 0 0 !important;
        justify-content: flex-start;
        align-self: auto;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .pkp_brand_footer img {
        max-height: 44px;
    }
}


/* ---------------------------------------------------------
   13. HILANGKAN GARIS PEMBATAS BERLEBIH
   --------------------------------------------------------- */
.pkp_structure_page,
.page_index_journal section,
.obj_issue_toc .heading .cover,
.obj_article_summary,
.pkp_block,
.read_more,
.pkp_navigation_primary_wrapper,
.pkp_navigation_user li a,
.pkp_navigation_search_wrapper .pkp_search_desktop,
.pkp_structure_footer_wrapper {
    border: none !important;
}


/* ---------------------------------------------------------
   14. SKIP LINKS
   --------------------------------------------------------- */
.cmp_skip_to_content {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.cmp_skip_to_content a {
    position: absolute;
    left: -9999px;
}

.cmp_skip_to_content a:focus {
    position: static;
    left: auto;
    display: inline-block;
    margin: 4px;
    padding: 6px 10px;
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   15. HALAMAN EDITORIAL TEAM
   --------------------------------------------------------- */
.editorial-team {
    max-width: 840px;
    margin: 0 auto;
    line-height: 1.7;
    color: #111827;
}

.editorial-team p {
    margin: 0.1rem 0;
}

.editorial-team p:empty,
.editorial-team p strong:empty {
    display: none;
}

/* Jabatan (Editor in Chief, Managing Editor, dll.) */
.editorial-team > p strong {
    display: block;
    margin-top: 1.2rem;
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #283593;
}

/* Nama */
.editorial-team p strong + p,
.editorial-team p + p strong {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Afiliasi */
.editorial-team p + p {
    margin-top: 0.1rem;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    color: #6b7280;
}

/* Tautan Scholar & Sinta */
.editorial-team a {
    color: #068a78;
    font-weight: 500;
}

.editorial-team a:hover {
    color: #008e76;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   16. KOMPONEN OJSJB (info jurnal + logo indeks)
   --------------------------------------------------------- */
.ojsjb-wrap {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(14, 30, 37, 0.06);
}

.ojsjb-head {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.ojsjb-info {
    flex: 1 1 450px;
    min-width: 280px;
}

.ojsjb-title {
    margin: 0 0 16px;
    font-size: 22px;
    color: #0b67a3;
    font-weight: 700;
    line-height: 1.4;
}

.ojsjb-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #475b66;
    line-height: 1.6;
}

.ojsjb-meta div {
    margin: 0;
}

.ojsjb-meta strong {
    color: #0b2633;
    font-weight: 600;
    margin-right: 4px;
}

.ojsjb-logos {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
    padding: 20px;
    background: #f9fbfd;
    border-radius: 10px;
    border: 1px solid #e6eef8;
}

.ojsjb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ojsjb-logo:hover {
    box-shadow: 0 4px 12px rgba(11, 103, 163, 0.1);
    transform: translateY(-2px);
}

.ojsjb-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%) opacity(0.9);
    transition: filter 0.3s ease;
}

.ojsjb-logo img:hover {
    filter: grayscale(0%) opacity(1);
}


/* ---------------------------------------------------------
   17. RESPONSIF – LAPTOP KECIL (992px – 1199px)
   --------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --gap-col: 22px;
        --pad-x: 24px;
    }

    .pkp_structure_content {
        grid-template-columns: minmax(0, 68fr) minmax(240px, 32fr);
    }
}


/* ---------------------------------------------------------
   18. RESPONSIF – TABLET & HP (< 992px)
   --------------------------------------------------------- */
@media (max-width: 991px) {
    :root {
        --pad-x: 16px;
    }

    .pkp_structure_page {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .pkp_head_wrapper {
        padding: 10px 16px 14px;
    }

    .pkp_site_nav_toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }

    .pkp_site_name_wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .pkp_site_name {
        text-align: right;
    }

    .pkp_site_name .is_text {
        max-width: 200px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    /* Menu mobile */
    .pkp_site_nav_menu {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px 10px;
        gap: 8px;
    }

    .pkp_navigation_primary_wrapper {
        border-radius: 16px;
    }

    .pkp_navigation_primary {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 2px;
    }

    .pkp_navigation_primary > li {
        width: 100%;
    }

    .pkp_navigation_primary > li > a {
        width: 100%;
        text-align: left;
        white-space: normal;
    }

    .pkp_navigation_primary > li > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 4px 0 2px;
        margin-top: -2px;
        background: transparent;
    }

    .pkp_navigation_primary > li > ul > li > a {
        padding: 4px 18px;
        font-size: 12px;
        color: var(--text-muted);
    }

    .pkp_navigation_user_wrapper {
        margin: 0;
    }

    .pkp_navigation_user {
        justify-content: flex-end;
    }

    /* Konten atas, sidebar bawah */
    .pkp_structure_content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "main"
            "sidebar";
        padding: 18px 16px 22px;
    }

    .obj_issue_toc .heading {
        flex-direction: row;
        align-items: flex-start;
    }

    .obj_issue_toc .heading .cover {
        flex: 0 0 100px;
    }
}

/* Tablet: blok sidebar dua kolom agar tidak memanjang */
@media (min-width: 641px) and (max-width: 991px) {
    .pkp_structure_sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .pkp_structure_sidebar .pkp_block {
        margin-bottom: 0;
    }
}

@media (max-width: 900px) {
    .ojsjb-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .ojsjb-wrap {
        padding: 18px;
        margin: 16px auto;
    }

    .ojsjb-head {
        flex-direction: column;
        gap: 24px;
    }

    .ojsjb-title {
        font-size: 19px;
    }

    .ojsjb-meta {
        font-size: 13px;
    }
}


/* ---------------------------------------------------------
   19. RESPONSIF – HP (< 640px)
   --------------------------------------------------------- */
@media (max-width: 640px) {
    .page_index_journal section {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .homepage_image {
        margin: 0 -4px 16px !important;
        border-radius: 12px;
    }

    .obj_article_summary {
        padding: 10px 11px;
    }

    /* Tabel info jurnal bisa digeser */
    .homepage_about table {
        display: block;
        overflow-x: auto;
    }

    .homepage_about table td:first-child {
        width: auto;
    }

    .pkp_structure_footer .pkp_footer_content {
        font-size: 0.85rem;
    }

    .editorial-team {
        padding: 0 0.5rem;
        font-size: 0.95rem;
    }

    .editorial-team > p strong {
        font-size: 1rem;
    }
}
