/* =========================================================
   1. PERBAIKAN WARNA TEKS NAVIGATION BAR & HEADER (OMP)
   ========================================================= */

/* Teks Menu Utama (Latar Gelap -> Teks Harus Terang) */
.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/diklik */
.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;
}

/* Submenu Dropdown Menu Utama */
.pkp_navigation_primary ul a {
    color: #2b082b !important;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
    background-color: #f4ecf4 !important;
    color: #2b082b !important;
}


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

/* Tombol Induk Profil & Search di Header */
.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a .profile_badge,
.pkp_search_wrapper a {
    color: #ffffff !important;
}

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

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

/* Dropdown Menu Pengguna (Dashboard, Profile, Logout) */
.pkp_navigation_user ul {
    background-color: #ffffff !important;
    border: 1px solid #e8dbe8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.pkp_navigation_user ul a {
    color: #2b082b !important;
    padding: 8px 16px !important;
    display: block !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pkp_navigation_user ul a:hover,
.pkp_navigation_user ul a:focus {
    background-color: #f4ecf4 !important;
    color: #2b082b !important;
}


/* =========================================================
   3. STYLING KUSTOM SIDEBAR MENU OMP
   ========================================================= */

.sidebar-link {
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out !important;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background-color: #f4ecf4 !important;
    color: #2b082b !important;
}

.pkp_structure_sidebar img {
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.pkp_structure_sidebar a:hover img {
    transform: scale(1.03);
    opacity: 0.95;
}


/* =========================================================
   4. PERBAIKAN KATALOG BUKU & SEKSI JUDUL (FEATURED & NEW RELEASES)
   ========================================================= */

/* Perbaikan Judul Seksi (Featured, New Releases, Catalog) agar Tidak Tertutup */
.pkp_spotlight,
.cmp_monographs,
.pkp_catalog_featured,
.pkp_catalog_new {
    margin-top: 25px !important;
    padding-top: 15px !important;
    clear: both !important;
}

.pkp_spotlight h2,
.pkp_catalog_featured h2,
.pkp_catalog_new h2,
.pkp_catalog_category .heading h2,
.pkp_catalog_series .heading h2,
.pkp_page_catalog .heading h2 {
    color: #2b082b !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #2b082b !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Container / Item Buku pada Catalog OMP */
.cmp_monograph_summary,
.obj_monograph_summary,
.pkp_catalog_category .monograph_summary,
.pkp_catalog_series .monograph_summary {
    padding: 16px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e8dbe8 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    transition: all 0.25s ease-in-out !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Efek Hover Kartu Buku */
.cmp_monograph_summary:hover,
.obj_monograph_summary:hover,
.pkp_catalog_category .monograph_summary:hover,
.pkp_catalog_series .monograph_summary:hover {
    background-color: #fcf8fc !important;
    border-color: #2b082b !important;
    box-shadow: 0 6px 16px rgba(43, 8, 43, 0.12) !important;
    transform: translateY(-3px);
}

/* Sampul Buku */
.cmp_monograph_summary .cover img,
.obj_monograph_summary .cover img {
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.cmp_monograph_summary:hover .cover img,
.obj_monograph_summary:hover .cover img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(43, 8, 43, 0.2) !important;
}

/* Judul Buku di Katalog */
.cmp_monograph_summary .title a,
.obj_monograph_summary .title a,
.monograph_summary .title a {
    color: #2b082b !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.cmp_monograph_summary .title a:hover,
.obj_monograph_summary .title a:hover,
.monograph_summary .title a:hover {
    color: #6b1d6b !important;
    text-decoration: underline !important;
}

.cmp_monograph_summary .author,
.obj_monograph_summary .author {
    color: #4a3e4a !important;
    font-weight: 500 !important;
}

.cmp_monograph_summary .date,
.obj_monograph_summary .date {
    color: #7a6a7a !important;
    font-size: 0.9em !important;
}


/* =========================================================
   5. PERBAIKAN TAMPILAN LANDING PAGE BUKU (MONOGRAPH LANDING PAGE)
   ========================================================= */

/* Title Buku di Landing Page */
.page_monograph .monograph_title,
.cmp_monograph_landing_page .monograph_title,
.obj_monograph_full .page_title,
.page_monograph .page_title {
    color: #2b082b !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #2b082b !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

/* Sub-Judul (Synopsis, Keywords, Downloads, dll) */
.page_monograph h2,
.page_monograph h3,
.cmp_monograph_landing_page h2,
.cmp_monograph_landing_page h3,
.obj_monograph_full .label {
    color: #2b082b !important;
    font-weight: 700 !important;
}

/* Tombol Download PDF di Landing Page */
.page_monograph .pub_format_link,
.cmp_monograph_landing_page .pub_format_link,
.obj_monograph_full .obj_galley_link,
.obj_monograph_full .pub_format_single .pdf {
    background-color: #2b082b !important;
    color: #ffffff !important;
    background-image: none !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(43, 8, 43, 0.15) !important;
    transition: all 0.25s ease-in-out !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
}

.page_monograph .pub_format_link:hover,
.cmp_monograph_landing_page .pub_format_link:hover,
.obj_monograph_full .obj_galley_link:hover,
.obj_monograph_full .pub_format_single .pdf:hover {
    background-color: #5c185c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(43, 8, 43, 0.3) !important;
}

/* Tautan di Sidebar Kanan Landing Page (Series, Categories, License, dll) */
.page_monograph .entry_details a,
.cmp_monograph_landing_page .entry_details a {
    color: #2b082b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.page_monograph .entry_details a:hover,
.cmp_monograph_landing_page .entry_details a:hover {
    color: #6b1d6b !important;
    text-decoration: underline !important;
}

/* Pembatas Garis Antar Blok di Landing Page */
.page_monograph .entry_details .item,
.cmp_monograph_landing_page .entry_details .item {
    border-color: #e8dbe8 !important;
}


/* =========================================================
   6. STYLING KUSTOM FOOTER OMP (CARD LAYOUT & HOVER EFEK)
   ========================================================= */

.pkp_structure_footer .pkp_footer_content,
.pkp_block .content,
.cmp_footer {
    background-color: #ffffff !important;
    border: 1px solid #e8dbe8 !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.pkp_structure_footer .pkp_footer_content:hover,
.pkp_block .content:hover,
.cmp_footer:hover {
    background-color: #fcf8fc !important;
    border-color: #2b082b !important;
    box-shadow: 0 6px 16px rgba(43, 8, 43, 0.12) !important;
    transform: translateY(-3px);
}

.pkp_structure_footer p,
.cmp_footer p {
    color: #2b082b !important;
    line-height: 1.6 !important;
}

.pkp_structure_footer a,
.cmp_footer a {
    color: #2b082b !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.pkp_structure_footer a:hover,
.cmp_footer a:hover {
    color: #6b1d6b !important;
    text-decoration: underline !important;
}