/* ===================================================== */
/* RESET & BASE                                          */
/* ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f6f8fb;
  color: #222;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f6f8fb; /* fallback */
  background-image: url("images/background-IJCC.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: auto;
  background-attachment: fixed; /* ⬅️ KUNCI */
  color: #222;
  min-height: 100vh;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* TOP BAR */
.top-bar {
  background: #16284c;
  height: 32px;
}

.top-bar-inner {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;

  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-inner a {
  color: #fff;
  margin-left: 16px;
  text-decoration: none;
  font-size: 13px;
}

.top-bar-inner a:hover {
  text-decoration: underline;
}

/* NAVBAR */
.navbar {
  height: 120px;
  position: relative; /* ⬅️ KUNCI */
  margin-top: auto; /* ⬅️ TURUN KE BAWAH */
  width: 100%;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: auto;
  padding: 0 32px 12px;

  position: relative; /* KUNCI */
  display: flex;
  align-items: flex-end;
}

.search {
  position: absolute;
  right: -63px; /* sejajar padding nav-inner */
  bottom: 12px; /* sejajar menu */
}

.nav-inner nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
}

/* ===================================================== */
/* NAV MENU                                              */
/* ===================================================== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #ffff;
  padding: 8px 4px;
  font-weight: 400;
  transition: color 0.2s ease;
}

/* hover tanpa geser */
.nav-menu a:hover {
  color: #ffd700;
  text-shadow:
    0.3px 0 0 currentColor,
    -0.3px 0 0 currentColor;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #ffd700;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* ===================================================== */
/* DROPDOWN                                              */
/* ===================================================== */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 5px 0;
  z-index: 2000;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #222;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: #f2f4f8;
  color: #1f3c88;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===================================================== */
/* SEARCH                                                */
/* ===================================================== */
.search {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.search:focus {
  outline: none;
  border-color: #1f3c88;
  box-shadow: 0 0 0 2px rgba(31, 60, 136, 0.15);
}

/* ===================================================== */
/* MAIN & LAYOUT                                         */
/* ===================================================== */
main {
  padding-top: 212px; /* jarak estetika, BUKAN offset header */
  
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;

}

.main-layout {
  display: grid;
  grid-template-columns: 4fr 1.2fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
}

/* CONTENT BOX */
.box {
  background: transparent; /* hilangkan kotak */
  padding: 0;
  margin-bottom: 25px;

  border-bottom: 1px solid #e5e5e5; /* pemisah section */
  padding-bottom: 20px;
}

/* ===================================================== */
/* TEXT & LIST                                           */
/* ===================================================== */
.justify {
  text-align: justify;
  line-height: 1.7;
  word-spacing: 0.02em;
  hyphens: auto;
}

.scope-list {
  list-style: disc;
  list-style-position: outside;
  padding-left: 15px;
  margin-top: 10px;
}

.scope-list li {
  margin-bottom: 8px;
}

/* ===================================================== */
/* CURRENT ISSUE TEXT                                    */
/* ===================================================== */
.current-issue h2 {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 6px;
}
.issue-meta {
  font-weight: 600;
  margin-bottom: 6px;
}

.published {
  margin-bottom: 18px;
  color: #555;
}
.article-heading {
  font-size: 16px;
  margin-bottom: 15px;
}
.article-item {
  margin-bottom: 25px;
}
.article-title {
  color: #1f3c88;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.article-title:hover {
  text-decoration: underline;
}
.doi {
  font-size: 14px;
  margin-bottom: 4px;
}
.authors {
  font-size: 14px;
  margin-bottom: 8px;
}

.pages {
  float: right;
  color: #666;
}
.pdf-btn {
  display: inline-block;
  background: #2f6fa3;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
}

.pdf-btn:hover {
  background: #1e4f7a;
}



/* ===================================================== */
/* JOURNAL HEADER                                        */
/* ===================================================== */
.journal-header {
  display: flex;
  gap: 20px;
}

.journal-header img {
  max-width: 260px;
}

.meta-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin-bottom: 8px;
}
.meta-label {
  font-weight: 600;
}

.meta-value::before {
  content: ": ";
}

/* ===================================================== */
/* SIDEBAR                                               */
/* ===================================================== */
.sidebar {
  padding: 20px 20px 10px 20px;
}
.widget {
  background: transparent;
  margin-bottom: 35px;
}
.widget h4 {
  background: #101a8b;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;

  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;
}

.side-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-menu li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;

  /* Gradient biru */
  background: linear-gradient(180deg, #2f6fa3, #1e4f7a);

  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.side-menu li a:hover {
  background: linear-gradient(180deg, #3f86c2, #2a669c);
}
.side-menu li a {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tools-box {
  text-align: center;
  padding: 10px 0;
}

.tools-box img {
  max-width: 180px;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tools-widget {
  margin-top: 40px;
}
/* ===================================================== */
/* EDITORIAL TEAM                                        */
/* ===================================================== */
.editorial-title {
  margin: 30px 0 15px;
  font-size: 18px;
  color: #1f3c88;
  border-bottom: 2px solid #e5e9f2;
  padding-bottom: 5px;
}

.editorial-item {
  margin-bottom: 25px;
}

.editorial-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  margin-bottom: 6px;
}

.editorial-row .label {
  font-weight: 600;
  position: relative;
}

.editorial-row .label::after {
  content: ":";
  position: absolute;
  right: 0;
}

.editorial-row .value {
  padding-left: 10px;
  line-height: 1.6;
}

/* ===================================================== */
/* FOOTER                                                */
/* ===================================================== */
.footer {
  background: #16284c;
  color: #fff;
  text-align: center;
  padding: 15px;
}
/* ===============================
   HERO HEADER BACKGROUND IJCC
   =============================== */

.hero-header {
  height: 180px; /* INI KUNCI */
  background-image: url("images/cover_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;

  position: relative; /* ⬅️ TAMBAHKAN INI */
  
}

/* JANGAN ADA KONTEN KETUTUP */
main {
  padding-top: 212px;
}
.content {
  padding: 20px;
  border-right: 1px solid #e5e5e5; /* garis pemisah */
}
[id] {
  scroll-margin-top: 260px;
}

/* =========================================
   RESPONSIVE MOBILE IJCC
   ========================================= */

/* TABLET & HP */
@media (max-width: 1024px) {

  /* Layout jadi 1 kolom */
  .main-layout {
    grid-template-columns: 1fr;
  }

  .content {
    border-right: none;
  }

  .sidebar {
    margin-top: 25px;
  }

}


/* KHUSUS HP */
@media (max-width: 768px) {

  /* HERO HEADER */
  .hero-header {
    height: auto;
    padding: 30px 15px;
  }

  /* NAVBAR */
  .navbar {
    height: auto;
    padding: 10px 0;
  }

  .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  /* MENU JADI VERTIKAL */
  .nav-menu {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* SEARCH MASUK KE BAWAH */
  .search {
    position: static;
    margin-top: 10px;
    width: 90%;
  }

  /* CONTAINER */
  .container {
    padding: 10px;
  }

  /* JOURNAL HEADER */
  .journal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .journal-header img {
    max-width: 180px;
  }

  /* META GRID JADI 1 KOLOM */
  .meta-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .meta-label::after {
    content: ": ";
  }

  /* ARTICLE PAGE NUMBER */
  .pages {
    float: none;
    display: block;
    margin-top: 4px;
  }

  /* SIDEBAR */
  .sidebar {
    padding: 10px;
  }

  /* TOOLS LOGO */
  .tools-box img {
    max-width: 140px;
  }

}


/* HP KECIL */
@media (max-width: 480px) {

  .nav-menu a {
    font-size: 14px;
  }

  .widget h4 {
    font-size: 13px;
  }

  .side-menu li a {
    font-size: 13px;
    padding: 9px;
  }

  .pdf-btn {
    font-size: 12px;
    padding: 5px 10px;
  }

}
/* =========================
   CONTACT PAGE
   ========================= */

.contact-address {
  margin-bottom: 30px;
  line-height: 1.7;
}

/* GRID 2 KOLOM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ITEM */
.contact-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-item p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* LINK EMAIL */
.contact-item a {
  color: #1f3c88;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

}
