/* =====================================
   RESET AMAN
===================================== */
body {
  background: #f4f7fc;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  color: #1b2a4a;
}

/* =====================================
   RUNNING TEXT (SNAP TEXT)
===================================== */
.snap-wrapper {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #0a2342, #1b2a4a);
  border-bottom: 3px solid #e6b422;
}

.snap-text {
  display: inline-block;
  padding: 8px 0 8px 100%;
  white-space: nowrap;
  color: #e6b422;
  font-size: 13px;
  font-weight: 600;
  animation: marquee 22s linear infinite;
}

/* ALTERNATIF RUNNING TEXT (JEKOS) */
.jekos-running-wrapper {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #0a2342, #1b2a4a);
  border-bottom: 3px solid #e6b422;
}

.jekos-running-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  padding-right: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #e6b422;
  animation: jekos-marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes jekos-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* =====================================
   HEADER IMAGE
===================================== */
.header-image {
  height: 300px;
  overflow: hidden;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CUSTOM HEADER FULL WIDTH */
.jekos-custom-header {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #0a2342;
}

.jekos-custom-header img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* =====================================
   SEMBUNYIKAN HEADER DEFAULT OJS
===================================== */
.pkp_site_name_wrapper,
.pkp_site_name,
.pkp_site_name_wrapper .pkp_navigation_user_wrapper {
  display: none !important;
}

.pkp_structure_head {
  padding: 0 !important;
  margin: 0 !important;
  background: #0a2342;
}

/* =====================================
   NAVBAR CUSTOM
===================================== */
.custom-navbar {
  position: sticky;
  width: 100%;
  background: linear-gradient(90deg, #0a2342, #1b2a4a);
  border-bottom: 3px solid #e6b422;
  transition: all 0.3s ease;
  z-index: 999;
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================
   MENU KIRI
===================================== */
.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: 14px 16px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-menu li a:hover {
  background: rgba(230, 180, 34, 0.2);
  color: #e6b422;
}

/* =====================================
   DROPDOWN ABOUT
===================================== */
.nav-menu .has-dropdown > a {
  cursor: pointer;
}

.nav-menu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.nav-menu .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #0a2342;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu .dropdown li a:hover {
  background: #0a2342;
  color: #e6b422;
}

/* =====================================
   MENU KANAN
===================================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* REGISTER */
.nav-right a[href*="register"] {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.nav-right a[href*="register"]:hover {
  background: #e6b422;
  color: #0a2342;
  border-color: #e6b422;
}

/* LOGIN */
.nav-right a[href*="login"] {
  background: #e6b422;
  color: #0a2342;
  border: 2px solid #e6b422;
}

.nav-right a[href*="login"]:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.nav-auth {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.nav-auth:hover {
  text-decoration: underline;
  color: #e6b422;
}

/* =====================================
   SEARCH
===================================== */
.nav-search {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  margin-left: 6px;
}

.nav-search input {
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
  color: #1b2a4a;
}

.nav-search button {
  border: none;
  background: #e6b422;
  color: #0a2342;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-search button:hover {
  background: #d4a017;
}

/* =====================================
   NAVIGASI OJS
===================================== */
.pkp_navigation_primary_wrapper {
  background: linear-gradient(90deg, #0a2342, #1b2a4a);
  width: 100%;
  margin-top: 0;
  border-bottom: 2px solid #e6b422;
}

.pkp_navigation_primary_wrapper .container {
  max-width: 100%;
  padding: 0;
}

.pkp_navigation_primary {
  max-width: 1140px;
  margin: auto;
  padding: 0 15px;
}

.pkp_navigation_primary a {
  color: #ffffff;
  font-weight: 600;
  padding: 13px 16px;
  transition: all 0.3s ease;
}

.pkp_navigation_primary a:hover {
  background: rgba(230, 180, 34, 0.2);
  color: #e6b422;
}

/* =====================================
   SEMBUNYIKAN LOGIN/REGISTER DI HEADER
===================================== */
.pkp_site_name_wrapper .pkp_navigation_user_wrapper {
  display: none !important;
}

/* =====================================
   PINDAHKAN LOGIN/REGISTER KE NAVBAR
===================================== */
.pkp_navigation_primary_wrapper {
  position: relative;
}

.pkp_navigation_user_wrapper {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.pkp_navigation_search_wrapper {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* =====================================
   SEMBUNYIKAN TOTAL NAVBAR BAWAAN OJS
===================================== */
.pkp_navigation_primary_wrapper {
  display: none !important;
}

.pkp_navigation_user_wrapper {
  display: none !important;
}

.pkp_navigation_search_wrapper {
  display: none !important;
}

/* =====================================
   WRAPPER KONTEN
===================================== */
.pkp_structure_content {
  margin-top: 30px;
  display: flex;
}

.pkp_structure_main {
  background: #ffffff;
  border-radius: 14px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  box-shadow: 0 4px 12px rgba(10, 35, 66, 0.08);
}

.pkp_structure_sidebar {
  margin-left: 25px;
}

.pkp_structure_sidebar .pkp_block {
  background: #ffffff;
  border: 1px solid #e9edf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 35, 66, 0.05);
}

.pkp_block .title {
  background: linear-gradient(90deg, #0a2342, #1b2a4a);
  color: #e6b422;
  padding: 11px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* =====================================
   BUTTON
===================================== */
.pkp_button,
a.pkp_button {
  background: linear-gradient(135deg, #e6b422, #d4a017);
  border-radius: 6px;
  border: none;
  color: #0a2342;
  font-weight: 700;
  transition: all 0.3s ease;
}

.pkp_button:hover,
a.pkp_button:hover {
  background: linear-gradient(135deg, #f2c94c, #e6b422);
  color: #0a2342;
  box-shadow: 0 4px 12px rgba(230, 180, 34, 0.4);
}

/* =====================================
   ARTICLE CARD
===================================== */
.obj_article_summary {
  padding: 18px 20px;
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid #e9edf4;
  border-left: 5px solid #e6b422;
  border-radius: 6px;
  transition: box-shadow 0.2s ease;
}

.obj_article_summary:hover {
  box-shadow: 0 4px 14px rgba(10, 35, 66, 0.12);
}

/* TITLE & SUBTITLE */
.obj_article_summary .title {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.obj_article_summary .title a {
  color: #0a2342;
  text-decoration: none;
}

.obj_article_summary .title a:hover {
  color: #e6b422;
  text-decoration: underline;
}

.obj_article_summary .subtitle {
  margin-bottom: 10px;
  font-style: italic;
  color: #6b4a4a;
}

/* TEXT BLOCKS */
.obj_article_summary .authors {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1b2a4a;
}

.obj_article_summary .affiliation {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6a6a6a;
}

.obj_article_summary .abstract {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.obj_article_summary .doi {
  font-size: 13px;
  color: #e6b422;
}

/* META INFO */
.obj_article_summary .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: #5a5a5a;
}

.obj_article_summary .meta a {
  color: #e6b422;
  font-weight: 600;
  text-decoration: none;
}

.obj_article_summary .meta a:hover {
  text-decoration: underline;
}

/* BADGE STYLE */
.obj_article_summary .authors a,
.obj_article_summary .authors span,
.obj_article_summary .affiliation span,
.obj_article_summary .abstract a,
.obj_article_summary .pages {
  display: inline-flex;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 3px 8px 3px 6px;
  background: #0a2342;
  color: #e6b422 !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ICON BADGE */
.obj_article_summary .authors a::before,
.obj_article_summary .authors span::before {
  content: "👤";
  margin-right: 4px;
}

.obj_article_summary .affiliation span::before {
  content: "🏛";
  margin-right: 4px;
}

.obj_article_summary .abstract a::before {
  content: "📄";
  margin-right: 4px;
}

.obj_article_summary .pages {
  float: right;
}

.obj_article_summary .pages::before {
  content: "📑";
  margin-right: 4px;
}

/* PDF BUTTON */
.obj_article_summary .galleys_links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px 5px 10px;
  background: #0a2342;
  color: #e6b422 !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.obj_article_summary .galleys_links a::before {
  content: "⬇";
  margin-right: 6px;
}

.obj_article_summary .galleys_links a:hover {
  background: #e6b422;
  color: #0a2342 !important;
}

/* =====================================
   FOOTER BACKGROUND
===================================== */
.pkp_structure_footer_wrapper {
  background: linear-gradient(135deg, #0a2342, #1b2a4a);
  margin-top: 80px;
  padding-top: 0;
  border-top: 4px solid #e6b422;
}

.pkp_structure_footer {
  background: transparent !important;
  padding: 0;
  color: #ffffff;
}

.pkp_structure_footer a {
  color: #e6b422;
}

.pkp_structure_footer a:hover {
  color: #f2c94c;
}

/* =====================================
   SEMBUNYIKAN HEADER SAAT HALAMAN ARTICLE
===================================== */
.pkp_page_article .snap-wrapper,
.pkp_page_article .header-image,
.pkp_page_article .jekos-running-wrapper,
.pkp_page_article .jekos-custom-header {
  display: none !important;
}

.pkp_page_article .pkp_structure_main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =====================================
   RESET GAP OJS
===================================== */
.pkp_structure_main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    flex-wrap: wrap;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    margin: 10px 0;
  }

  .header-image {
    height: 140px;
  }

  .jekos-custom-header img {
    height: 140px;
  }

  .jekos-running-text {
    font-size: 13px;
    animation-duration: 26s;
  }

  .snap-text {
    font-size: 12px;
  }

  .pkp_structure_content {
    flex-direction: column;
    margin-top: 20px;
  }

  .pkp_structure_sidebar {
    margin-left: 0;
  }

  .pkp_structure_main {
    margin-bottom: 25px;
  }

  .pkp_button,
  a.pkp_button {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .obj_article_summary .pages {
    float: none;
    display: inline-block;
  }
}
