/* Reset dasar untuk mencegah celah */
html,
body {
  margin: 0;
  padding: 0;
}

body > :first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Wrapper header */
.pkp_site_name_wrapper {
  margin: 0;
  padding: 0;
}

/* Kontainer header */
.pkp_site_name {
  margin: -5px 0 -5px 0;
  padding: 0;
}

/* Gambar header full-width tanpa ruang */
.pkp_site_name .is_img,
.pkp_site_name .is_img img {
  display: block;
  max-height: none !important;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {

  .pkp_site_name_wrapper,
  .pkp_site_name {
    width: 100%;
    height: auto;
    min-height: 70px;
    overflow: hidden;
  }

  .pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    object-position: center top;
  }

  .pkp_site_nav_toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
  }
}

/* ================= HEADER / NAVBAR ================= */

.pkp_navigation_primary_row {
  background-color: #3d847d;
}

.pkp_navigation_primary a {
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.pkp_navigation_primary a:hover {
  color: #ffffff !important;
  background-color: #2f6661;
}

.pkp_navigation_primary ul li ul a {
  color: #ffffff !important;
}

.pkp_navigation_primary a:hover,
.pkp_search:hover {
  background-color: #2f6661;
  color: #ffffff !important;
}

.pkp_navigation_primary li.current > a,
.pkp_navigation_primary li.current > a:hover,
.pkp_navigation_primary a:active {
  background-color: #2f6661 !important;
  color: #ffffff !important;
}

.pkp_search {
  color: #ffffff !important;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

/* Badge Notifikasi */
.task_count {
  display: inline-block;
  background-color: #ffffff;
  color: #3d847d;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  margin-left: 5px;
  position: relative;
  top: -1px;
  animation: pulse 2s infinite;
}

/* Hilangkan footer OJS */
.pkp_brand_footer {
  display: none;
}

/* ================= SIDEBAR MAIN MENU ================= */

#customblock-main-menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#customblock-main-menu li {
  margin: 0;
}

#customblock-main-menu li a {
  color: #3d847d;
  text-decoration: none;
  display: block;
  padding: 5px 8px;
  border-bottom: 1px solid #d8e8e6;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 600;
}

#customblock-main-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background-color: #3d847d;
  transition: width 0.3s ease;
}

#customblock-main-menu li a:hover {
  color: #2f6661;
}

#customblock-main-menu li a:hover::after {
  width: 100%;
}

/* ================= SIDEBAR BLOCK ================= */

.pkp_structure_sidebar .pkp_block {
  margin-bottom: 2px !important;
  margin-top: 2px !important;
}

/* Judul Sidebar */
.pkp_block .title {
  background: #3d847d;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
}

/* Isi Sidebar */
.pkp_block .content {
  border: 1px solid #d8e8e6;
  border-top: none;
  padding: 10px;
}

/* ================= BUTTON ================= */

.cmp_button,
.obj_galley_link,
.block_make_submission a,
.pkp_block.block_make_submission .content a {
  background: #3d847d !important;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cmp_button:hover,
.obj_galley_link:hover,
.block_make_submission a:hover,
.pkp_block.block_make_submission .content a:hover {
  background: #2f6661 !important;
  color: #ffffff !important;
}

/* ================= LINK ================= */

a {
  color: #3d847d;
  transition: color 0.3s ease;
}

a:hover {
  color: #2f6661;
}

/* ================= ARTICLE ================= */

.obj_article_summary {
  border-bottom: 1px solid #d8e8e6;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.obj_article_summary .title a {
  color: #1f3f3b;
  font-weight: 600;
}

.obj_article_summary .title a:hover {
  color: #3d847d;
}

/* ================= ISSUE COVER ================= */

.obj_issue_summary .title a {
  color: #1f3f3b;
}

.obj_issue_summary .title a:hover {
  color: #3d847d;
}

/* ================= PAGINATION ================= */

.cmp_pagination .current {
  background: #3d847d;
  color: #ffffff;
}

.cmp_pagination a:hover {
  background: #d8e8e6;
}

/* ================= FORM ================= */

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  border: 1px solid #d8e8e6;
  border-radius: 4px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3d847d;
  box-shadow: 0 0 4px rgba(61, 132, 125, 0.3);
  outline: none;
}

/* ================= TABLE ================= */

table th {
  background: #3d847d;
  color: #ffffff;
}

table tr:nth-child(even) {
  background: #f4f8f7;
}

/* ================= ANIMATION ================= */

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}