/* =========================================================
   RESWARA JOURNAL - CUSTOM CSS (CLEAN & OPTIMIZED)
   ========================================================= */

/* =========================================================
   1. BACKGROUND WEBSITE
   ========================================================= */
html, body {
    background: url(https://ittelkom-pwt.ac.id/wp-content/uploads/2020/09/motif-background.jpg);
    background-size: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================================================
   2. HOMEPAGE & ABOUT SECTION
   ========================================================= */
.homepage_image {
    display: inline-block;
    width: 28%;
    margin-left: 0;
    float: right;
}

.homepage_image img {
    margin: 60px 0 0 -20px;
    box-shadow: 4px 2px 5px gray;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.homepage_about {
    display: inline-block;
    width: 70%;
}

.homepage_about p {
    text-align: justify;
}

.current_issue {
    display: block;
}

/* Menyembunyikan gambar cover bawaan di samping tabel agar tabel lebar penuh */
.page_index_journal .homepage_about_image,
.page_index_journal .cover_image {
    display: none !important;
}

/* =========================================================
   3. NAVIGATION USER
   ========================================================= */
.pkp_navigation_user > li > a {
    color: #fd9903;
    background: transparent;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: #e88900;
    background: transparent !important;
}

/* =========================================================
   4. CUSTOM HEADER RESWARA (FULL WIDTH CONTAINER)
   ========================================================= */
#header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: #fff;
    position: relative;
    box-sizing: border-box;
    z-index: 100;
}

#header > .contained,
#header .pkp_navigation_user_wrapper,
#header .pkp_header_wrapper,
#header .pkp_navigation_primary_wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pkp_structure_head {
    width: 100% !important;
    background: #527487;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_name {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.pkp_site_name > a,
.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name img,
.pkp_site_name .is_img img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: cover !important;
}

/* =========================================================
   5. LAYOUT UTAMA (KONTEN & SIDEBAR)
   ========================================================= */
.pkp_structure_content,
.pkp_structure_content.has_sidebar,
.page_index_journal,
.pkp_page_index {
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.pkp_structure_main {
    float: left !important;
    width: 73% !important;
    max-width: 73% !important;
    padding-right: 20px !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.page_index_journal .journal_summary,
.pkp_structure_main .description,
.pkp_structure_main .content {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.page_index_journal table,
.pkp_structure_main table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.page_index_journal table td,
.pkp_structure_main table td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.15 !important;
}

.page_index_journal p,
.pkp_structure_main p,
.pkp_structure_main .description {
    text-align: justify !important;
    text-justify: inter-word !important;
    word-break: normal !important;
    width: 100% !important;
}

.pkp_structure_sidebar {
    float: right !important;
    width: 25% !important;
    max-width: 25% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   6. STYLE SIDEBAR BLOCK & CARDS
   ========================================================= */
.pkp_block {
    padding: 2.143rem 1.43rem;
    font-size: 1rem;
    line-height: 1.43rem;
    width: 300px;
    max-width: 100%;
}

.sidebar-container {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-block, .card {
    background-color: #f0f3f3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    background-color: #4b7d92;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-menu, .menu-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.card-menu li a, .menu-list li a {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    color: #0056b3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.card-menu li a:hover, .menu-list li a:hover {
    background-color: #f0f4f8;
    color: #003366;
}

.card-menu li a::before, .menu-list li a::before {
    content: "›";
    margin-right: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #0056b3;
}

.block-submission {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.btn-submission {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background-color: #4b7d92;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.8px;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submission:hover {
    background-color: #3b6577;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.pkp_announcements .title a,
.cmp_announcements .title a,
.pkp_structure_sidebar .block_custom a,
.pkp_structure_sidebar .pkp_block a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* =========================================================
   7. STYLE DAFTAR ARTIKEL 
   ========================================================= */
.issue_toc h3, 
.cmp_article_list > h2,
.cmp_article_list > h3 {
    color: #858e96;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 25px;
    border-bottom: 1px solid transparent; 
}

.issue_toc h3::after,
.cmp_article_list > h2::after,
.cmp_article_list > h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #f6ad55; 
}

.obj_article_summary {
    background-color: #f0f3f3; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    border-right: 5px solid #4b7d92; 
    border-bottom: 5px solid #4b7d92; 
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.obj_article_summary .title {
    margin-bottom: 10px;
    line-height: 1.4;
}

.obj_article_summary .title a {
    color: #47688c;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.obj_article_summary .title a:hover {
    color: #0010a3;
    text-decoration: none;
}

.obj_article_summary .authors {
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.obj_article_summary .pages {
    color: #64748b;
    font-size: 0.95rem;
    float: right; 
    margin-top: -35px; 
}

.obj_article_summary .galleys_links {
    margin-top: 10px;
}

.obj_article_summary .galley_link {
    background-color: #0010a3 !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.obj_article_summary .galley_link:hover {
    background-color: #000c7a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* =========================================================
   8. ELEMEN YANG DISEMBUNYIKAN (FOOTER & AUTHOR)
   ========================================================= */
.pkp_brand_footer, 
a.pkp_brand_footer,
.pkp_footer_content .pkp_brand_footer,
.pkp_brand_footer_widget,
a[href*="pkp.sfu.ca"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.item.author_biography,
.author_bios,
.section.author_biographies {
    display: none !important;
}

/* =========================================================
   9. MEDIA QUERIES (TABLET & MOBILE) - WAJIB DI PALING BAWAH
   ========================================================= */
@media (max-width: 991px) {
    .pkp_structure_main {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
    }

    .pkp_structure_sidebar {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-top: 30px;
    }

    .homepage_about {
        margin-top: 30px;
        width: 100%;
    }

    .homepage_image {
        width: 40%;
    }

    .homepage_image img {
        max-width: 100%;
        height: auto;
    }

    .pkp_site_name img {
        max-width: 280px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .homepage_image {
        width: 90%;
        margin: 0 auto;
        float: none;
        display: block;
    }

    .homepage_image img {
        margin: 20px 0;
    }

    .pkp_structure_head,
    .pkp_site_name_wrapper,
    .pkp_site_name {
        width: 100%;
    }

    .pkp_site_name_wrapper {
        padding: 0;
    }

    .pkp_site_name img {
        max-width: 220px;
    }
}

@media (max-width: 360px) {
    .homepage_about {
        margin-top: 0;
    }
    
    .pkp_site_name img {
        max-width: 180px;
    }
}
/* =========================================================
   10. PERBAIKAN SPASI RIGID TABEL INFORMASI JURNAL
   ========================================================= */

/* 1. Atur tinggi baris (line-height) dan hilangkan padding berlebih sel tabel */
.page_index_journal table td,
.pkp_structure_main table td,
.page_index_journal table th,
.pkp_structure_main table th {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    line-height: 1.15 !important;
    vertical-align: top !important;
}

/* 2. HILANGKAN MARGIN PARAGRAF DI DALAM TABEL (Penyebab utama spasi renggang) */
.page_index_journal table td p,
.pkp_structure_main table td p,
.page_index_journal table p,
.pkp_structure_main table p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
}

/* 3. Atur spasi antar baris (row spacing) tabel */
.page_index_journal table tr,
.pkp_structure_main table tr {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}