/* ==================================================
   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;
}