/* ============================================================ 
   1. LAYOUT & HEADER (IDENTITAS TIFDA)
   ============================================================ */
.pkp_site_name.is_img img {
    display: inline-block;
    max-height: 165px;
    max-width: 100%;
    width: auto;
    height: auto;
}

.pkp_structure_content {
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex;
    flex-wrap: wrap;
}

.pkp_structure_main {
    flex-basis: 75%;
    max-width: 75%;
    padding-right: 30px;
}

.pkp_structure_sidebar {
    flex-basis: 25%;
    max-width: 25%;
}

.navbar-brand img {
    max-height: 80px; 
    width: auto;
    margin-bottom: 10px; 
    margin-top: -30px;
}

.navbar-default,
.header_view {
    background-color: #176c00 !important;
    border-color: #176c00 !important;
}

/* ============================================================
   2. STYLING BLOK ARTIKEL (ZEBRA STYLE)
   ============================================================ */

/* Menghilangkan padding list bawaan */
.issue-toc .section .media-list {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

/* Base style untuk setiap kotak artikel
   (OJS pakai <div class="article-summary media">) */
.issue-toc .section .media-list > .article-summary.media,
.obj_article_summary {
    display: block !important;
    width: 100% !important;
    padding: 20px 25px !important;
    margin-bottom: 15px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    clear: both;
    background-color: transparent !important; /* reset */
}

/* Artikel terakhir tidak punya jarak bawah besar */
.issue-toc .section .media-list > .article-summary.media:last-child,
.obj_article_summary:last-child {
    margin-bottom: 0 !important;
}

/* --- WARNA SELANG-SELING (ZEBRA) --- */
.issue-toc .section .media-list > .article-summary.media:nth-child(odd) {
    background-color: #ffffff !important;   /* putih */
}

.issue-toc .section .media-list > .article-summary.media:nth-child(even) {
    background-color: #f4f9f2 !important;   /* hijau muda lembut */
    border-color: #d8e6d5 !important;
}

/* Hover: sedikit highlight */
.issue-toc .section .media-list > .article-summary.media:hover {
    border-color: #176c00 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    background-color: #ecf5ea !important;
}

/* ============================================================
   3. DETAIL ELEMEN (JUDUL & TOMBOL PDF)
   ============================================================ */

.issue-toc .section .media-list .title a,
.obj_article_summary .title a {
    color: #176c00 !important;
    font-weight: bold !important;
    font-size: 18px !important;
    text-decoration: none;
}

.issue-toc .section .media-list .title a:hover {
    text-decoration: underline;
}

.issue-toc .section .media-list .galleys_links a.pdf,
.issue-toc .section .media-list .btn-primary,
.obj_article_summary .pdf {
    background: #176c00 !important;
    background: linear-gradient(180deg, #1e8a00 0%, #176c00 100%) !important;
    border: 1px solid #125600 !important;
    color: #ffffff !important;
    padding: 7px 18px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    display: inline-block !important;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.issue-toc .section .media-list .pages {
    float: right;
    font-weight: bold;
    color: #888;
}

/* ============================================================
   4. PERBAIKAN JARAK KE TOMBOL VIEW ALL ISSUES
   ============================================================ */

/* Rapatkan ruang kosong di bawah daftar artikel */
.page_index_journal .issue-toc {
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
}

/* Rapatkan tombol View All Issues ke daftar artikel */
.page_index_journal .pkp_structure_main a.btn.btn-primary[href*="issue/archive"] {
    margin-top: 5px !important;
    display: inline-block;
}

/* ============================================================
   5. FOOTER & CLEANUP
   ============================================================ */
.pkp_footer_content {
    float: left;
    width: 70%;
    padding-top: 10px;
    padding-bottom: 10px;
}
.pkp_brand_footer {
    float: right;
    width: 30%;
    padding-top: 10px;
    padding-bottom: 10px;
}
#pkp_brand_footer {
    display: none !important;
}

img,
table {
    max-width: 100%;
    height: auto;
}
