@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --hukum-primary: #1b3a5c;
  --hukum-primary-dark: #0f2440;
  --hukum-accent: #b8860b;
  --hukum-bg: #f5f6f8;
  --hukum-card: #ffffff;
  --hukum-text: #1c2733;
  --hukum-muted: #5c6b7a;
  --hukum-border: #dde3ea;
  --hukum-radius: 6px;
}

body {
  background: #f5f6f8;
  color: var(--hukum-text);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--hukum-primary); }
a:hover { color: var(--hukum-accent); }

/* Header */
.pkp_structure_head {
  background-color: #f5f6f8 !important;
}
.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 4px;
  box-sizing: border-box;
  border-bottom: 4px solid #b8860b;
}
/* Keep the logo aligned with the content column */
.pkp_site_name_wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  height: auto;
}
/* Nav wrapper follows the same content width (keeps default OJS nav styling) */
.pkp_navigation_primary_wrapper,
.has_site_logo .pkp_navigation_primary_wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .pkp_site_name_wrapper,
  .pkp_navigation_primary_wrapper {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.has_site_logo .pkp_site_name,
.pkp_site_name {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: relative !important;
  left: auto;
  right: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}
.pkp_site_name .is_img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.pkp_site_name .is_img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}

/* Content spacing + two-column layout (main + sidebar) */
.pkp_structure_content {
  padding-top: 12px;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: 32px;
  padding-right: 32px;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: flex-start;
}
/* Reset the default theme's float/fixed-width layout */
.pkp_structure_main,
.pkp_structure_main:first-child:last-child {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 28px 32px;
  background: #ffffff;
  flex: 1 1 0%;
}
/* Remove the decorative vertical border lines from the default theme */
.pkp_structure_main:before,
.pkp_structure_main:after {
  display: none !important;
}
.pkp_structure_sidebar {
  float: none !important;
  width: auto !important;
  max-width: 320px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 320px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
/* --- Sidebar blocks: clean, evenly spaced menu --- */
.pkp_structure_sidebar .pkp_block {
  background: var(--hukum-card);
  border: 1px solid var(--hukum-border);
  border-radius: var(--hukum-radius);
  box-shadow: 0 2px 8px rgba(15, 36, 64, .06);
  padding: 16px 18px;
  margin: 0 0 16px;
  font-size: inherit;
  line-height: inherit;
}
.pkp_structure_sidebar .pkp_block:last-child {
  margin-bottom: 0;
}
.pkp_structure_sidebar .pkp_block .title {
  display: block;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hukum-border);
  font-family: "Figtree", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hukum-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pkp_structure_sidebar .pkp_block .content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.pkp_structure_sidebar .pkp_block .content ul li {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  text-align: left;
}
.pkp_structure_sidebar .pkp_block .content ul li + li {
  border-top: 1px dotted var(--hukum-border);
}
.pkp_structure_sidebar .pkp_block .content a {
  display: block;
  padding: 8px 0 8px 14px;
  color: var(--hukum-text);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pkp_structure_sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:focus {
  color: var(--hukum-accent);
  border-left-color: var(--hukum-accent);
  background: rgba(184, 134, 11, .06);
}
/* Browse block: submenu indentation kept tidy */
.pkp_structure_sidebar .block_browse .has_submenu {
  margin: 0;
  font-weight: 700;
  color: var(--hukum-primary);
}
.pkp_structure_sidebar .block_browse .has_submenu > ul {
  margin: 0 0 4px;
  padding: 0;
}
.pkp_structure_sidebar .block_browse .has_submenu ul li a {
  padding-left: 26px;
  font-weight: 400;
  color: var(--hukum-muted);
}
.pkp_structure_sidebar .block_browse .is_sub {
  margin-left: 0;
}
.pkp_structure_sidebar .block_browse .current a {
  border-left-color: var(--hukum-primary);
  color: var(--hukum-primary);
  font-weight: 600;
  cursor: default;
}
/* "Make a Submission" button in the sidebar */
.pkp_structure_sidebar .block_make_submission .content a,
.pkp_structure_sidebar .block_make_submission_link {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  background: var(--hukum-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--hukum-radius);
  font-weight: 600;
  text-align: center;
  transition: background .15s ease;
}
.pkp_structure_sidebar .block_make_submission .content a:hover,
.pkp_structure_sidebar .block_make_submission_link:hover {
  background: var(--hukum-primary-dark);
  color: #ffffff !important;
}
@media (max-width: 991px) {
  .pkp_structure_content {
    padding-left: 16px;
    padding-right: 16px;
    display: block;
  }
  .pkp_structure_sidebar {
    max-width: 100%;
    width: 100% !important;
    flex: none;
    margin-top: 18px;
  }
  .pkp_structure_main,
  .pkp_structure_main:first-child:last-child {
    padding: 20px 16px;
  }
}
.cmp_announcements h2,
.page_header h1 {
  font-family: "Figtree", sans-serif;
  color: var(--hukum-primary);
}
.cmp_announcements .obj_announcement_summary {
  background: var(--hukum-card);
  border: 1px solid var(--hukum-border);
  border-left: 3px solid var(--hukum-accent);
  border-radius: var(--hukum-radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.obj_issue_toc .galleys_links li {
  margin-right: 8px;
}
.obj_article_summary,
.obj_issue_summary,
.pkp_block {
  background: var(--hukum-card);
  border: 1px solid var(--hukum-border);
  border-top: 3px solid var(--hukum-primary);
  border-radius: var(--hukum-radius);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(15, 36, 64, .06);
  margin-bottom: 18px;
  transition: box-shadow .2s ease;
}
.obj_article_summary:hover,
.obj_issue_summary:hover {
  box-shadow: 0 8px 20px rgba(15, 36, 64, .12);
}
/* Journal summary text justify */
.obj_issue_summary {
  text-align: justify;
}
.obj_issue_summary .title,
.obj_issue_summary .title a {
  text-align: left;
}
/* About the Journal text wrap around image + justify */
.page_about {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-break: break-word;
}
.page_about *,
.page_about p,
.page_about li,
.page_about dd,
.page_about dt,
.page_about blockquote,
.page_about td,
.page_about th,
.page_about div,
.page_about span {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
}
.obj_article_summary .title a { color: var(--hukum-text); font-weight: 700; }
/* DOI in article summary */
.obj_article_summary .meta .doi {
  margin-top: 4px;
  font-size: 0.82rem;
}
.obj_article_summary .meta .doi .label {
  color: var(--hukum-muted);
  font-weight: 600;
}
.obj_article_summary .meta .doi a {
  color: var(--hukum-primary);
}
.obj_article_summary .meta .doi a:hover {
  color: var(--hukum-accent);
}
/* Buttons */
button, .btn, .pkp_button, .obj_galley_link {
  background: var(--hukum-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--hukum-radius);
  padding: 8px 16px;
  font-family: "Figtree", sans-serif;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover, .pkp_button:hover {
  background: var(--hukum-primary-dark);
}
/* Pagination */
.pagination a,
.paging a {
  color: var(--hukum-primary);
  border: 1px solid var(--hukum-border);
  padding: 6px 12px;
  margin: 0 2px;
  border-radius: var(--hukum-radius);
}
.pagination .current,
.paging .current {
  background: var(--hukum-primary);
  color: #fff;
  border-color: var(--hukum-primary);
}
/* Tables */
table { border-collapse: collapse; width: 100%; }
th {
  background: var(--hukum-primary);
  color: #fff;
  font-family: "Figtree", sans-serif;
  padding: 10px;
}
td { padding: 10px; border-bottom: 1px solid var(--hukum-border); }
/* Footer: wrapper and footer same color + same width as content */
.pkp_structure_footer_wrapper {
  background: #f5f6f8 !important;
  border-top: 0 none !important;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.pkp_structure_footer {
  background: #f5f6f8 !important;
  color: #1c2733 !important;
  border-top: 0 none !important;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 24px 32px;
  text-align: left;
}
.pkp_footer_content {
  padding: 0;
  text-align: left;
}
@media (max-width: 991px) {
  .pkp_structure_footer {
    padding: 24px 16px;
  }
}
.pkp_structure_footer a { color: var(--hukum-primary) !important; }
.pkp_structure_footer a:hover { color: var(--hukum-accent) !important; }
/* Hide PKP platform/workshop branding */
.pkp_brand_footer { display: none !important; }
/* Homepage image wrapped by text */
.pkp_page_index .homepage_image {
  margin: 0 !important;
  padding: 0;
}
.pkp_page_index .homepage_image img {
  float: left;
  margin: 0 24px 16px 0;
  border-radius: var(--hukum-radius);
  max-width: 42%;
  height: auto;
  box-shadow: 0 4px 14px rgba(15, 36, 64, .12);
}
.pkp_page_index .homepage_about {
  margin: 0;
  padding: 0 0 16px 0;
}
.pkp_page_index .homepage_about h2 {
  margin-top: 0;
  color: var(--hukum-primary-dark);
}
.pkp_page_index .cmp_announcements,
.pkp_page_index .current_issue,
.pkp_page_index .additional_content {
  clear: both;
}
@media (max-width: 768px) {
  .pkp_page_index .homepage_image img {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 0 14px 0;
  }
  .page_about img {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 0 14px 0;
  }

}
.footer-jurnal hr,
footer hr {
    border: none !important;
    border-top: 2px solid #ffd700 !important;
    background: transparent !important;
    height: 0 !important;
    margin: 10px 0 !important;
}

/* Hapus border putih tabel & sel */
.footer-jurnal table,
.footer-jurnal td,
.footer-jurnal th,
footer table,
footer td,
footer th {
    border: none !important;
    background-color: transparent !important;
}

/* Pastikan wrapper footer tidak putih */
.footer-jurnal,
footer {
    background-color: #800000 !important;
    border: none !important;
}
/* --- GROUP CONTAINER (pill wrapper) --- */
    .btn-group-triple {
      display: inline-flex;
      align-items: stretch;
      justify-content: center;
      padding: 0;
      border-radius: 100px;
      background: transparent;
      box-shadow: 0 10px 20px -8px rgba(0, 60, 120, 0.4);
      transition: box-shadow 0.25s ease;
      isolation: isolate;
      /* remove any default list/flex gap */
      gap: 0;
    }

    /* Lift the whole group subtly on hover */
    .btn-group-triple:hover {
      box-shadow: 0 18px 30px -10px rgba(0, 70, 140, 0.5);
    }

    /* --- INDIVIDUAL BUTTON SEGMENTS --- */
    .btn-triple {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.9rem 1.6rem;
      font-size: 1.02rem;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: 0.01em;
      white-space: nowrap;
      text-decoration: none;        /* for <a> */
      border: none;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s ease, color 0.2s ease,
                  transform 0.15s cubic-bezier(0.2, 0, 0, 1);
      outline: none;
      -webkit-tap-highlight-color: transparent;
      /* each segment is a flex child; no margin needed */
    }

    /* Focus ring (accessible) */
    .btn-triple:focus-visible {
      outline: 3px solid #1e88e5;
      outline-offset: 3px;
      z-index: 2;
    }

    /* Press effect --- slight inward scale per segment */
    .btn-triple:active {
      transform: scale(0.96);
    }

    /* SVG icons inside buttons */
    .btn-triple svg {
      width: 1.25em;
      height: 1.25em;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
      display: inline-block;
      vertical-align: middle;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }

    /* ---------- SEGMENT 1: AUTHOR GUIDELINES ---------- */
    .btn-guidelines {
      background: linear-gradient(135deg, #e8f0fe, #d4e3fc);
      color: #0f3a6b;
      border-radius: 100px 0 0 100px;   /* round left side only */
      border-right: 1px solid rgba(255, 255, 255, 0.9);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .btn-guidelines:hover {
      background: linear-gradient(135deg, #dce9ff, #c2d8fc);
      color: #0a2e57;
    }

    .btn-guidelines:active {
      background: linear-gradient(135deg, #c9defa, #b0cbf7);
    }

    /* ---------- SEGMENT 2: ARTICLE TEMPLATE ---------- */
    .btn-template {
      background: linear-gradient(135deg, #d9e8fc, #bdd4f8);
      color: #0b3d6f;
      border-right: 1px solid rgba(255, 255, 255, 0.8);
      border-left: 1px solid rgba(255, 255, 255, 0.8);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .btn-template:hover {
      background: linear-gradient(135deg, #c7dcf9, #a9c6f4);
      color: #062d54;
    }

    .btn-template:active {
      background: linear-gradient(135deg, #b4d0f6, #96b8f0);
    }

    /* ---------- SEGMENT 3: SUBMIT ARTICLE ---------- */
    .btn-submit {
      background: linear-gradient(135deg, #0b4a9e, #07377a);
      color: white;
      border-radius: 0 100px 100px 0;   /* round right side only */
      border-left: 1px solid rgba(255, 255, 255, 0.25);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, #0e60c7, #094294);
    }

    .btn-submit:active {
      background: linear-gradient(135deg, #094494, #062e66);
    }

    /* icon micro-animations on group hover */
    .btn-group-triple:hover .btn-guidelines svg {
      transform: translateX(2px);
    }

    .btn-group-triple:hover .btn-template svg {
      transform: translateY(2px);
    }

    .btn-group-triple:hover .btn-submit svg {
      transform: translateX(3px);
    }

    /* --- RESPONSIVE: stack on very small screens? No --- 
       but we compress padding & font to keep it on one line. --- */
    @media (max-width: 640px) {
      .btn-triple {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        gap: 0.35rem;
      }
      .btn-triple svg {
        width: 1.1em;
        height: 1.1em;
      }
    }

    @media (max-width: 480px) {
      .btn-triple {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
        gap: 0.25rem;
      }
      .btn-triple svg {
        width: 1em;
        height: 1em;
      }
      /* hide text? We keep it readable --- but allow wrapping if needed */
      .btn-triple span {
        /* text is inside a span to allow hiding if needed --- but we keep it */
      }
    }

    @media (max-width: 380px) {
      /* Option: hide the text and keep only icons for ultra narrow, 
         but here we compress further and allow 2-line if unavoidable. */
      .btn-triple {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
      }
      .btn-triple svg {
        width: 0.9em;
        height: 0.9em;
      }
    }

    /* --- demo extra --- */
    .demo-extra {
      color: #29445e;
      font-size: 0.85rem;
      text-align: center;
      margin-top: 0.25rem;
    }

    .demo-extra code {
      background: rgba(0, 0, 0, 0.05);
      padding: 0.2rem 0.5rem;
      border-radius: 30px;
      font-family: 'SF Mono', 'Fira Code', monospace;
      font-size: 0.8rem;
    }

    /* --- Accessibility: motion reduction --- */
    @media (prefers-reduced-motion: reduce) {
      .btn-triple,
      .btn-group-triple,
      .btn-triple svg {
        transition: none;
        animation: none;
      }
      .btn-triple:active {
        transform: none;
      }
    }
