/* ==================================================
   1. HEADER / LOGO SITE
   ================================================== */

.pkp_site_name {
    text-align: center;
}

.pkp_site_name .is_img img {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    margin-top: 5px;
    margin-bottom: 0;
}


/* ==================================================
   2. MAIN CONTENT WIDTH
   ================================================== */

@media (min-width: 992px) {
    .pkp_structure_content {
        padding-top: 2.143rem;
        width: 100%;
    }

    .pkp_structure_main:first-child:last-child {
        float: none;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.857rem;
        width: 1200px;
        max-width: 95%;
    }

    /* Hilangkan garis vertikal tengah bawaan tema */
    .pkp_structure_main:first-child:last-child:before,
    .pkp_structure_main:first-child:last-child:after {
        display: none !important;
        content: none !important;
    }
}


/* ==================================================
   3. JOURNAL LIST - 3 KOLOM
   ================================================== */

.pkp_page_index .journals {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.pkp_page_index .journals > ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==================================================
   4. CARD JURNAL
   ================================================== */

.pkp_page_index .journals > ul > li {
    display: grid !important;
    grid-template-columns: 120px 1fr;
    column-gap: 16px;
    align-items: center;

    width: auto !important;
    height: auto !important;
    min-height: 190px;

    padding: 18px !important;
    margin: 0 !important;

    background: #ffffff;
    border-radius: 8px;
    border: none !important;
    box-shadow: 0 .3rem 1.525rem -.375rem rgba(0, 0, 0, .15);

    text-align: left;
    transition: all .3s ease-in-out;
}

/* Hilangkan pseudo-element bawaan card */
.pkp_page_index .journals > ul > li::before,
.pkp_page_index .journals > ul > li::after {
    display: none !important;
    content: none !important;
}

.pkp_page_index .journals > ul > li:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15);
}


/* ==================================================
   5. RUANG KOSONG JIKA THUMBNAIL TIDAK ADA
   ================================================== */

/*
   Jika item jurnal tidak memiliki thumbnail,
   tetap dibuatkan ruang kosong di kolom kiri.
*/
.pkp_page_index .journals > ul > li:not(.has_thumb)::before {
    content: "";
    display: block !important;

    grid-column: 1;
    grid-row: 1;

    width: 120px;
    height: 150px;

    background: #f8fafc;
    border-radius: 5px;
}

/*
   Jika elemen .thumb ada tetapi kosong,
   tetap tampilkan ruang kosong.
*/
.pkp_page_index .journals .thumb:empty::before {
    content: "";
    display: block;

    width: 110px;
    height: 145px;

    background: #f8fafc;
    border-radius: 5px;
}


/* ==================================================
   6. THUMBNAIL / COVER JURNAL
   ================================================== */

.pkp_page_index .journals .thumb {
    grid-column: 1;
    grid-row: 1;

    float: none !important;
    width: 120px !important;
    height: 150px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    text-align: center;
    background: #f8fafc;
    border-radius: 5px;
}

.pkp_page_index .journals .thumb img,
.pkp_page_index .journals img {
    max-width: 110px !important;
    max-height: 145px !important;
    width: auto !important;
    height: auto !important;

    display: block;
    margin-left: auto;
    margin-right: auto;

    border-radius: 5px;
    box-shadow: 0 .3rem 1.525rem -.375rem rgba(0, 0, 0, .15);
    transition: all .3s ease-in-out;
}

/* Jika src image kosong/rusak secara struktur */
.pkp_page_index .journals .thumb img[src=""],
.pkp_page_index .journals .thumb img:not([src]) {
    display: none !important;
}

.pkp_page_index .journals > ul > li:hover img {
    -webkit-filter: grayscale(80%);
    filter: grayscale(80%);
    transform: translateY(-3px);
}


/* ==================================================
   7. BODY / INFORMASI JURNAL
   ================================================== */

