/* ==========================================================================
   HIPOTENUSA: JURNAL PENDIDIKAN MATEMATIKA
   Master Custom Stylesheet - Full Redesign 2026
   Theme Palette: Charcoal (#0b0d0f) | Gold (#ffd447) | Orange (#e96518)
   ========================================================================== */

/* 1. VARIABEL WARNA UTAMA (EKSTRAKSI COVER HIPOTENUSA) */
:root {
  --hipo-black-dark: #0b0d0f;      /* Hitam Charcoal Latar Header/Footer */
  --hipo-black-text: #111416;      /* Hitam Pekat Teks Utama */
  --hipo-gold: #ffd447;            /* Kuning Emas Utama */
  --hipo-gold-dark: #d4a017;       /* Emas Gelap untuk Gradasi */
  --hipo-orange: #e96518;          /* Oranye Aksen */
  --hipo-bg-light: #f4f6f8;        /* Latar Belakang Halaman Terang */
  --hipo-card-bg: #ffffff;         /* Latar Kartu Konten */
  --hipo-text-muted: #4b5563;      /* Teks Sekunder/Penulis */
  --hipo-border-light: #e2e8f0;    /* Garis Pembatas Konten */
  --hipo-radius: 12px;             /* Lengkungan Sudut Kartu */
  --hipo-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 2. RESET UTAMA HALAMAN */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--hipo-bg-light) !important;
  color: var(--hipo-black-text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.65 !important;
}

/* 3. HEADER NAMA JURNAL & LOGO (CHARCOAL DARK HEADER) */
.pkp_site_header {
  background: var(--hipo-black-dark) !important;
  border-bottom: 4px solid var(--hipo-gold) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  position: relative;
}

.pkp_site_name {
  padding: 20px 0 !important;
}

