/**
 * =================================================================
 * File CSS Tema Jurnal OJS 3 - "JIGM Theme" (Fixed & Cleaned)
 * =================================================================
 */

/* --- Variabel Warna Tema --- */
:root {
  --warna-utama: #1e3a5f;          /* Biru tua */
  --warna-aksen: #e74c3c;          /* Merah muda */
  --warna-teks: #2c3e50;           /* Abu-abu gelap */
  --warna-teks-utama: #1e3a5f;     /* Biru tua */
  --warna-teks-putih: #ffffff;     /* Putih */
  --warna-error: #e74c3c;          /* Merah error */
  --font-judul: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Normalisasi & Pengaturan Dasar --- */
html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: whitesmoke;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

fieldset.reviewer {
   display: none;
}
.pkp_nav_list ul {
  background: #fff;
}
.pkp_page_index .homepage_about h2 {
   display: none;
}
.pkp_page_index .homepage_about {
    padding-top: 0 !important;
}
.pkp_page_index .current_issue .current_issue_title {
  margin: 0.43rem;
}
.obj_issue_toc .sections:not(:first-child){
    margin: 0rem;
}

/* BAGIAN YANG DIHAPUS: Kode obj_article_summary lama yang bentrok saya hapus disini */

.pkp_navigation_search_wrapper a{
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 2px;
}

a {
  color: #0285bc !important;
  text-decoration: none !important;
}
a:hover, a:focus {
  color: #7e0000;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Struktur Halaman Utama --- */
.pkp_structure_page {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  background: #ffffff;
  box-sizing: border-box;
}
.pkp_site_name {
  width: 100%;
  box-sizing: border-box;
}

.pkp_site_name .is_img {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.pkp_site_name .is_img img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@media (min-width: 1200px) {
  .pkp_structure_page {
    margin-top: 5px;
    margin-bottom: 0px;
  }
}

.doiInSummary{
  margin: -5px 0 5px 2px;
    font-size: 12px;
}
.pkp_navigation_user a {
    padding-top: .357rem;
    padding-bottom: .357rem;
    line-height: 1.43rem;
    margin-right: 0px !important;
    padding: 8px 15px 3px 11px;
    border-bottom: 2px solid #7e0100;
}
.pkp_site_nav_menu {
  border-top: 2px solid #8b0000;
  border-bottom: 2px solid #7e0000;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.pkp_structure_content {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  background: #ffffff !important;
  box-sizing: border-box;
  max-width: 100%;
}
@media (min-width: 992px) {
    .pkp_structure_content {
        background: #fff;
    }
}

/* --- Media Queries Responsive --- */
@media (max-width: 479px) {
  .pkp_structure_page { padding: 0; margin: 0; }
  .pkp_site_name .is_img img { width: 100%; height: auto; }
  .pkp_structure_content { padding: 10px; }
  .pkp_structure_main { width: 100% !important; float: none !important; padding: 0 !important; box-sizing: border-box; }
  .pkp_structure_sidebar { width: 100% !important; float: none !important; padding: 10px 0 0 0 !important; box-sizing: border-box; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .pkp_structure_page { max-width: 100%; }
  .pkp_structure_content { background: #fff; padding: 12px; }
  .pkp_site_name .is_img img { width: 100%; height: auto; }
  .pkp_structure_main { width: 70% !important; float: left !important; padding: 0 10px 20px 0 !important; box-sizing: border-box; }
  .pkp_structure_sidebar { width: 29% !important; float: right !important; padding: 0 0 20px 10px !important; box-sizing: border-box; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .pkp_structure_page { max-width: 100%; margin: 0 auto; }
  .pkp_structure_content { background: #fff; padding: 15px; }
  .pkp_site_name .is_img img { width: 100%; height: auto; }
  .pkp_structure_main { width: 70% !important; float: left !important; padding: 0 15px 30px 0 !important; box-sizing: border-box; }
  .pkp_structure_sidebar { width: 29% !important; float: right !important; padding: 0 0 30px 15px !important; box-sizing: border-box; }
}
@media (min-width: 992px) {
  .pkp_structure_page { max-width: 1200px; margin: 0 auto; }
  .pkp_structure_content { background: #fff; padding: 20px; }
  .pkp_structure_main { width: 75% !important; float: left !important; padding: 0 20px 50px 0 !important; box-sizing: border-box; }
  .pkp_structure_sidebar { width: 25% !important; float: right !important; box-sizing: border-box; }
}
.pkp_structure_main {
    background: none;
    border-right: 1px solid #dddd;
    box-sizing: border-box;
}

/* Clearfix */
.pkp_structure_content::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Tipografi & Judul --- */
.pkp_structure_main h1, .pkp_structure_main h2, .pkp_structure_main h3, .pkp_structure_main h4 {
  margin: 40px 0 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.pkp_structure_main h1 { font-size: clamp(1.5rem, 5vw, 24px); line-height: 1.3; font-weight: 700; }
.pkp_structure_main h2 { font-size: clamp(1.25rem, 4vw, 18px); line-height: 1.3; font-weight: 700; }
.pkp_structure_main h3 { font-size: clamp(1.1rem, 3vw, 16px); line-height: 1.3; font-weight: 700; }
.pkp_structure_main h4 { font-size: clamp(1rem, 2.5vw, 14px); line-height: 1.3; font-weight: 700; }
.pkp_structure_main p { text-align: justify; line-height: 1.6; margin: 9px 0; word-break: break-word; }

.elegant-sidebar { text-align: center; }
.sidebar-title {
    font-size: 14px; font-weight: 700; color: #8b0000; text-transform: uppercase;
    letter-spacing: 1.5px; padding-bottom: 8px; margin: 30px 0 0 0;
    border-bottom: 2px solid #8b0000; display: inline-block;
}
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.sidebar-menu li a {
    display: block; color: var(--warna-teks); padding: 7px 15px; border-radius: 5px;
    text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.25s ease-in-out;
}

/* Gaya Template Artikel */
.template-link a {
    display: inline-block; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
    transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.template-link a:hover {
    transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--warna-aksen);
}
.template-link img { display: block; max-width: 220px; width: 100%; }

/* Grid Logo Indeks & Tools */
.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: center; padding: 0 10px; }
.logo-grid a { display: block; transition: transform 0.2s ease; }
.logo-grid a:hover { transform: scale(1.08); }
.logo-grid img { width: 100%; max-width: 120px; filter: grayscale(100%); opacity: 0.8; transition: all 0.3s ease; }
.logo-grid img:hover { filter: grayscale(0%); opacity: 1; }

.visitors-section img { max-width: 100%; margin-bottom: 10px; }
.pkp_structure_main:before, .pkp_structure_main:after{ background: none !important; }

/* --- Header & Navigasi --- */
.pkp_structure_head {
  background-color: #ffffff; border-bottom: none !important; width: 100%;
  box-sizing: border-box; position: relative; z-index: 100;
}
.link-efek {
    position: relative; display: inline-block; padding: 15px 25px;
    text-decoration: none; font-family: sans-serif; font-size: 22px; font-weight: bold;
}
.link-efek::after {
    content: ''; position: absolute; bottom: 0px; left: 0; width: 0%; height: 3px;
    background-color: #ffffff; transition: width 0.4s ease-in-out;
}
.link-efek:hover {
    color: #ffffff; background-position: bottom;
    background: linear-gradient(to bottom, #ffffff,  #8B0000 40%);
    background-size: 100% 200%; background-position: top; color: #8B0000;
    transition: background-position 0.4s ease, color 0.4s ease;
}
.link-efek:hover::after { width: 100%; }
.pkp_site_name_wrapper { background: #ffffff; }
.pkp_site_name .is_text {
  font-family: var(--font-judul); font-size: 24px; font-weight: 700;
  color: var(--warna-utama); text-decoration: none;
}

/* --- Sidebar --- */
.pkp_block { padding: 0px 0px 0px 20px; font-size: 14px; line-height: 20px; }
.pkp_block .title {
  display: block; margin-bottom: 10px; padding-bottom: 0.5em; border-bottom: 3px solid var(--warna-utama);
  font-family: var(--font-judul); font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--warna-teks-utama);
}
.pkp_block .content ul { margin: 0; padding: 0; list-style: none; }
.pkp_block .content ul li {
    background: none; border-bottom: 2px solid #dddd; border-radius: 4px; padding: 0px 0;
    text-align: center; transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.pkp_block .content ul li:hover { color: #ffff; transform: scale(1.02); }
.pkp_block .content ul li a { text-decoration: none; }
.pkp_block .content ul li:hover a { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), #0281b8); }


/* ======================================================
   [FIX UTAMA] TAMPILAN KARTU ARTIKEL & POSISI HALAMAN
   ====================================================== */

/* 1. KARTU UTAMA */
.obj_article_summary {
        position: relative !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: visible !important;
}

/* Hover Effect: Border jadi Emas/Biru */
.obj_article_summary:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 2. JUDUL (Margin Kanan agar tidak nabrak halaman) */
.obj_article_summary .title {
    margin: 0 100px 10px 0 !important;
    font-family: inherit !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
    color: #8b0000 !important;
    text-align: justify !important;
}

.obj_article_summary .title a {
    text-decoration: none !important;
    color: inherit !important;
}
.obj_article_summary .title a:hover {
    color: #0281b8 !important;
}

.obj_article_summary .meta {
    position: static;
    padding-top: 0;
}

/* 3. NOMOR HALAMAN (FIX POJOK KANAN ATAS) */
.obj_article_summary .pages {
 position: absolute !important;
    top: 19px !important;
    right: 8px !important;
    z-index: 10;
    color: #8b0000;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

/* Icon Halaman */
.obj_article_summary .pages::before {
    content: '📄 ';
    font-size: 0.8rem;
    margin-right: 5px;
    opacity: 0.7;
}

/* 4. PENULIS */
.obj_article_summary .authors {
  color: #666;
    font-size: 0.9rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    padding-right: 0 !important;
    margin-right: 100px;
}
.obj_article_summary .authors::before {
    content: '👤';
    margin-right: 8px;
    color: #aaa;
    font-size: 14px;
}

/* 5. TOMBOL & GARIS PEMISAH */
.obj_article_summary .galleys_links {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #cccccc; /* Garis putus-putus */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style Semua Tombol (Default Outline) */
.obj_article_summary .galleys_links a {
   display: inline-flex;
    align-items: center;
    padding: 0px 25px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid #0056b3;
    color: #0056b3 !important;
    transition: all 0.2s;
}

/* Efek Hover Tombol */
.obj_article_summary .galleys_links a:hover {
    background: #0056b3;
    color: #ffffff !important;
}

/* Icon Mata (Default/Abstrak) */
.obj_article_summary .galleys_links a::before {
    content: '👁 ';
    margin-right: 5px;
}

/* Icon Download (Khusus PDF) */
.obj_article_summary .galleys_links a.pdf::before,
.obj_article_summary .galleys_links a[href*="pdf"]::before,
.obj_article_summary .galleys_links a[href*="view"]::before {
    content: '⬇ ';
}

/* Sembunyikan label bawaan OJS */
.obj_article_summary .galleys_links .label {
    display: none;
}

/* --- Lain-lain --- */
.pkp_page_index .current_issue h2 {
  display: inline-block; padding-bottom: 0.5em; border-bottom: 3px solid #dddd;
  text-transform: uppercase; font-weight: 700;
}
.obj_article_details .main_entry .label {
  display: inline-block; padding: 0 0 5px; border-bottom: 3px solid #dddd;
  color: var(--warna-teks-utama); text-transform: uppercase; font-family: var(--font-judul);
}
.cmp_form .pkp_form_error, .page_register #formErrors, .page_lost_password .pkp_form_error {
  background: var(--warna-error); color: var(--warna-teks-putih);
}
.pkp_structure_footer_wrapper {
  border-top: 5px solid var(--warna-utama); background: transparent;
}
.pkp_footer_content { padding: 30px; text-align: left; }
.pkp_brand_footer { display: none; }


@media (min-width: 768px) {
    .obj_article_details .entry_details {
        float: left;
        width: 32%;
        margin: 0 0 0 -1px;
        border-top: none;
        border-left: 1px solid #ddd;
    }
}
@media (min-width: 768px) {
    .obj_article_details .main_entry {
        float: left;
        width: 60%;
        border-right: 1px solid #ddd;
    }
}
