/* =====================================================
   FINAL CSS JURNAL HUKUM TO-RA
   Aman untuk OJS desktop, tablet, dan mobile
   Fokus:
   - Tampilan profil tidak terlalu melebar
   - Mobile tidak rusak/terlalu besar
   - Paragraf desktop rata kanan-kiri
   - Paragraf mobile dibuat lebih natural agar spasi tidak renggang
   - Additional Menu lebih proporsional
   - Cover dan banner lebih stabil
   ===================================================== */
html body div.journal-header[role="banner"],
html body .journal-header {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;

  /* Tinggi banner desktop */
  height: 205px !important;
  min-height: 205px !important;

  background-color: #d71920 !important;
  background-image: url("https://ejournal.fhuki.id/public/journals/1/pageHeaderLogoImage_en_US.gif") !important;
  background-repeat: no-repeat !important;

  /* Ini yang membuat banner tidak terkunci ke kanan */
  background-position: center center !important;

  /* Pakai 100% 100% agar seluruh banner tampil penuh */
  background-size: 100% 100% !important;

  overflow: visible !important;
  box-sizing: border-box !important;
  z-index: 1 !important;
}

/* =========================
   BASIC SAFETY
   ========================= */

html,
body {
  overflow-x: hidden !important;
  min-width: 0 !important;
}