.pkp_site_name .is_img img {
  max-height: 110px !important;
  width: auto !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* 4. BAR NAVIGASI MODERN (MENU UTAMA) */
.pkp_navigation_primary_wrapper {
  background: #16191c !important;
  border-bottom: 2px solid var(--hipo-gold) !important;
  padding: 0 10px !important;
}

.pkp_navigation_primary > li > a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 16px 20px !important;
  display: block !important;
  transition: all 0.25s ease !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.pkp_nav_item_current > a {
  color: var(--hipo-black-text) !important;
  background-color: var(--hipo-gold) !important;
}

/* FORM PENCARIAN (SEARCH BOX) */
.pkp_search_wrapper input[type="text"] {
  background-color: #ffffff !important;
  color: var(--hipo-black-text) !important;
  border: 1px solid var(--hipo-border-light) !important;
  border-radius: 6px 0 0 6px !important;
  padding: 8px 12px !important;
}

.pkp_search_wrapper button,
.pkp_search_wrapper input[type="submit"] {
  background-color: var(--hipo-gold) !important;
  color: var(--hipo-black-text) !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
}

.pkp_search_wrapper button:hover {
  background-color: var(--hipo-orange) !important;
  color: #ffffff !important;
}

/* 5. KONTAINER UTAMA HALAMAN (WHITE CARD LAYOUT) */
.pkp_structure_page {
  max-width: 1240px !important;
  margin: 35px auto !important;
  padding: 0 15px !important;
}

.pkp_structure_main {
  background-color: var(--hipo-card-bg) !important;
  border-radius: var(--hipo-radius) !important;
  border: 1px solid var(--hipo-border-light) !important;
  padding: 30px !important;
  box-shadow: var(--hipo-shadow) !important;
}

/* 6. MENGUNCI MUTLAK TEKS DI KONTEN UTAMA MENJADI HITAM PEKAT */
.pkp_structure_main,
.pkp_structure_main *,
.pkp_content_panel,
.pkp_content_panel *,
.page_content,
.page_content *,
.issue_toc,
.issue_toc *,
.current_issue_details,
.current_issue_details *,
.abstract,
.abstract * {
  color: var(--hipo-black-text) !important; /* Hitam Pekat */
}

/* JUDUL UTAMA HALAMAN (About, Submissions, Current Issue) */
.pkp_structure_main .page_title,
.pkp_structure_main h1,
.pkp_structure_main h2,
.current_issue_title,
.issue_title {
  color: var(--hipo-black-dark) !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  border-bottom: 3px solid var(--hipo-gold) !important;
  padding-bottom: 10px !important;
  margin-bottom: 25px !important;
}

/* METADATA & TANGGAL PUBLISH */
.issue_toc .published,
.issue_toc .published *,
.published .date,
.current_issue_details .published {
  color: var(--hipo-text-muted) !important;
  font-weight: 600 !important;
}

/* TAUTAN / LINKS PADA AREA KONTEN UTAMA */
.pkp_structure_main a {
  color: var(--hipo-orange) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

.pkp_structure_main a:hover {
  color: var(--hipo-gold-dark) !important;
}

/* 7. KARTU RINGKASAN ARTIKEL (ARTICLE CARDS) */
.obj_article_summary {
  background-color: #ffffff !important;
  border: 1px solid var(--hipo-border-light) !important;
  border-left: 5px solid var(--hipo-gold) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.obj_article_summary:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--hipo-shadow) !important;
  border-left-color: var(--hipo-orange) !important;
}

.obj_article_summary .title a {
  color: var(--hipo-black-dark) !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.obj_article_summary .title a:hover {
  color: var(--hipo-orange) !important;
}

.obj_article_summary .authors {
  color: var(--hipo-text-muted) !important;
  font-size: 14px !important;
  margin-top: 6px !important;
}

/* 8. SIDEBAR MODERN (SISI KANAN / KIRI) */
.pkp_structure_sidebar .block {
  background-color: var(--hipo-card-bg) !important;
  border: 1px solid var(--hipo-border-light) !important;
  border-left: 4px solid var(--hipo-gold) !important;
  border-radius: var(--hipo-radius) !important;
  padding: 20px !important;
  margin-bottom: 25px !important;
  box-shadow: var(--hipo-shadow) !important;
}

.pkp_structure_sidebar .title {
  color: var(--hipo-black-dark) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid var(--hipo-gold) !important;
  padding-bottom: 8px !important;
  margin-bottom: 15px !important;
}

/* MENGUNCI SELURUH TEKS SIDEBAR MENJADI HITAM PEKAT */
.pkp_structure_sidebar,
.pkp_structure_sidebar *,
.pkp_structure_sidebar .block,
.pkp_structure_sidebar .block *,
.pkp_structure_sidebar .block_custom,
.pkp_structure_sidebar .block_custom * {
  color: var(--hipo-black-text) !important;
}

/* MENU TAUTAN SIDEBAR (Focus and Scope, Editorial Team, dll) */
.pkp_structure_sidebar a,
.pkp_structure_sidebar .block a,
.pkp_structure_sidebar ul li a {
  color: var(--hipo-black-text) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.pkp_structure_sidebar a:hover,
.pkp_structure_sidebar .block a:hover,
.pkp_structure_sidebar ul li a:hover {
  color: var(--hipo-orange) !important;
}

/* PEMBERSIHAN GARIS PEMISAH HIJAU SIDEBAR -> GANTI EMAS */
.pkp_structure_sidebar ul li,
.pkp_structure_sidebar .block ul li,
.pkp_structure_sidebar div[style*="border-bottom"] {
  border-bottom: 1px solid var(--hipo-border-light) !important;
  padding: 8px 0 !important;
}

/* NETRALISASI BANNER/HEADER HIJAU SIDEBAR (WELCOME, E-ISSN) */
.pkp_structure_sidebar .block_custom .title,
.pkp_structure_sidebar .block_custom div[style*="background"],
.pkp_structure_sidebar .block div[style*="background-color"] {
  background: linear-gradient(135deg, var(--hipo-gold), var(--hipo-gold-dark)) !important;
  color: var(--hipo-black-text) !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  border: none !important;
}

/* 9. TOMBOL BACA / PDF / GALLEY LINK */
.obj_galley_link,
a.read_more,
.cmp_button {
  background: linear-gradient(135deg, var(--hipo-gold), var(--hipo-gold-dark)) !important;
  color: var(--hipo-black-text) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.obj_galley_link:hover,
a.read_more:hover,
.cmp_button:hover {
  background: var(--hipo-orange) !important;
  color: #ffffff !important;
}

/* 10. FOOTER WEBSITE */
.pkp_structure_footer_wrapper {
  background: var(--hipo-black-dark) !important;
  border-top: 4px solid var(--hipo-gold) !important;
  color: #d1d5db !important;
  padding: 40px 0 !important;
  margin-top: 50px !important;
}

.pkp_footer_content a {
  color: var(--hipo-gold) !important;
  text-decoration: none !important;
}

.pkp_footer_content a:hover {
  color: var(--hipo-orange) !important;
}