/* =========================================================
   1. STRUCTURE & Z-INDEX HEADER / NAVIGASI UTAMA
   ========================================================= */

/* Memastikan header tidak memotong dropdown yang melayang */
.pkp_site_header,
.pkp_head_wrapper,
.pkp_nav_group {
    overflow: visible !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Memastikan area navigasi berada di lapisan atas */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    position: relative !important;
    z-index: 1001 !important;
    overflow: visible !important;
}

.pkp_navigation_primary > li {
    position: relative !important;
    overflow: visible !important;
}

/* Styling & warna teks menu utama (Putih agar kontras dengan latar #2b082b) */
.pkp_navigation_primary > li > a {
    font-weight: 600;
    color: #ffffff !important;
    padding: 10px 16px !important;
    transition: all 0.25s ease-in-out;
    border-radius: 4px;
    display: block !important;
    line-height: normal !important;
}

/* Hover & Focus state menu utama */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Menu yang sedang aktif / terbuka */
.pkp_navigation_primary > li.is_active > a,
.pkp_navigation_primary > li > a[aria-expanded="true"] {
    color: #2b082b !important;
    background-color: #ffffff !important;
}

/* Indikator panah dropdown menu utama */
.pkp_navigation_primary .has-submenu > a::after {
    border-top-color: #ffffff !important;
    transition: transform 0.2s ease;
}

/* =========================================================
   2. WARNA TEKS USER NAVIGATION & SEARCH (HEADER KANAN ATAS)
   ========================================================= */

/* Profil pengguna (udiyanamudra) & tombol Search */
.pkp_navigation_user a,
.pkp_navigation_user .profile_badge,
.pkp_search_wrapper a,
.pkp_navigation_user .has-submenu > a {
    color: #ffffff !important;
}

.pkp_navigation_user a:hover,
.pkp_search_wrapper a:hover {
    color: #e8dbe8 !important;
}

.pkp_navigation_user .has-submenu > a::after {
    border-top-color: #ffffff !important;
}

/* =========================================================
   3. STYLING DROPDOWN MENU (#2b082b)
   ========================================================= */

/* Kontainer Dropdown Sub-menu */
.pkp_navigation_primary ul,
.pkp_navigation_user ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 9999 !important; /* Melayang di atas seluruh elemen */
    background-color: #ffffff !important;
    border: 1px solid #e8dbe8 !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    padding: 6px 0 !important;
    min-width: 210px !important;
    margin-top: 4px !important;
    overflow: visible !important;
}

/* Item di dalam Dropdown */
.pkp_navigation_primary ul li a,
.pkp_navigation_user ul li a {
    color: #334155 !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    display: block !important;
}

/* Hover State Dropdown */
.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary ul li a:focus,
.pkp_navigation_user ul li a:hover,
.pkp_navigation_user ul li a:focus {
    background-color: #2b082b !important;
    color: #ffffff !important;
    padding-left: 22px !important;
    text-decoration: none !important;
}

/* =========================================================
   4. STYLING HOMEPAGE BANNER / HEADER IMAGE
   ========================================================= */

/* Bingkai Banner Gambar Homepage */
.page_index_journal .journal_description img,
.homepage-image img,
.pkp_site_name_wrapper img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e8dbe8 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover State Banner Gambar */
.page_index_journal .journal_description img:hover,
.homepage-image img:hover {
    box-shadow: 0 6px 20px rgba(43, 8, 43, 0.25) !important;
}

/* =========================================================
   5. STYLING DAFTAR ARTIKEL (CARD ROW LAYOUT)
   ========================================================= */

/* Kontainer Kartu Artikel */
.cmp_article_list .cmp_article_summary,
.obj_article_summary {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background-color: #ffffff !important;
    border: 1px solid #e8dbe8 !important;
    border-left: 5px solid #2b082b !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 4px rgba(43, 8, 43, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover State Kartu Artikel */
.cmp_article_list .cmp_article_summary:hover,
.obj_article_summary:hover {
    background-color: #f7f3f7 !important;
    border-color: #cbb2cb !important;
    border-left-color: #1a031a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(43, 8, 43, 0.15) !important;
}

/* Judul Artikel */
.obj_article_summary .title {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.obj_article_summary .title a {
    color: #1e293b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.obj_article_summary .title a:hover {
    color: #2b082b !important;
}

/* Penulis & Informasi Halaman */
.obj_article_summary .authors {
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

.obj_article_summary .pages {
    color: #94a3b8 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

/* Area & Tombol PDF (Galleys) */
.obj_article_summary .galleys {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px dashed #e8dbe8 !important;
    display: flex !important;
    gap: 8px !important;
}

.obj_article_summary .galleys a.pdf {
    background-color: #f7f3f7 !important;
    color: #2b082b !important;
    border: 1px solid #cbb2cb !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}

.obj_article_summary .galleys a.pdf:hover {
    background-color: #2b082b !important;
    color: #ffffff !important;
    border-color: #2b082b !important;
}

/* =========================================================
   6. STYLING TABEL & BARIS HOVER
   ========================================================= */

/* Struktur Dasar Tabel */
.pkp_structure_main table,
table.pkp_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 20px !important;
    border: 1px solid #e8dbe8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Header Tabel */
.pkp_structure_main table th,
table.pkp_table th {
    background-color: #2b082b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 2px solid #1a031a !important;
}

/* Sel Tabel Dasar */
.pkp_structure_main table td,
table.pkp_table td {
    padding: 12px 16px !important;
    color: #334155 !important;
    border-bottom: 1px solid #e8dbe8 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Baris Selang-Seling (Zebra Striping) */
.pkp_structure_main table tr:nth-child(even),
table.pkp_table tr:nth-child(even) {
    background-color: #f7f3f7 !important;
}

/* Hover pada Baris Tabel */
.pkp_structure_main table tr:hover td,
table.pkp_table tr:hover td {
    background-color: #e3d3e3 !important;
    color: #2b082b !important;
}

/* Menghilangkan Border Bawah pada Baris Terakhir */
.pkp_structure_main table tr:last-child td,
table.pkp_table tr:last-child td {
    border-bottom: none !important;
}