/* ==========================================================================
   JOSTEN OJS 3.5 - FULL CUSTOM CSS (FINAL: DARK MODE FIX + MOBILE IMAGE)
   ========================================================================== */

/* ==========================================================================
   1. FONTS & GLOBAL VARIABLES
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Roboto:wght@400;500;700;900&display=swap");

:root {
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    "Noto Sans", sans-serif;
  --font-serif: "Cardo", Georgia, "Times New Roman", serif;
  /* Font Wajib Utama */
  --font-palatino: "Palatino Linotype", "Book Antiqua", Palatino, serif;

  /* Color Palette Light */
  --fg: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.12);
  --card: #ffffff;
  --shadow: 0 1px 6px rgba(2, 6, 23, 0.06);
  --radius: 14px;
  --link: #1f4db8;
  --chip-fg: #334155;
  --chip-line: rgba(15, 23, 42, 0.2);
  --chip-bg: rgba(15, 23, 42, 0.03);
  --icon: #64748b;
}

html.dark :root,
body.dark :root {
  /* Color Palette Dark */
  --fg: #e2e8f0;
  --muted: #9aa8bb;
  --line: rgba(226, 232, 240, 0.14);
  --card: #1e293b;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.45);
  --link: #38bdf8;
  --chip-fg: #cbd5e1;
  --chip-line: rgba(226, 232, 240, 0.24);
  --chip-bg: rgba(148, 163, 184, 0.1);
  --icon: #94a3b8;
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY
   ========================================================================== */
html,
body {
  font-family: var(--font-serif);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6,
.hero-journal h1,
.sidebar-title,
.josten-tools-title {
  font-family: var(--font-serif);
  font-weight: 700;
}

/* ==========================================================================
   3. HERO & HOMEPAGE (FIX MOBILE IMAGE: ANTI-GEPENG)
   ========================================================================== */
.hero-journal {
  background: linear-gradient(135deg, #0b3d91 0%, #1e3a8a 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.hero-journal h1 {
  font-size: 2.2rem;
}
.hero-journal p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #e0e7ff;
}

/* Homepage Grid */
.page_index_journal .josten-container {
  max-width: 1200px;
  margin: 40px auto 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .page_index_journal .josten-container {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}
.page_index_journal .josten-left {
  display: flex;
  justify-content: center;
}

/* FIX IMAGE DISTORTION (ANTI GEPENG) */
.page_index_journal .josten-left img {
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
.dark .page_index_journal .josten-left img {
  background: #111827;
}

/* Homepage Table */
.page_index_journal .josten-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}
.page_index_journal .josten-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  vertical-align: top;
  color: #1f2937;
}
.page_index_journal .josten-table td:first-child {
  width: 34%;
  color: #6b7280;
}
.page_index_journal .josten-table td:nth-child(2) {
  width: 4%;
  text-align: center;
}
.page_index_journal .josten-table td:nth-child(3) {
  width: 62%;
  font-weight: 600;
}
.dark .page_index_journal .josten-table {
  background: #0f172a;
}
.dark .page_index_journal .josten-table td {
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}

/* Description & Cover Layout */
.page_index_journal .josten-description {
  max-width: 1200px;
  margin: 8px auto 40px;
  padding: 0 16px;
  font-size: 15.5px;
  line-height: 1.9;
  text-align: justify;
  color: #334155;
}
.dark .page_index_journal .josten-description {
  color: #cbd5e1;
}

.cover-layout {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .cover-layout {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}
.cover-layout table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.cover-layout td,
.cover-layout th {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.cover-layout .cover-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  text-align: center;
}
.cover-layout .cover-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.cover-layout .cover-box a.button {
  background: #0b3d91;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  margin: 0 5px;
}

/* ==========================================================================
   4. SIDEBAR MODERN
   ========================================================================== */
.sidebar-modern {
  background: transparent;
  color: #1e293b;
  font-family: var(--font-palatino);
  width: 100%;
}
.sidebar-section {
  background: #f8fafc;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
}
.sidebar-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.dark .sidebar-section {
  background: #0f172a;
  box-shadow: 0 1px 8px rgba(255, 255, 255, 0.05);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.dark .sidebar-title {
  color: #f8fafc;
  border-left-color: #38bdf8;
}

.sidebar-modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-modern li a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.25s ease;
}
.sidebar-modern li a:hover {
  background: #e0f2fe;
  border-left-color: #0ea5e9;
  color: #075985;
}
.dark .sidebar-modern li a {
  color: #cbd5e1;
}
.dark .sidebar-modern li a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.template-box img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.flag-box img {
  border-radius: 10px;
  width: 100%;
  max-width: 220px;
}

/* ==========================================================================
   5. TOOLS & GUIDELINES
   ========================================================================== */
.josten-tools {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}
.josten-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
.dark .josten-carousel {
  background: #0b1220;
  border-color: rgba(226, 232, 240, 0.08);
}
.josten-track {
  display: flex;
  width: max-content;
  column-gap: 2.5rem;
  align-items: center;
  animation: josten-scroll 28s linear infinite;
}
.josten-carousel:hover .josten-track {
  animation-play-state: paused;
}
.josten-group {
  display: inline-flex;
  align-items: center;
  column-gap: 2.5rem;
}
.josten-group img {
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.9);
  transition: transform 0.2s ease, filter 0.2s ease;
}
@media (min-width: 1024px) {
  .josten-group img {
    height: 56px !important;
  }
}
.josten-group img:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px) scale(1.03);
}
@keyframes josten-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .josten-track {
    animation: none;
  }
}
@media (max-width: 480px) {
  .josten-group {
    column-gap: 1.5rem;
  }
  .josten-group img {
    height: 40px !important;
  }
}

