html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_structure_page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_structure_head {
  --jkk-header-banner-width: 1160px;
  --jkk-header-banner-half-width: 580px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background-color: #1c3e6e !important;
  background-image:
    linear-gradient(to right,
      #1c3e6e 0,
      #1c3e6e calc(50% - var(--jkk-header-banner-half-width)),
      transparent calc(50% - var(--jkk-header-banner-half-width)),
      transparent calc(50% + var(--jkk-header-banner-half-width)),
      #0f233e calc(50% + var(--jkk-header-banner-half-width)),
      #0f233e 100%),
    linear-gradient(100deg, #1c3e6e 0%, #1b3b6a 58%, #0f233e 100%) !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, var(--jkk-header-banner-width) 100% !important;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  padding-top: 0 !important;
  background: transparent !important;
}

.pkp_site_name_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
}

.pkp_site_name {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
}

.pkp_site_name > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_site_name .is_img {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_site_name .is_img img {
  display: block;
  max-height: 200px !important;
  margin-top: 0 !important;
}

.pkp_navigation_user_wrapper {
  top: 0 !important;
  right: 0 !important;
  padding-right: 30px !important;
  z-index: 1000;
}

.pkp_brand_footer {
  display: none !important;
}

@media (max-width: 991px) {
  .pkp_structure_head {
    --jkk-header-banner-width: 728px;
    --jkk-header-banner-half-width: 364px;
  }

  .pkp_site_name_wrapper {
    height: auto !important;
  }
  .pkp_site_name {
    position: relative !important;
    left: 0 !important;
    padding-left: 10px !important;
    padding-right: 50px !important;
  }
  .pkp_site_name .is_img img {
    max-height: 70px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .pkp_structure_head {
    --jkk-header-banner-width: 952px;
    --jkk-header-banner-half-width: 476px;
  }
}

/* How to cite copy button & toast styling */
.citation_actions_bar {
  margin-top: 0.85em;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.citation_copy_button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  text-decoration: none;
}

.citation_copy_button:hover {
  background-color: #006699;
  color: #ffffff;
  border-color: #006699;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.citation_copy_button:hover svg {
  stroke: #ffffff;
}

.citation_copy_button:active {
  transform: scale(0.97);
}

.citation_copy_button.copied {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.citation_copy_button.copied svg {
  stroke: #ffffff !important;
}

.citation_copy_icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.citation-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .citation-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: center;
  }
}

.citation-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.citation-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.citation-toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

.citation-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #10b981;
  color: #ffffff;
  flex-shrink: 0;
}

/* Author Country Flag Styling */
.author_country_flag_wrapper {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 5px;
}

.author_country_flag {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  position: relative;
  top: -1px;
}

/* Full-width footer treatment for the JKK cover-inspired page footer. */
.pkp_structure_footer_wrapper {
  background: #173967;
}

.pkp_structure_footer {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.pkp_structure_footer .pkp_footer_content {
  padding: 0 !important;
}

.pkp_structure_footer .jkk-cover-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.pkp_structure_footer .jkk-footer-logo {
  display: block;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: contain;
}

/* Remove the blank gap between JKK's landing-page indexing cards and footer. */
body.pkp_page_index .pkp_structure_main {
  padding-bottom: 0 !important;
}

body.pkp_page_index .jkk-indexing-content {
  margin-bottom: 0 !important;
}

@media (max-width: 640px) {
  .pkp_structure_footer .jkk-footer-logo {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }
}

/* ==========================================================================
   Custom Sidebar Blocks Styling (Custom Block Manager)
   ========================================================================== */
.pkp_structure_sidebar .pkp_block.block_custom {
  margin: 0 0 20px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#customblock-submission {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#customblock-submission .content {
  padding: 0 !important;
}

.scopus-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.scopus-action-buttons .btn-scopus-submit,
.scopus-action-buttons .btn-scopus-template {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center;
  padding: 12px 14px !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: all 0.15s ease;
}

.scopus-action-buttons .btn-scopus-submit {
  background: #0056b3 !important;
  color: #ffffff !important;
}

.scopus-action-buttons .btn-scopus-submit:hover {
  background: #004494 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0,86,179,0.25);
}

.scopus-action-buttons .btn-scopus-template {
  background: #16a34a !important;
  color: #ffffff !important;
}

.scopus-action-buttons .btn-scopus-template:hover {
  background: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(22,163,74,0.25);
}

/* Policies & Guidelines Block */
#customblock-policies {
  border: 1px solid #dbeafe !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.06) !important;
  padding: 0 !important;
}

#customblock-policies .title {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  border-bottom: none !important;
  letter-spacing: 0.4px;
}

#customblock-policies .content {
  padding: 0 !important;
}

.scopus-menu-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.scopus-menu-list .scopus-menu-item {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}

.scopus-menu-list .scopus-menu-item:last-child {
  border-bottom: none !important;
}

.scopus-menu-list .scopus-menu-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease-in-out;
  background: #ffffff;
}

.scopus-menu-list .scopus-menu-link:hover,
.scopus-menu-list .scopus-menu-link:focus {
  background: #f0f7ff !important;
  color: #0056b3 !important;
  padding-left: 17px !important;
}

.scopus-menu-list .scopus-menu-link.active {
  background: #eff6ff !important;
  color: #0056b3 !important;
  font-weight: 700 !important;
  border-left: 4px solid #0056b3 !important;
  padding-left: 12px !important;
}

.scopus-menu-list .scopus-menu-icon {
  width: 18px;
  text-align: center;
  color: #0056b3;
  font-size: 0.92rem;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
}

.scopus-menu-list .scopus-menu-link:hover .scopus-menu-icon,
.scopus-menu-list .scopus-menu-link.active .scopus-menu-icon {
  transform: scale(1.15);
  color: #0284c7;
}

.scopus-menu-list .scopus-menu-text {
  flex: 1;
  word-break: break-word;
}

.scopus-menu-list .scopus-menu-arrow {
  color: #cbd5e1;
  font-size: 0.8rem;
  margin-left: auto;
  transition: transform 0.15s ease-in-out, color 0.15s ease-in-out;
}

.scopus-menu-list .scopus-menu-link:hover .scopus-menu-arrow,
.scopus-menu-list .scopus-menu-link.active .scopus-menu-arrow {
  color: #0056b3;
  transform: translateX(3px);
}

/* Journal Identity / Overview Block */
#customblock-journal-identity {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0 !important;
}

#customblock-journal-identity .title {
  background: #f8fafc !important;
  color: #1e293b !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#customblock-journal-identity .content {
  padding: 12px 14px !important;
}

/* Editorial Tools & Indexing Block */
#customblock-editorial-tools {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0 !important;
}

#customblock-editorial-tools .title {
  background: #f8fafc !important;
  color: #1e293b !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#customblock-editorial-tools .content {
  padding: 14px 14px !important;
}

.scopus-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.scopus-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.scopus-tool-logo {
  display: block;
  width: 100%;
  height: 36px;
  max-width: 104px;
  margin: 0 auto 5px;
  object-fit: contain;
}

.scopus-tool-card--mendeley {
  border-color: #b91d47;
  background: #b91d47;
  color: #ffffff;
}

.scopus-indexing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.scopus-indexing-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
}

.scopus-indexing-card:hover,
.scopus-indexing-card:focus-visible {
  border-color: #0056b3;
}

.scopus-indexing-card img {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
}

/* Visitors Block */
#customblock-visitors {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0 !important;
}

#customblock-visitors .title {
  background: #f8fafc !important;
  color: #1e293b !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#customblock-visitors .content {
  padding: 14px 14px !important;
}
