/* ==========================================================================
   ITEE JOURNAL - COMPLETE CUSTOM STYLESHEET (OJS 3.4)
   Includes: Compact Article Cards, DOI/Views, Sidebar Spacing,
             Blue Additional Menu (Table & List) & Compact White Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DAFTAR ARTIKEL (CARD STYLE, JARAK RAPAT, PDF BUTTON, DOI & VIEWS)
   -------------------------------------------------------------------------- */
.cmp_article_list > li {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.obj_article_summary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #006798;
    border-radius: 10px;
    padding: 16px 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 103, 152, 0.10);
    border-color: #cbd5e1;
    border-left-color: #0284c7;
}

.obj_article_summary .title {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.obj_article_summary .title a {
    color: #0f4c75;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.obj_article_summary .title a:hover {
    color: #0284c7;
    text-decoration: none;
}

.obj_article_summary .meta {
    margin-bottom: 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.obj_article_summary .authors {
    color: #475569;
    font-size: 0.92em;
    line-height: 1.5;
    padding-right: 0 !important;
}

.obj_article_summary .pages {
    position: static !important;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Tombol PDF */
.obj_article_summary .galleys_links {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.obj_article_summary .galleys_links .obj_galley_link.pdf {
    background: #006798;
    color: #ffffff !important;
    border: 1px solid #006798;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.obj_article_summary .galleys_links .obj_galley_link.pdf:before {
    color: #ffffff !important;
}

.obj_article_summary .galleys_links .obj_galley_link.pdf:hover {
    background: #034e73;
    border-color: #034e73;
    box-shadow: 0 3px 8px rgba(0, 103, 152, 0.25);
}

/* Metadata DOI & Views */
.obj_article_summary .custom-article-meta {
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.obj_article_summary .article-doi {
    margin-bottom: 0 !important;
    font-size: 0.88em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.obj_article_summary .article-doi strong {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85em;
    letter-spacing: 0.3px;
}

.obj_article_summary .article-doi a {
    color: #0284c7;
    text-decoration: none;
    word-break: break-all;
}

.obj_article_summary .article-doi a:hover {
    text-decoration: underline;
    color: #0369a1;
}

.obj_article_summary .article-metrics {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap;
    align-items: center;
}

.obj_article_summary .abstract-views,
.obj_article_summary .pdf-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.obj_article_summary .abstract-views {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.obj_article_summary .pdf-views {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* --------------------------------------------------------------------------
   2. JARAK SIDEBAR & TAMPILAN UTAMA (DESKTOP)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .pkp_structure_sidebar {
        padding-left: 24px !important;
        box-sizing: border-box;
    }
}

/* --------------------------------------------------------------------------
   3. SIDEBAR & ADDITIONAL MENU (KOTAK BIRU - TABLE & LIST)
   -------------------------------------------------------------------------- */
.pkp_structure_sidebar .pkp_block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pkp_structure_sidebar .pkp_block .title {
    display: block;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    color: #0f4c75 !important;
    padding-bottom: 10px;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.pkp_structure_sidebar .pkp_block .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 45px;
    height: 2px;
    background: #006798;
}

/* List Menu Bawaan Sidebar (Non-Custom Block) */
.pkp_structure_sidebar .pkp_block .content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

.pkp_structure_sidebar .pkp_block .content ul li a {
    display: block;
    padding: 8px 12px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pkp_structure_sidebar .pkp_block .content ul li a:hover {
    background: #006798;
    color: #ffffff !important;
    border-color: #006798;
    padding-left: 16px;
}

/* FIX ADDITIONAL MENU (CUSTOM BLOCK): PAKSA SEMUA ITEM JADI KOTAK BIRU */
/* A. Jika isi berupa TABLE */
.pkp_structure_sidebar .block_custom table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 7px !important;
    margin: 0 !important;
}

.pkp_structure_sidebar .block_custom table td {
    background: #006798 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    text-align: left !important;
    border: none !important;
    transition: background 0.2s ease;
}

.pkp_structure_sidebar .block_custom table td:hover {
    background: #0284c7 !important;
}

.pkp_structure_sidebar .block_custom table td a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px !important;
    color: #ffffff !important;
    font-size: 0.88em;
    font-weight: 600;
    text-decoration: none !important;
}

.pkp_structure_sidebar .block_custom table td a::after {
    content: "›";
    font-size: 1.2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

/* B. Jika isi berupa UL / LIST (dengan atau tanpa class) */
.pkp_structure_sidebar .block_custom .content ul,
ul.itee-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pkp_structure_sidebar .block_custom .content ul li,
ul.itee-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_structure_sidebar .block_custom .content ul li a:not(:has(img)),
ul.itee-menu-list li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px !important;
    background: #006798 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 103, 152, 0.15);
    transition: all 0.2s ease;
}

.pkp_structure_sidebar .block_custom .content ul li a:not(:has(img))::after,
ul.itee-menu-list li a::after {
    content: "›";
    font-size: 1.2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease;
}

.pkp_structure_sidebar .block_custom .content ul li a:not(:has(img)):hover,
ul.itee-menu-list li a:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    padding-left: 14px !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.28);
}

.pkp_structure_sidebar .block_custom .content ul li a:not(:has(img)):hover::after,
ul.itee-menu-list li a:hover::after {
    color: #ffffff;
    transform: translateX(3px);
}

/* Aksen khusus Generative AI Policy (Biru Navy) */
ul.itee-menu-list li a.highlight-menu {
    background: #0f4c75 !important;
}

ul.itee-menu-list li a.highlight-menu:hover {
    background: #0369a1 !important;
}

/* Tombol Make a Submission & CTA Sidebar */
.pkp_structure_sidebar .block_make_submission .block_make_submission_link,
.pkp_structure_sidebar .pkp_block .content a.btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #006798 0%, #0284c7 100%);
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 103, 152, 0.2);
    transition: all 0.25s ease;
}

.pkp_structure_sidebar .block_make_submission .block_make_submission_link:hover,
.pkp_structure_sidebar .pkp_block .content a.btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 103, 152, 0.3);
    filter: brightness(1.05);
}