#authorGuidelines p,
#authorGuidelines li {
  text-align: justify;
  hyphens: auto;
}

/* ==========================================================================
   6. CUSTOM PAGES (Editorial & Reviewer - DARK MODE FIXED)
   ========================================================================== */
.josten-r-cardo,
.josten-ed-cardo {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
  font-family: Cardo, serif;
}
.josten-r-cardo h2,
.josten-ed-cardo h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.2rem, 1.1vw + 1rem, 1.55rem);
  font-weight: 700;
  color: var(--fg);
}
.josten-r-cardo ul,
.josten-ed-cardo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .josten-r-cardo ul,
  .josten-ed-cardo ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card Styling */
.josten-r-cardo li,
.josten-ed-cardo li {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.josten-r-cardo li:hover,
.josten-ed-cardo li:hover {
  transform: translateY(-2px);
}

/* --- DARK MODE CARD OVERRIDES --- */
html.dark .josten-r-cardo li,
html.dark .josten-ed-cardo li {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* --- FIX DARK MODE TITLES (AGAR PUTIH) --- */
html.dark .josten-r-cardo h2,
html.dark .josten-ed-cardo h2,
html.dark h1,
html.dark h2,
html.dark h3 {
  color: #ffffff !important;
}

.rc-row,
.ed-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
}
.rc-row:first-child,
.ed-row:first-child {
  margin-top: 0;
}
.rc-label,
.ed-label {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-val,
.ed-val {
  color: var(--fg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
}
.rc-name a,
.ed-name a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

/* --- DARK MODE TEXT COLORS --- */
html.dark .rc-val,
html.dark .ed-val {
  color: #f1f5f9 !important;
}
html.dark .rc-name a,
html.dark .ed-name a {
  color: #38bdf8 !important;
}

/* --- FIX SCOPUS BORDER DARK MODE --- */
.scopus-id {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--chip-fg);
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  padding: 6px 12px;
}
.scopus-id .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #f97316);
  display: inline-block;
}

html.dark .scopus-id {
  border-color: #94a3b8 !important; /* Border Lebih Terang */
  background: rgba(148, 163, 184, 0.1) !important;
  color: #f1f5f9 !important;
}

.rc-uni,
.ed-uni {
  gap: 0 !important;
}
.rc-uni::before,
.ed-uni::before {
  content: none !important;
}

/* ==========================================================================
   7. CURRENT ISSUE (TOC & COVER FIX)
   ========================================================================== */
.obj_issue_toc {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 1.5rem;
  font-family: var(--font-palatino) !important;
}

/* FIX COVER IMAGE DI HOME - BIAR TIDAK GEPENG */
.obj_issue_toc .group.relative img {
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  border-radius: 6px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto 0 0 !important;
  transition: transform 0.3s ease;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
.obj_issue_toc .group.relative img:hover {
  transform: translateY(-3px);
}

.current_issue_title {
  font-family: var(--font-palatino) !important;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}
.dark .current_issue_title {
  color: #ffffff !important;
  border-bottom-color: #334155;
}

.obj_issue_toc ul li {
  border-bottom: 1px dashed #e2e8f0 !important;
  padding: 15px 0 !important;
}
.obj_issue_toc ul li:last-child {
  border-bottom: none !important;
}
.dark .obj_issue_toc ul li {
  border-bottom-color: #334155 !important;
}
.obj_issue_toc h4 a {
  font-family: var(--font-palatino) !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.obj_issue_toc h4 a:hover {
  color: #0284c7;
}
.dark .obj_issue_toc h4 a {
  color: #ffffff !important;
}

.obj_issue_toc .text-gray-700,
.obj_issue_toc .md\:text-sm,
.obj_issue_toc .text-xs,
.obj_galley_link {
  font-family: var(--font-palatino) !important;
}
.obj_galley_link {
  font-weight: 700 !important;
  text-transform: uppercase !important;
}
.dark .obj_issue_toc .text-gray-700 {
  color: #e2e8f0 !important;
}

@media (max-width: 640px) {
  .obj_issue_toc .group.relative img {
    margin: 0 auto 15px auto !important;
    max-width: 250px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

/* ==========================================================================
   8. ARTICLE DETAILS (FIX: HEADER STACKING & MOBILE IMAGE RATIO)
   ========================================================================== */

/* --- A. Global Cleanup (Hide Elements) --- */
.obj_article_details dl > div:nth-child(1) svg,           /* Icons */
.obj_article_details dl > div:nth-child(1) a[href*="ror.org"], /* ROR */
.obj_article_details .userGroup,                          /* Label Author Role */
.obj_article_details .flex.items-center:has(.userGroup),
.obj_article_details dl > div:has(canvas),                /* Graph */
.obj_article_details dl > div:has(.usageStatsGraph) {
  display: none !important;
}

.obj_article_details dl > div:has(img) dt {
  display: none;
}

/* Font Setup */
.obj_article_details h1.page_title,
.obj_article_details dt,
.obj_article_details dd,
.obj_article_details .text-sm\/6.font-semibold,
.obj_article_details .affiliation {
  font-family: var(--font-palatino) !important;
}

/* --- B. DESKTOP LAYOUT (min-width: 768px) --- */
@media (min-width: 768px) {
  .obj_article_details {
    position: relative;
    min-height: 320px;
  }

  /* Cover Image: Absolute Left */
  .obj_article_details dl > div:has(img) {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    z-index: 10;
  }
  .obj_article_details dl > div:has(img) img {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    object-fit: contain;
  }

  /* Title: Right Offset - TIGHT SPACING */
  .obj_article_details h1.page_title {
    font-size: 1.85rem !important;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin-left: 250px;
    margin-top: 30px;
    margin-bottom: 4px !important; /* Jarak Rapat ke Author */
    border: none !important;
    text-align: left !important;
  }
  .dark .obj_article_details h1.page_title {
    color: #ffffff !important;
  }

  /* Author: Right Offset - TIGHT SPACING */
  .obj_article_details dl > div:nth-child(1) {
    margin-left: 250px;
    padding-left: 0 !important;
    border-bottom: none !important;
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
  }

  /* Keywords: Right Offset - TIGHT SPACING & NO BORDER */
  .obj_article_details dl > div:nth-child(2) {
    margin-left: 250px;
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .obj_article_details dl > div:nth-child(2) dd {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 2px;
  }

  /* Abstract & Others: Full Width Below */
  .obj_article_details dl > div:nth-child(n + 3) {
    margin-left: 0;
    width: 100%;
    clear: both;
    margin-top: 30px !important;
  }
}

/* --- C. MOBILE LAYOUT FIX (ANTI SQUASH + CENTER) --- */
@media (max-width: 767px) {
  /* 1. Reset Margin & Center Title */
  .obj_article_details h1.page_title,
  .obj_article_details dl > div {
    margin-left: 0 !important;
    text-align: left;
  }
  .obj_article_details h1.page_title {
    font-size: 1.6rem !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    color: #0f172a;
  }
  .dark .obj_article_details h1.page_title {
    color: #ffffff !important;
  }

  /* 2. FLEX RE-ORDER MAGIC */
  .obj_article_details dl {
    display: flex !important;
    flex-direction: column !important;
  }
  .obj_article_details dl > div:has(img) {
    order: -1 !important; /* Move to Top */
    position: static !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 3. FIX GAMBAR "GEPENG" DI ARTIKEL DETAIL */
  .obj_article_details dl > div:has(img) img {
    margin: 0 auto !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .obj_article_details dl > div {
    order: 0;
  }

  /* Mobile Spacing Tweak */
  .obj_article_details dl > div:nth-child(1),
  .obj_article_details dl > div:nth-child(2) {
    margin-bottom: 8px !important;
    border-bottom: none !important;
  }
  .obj_article_details dl > div:nth-child(n + 3) {
    margin-top: 20px !important;
  }
}

/* --- D. Content Styling (All Screens) --- */
.obj_article_details dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
}
.obj_article_details .text-sm\/6.font-semibold {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #0f172a;
  line-height: 1.2;
  display: block;
  margin-bottom: 4px;
}
.obj_article_details .affiliation {
  font-size: 1.05rem !important;
  color: #64748b;
  font-style: normal;
  display: block;
}
.dark .obj_article_details .text-sm\/6.font-semibold {
  color: #f1f5f9;
}
.dark .obj_article_details .affiliation {
  color: #94a3b8;
}
.obj_article_details dl > div:nth-child(3) dd {
  text-align: justify !important;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #334155;
}
.dark .obj_article_details dl > div:nth-child(3) dd {
  color: #cbd5e1;
}

/* Keyword Chips */
.josten-keyword-chip {
  display: inline-block;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 50px;
  padding: 4px 12px;
  margin-right: 6px;
  margin-bottom: 8px;
  white-space: nowrap;
  transition: 0.2s;
}
.josten-keyword-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}
.dark .josten-keyword-chip {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* ==========================================================================
   9. FOOTER MODERN
   ========================================================================== */
.footer-modern {
  width: 100%;
  padding: 32px 0;
}
.footer-modern * {
  box-sizing: border-box;
}
.footer-modern .wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-modern .footer-logo img {
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.footer-modern table,
.footer-modern table[style] {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse;
}
.footer-modern tbody {
  width: 100%;
}

@media (max-width: 899px) {
  .footer-modern .footer-logo img {
    margin-left: 0;
    margin-right: auto;
  }
  .footer-modern tbody,
  .footer-modern tr,
  .footer-modern td {
    display: block !important;
    width: 100% !important;
  }
  .footer-modern td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }
  .footer-modern td:last-child {
    border-bottom: 0;
  }
  .dark .footer-modern td {
    border-bottom-color: #1e293b;
  }
}
@media (min-width: 900px) {
  .footer-modern tbody {
    display: grid !important;
    grid-template-columns: 1.6fr 1.2fr 0.9fr;
    column-gap: 48px;
    align-items: start;
  }
  .footer-modern tr {
    display: contents !important;
  }
  .footer-modern td {
    padding: 8px 0;
  }
}

.footer-modern p,
.footer-modern li {
  margin: 0 0 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.footer-modern ul {
  margin: 0;
  padding-left: 16px;
}
.footer-modern strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-modern a {
  color: #0ea5e9;
  text-decoration: none;
}
.footer-modern a:hover {
  text-decoration: underline;
}

/* Reset PKP Footer */
footer .pkp_brand_footer {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
footer .pkp_brand_footer img {
  max-width: 110px;
  height: auto;
  display: block;
}
@media (min-width: 992px) {
  footer .pkp_brand_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
  }
}
@media (max-width: 991px) {
  footer .pkp_brand_footer {
    text-align: center;
  }
}
.footer .text-sm {
  text-align: center;
  margin-top: 12px;
}

.w-full .footer-modern tbody,
.w-full .footer-modern td,
.w-full .footer-modern p {
  text-align: left;
}

/* ==========================================================================
   10. REORDER FIX: CONTENT -> HOW TO CITE -> REFERENCES
   ========================================================================== */

/* 1. Target Wrapper Utama di dalam Row (Ayah dari semua elemen konten) */
.obj_article_details .row > div {
  display: flex !important;
  flex-direction: column !important;
}

/* 2. Urutan PERTAMA: Metadata (Author, Abstract, Keywords, DOI, dll) */
.obj_article_details .row > div > div.border-t,
.obj_article_details .row > div > dl {
  order: 1 !important;
}

/* 3. Urutan KEDUA: How to Cite */
.obj_article_details .row > div > div:has(.citation) {
  order: 2 !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  border-top: 1px solid #f1f5f9; /* Garis pemisah atas */
  padding-top: 2rem;
}
.dark .obj_article_details .row > div > div:has(.citation) {
  border-top-color: #1e293b;
}

/* 4. Urutan KETIGA: References (Daftar Pustaka) */
.obj_article_details .row > div > div:has(.references),
.obj_article_details .row > div > div:has(#articleReferences),
.obj_article_details .item.references {
  order: 3 !important;
  margin-top: 1rem !important;
}

/* Styling Text References agar Rapi (Palatino) */
.item.references .label {
  font-family: var(--font-palatino) !important;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}
.item.references .value,
.item.references p {
  font-family: var(--font-palatino) !important;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  text-align: justify;
}
.dark .item.references .label {
  color: #f8fafc;
}
.dark .item.references .value,
.dark .item.references p {
  color: #cbd5e1;
}

/* ==========================================================================
   11. ARCHIVE PAGE FIXES (FIX IMAGE SIZE)
   ========================================================================== */
.page_issue_archive ._obj_issue_summary img {
  width: 100% !important;
  max-width: 220px !important; /* Batasi lebar agar tidak raksasa */
  height: auto !important;
  aspect-ratio: auto !important; /* Matikan rasio kotak bawaan */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto 15px auto !important; /* Tengah & Beri jarak bawah */
  display: block;
  object-fit: cover;
}

/* Judul Issue di Archive */
.page_issue_archive h3 a {
  font-family: var(--font-palatino) !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.page_issue_archive h3 a:hover {
  color: #1f4db8;
}
.dark .page_issue_archive h3 a {
  color: #f8fafc !important;
}

/* Volume/Year Text */
.page_issue_archive .text-gray-500 {
  font-family: var(--font-palatino) !important;
  font-size: 0.95rem;
}
.dark .page_issue_archive .text-gray-500 {
  color: #94a3b8;
}

/* ==========================================================================
   12. FIX PDF VIEWER ON MOBILE (Memaksa PDF Tampil di HP)
   ========================================================================== */

/* 1. Paksa Container PDF agar punya tinggi di HP */
@media (max-width: 768px) {
    /* Target halaman View PDF */
    .pkp_page_article_view .pdf-viewer,
    .pkp_page_article_view #pdfCanvasContainer,
    .pkp_page_article_view iframe,
    .pkp_page_article_view .fullscreen-frame {
        min-height: 85vh !important; /* Paksa tinggi 85% layar HP */
        height: 85vh !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
        overflow-y: scroll !important; /* Izinkan scroll di dalam PDF */
        -webkit-overflow-scrolling: touch; /* Scroll halus untuk iPhone */
    }

    /* Sembunyikan elemen pengganggu di mode PDF Mobile */
    .pkp_page_article_view header, 
    .pkp_page_article_view .footer-modern {
        display: none !important; /* Opsi: Sembunyikan Header/Footer biar fokus baca */
    }
    
    /* Pastikan body full height */
    body.pkp_page_article_view {
        height: 100vh !important;
        overflow: hidden !important;
    }
}

/* 2. Khusus iPhone/iPad (iOS) yang sering menolak iframe */
@supports (-webkit-touch-callout: none) {
    .pkp_page_article_view iframe {
        min-width: 100%;
        width: 1px !important; 
        min-height: 100%;
    }
}