body {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

img {
  max-width: 100% !important;
  height: auto !important;
}


/* =========================
   OJS HEADER / BANNER SAFETY
   ========================= */

.pkp_structure_head {
  border-top: 6px solid #d62839 !important;
}

.pkp_head_wrapper {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.pkp_site_name,
.pkp_site_name > a,
.pkp_site_name .is_img {
  max-width: 100% !important;
  overflow: hidden !important;
}

.pkp_site_name img,
.pkp_site_name .is_img img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

.homepage_image,
.homepage_image img {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.homepage_image img {
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}


/* =========================
   TO-RA PROFILE WRAPPER
   ========================= */

.tora-profile {
  max-width: 1100px !important;
  width: calc(100% - 32px) !important;
  margin: 18px auto 30px auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: Georgia, "Times New Roman", serif !important;
  color: #3f1515 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

.tora-profile *,
.tora-profile *::before,
.tora-profile *::after {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
}


/* =========================
   TABLE CONTROL
   ========================= */

.tora-profile table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
}

.tora-profile td {
  vertical-align: top !important;
}


/* =========================
   TYPOGRAPHY
   ========================= */

.tora-profile h1 {
  font-size: 27px !important;
  line-height: 1.18 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  color: #5e1111 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.tora-profile h2 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  color: #5e1111 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.tora-profile p {
  font-size: 13.2px !important;
  line-height: 1.65 !important;
  color: #4f2a2a !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  word-spacing: normal !important;
  letter-spacing: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.tora-profile ul {
  margin: 12px 0 12px 20px !important;
  padding: 0 !important;
}

.tora-profile li {
  font-size: 13.2px !important;
  line-height: 1.45 !important;
  color: #3f3030 !important;
}

.tora-profile div,
.tora-profile span,
.tora-profile a,
.tora-profile td {
  letter-spacing: 0 !important;
}

.tora-profile a {
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-decoration: none !important;
}


/* =========================
   HERO SECTION
   ========================= */

.tora-profile > div:first-child {
  padding: 18px !important;
  margin-bottom: 14px !important;
}

.tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child {
  width: 165px !important;
  padding-right: 20px !important;
}

.tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child img {
  max-width: 150px !important;
  width: 150px !important;
  height: auto !important;
  display: block !important;
}

.tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child div[style*="width: 108px"],
.tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child div[style*="width:108px"] {
  width: 125px !important;
  min-height: 165px !important;
}


/* =========================
   QUICK FACTS / TAGS
   ========================= */

.tora-profile > div:first-child table:nth-of-type(2) {
  margin-top: 14px !important;
  border-spacing: 8px !important;
}

.tora-profile > div:first-child table:nth-of-type(2) td {
  padding: 9px 12px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}


/* =========================
   ADDITIONAL MENU
   ========================= */

.tora-additional-menu {
  max-width: 960px !important;
  width: 100% !important;
  margin: 0 auto 16px auto !important;
  padding: 13px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e2bcbc !important;
  box-shadow: 0 5px 14px rgba(105, 24, 24, 0.05) !important;
}

.tora-additional-menu table {
  max-width: 900px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-spacing: 6px !important;
  table-layout: fixed !important;
}

.tora-additional-menu td {
  padding: 0 !important;
}

.tora-additional-menu a {
  display: block !important;
  min-height: 38px !important;
  padding: 8px 9px !important;
  border-radius: 10px !important;
  font-size: 11.3px !important;
  font-weight: bold !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  color: #7b1717 !important;
  text-align: left !important;
  transition: all 0.18s ease-in-out !important;
}

.tora-additional-menu a:hover {
  background: #fbe8e8 !important;
  border-color: #c98b8b !important;
  color: #5e1111 !important;
}

.tora-additional-menu em {
  color: #7b1717 !important;
  margin-right: 3px !important;
}


/* =========================
   ABOUT + EDITORIAL TABLE
   ========================= */

.tora-profile table[style*="border-spacing:10px"],
.tora-profile table[style*="border-spacing: 10px"] {
  border-spacing: 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tora-profile table[style*="border-spacing:10px"] td,
.tora-profile table[style*="border-spacing: 10px"] td {
  padding: 13px !important;
}


/* =========================
   FOCUS AND SCOPE
   ========================= */

.tora-profile table[style*="border-spacing:8px"],
.tora-profile table[style*="border-spacing: 8px"] {
  border-spacing: 8px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.tora-profile table[style*="border-spacing:8px"] p,
.tora-profile table[style*="border-spacing: 8px"] p {
  text-align: justify !important;
  text-justify: inter-word !important;
}


/* =========================
   LATEST ISSUE OJS
   ========================= */

.current_issue,
.obj_issue_toc {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.current_issue .cover,
.obj_issue_toc .cover,
.issue_cover {
  text-align: center !important;
}

.current_issue .cover img,
.obj_issue_toc .cover img,
.issue_cover img {
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  border-radius: 8px !important;
}

.current_issue p,
.obj_issue_toc p,
.current_issue .description,
.obj_issue_toc .description,
.current_issue .obj_article_summary,
.obj_issue_toc .obj_article_summary {
  text-align: justify !important;
  line-height: 1.58 !important;
}


/* =====================================================
   RUNNING LOGO
   ===================================================== */

.harkat-running-logo {
  width: 100% !important;
  margin: 18px 0 22px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #fefefe !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(72, 34, 16, 0.12) !important;
}

.harkat-running-logo .running-logo-head {
  padding: 15px 20px !important;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.24), transparent 34%),
    linear-gradient(135deg, #ec0000 0%, #7b0000 72%) !important;
  border-bottom: 3px solid #f63b3b !important;
}

.harkat-running-logo .running-logo-label {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.harkat-running-logo .running-logo-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

.harkat-running-logo .running-logo-window {
  width: 100% !important;
  overflow: hidden !important;
  padding: 16px 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ef 100%) !important;
  white-space: nowrap !important;
}

.harkat-running-logo .running-logo-track {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: max-content !important;
  animation: harkatLogoScroll 36s linear infinite !important;
}

.harkat-running-logo:hover .running-logo-track {
  animation-play-state: paused !important;
}

.harkat-running-logo .running-logo-track a {
  flex: 0 0 auto !important;
  width: 168px !important;
  height: 74px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #b90000 !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(72, 34, 16, 0.07) !important;
  transition: all 0.25s ease !important;
}

.harkat-running-logo .running-logo-track a:hover {
  transform: translateY(-3px) !important;
  border-color: rgb(207, 0, 11) !important;
  box-shadow: 0 12px 24px rgba(72, 34, 16, 0.14) !important;
}

.harkat-running-logo .running-logo-track img {
  display: block !important;
  max-width: 138px !important;
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@keyframes harkatLogoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


/* =========================
   RUNNING LOGO SIDEBAR
   ========================= */

.pkp_structure_sidebar .harkat-running-logo {
  margin: 0 0 1.15rem !important;
  border-radius: 18px !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-head {
  padding: 13px 16px !important;
  text-align: center !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-title {
  font-size: 15px !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-window {
  padding: 12px 0 !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-track {
  gap: 12px !important;
  animation-duration: 28s !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-track a {
  width: 135px !important;
  height: 60px !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
}

.pkp_structure_sidebar .harkat-running-logo .running-logo-track img {
  max-width: 112px !important;
  max-height: 40px !important;
}


/* =====================================================
   TABLET
   ===================================================== */

@media screen and (max-width: 992px) {
  .tora-profile {
    max-width: 94% !important;
    width: 94% !important;
    margin-top: 14px !important;
  }

  .tora-profile h1 {
    font-size: 25px !important;
  }

  .tora-profile h2 {
    font-size: 19px !important;
  }

  .tora-profile p {
    font-size: 12.8px !important;
    line-height: 1.62 !important;
  }

  .tora-additional-menu {
    max-width: 100% !important;
  }

  .tora-additional-menu table {
    max-width: 100% !important;
  }

  .tora-additional-menu a {
    font-size: 11px !important;
    min-height: 38px !important;
  }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media screen and (max-width: 768px) {
  .pkp_structure_head {
    border-top-width: 5px !important;
  }

  .pkp_site_name {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .pkp_site_name img,
  .pkp_site_name .is_img img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .homepage_image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .pkp_navigation_primary_row,
  .pkp_navigation_primary_wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tora-profile {
    width: calc(100% - 22px) !important;
    max-width: calc(100% - 22px) !important;
    margin: 14px auto 24px auto !important;
  }

  .tora-profile > div:first-child {
    padding: 16px !important;
  }

  .tora-profile > div:first-child > table:first-of-type,
  .tora-profile > div:first-child > table:first-of-type > tbody,
  .tora-profile > div:first-child > table:first-of-type > tbody > tr,
  .tora-profile > div:first-child > table:first-of-type > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child {
    text-align: center !important;
    width: 100% !important;
    padding: 0 0 16px 0 !important;
    margin: 0 auto !important;
  }

  .tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child img {
    max-width: 220px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .tora-profile h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    margin-bottom: 14px !important;
  }

  .tora-profile h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .tora-profile p,
  .current_issue p,
  .obj_issue_toc p,
  .current_issue .description,
  .obj_issue_toc .description,
  .current_issue .obj_article_summary,
  .obj_issue_toc .obj_article_summary {
    font-size: 13px !important;
    line-height: 1.65 !important;
    text-align: left !important;
    text-justify: auto !important;
    word-spacing: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .tora-profile span {
    font-size: inherit !important;
  }

  .tora-profile ul {
    margin-left: 18px !important;
  }

  .tora-profile li {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .tora-profile table {
    border-spacing: 0 !important;
  }

  .tora-profile > div:first-child table:nth-of-type(2),
  .tora-profile > div:first-child table:nth-of-type(2) tbody,
  .tora-profile > div:first-child table:nth-of-type(2) tr,
  .tora-profile > div:first-child table:nth-of-type(2) td {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    vertical-align: top !important;
  }

  .tora-profile > div:first-child table:nth-of-type(2) {
    display: block !important;
    text-align: left !important;
    border-spacing: 0 !important;
  }

  .tora-profile > div:first-child table:nth-of-type(2) td {
    margin: 4px 4px 6px 0 !important;
    padding: 8px 10px !important;
  }

  .tora-additional-menu {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px !important;
    border-radius: 14px !important;
  }

  .tora-additional-menu table,
  .tora-additional-menu tbody,
  .tora-additional-menu tr,
  .tora-additional-menu td {
    display: block !important;
    width: 100% !important;
  }

  .tora-additional-menu a {
    width: 100% !important;
    margin-bottom: 7px !important;
    font-size: 11.8px !important;
    min-height: auto !important;
    padding: 8px 10px !important;
  }

  .current_issue .cover img,
  .obj_issue_toc .cover img,
  .issue_cover img {
    max-width: 150px !important;
  }

  .harkat-running-logo .running-logo-title {
    font-size: 15px !important;
  }

  .harkat-running-logo .running-logo-track {
    animation-duration: 28s !important;
  }

  .harkat-running-logo .running-logo-track a {
    width: 138px !important;
    height: 62px !important;
  }

  .harkat-running-logo .running-logo-track img {
    max-width: 116px !important;
    max-height: 40px !important;
  }
}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media screen and (max-width: 480px) {
  .tora-profile {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }

  .tora-profile > div:first-child {
    padding: 14px !important;
  }

  .tora-profile h1 {
    font-size: 20px !important;
    line-height: 1.28 !important;
  }

  .tora-profile h2 {
    font-size: 17px !important;
  }

  .tora-profile p {
    font-size: 12.8px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .tora-profile li {
    font-size: 12.8px !important;
  }

  .tora-profile > div:first-child > table:first-of-type > tbody > tr > td:first-child img {
    max-width: 200px !important;
  }

  .current_issue .cover img,
  .obj_issue_toc .cover img,
  .issue_cover img {
    max-width: 135px !important;
  }

  .harkat-running-logo {
    border-radius: 16px !important;
  }

  .harkat-running-logo .running-logo-head {
    padding: 13px 14px !important;
  }

  .harkat-running-logo .running-logo-title {
    font-size: 14px !important;
  }

  .harkat-running-logo .running-logo-track a {
    width: 128px !important;
    height: 58px !important;
  }

  .harkat-running-logo .running-logo-track img {
    max-width: 106px !important;
    max-height: 38px !important;
  }
}