/* =========================
   SAFE OJS 3.5 FOOTER FIX
   ========================= */

/* Jangan paksa tinggi konten */
.pkp_structure_main,
.pkp_structure_content,
.obj_article_details,
.obj_issue_summary,
.page_article,
.page_issue {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Footer */
.pkp_structure_footer_wrapper {
    clear: both !important;
    margin-top: 20px !important;
}

.pkp_footer_content,
.pkp_brand_footer {
    min-height: 0 !important;
    height: auto !important;
}

/* Logo PKP */
.pkp_brand_footer img {
    max-width: 100%;
    height: auto;
}

/* Kartu artikel */
.obj_article_summary.custom-article-card {
    position: relative;
    margin: 0 0 42px;
    padding: 14px 13px 20px;
    background: #fff;
    border: 1px solid #17293a;
    border-radius: 0 18px 0 0;
    box-shadow: 8px 8px 0 #17293a;
    overflow: visible;
}

/* Header judul dan halaman */
.article_summary_header {
    position: relative;
    padding-right: 90px;
    margin-bottom: 9px;
}

.article_summary_header .title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.article_summary_header .title a {
    color: #1d3042;
    text-decoration: none;
}

.article_summary_header .title a:hover {
    color: #c83f36;
    text-decoration: underline;
}

.article_summary_pages {
    position: absolute;
    top: 4px;
    right: 0;
    color: #777;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

/* Ikon dan data penulis */
.article_summary_author_icon {
    margin: 7px 0 5px;
    color: #d8493f;
    font-size: 18px;
}

.article_summary_authors {
    margin-bottom: 8px;
}

.article_summary_author {
    margin: 2px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.35;
    color: #252525;
}

.article_summary_author_name {
    font-weight: 700;
}

/* DOI */
.article_summary_doi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 9px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.article_summary_doi a {
    color: #263e55;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.article_summary_doi_icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    margin-right: 2px;
    border-radius: 50%;
    background: #f4b73b;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

/* Footer tombol PDF dan statistik */
.article_summary_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.article_summary_footer .galleys_links {
    display: inline-flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article_summary_footer .galleys_links li {
    margin: 0;
}

.article_summary_footer .galleys_links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 4px;
    background: #172d40;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.article_summary_footer .galleys_links a:hover {
    background: #c83f36;
    color: #fff;
}

.article_summary_statistics {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.article_summary_stat {
    white-space: nowrap;
}

.article_summary_divider {
    color: #777;
}

.article_summary_published {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

/* Tampilan mobile */
@media (max-width: 768px) {
    .obj_article_summary.custom-article-card {
        padding: 14px 12px 18px;
        box-shadow: 5px 5px 0 #17293a;
    }

    .article_summary_header {
        padding-right: 0;
    }

    .article_summary_pages {
        position: static;
        margin-top: 7px;
    }

    .article_summary_header .title {
        font-size: 17px;
    }

    .article_summary_author,
    .article_summary_doi,
    .article_summary_statistics {
        font-size: 16px;
    }
}