/* =====================================================================
   JICAI — Journal of Intelligent Computing and Applied Informatics
   Custom theme for OJS 2.x (classic markup)
   Upload via: Journal Manager > Setup > Step 5 > 5.6 "Journal style sheet"
   ===================================================================== */

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

:root {
  --navy-900: #071226;
  --navy-800: #0b1a33;
  --navy-700: #10264a;
  --navy-600: #183463;
  --gold: #e8a838;
  --gold-dark: #c98c1f;
  --ink: #1b2433;
  --muted: #5d6b80;
  --line: #e3e8ef;
  --bg: #f4f6f9;
  --card: #ffffff;
  --soft: #f1f4f8;
  --link: #1d4f91;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 38, 74, .06), 0 2px 8px rgba(16, 38, 74, .05);
  --wrap: 1280px;
}

/* ---------- Base ---------- */
html, body { background: var(--bg) !important; background-image: none !important; overflow-x: hidden; overflow-x: clip; }
#container, #body, #main { background-image: none !important; }
h1, h2, h3, h4, h5, h6 { font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a, a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:active { color: var(--gold-dark); text-decoration: underline; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { font-family: inherit; color: var(--navy-800); line-height: 1.3; }
input[type="text"], input[type="password"], input[type="email"], select, textarea { box-sizing: border-box; border: 1px solid #cfd7e3; border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 168, 56, .2); }
input.button, input[type="submit"], button, .button { background: var(--gold); color: var(--navy-900); border: 0; border-radius: 6px; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
input.button:hover, input[type="submit"]:hover, button:hover { background: var(--gold-dark); }

/* ---------- Page frame ---------- */
#container { max-width: var(--wrap); margin: 0 auto; padding: 0; background: transparent; width: auto; min-width: 0; }

/* ---------- Header (full-bleed) ---------- */
#header { position: relative; background: var(--navy-800); box-shadow: 0 0 0 100vmax var(--navy-800); clip-path: inset(0 -100vmax); padding: 0; margin: 0; height: auto; border: 0; text-align: left; }
#header::before { content: "\1F3DB\FE0E  Universitas Nurul Jadid  \2022  Open Access Academic Journal"; display: block; font-size: 11.5px; letter-spacing: .02em; color: #9fb0c8; padding: 7px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 100vmax var(--navy-900); clip-path: inset(0 -100vmax); background: var(--navy-900); }
#headerTitle { padding: 22px 24px 20px; margin: 0; width: auto; text-align: left; }
#headerTitle h1 { margin: 0; padding: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; color: #fff; font-family: inherit; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
#headerTitle h1::before { content: "JICAI"; background: var(--gold); color: var(--navy-900); font-size: 17px; font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; }
#headerTitle h1::after { content: "e-ISSN: on process   \2022   Frequency: 3 issues/year (April, August, December)   \2022   Double-blind peer review"; flex-basis: 100%; white-space: pre-wrap; font-size: 12.5px; font-weight: 500; color: #c3cfdf; letter-spacing: 0; }
#headerTitle img { max-height: 90px; }

/* ---------- Body grid: main + right sidebar ---------- */
#body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 120px 24px 40px; margin: 0; width: auto; background: transparent; }
#main { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 0; float: none; min-width: 0; }
#sidebar { grid-column: 2; grid-row: 1; width: auto; float: none; margin: 0; padding: 0; background: transparent; }
#leftSidebar, #rightSidebar { width: auto; float: none; padding: 0; margin: 0; background: transparent; }

/* ---------- Navbar ---------- */
#navbar { position: absolute; top: 0; left: 0; right: 0; height: 52px; margin: 0; padding: 0 24px; background: var(--navy-700); box-shadow: 0 0 0 100vmax var(--navy-700); clip-path: inset(0 -100vmax); border-top: 0; border-bottom: 0; z-index: 5; }
#navbar::before, #pageFooter::before { content: ""; position: absolute; top: 0; left: -100vmax; right: -100vmax; height: 3px; background: var(--gold); }
#navbar ul.menu { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
#navbar ul.menu::-webkit-scrollbar { display: none; }
#navbar ul.menu li { display: flex; margin: 0; padding: 0; float: none; }
#navbar ul.menu li a { display: flex; align-items: center; padding: 0 16px; color: #e6ecf5; font-size: 13.5px; font-weight: 500; text-transform: none; letter-spacing: 0; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; transition: background .15s, color .15s; }
#navbar ul.menu li a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
#navbar ul.menu li#home a::before { content: "\2302\00a0"; font-size: 15px; }
#navbar ul.menu li.jc-active a { color: var(--gold); font-weight: 600; background: rgba(255, 255, 255, .06); border-bottom-color: var(--gold); }


/* ---------- Breadcrumb ---------- */
#breadcrumb { position: absolute; top: 55px; left: 0; right: 0; height: 38px; line-height: 38px; margin: 0; padding: 0 24px; font-size: 12px; color: var(--muted); background: #e9edf3; box-shadow: 0 0 0 100vmax #e9edf3; clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#breadcrumb a { color: var(--muted); }
#breadcrumb a.current { color: var(--navy-700); font-weight: 500; }

/* ---------- Page title & content card ---------- */
#main > h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: var(--navy-800); }
#main > h3 { font-size: 17px; margin: 0 0 12px; }
#content { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin: 0; font-size: 14px; }
#content h3 { font-size: 18px; font-weight: 700; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
#content h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
#content ul, #content ol { padding-left: 20px; }
#content li { margin-bottom: 4px; }
#content table { border-collapse: collapse; }
#content .separator { border-top: 1px solid var(--line); margin: 14px 0; }
#content table.listing td.headseparator, #content table.listing td.separator, #content table.listing td.endseparator { border-top: 1px solid var(--line); height: 1px; }
#content table.listing tr.heading td { font-weight: 600; color: var(--navy-700); padding: 8px 6px; }
#content table.listing td { padding: 8px 6px; }
#homepageImage { display: none; }
#content > br { display: none; }

/* ---------- Issue table of contents ---------- */
#content h4.tocSectionTitle, .tocSectionTitle { background: var(--navy-800); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 16px; margin: 26px 0 0; border-radius: 6px 6px 0 0; }
#content table.tocArticle { width: 100%; border: 1px solid var(--line); border-top: 0; background: #fff; margin: 0; }
#content table.tocArticle td { padding: 16px 18px 4px; vertical-align: top; }
#content table.tocArticle td.tocTitle { font-size: 15px; font-weight: 600; line-height: 1.4; }
#content table.tocArticle td.tocTitle a { color: var(--navy-800); }
#content table.tocArticle td.tocTitle a:hover { color: var(--gold-dark); }
#content table.tocArticle td.tocAuthors { font-size: 12.5px; color: var(--muted); padding-top: 0; padding-bottom: 16px; }
#content table.tocArticle td.tocPages { font-size: 12px; color: var(--muted); text-align: right; padding-top: 0; }
#content table.tocArticle td.tocGalleys { text-align: right; white-space: nowrap; }
#content a.file { display: inline-block; background: #c62828; color: #fff !important; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 5px; text-decoration: none; }
#content a.file:hover { background: #a31f1f; text-decoration: none; }
#issueCoverImage img, #issueCoverImage { border-radius: 6px; }
#issueDescription { color: var(--muted); }
#articleTitle h3 { font-size: 22px; border: 0; margin-top: 0; }
#authorString { color: var(--muted); font-style: normal; margin-bottom: 16px; }
#articleAbstract h4, #articleSubject h4, #articleCitations h4 { color: var(--navy-700); }
#articleAbstract div { text-align: justify; }

/* ---------- Sidebar blocks ---------- */
#sidebar div.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 20px; padding: 0 18px 16px; font-size: 13px; overflow: hidden; }
#sidebar div.block span.blockTitle, #sidebar div.block .blockTitle { display: block; margin: 0 -18px 14px; padding: 13px 18px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-800); }
#sidebar div.block p:first-child { margin: 0; }
#sidebar div.block span.blockSubtitle { display: block; font-weight: 600; color: var(--navy-700); margin: 10px 0 4px; }
#sidebar div.block a { color: #3a475a; }
#sidebar div.block a:hover { color: var(--gold-dark); }
#sidebar div.block table { width: 100%; }
#sidebar div.block td { padding: 3px 0; }
#sidebar div.block input[type="text"], #sidebar div.block input[type="password"], #sidebar div.block select { width: 100%; }
#sidebar div.block:first-child { border-top: 3px solid var(--gold); }
#customblock-JICAI-Bar-Right::before { content: "\2139\FE0E\00a0 Journal Information"; display: block; margin: 0 -18px 10px; padding: 13px 18px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-800); }
#customblock-Visitor-Counter p:last-child { text-align: center; }
#sidebar ul.sidemenu { list-style: none; margin: 0; padding: 0; }
#sidebar ul.sidemenu li { margin: 0; padding: 0; border-bottom: 1px dashed #edf0f4; }
#sidebar ul.sidemenu li:last-child { border-bottom: 0; }
#sidebar ul.sidemenu li a { display: block; padding: 6px 0 6px 14px; position: relative; color: #3a475a; }
#sidebar ul.sidemenu li a::before { content: "\203A"; position: absolute; left: 2px; color: #9aa7b8; }
#sidebar ul.sidemenu li a:hover { color: var(--gold-dark); text-decoration: none; }

/* ---------- JICAI custom components ---------- */
.jc-sub { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
.jc-lead { text-align: justify; }
.jc-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.jc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #f0f2f6; font-size: 12px; }
.jc-chips strong { color: var(--navy-800); margin-right: 4px; }
.jc-chips strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 7px; }
.jc-chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: #44516a; font-size: 12px; }
.jc-badge { display: inline-block; background: var(--navy-800); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; }
.jc-feature { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; margin: 22px 0 6px; align-items: start; }
.jc-feature img { width: 100%; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(11, 26, 51, .15); display: block; }
.jc-feature h4 { margin: 0 0 8px !important; }
.jc-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0 !important; list-style: none; }
.jc-glance li { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 0 !important; font-size: 12.5px; line-height: 1.45; }
.jc-glance li b, .jc-glance li strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.jc-scope, #sidebar .jc-scope { list-style: none; margin: 0; padding: 0 !important; }
.jc-scope li { position: relative; padding: 4px 0 4px 22px; margin: 0 !important; font-size: 13px; color: #3a475a; }
.jc-scope li::before { content: "\2713"; position: absolute; left: 2px; top: 4px; color: #2e9d6a; font-weight: 700; }
#content .jc-scope { columns: 2; column-gap: 24px; }
#content .jc-scope li { break-inside: avoid; }
.jc-cta, #sidebar a.jc-cta { display: block; text-align: center; background: var(--gold); color: var(--navy-900) !important; font-weight: 700; font-size: 13.5px; padding: 11px 12px; border-radius: 6px; margin-top: 12px; text-decoration: none !important; transition: background .15s; }
.jc-cta:hover { background: var(--gold-dark); }
.jc-file, #sidebar a.jc-file { display: flex; align-items: center; gap: 10px; border: 1px solid #cfdaea; background: #f5f8fd; border-radius: 6px; padding: 10px 12px; margin-top: 8px; color: var(--navy-700) !important; font-weight: 600; font-size: 12.5px; text-decoration: none !important; }
.jc-file:hover { border-color: var(--gold); background: #fffaf0; }
.jc-file .ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: #2b5797; color: #fff; font-size: 11px; font-weight: 800; }
.jc-file .ico.tex { background: #3a7d44; }
.jc-file .dl { margin-left: auto; color: var(--muted); }
.jc-metrics { width: 100%; border-collapse: collapse; }
.jc-metrics td { padding: 8px 0 !important; border-bottom: 1px solid #f0f2f6; font-size: 12.5px; }
.jc-metrics tr:last-child td { border-bottom: 0; }
.jc-metrics td:first-child { color: var(--muted); }
.jc-metrics td:last-child { text-align: right; font-weight: 600; color: var(--navy-800); font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; }

/* ---------- Footer ---------- */
#pageFooter { background: var(--navy-900); box-shadow: 0 0 0 100vmax var(--navy-900); clip-path: inset(0 -100vmax); position: relative; border-top: 0; color: #aab6c8; padding: 38px 24px 22px; margin: 0; font-size: 12.5px; text-align: left; }
#pageFooter h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 12px; }
#pageFooter a { color: var(--gold); }
#pageFooter strong { color: #e6ecf5; }
.jicai-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.jicai-footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 11.5px; color: #7f8ca0; }

/* ---------- Misc ---------- */
.instruct, .help { color: var(--muted); font-size: 12.5px; }
div#announcementsHome h3 { margin-top: 30px; }
table.announcements td.title h4 { margin: 0; }
.formError, span.formError { color: #c62828; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  #body { grid-template-columns: minmax(0, 1fr); padding: 112px 16px 28px; gap: 20px; }
  #sidebar { grid-column: 1; grid-row: 2; }
  #navbar { padding: 0 8px; }
  #breadcrumb { padding: 0 16px; }
  #headerTitle { padding: 18px 16px 16px; }
  #header::before { padding: 6px 16px; }
  #headerTitle h1 { font-size: 20px; }
  .jicai-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  #content { padding: 18px 16px; }
  .jc-feature { grid-template-columns: minmax(0, 1fr); }
  .jc-feature img { max-width: 200px; }
  .jc-glance { grid-template-columns: minmax(0, 1fr); }
  #content .jc-scope { columns: 1; }
  #headerTitle h1::after { font-size: 11.5px; }
}
