/* =====================================================================
   Cendekia Jurnal Hub - stylesheet OJS 3.5 (Default theme)
   Pasang di: Settings > Website > Appearance > Advanced > Journal style sheet
   Warna dasar header tetap diatur di opsi tema: Colour = #133149
   File ini hanya mengatur tampilan. Semua isi tetap diedit dari dashboard.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --cjh-navy: #133149;
  --cjh-navy-dark: #0B2236;
  --cjh-dark-green: #054429;
  --cjh-emerald: #208D63;      /* aksen: garis, label, ikon */
  --cjh-emerald-ink: #1B7A55;  /* tombol dan teks hijau (kontras 5.3:1 dengan putih) */
  --cjh-light: #F5F9F7;
  --cjh-border: #E2E8EF;
  --cjh-text: #1F2D3D;
  --cjh-muted: #55657A;
  --cjh-radius: 10px;
}

/* ---------- Tipografi ---------- */
body,
.pkp_structure_page,
button,
input,
select,
textarea {
  font-family: "Manrope", "Noto Sans", Arial, sans-serif;
}

body {
  color: var(--cjh-text);
  background: #FFFFFF;
}

h1, h2, h3, h4,
.page_title {
  color: var(--cjh-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pkp_structure_main a {
  color: var(--cjh-navy);
}

.pkp_structure_main a:hover,
.pkp_structure_main a:focus {
  color: var(--cjh-emerald-ink);
}

/* ---------- Header ---------- */
.pkp_structure_head {
  background-color: var(--cjh-navy);
  border-bottom: 4px solid var(--cjh-emerald);
}

.pkp_site_name .is_img img {
  max-height: 80px;
  width: auto;
}

.pkp_navigation_primary > li > a {
  font-weight: 600;
}

/* Item menu "Submit Article" (Remote URL berakhiran /about/submissions) tampil sebagai tombol */
.pkp_navigation_primary > li > a[href$="/about/submissions"] {
  background: var(--cjh-emerald-ink);
  color: #FFFFFF;
  border-radius: 8px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pkp_navigation_primary > li > a[href$="/about/submissions"]:hover,
.pkp_navigation_primary > li > a[href$="/about/submissions"]:focus {
  background: var(--cjh-dark-green);
  color: #FFFFFF;
  border-color: transparent;
}

/* ---------- Tombol ---------- */
.cmp_button,
.cmp_form .buttons button,
.block_make_submission_link,
.obj_galley_link,
.cjh-btn {
  display: inline-block;
  background: var(--cjh-emerald-ink);
  border: 1px solid var(--cjh-emerald-ink);
  color: #FFFFFF !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_form .buttons button:hover,
.cmp_form .buttons button:focus,
.block_make_submission_link:hover,
.block_make_submission_link:focus,
.obj_galley_link:hover,
.obj_galley_link:focus,
.cjh-btn:hover,
.cjh-btn:focus {
  background: var(--cjh-dark-green);
  border-color: var(--cjh-dark-green);
  color: #FFFFFF !important;
}

.obj_galley_link::before {
  color: inherit;
}

.cjh-btn,
.cjh-btn-outline {
  padding: 0.7rem 1.2rem;
  margin: 0.25rem;
}

.cjh-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cjh-navy) !important;
  border: 2px solid var(--cjh-navy);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.cjh-btn-outline:hover,
.cjh-btn-outline:focus {
  background: var(--cjh-navy);
  color: #FFFFFF !important;
}

/* ---------- Homepage ---------- */
.page_index_journal .homepage_about,
.page_index_journal .current_issue,
.page_index_journal .additional_content {
  margin-bottom: 2.5rem;
}

.page_index_journal .current_issue .current_issue_title {
  color: var(--cjh-emerald-ink);
  font-weight: 700;
}

/* Konten tambahan homepage: kelas cjh-* dipakai di Additional Content */
.cjh-section {
  padding: 1.5rem 0;
}

.cjh-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cjh-emerald-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cjh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cjh-card {
  background: #FFFFFF;
  border: 1px solid var(--cjh-border);
  border-top: 4px solid var(--cjh-emerald);
  border-radius: var(--cjh-radius);
  padding: 1.25rem;
}

.cjh-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.cjh-card p {
  margin: 0;
  color: var(--cjh-muted);
}

.cjh-cta {
  margin-top: 1rem;
  padding: 1.75rem 1.25rem;
  background: var(--cjh-light);
  border-radius: var(--cjh-radius);
  text-align: center;
}

.cjh-demo {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: #FFF4E5;
  color: #7A4B00;
  border: 1px solid #F0C27A;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- Daftar artikel dan halaman artikel ---------- */
.obj_article_summary .title a {
  color: var(--cjh-navy);
  font-weight: 700;
}

.obj_article_details .page_title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.obj_article_details .item .label {
  color: var(--cjh-navy);
  font-weight: 700;
}

.obj_article_details .entry_details {
  background: var(--cjh-light);
  border-radius: var(--cjh-radius);
}

/* ---------- Sidebar ---------- */
.pkp_block .title {
  color: var(--cjh-navy);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: var(--cjh-navy);
  color: #C9D6E2;
  border-top: 4px solid var(--cjh-emerald);
}

.pkp_structure_footer_wrapper a {
  color: #FFFFFF;
}

.pkp_brand_footer img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ---------- Ponsel dan tablet ---------- */
@media (max-width: 767px) {
  .pkp_site_name .is_img img {
    max-height: 52px;
  }

  .cjh-grid {
    grid-template-columns: 1fr;
  }

  .cjh-btn,
  .cjh-btn-outline {
    display: block;
    margin: 0.5rem 0;
    text-align: center;
  }
}