.pkp_page_index .journals .body {
    grid-column: 2;
    grid-row: 1;

    float: none !important;
    width: auto !important;
    margin: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Override struktur bawaan OJS */
.pkp_page_index .journals .thumb + .body {
    width: auto !important;
    float: none !important;
    margin-top: 0 !important;
}


/* ==================================================
   8. JUDUL JURNAL
   ================================================== */

.pkp_page_index .journals h3 {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;

    font-size: 15px;
    line-height: 1.35;
    font-family: "Menlo", Monaco, Consolas, "Courier New", monospace;
    font-weight: normal;
    text-align: left;
}

.pkp_page_index .journals .body h3 a,
.pkp_page_index .journals h3 a {
    color: #0090d7;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.pkp_page_index .journals .body h3 a:hover,
.pkp_page_index .journals h3 a:hover {
    color: #2b7822;
}


/* ==================================================
   9. DESKRIPSI JURNAL DISEMBUNYIKAN
   ================================================== */

.pkp_page_index .journals .description {
    display: none !important;
}

.pkp_page_index .journals .description p {
    display: none !important;
}


/* ==================================================
   10. TOMBOL VIEW JOURNAL & CURRENT ISSUE
   ================================================== */

.pkp_page_index .journals .links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;
}

.pkp_page_index .journals .links li {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_page_index .journals .links li a {
    display: inline-block;

    min-width: 130px;
    padding: 7px 12px;

    border-radius: 3px;
    background: #0090d7;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none;

    font-size: 12px;
    line-height: 1.2;

    transition: all .3s ease-in-out;
    box-shadow: 0 .3rem 1.525rem -.375rem #0090d78a;
}

.pkp_page_index .journals .links li a:hover {
    background: #2e7a25;
    box-shadow: none;
}

.pkp_page_index .journals .links li a:after {
    content: "\f101";
    font-family: FontAwesome;
    visibility: hidden;
    margin-left: -10px;
    transition: all .3s ease-in-out;
    opacity: 0;
}

.pkp_page_index .journals .links li a:hover:after {
    visibility: visible;
    margin-left: 5px;
    opacity: 1;
}


/* ==================================================
   11. RESPONSIVE
   ================================================== */

/* Laptop kecil / tablet landscape: 2 kolom */
@media only screen and (max-width: 1100px) {
    .pkp_page_index .journals > ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 kolom */
@media only screen and (max-width: 700px) {
    .pkp_page_index .journals > ul {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pkp_page_index .journals > ul > li {
        grid-template-columns: 95px 1fr;
        column-gap: 14px;
        min-height: 160px;
        padding: 14px !important;
    }

    .pkp_page_index .journals > ul > li:not(.has_thumb)::before {
        width: 95px;
        height: 125px;
    }

    .pkp_page_index .journals .thumb {
        width: 95px !important;
        height: 125px !important;
    }

    .pkp_page_index .journals .thumb:empty::before {
        width: 90px;
        height: 120px;
    }

    .pkp_page_index .journals .thumb img,
    .pkp_page_index .journals img {
        max-width: 90px !important;
        max-height: 120px !important;
    }

    .pkp_page_index .journals h3 {
        font-size: 13px;
    }

    .pkp_page_index .journals .links li a {
        min-width: 115px;
        font-size: 11px;
        padding: 6px 10px;
    }
}


/* ==================================================
   12. FOOTER BRAND OJS
   ================================================== */

.pkp_brand_footer {
    padding: 0;
}

.pkp_brand_footer img {
    display: none;
}


/* ==================================================
   13. USER NAVIGATION
   ================================================== */

.pkp_navigation_user.pkp_navigation_user {
    margin: 0;
    padding: 2px;
    border: none;
}


/* ==================================================
   14. OPTIONAL THUMB CLASS
   ================================================== */

.has_thumb {
    width: auto !important;
}
/* ==================================================
   22. PERBAIKAN POSISI & WARNA TEKS LOGO DI HP
   ================================================== */
@media only screen and (max-width: 700px) {
    /* Sembunyikan gambar logo asli */
    .pkp_site_name .is_img img {
        display: none !important;
    }

    /* Jadikan container site name sebagai flex container di dalam header hitam */
    .pkp_site_name {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 10px !important;
        margin: 0 !important;
        min-height: 50px !important;
    }

    /* Masukkan dan ubah teks menjadi putih di dalam area hitam */
    .pkp_site_name::after {
        content: "SAKSAMA: JURNAL SASTRA" !important;
        display: inline-block !important;
        font-size: 14px !important;
        font-weight: bold !important;
        color: #ffffff !important; /* Warna teks putih */
        text-align: left !important;
        margin-left: 10px !important;
        font-family: inherit !important;
        line-height: 1.2 !important;
    }
}
/* ==================================================
   23. HEADER FLOATING KHUSUS MODE MOBILE (HP)
   ================================================== */
@media only screen and (max-width: 700px) {
    .pkp_structure_head,
    header.pkp_structure_head {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    }
}
/* ==================================================
   24. UBAH KOTAK JUDUL SIDEBAR (ABOUT) MENJADI HITAM & PUTIH
   ================================================== */
.pkp_block .title,
.block .title,
.pkp_block_about .title {
    background-color: #0000 !important; /* Latar belakang hitam */
    color: #000 !important;           /* Tulisan putih */
}

/* Pastikan juga jika judulnya menggunakan tag <h2> atau <h3> di dalamnya ikut berubah warna */
.pkp_block .title h2,
.pkp_block .title h3,
.block .title h2,
.block .title h3,
.pkp_block_about .title h2,
.pkp_block_about .title h3 {
    color: #ffffff !important;
}
/* ==================================================
   16. UBAH GARIS BAWAH ABOUT MENJADI MERAH
   ================================================== */

.pkp_block_about .title,
.block_about .title,
.pkp_block .title {
    border-bottom-color: #ff0000 !important; /* Warna merah */
}

/* Atau jika garis tersebut dibuat menggunakan pseudo-element / background */
.pkp_block_about, 
.block_about {
    border-color: #ff0000 !important;
}
/* ==================================================
   17. HOVER HIGHLIGHT ITEM SIDEBAR (BACKGROUND MERAH, TEKS PUTIH)
   ================================================== */

/* Targetkan tag link (<a>) di dalam sidebar block */
.pkp_block .content ul li a,
.block .content ul li a,
.pkp_block_about .content ul li a {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.4s ease-in-out !important; /* Efek transisi halus saat masuk & keluar */
}

/* Efek saat mouse mendekat (Hover) */
.pkp_block .content ul li a:hover,
.block .content ul li a:hover,
.pkp_block_about .content ul li a:hover {
    background-color: #990000 !important; /* Latar belakang merah */
    color: #ffffff !important;           /* Teks berubah menjadi putih */
    text-decoration: none !important;
    padding-left: 14px;                  /* Sedikit geser ke kanan untuk efek interaktif */
}
/* ==================================================
   26. UBAH GARIS BAWAH JUDUL KONTEN UTAMA (CURRENT ISSUE) MENJADI MERAH
   ================================================== */
.pkp_page_index h2,
.pkp_page_index .section_title,
h2.pkp_page_index,
.current_issue_title,
.obj_issue_toc h2 {
    border-bottom: 2px solid #ff0000 !important;
}

/* Jika garis tersebut menggunakan elemen garis bawah terpisah (border-bottom pada wadah teks) */
.pkp_page_index .heading, 
.page_index h2 {
    border-color: #ff0000 !important;
}
/* ==================================================
   29. UBAH HOVER TOMBOL PDF ARTIKEL MENJADI MERAH MARUN
   ================================================== */
.obj_article_summary .actions a.obj_article_link,
.obj_article_summary .btn:hover,
.obj_article_summary .btn:focus,
.obj_article_summary a.file:hover,
.obj_article_summary a.file:focus,
.pkp_summary_panel .file:hover,
.obj_article_summary .pdf:hover,
a.obj_article_link.pdf:hover {
    background-color: #990000 !important;
    background: #990000 !important;
    border-color: #990000 !important;
    color: #ffffff !important;
}

/* Menyeluruh untuk semua tombol tipe file/PDF di daftar artikel */
.obj_article_summary .pub_id + .actions a:hover,
.obj_article_summary .galleys_links a:hover {
    background-color: #990000 !important;
    border-color: #990000 !important;
    color: #ffffff !important;
}
/* ==================================================
   30. HILANGKAN GARIS BORDER KOTAK ARTIKEL
   ================================================== */
.obj_article_summary,
.pkp_summary_panel,
.article_summary {
    border: none !important;
    box-shadow: none !important;
}
/* ==================================================
   31. HILANGKAN CORAK/BACKGROUND LATAR BELAKANG KIRI KANAN
   ================================================== */
body, 
.pkp_site_name, 
.pkp_structure_page,
.pkp_structure_body {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Memperlebar container utama agar memenuhi layar */
.pkp_structure_page {
    max-width: 100% !important;
    padding: 0 !important;
}
/* ==================================================
   32. SERAGAMKAN WARNA HITAM FULL HEADER & NAVIGASI
   ================================================== */
.pkp_structure_head,
.pkp_header_wrapper,
header.pkp_structure_head,
.pkp_head_wrapper,
.navigation_bar_wrapper {
    background-color: #000000 !important;
    background: #000000 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Menghilangkan kotak pembatas putih atau abu-abu di sekitar area logo */
.pkp_site_name, 
.pkp_structure_head .pkp_head_wrapper {
    background-color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==================================================
   42. KEMBALIKAN HALAMAN UTAMA JADI PUTIH, HANYA HEADER YANG HITAM
   ================================================== */
/* Kembalikan latar halaman utama menjadi putih */
body, 
.pkp_structure_page,
.pkp_structure_body {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Hanya merapikan bagian atas pembatas halaman paling luar */
html {
    background-color: #fff !important;
}

/* Memastikan area teks konten kembali gelap/terbaca normal di atas background putih */
.pkp_structure_main,
.pkp_structure_main p,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main span {
    color: inherit;
}
/* ==================================================
   
/* ==================================================
   15. SEMBUNYIKAN TOMBOL / FORM SEARCH
   ================================================== */

.pkp_site_nav_search, 
.pkp_search {
    display: none !important;
}
/* ==================================================
   45. KUNCI TOTAL BILAH NAVIGASI UTAMA AGAR HITAM & SEJAJAR
   ================================================== */
.pkp_structure_head nav,
.pkp_navigation_primary_row,
.pkp_navigation_primary,
.cmp_navigation_primary,
nav.pkp_navigation_primary_row,
.pkp_head_wrapper nav {
    background-color: #000000 !important;
    background: #000000 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Memastikan daftar menu dan tautan di dalamnya berwarna putih dan lurus ke samping */
.pkp_navigation_primary,
.cmp_navigation_primary ul,
.pkp_navigation_user {
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_primary > li,
.cmp_navigation_primary li,
.pkp_navigation_user > li {
    white-space: nowrap !important;
}

.pkp_navigation_primary > li > a,
.cmp_navigation_primary a,
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    background-color: transparent !important;
}

/* Efek saat menu di-hover / disentuh kursor menjadi merah marun */
.pkp_navigation_primary > li > a:hover,
.cmp_navigation_primary a:hover,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a:active {
    background-color: #990000 !important;
    color: #ffffff !important;
}
/* ==================================================
   42. KEMBALIKAN HALAMAN UTAMA JADI PUTIH, HANYA HEADER YANG HITAM
   ================================================== */
/* Kembalikan latar halaman utama menjadi putih */
body, 
.pkp_structure_page,
.pkp_structure_body {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Hanya merapikan bagian atas pembatas halaman paling luar */
html {
    background-color: #000 !important;
}

/* Memastikan area teks konten kembali gelap/terbaca normal di atas background putih */
.pkp_structure_main,
.pkp_structure_main p,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main span {
    color: inherit;
}
/* ==================================================
   57. PERBAIKAN FINAL MENU MOBILE (TERSEMBUNYI SECARA DEFAULT)
   ================================================== */
@media only screen and (max-width: 700px) {
    /* Sembunyikan total menu navigasi saat belum diklik */
    .pkp_navigation_primary_row,
    .pkp_navigation_primary,
    .cmp_navigation_primary,
    .pkp_navigation_user {
        display: none !important;
    }

    /* Hanya tampilkan (jadi block vertikal) HANYA KETIKA kelas pemicu aktif dari OJS */
    .pkp_navigation_primary_row.is_visible,
    .pkp_navigation_primary_row.open,
    .pkp_navigation_primary.is_visible,
    .pkp_navigation_primary.open,
    .cmp_navigation_primary.is_visible,
    .cmp_navigation_primary.open,
    .pkp_head_wrapper .is_visible,
    .pkp_head_wrapper .open,
    .pkp_structure_head .is_visible,
    .pkp_structure_head .open {
        display: block !important;
        width: 100% !important;
        background-color: #000000 !important;
    }

    /* Susun item di dalam laci secara vertikal rapi */
    .pkp_navigation_primary.is_visible,
    .pkp_navigation_primary.open,
    .cmp_navigation_primary.is_visible,
    .cmp_navigation_primary.open,
    .pkp_navigation_user.is_visible,
    .pkp_navigation_user.open {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pkp_navigation_primary.is_visible > li,
    .pkp_navigation_primary.open > li,
    .cmp_navigation_primary.is_visible li,
    .cmp_navigation_primary.open li,
    .pkp_navigation_user.is_visible > li,
    .pkp_navigation_user.open > li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pkp_navigation_primary.is_visible > li > a,
    .pkp_navigation_primary.open > li > a,
    .cmp_navigation_primary.is_visible a,
    .cmp_navigation_primary.open a,
    .pkp_navigation_user.is_visible > li > a,
    .pkp_navigation_user.open > li > a {
        display: block !important;
        width: 100% !important;
        padding: 12px 15px !important;
        color: #ffffff !important;
        background-color: transparent !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_primary > li > a:hover,
    .cmp_navigation_primary a:hover,
    .pkp_navigation_user > li > a:hover {
        background-color: #990000 !important;
        color: #ffffff !important;
    }
}