.pkp_structure_sidebar .pkp_block .content p:empty {
    display: none;
}

.pkp_structure_sidebar .pkp_block .content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. FOOTER FULL WIDTH, RAMPING, LATAR BIRU HEADER & TEKS PUTIH
   -------------------------------------------------------------------------- */
.pkp_structure_footer_wrapper {
    background: #006798 !important; /* Warna biru header (ubah kode hex jika warna header sedikit berbeda) */
    color: #ffffff !important;
    border-top: 3px solid #0284c7;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 0 !important;
    padding: 0 !important;
}

.pkp_structure_footer {
    max-width: 1160px; /* Menjaga isi teks tetap sejajar rapi di tengah */
    margin: 0 auto !important;
    padding: 12px 20px !important; /* Tinggi ramping */
    min-height: auto !important;
}

.pkp_footer_content {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.82em;
    line-height: 1.45;
    color: #ffffff !important;
}

/* Memaksa semua teks, span, p, strong di dalam footer jadi putih */
.pkp_footer_content p,
.pkp_footer_content span,
.pkp_footer_content td,
.pkp_footer_content strong,
.pkp_footer_content b {
    color: #ffffff !important;
}

.pkp_footer_content table {
    margin: 0 !important;
    border-collapse: collapse;
}

.pkp_footer_content td {
    padding: 2px 14px 2px 0 !important;
    vertical-align: middle;
}

.pkp_footer_content p {
    margin: 0 0 4px 0 !important;
}

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

/* Link di footer berwarna putih / biru sangat muda saat hover */
.pkp_structure_footer a {
    color: #e0f2fe !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pkp_structure_footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/* QR Code diberi latar putih tipis agar tetap mudah di-scan */
.pkp_footer_content img[src*="qr"],
.pkp_footer_content td:first-child img {
    max-height: 95px !important;
    width: auto !important;
    background: #ffffff;
    padding: 4px;
    border-radius: 6px;
}

/* Hilangkan Logo PKP / OJS */
.pkp_brand_footer {
    display: none !important;
}

/* --------------------------------------------------------------------------
   5. RATA KANAN-KIRI (JUSTIFY) UNTUK ABSTRACT & REFERENCES ARTIKEL
   -------------------------------------------------------------------------- */
.obj_article_details .abstract,
.obj_article_details .abstract p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.7;
}

.obj_article_details .references,
.obj_article_details .references .value,
.obj_article_details .references p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.6;
}