/* =============================
   SNAP TEXT
============================= */
.snap-wrapper {
  overflow: hidden;
  background: linear-gradient(#7b1e1e, #5a1414);
}

.snap-text {
  display: inline-block;
  padding: 8px 0 8px 100%;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* =============================
   HEADER IMAGE
============================= */
.header-image {
  height: 300px;
  overflow: hidden;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================
   NAVBAR
============================= */

/* =============================
   DROPDOWN ABOUT
============================= */
.nav-menu li {
  position: relative;
}

.nav-menu .has-dropdown > a {
  cursor: pointer;
}

/* dropdown box */
.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;
}

/* tampil saat hover */
.nav-menu .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* item dropdown */
.nav-menu .dropdown li a {
  display: block;
  padding: 10px 16px;

  color: #7b1e1e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.nav-menu .dropdown li a:hover {
  background: #7b1e1e;
  color: #ffffff;
}

.custom-navbar {
  position: sticky;
  width: 100%;
  background: #5a1414;
  border-bottom: 3px solid #7b1e1e;
  transition: all 0.3s ease;
  z-index: 999;
}

/* container */
.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 a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =============================
   MENU KANAN
============================= */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BASE BUTTON */
.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: #ffffff;
  color: #7b1e1e;
}

/* LOGIN */
.nav-right a[href*="login"] {
  background: #ffffff;
  color: #7b1e1e;
  border: 2px solid #ffffff;
}

.nav-right a[href*="login"]:hover {
  background: #7b1e1e;
  color: #ffffff;
}

/* SUPAYA SEARCH TIDAK NEMPEL */
.nav-search {
  margin-left: 6px;
}

.nav-auth {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.nav-auth:hover {
  text-decoration: underline;
}

/* SEARCH */
.nav-search {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.nav-search input {
  border: none;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
}

.nav-search button {
  border: none;
  background: #7b1e1e;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
}

/* =============================
   MOBILE
============================= */
@media (max-width: 768px) {
  .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;
  }
}

/* =====================================================
   ARTICLE CARD
===================================================== */
.obj_article_summary {
  padding: 18px 20px;
  margin-bottom: 22px;

  background: #fff;
  border: 1px solid #e2d6d3;
  border-left: 5px solid #7b1e1e;
  border-radius: 6px;

  transition: box-shadow 0.2s ease;
}

.obj_article_summary:hover {
  box-shadow: 0 4px 14px rgba(123, 30, 30, 0.15);
}

/* =====================================================
   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: #5a1414;
  text-decoration: none;
}

.obj_article_summary .title a:hover {
  color: #7b1e1e;
  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: #2f2f2f;
}

.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: #7b1e1e;
}

/* =====================================================
   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: #7b1e1e;
  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: #7b1e1e;
  color: #fff !important;
  border-radius: 4px;

  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ICON */
.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: #7b1e1e;
  color: #fff !important;

  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.obj_article_summary .galleys_links a::before {
  content: "⬇";
  margin-right: 6px;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {
  .ojs-header-image {
    height: 140px;
  }

  .ojs-header-title {
    font-size: 16px;
  }

  .ojs-snap-text {
    font-size: 12px;
  }
}

/* Rapikan jarak header */
.pkp_structure_head {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* =====================================
   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;
}

/* User nav (login/register) */
.pkp_navigation_user_wrapper {
  position: absolute;
  right: 100px; /* sejajar sebelum search */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* =====================================
   SEARCH TETAP PALING KANAN
===================================== */
.pkp_navigation_search_wrapper {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* =====================================
   SEMBUNYIKAN TOTAL NAVBAR BAWAAN OJS
===================================== */

/* wrapper navbar utama */
.pkp_navigation_primary_wrapper {
  display: none !important;
}

/* menu user (login/register) bawaan */
.pkp_navigation_user_wrapper {
  display: none !important;
}

/* search bawaan OJS */
.pkp_navigation_search_wrapper {
  display: none !important;
}

/* header site name OJS (judul besar merah) */
.pkp_site_name_wrapper {
  display: none !important;
}

/* jarak kosong bekas header OJS */
.pkp_structure_head {
  padding: 0 !important;
  margin: 0 !important;
}

/* =============================
   RESET GAP OJS
============================= */
body {
  margin: 0;
}

.pkp_structure_main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =====================================
   SEMBUNYIKAN HEADER SAAT HALAMAN ARTICLE
===================================== */
.pkp_page_article .snap-wrapper,
.pkp_page_article .header-image {
  display: none !important;
}

/* hapus jarak bekas header */
.pkp_page_article .pkp_structure_main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
