.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_page,
.pkp_structure_body {
  max-width: 100% !important;
}

/* Remove OJS default divider lines cutting through homepage */
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_body,
.pkp_structure_page,
.pkp_structure_head,
.pkp_structure_footer {
  border: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

.pkp_structure_main:before,
.pkp_structure_main:after,
.pkp_structure_content:before,
.pkp_structure_content:after,
.pkp_structure_body:before,
.pkp_structure_body:after,
.pkp_structure_page:before,
.pkp_structure_page:after {
  display: none !important;
  content: none !important;
  border: none !important;
  background: none !important;
}

.pkp_structure_main {
  width: 1180px !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 24px !important;
  border-left: none !important;
  border-right: none !important;
}

.pkp_structure_content {
  padding-top: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.page_index_journal .pkp_structure_main,
.page_index_journal .pkp_structure_content {
  border-top: none !important;
}

/* JGMD Homepage */
.jgmd-home {
  width: 1120px !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  font-family: Arial, sans-serif;
  color: #202833;
  position: relative;
  z-index: 2;
}

.jgmd-layout {
  display: grid !important;
  grid-template-columns: 760px 320px !important;
  gap: 32px !important;
  align-items: start !important;
  position: relative;
  z-index: 2;
}

.jgmd-main {
  width: 760px !important;
  max-width: 760px !important;
  position: relative;
  z-index: 2;
}

.jgmd-side {
  width: 320px !important;
  max-width: 320px !important;
  position: relative;
  z-index: 2;
}

.jgmd-hero {
  background: linear-gradient(135deg, #052842 0%, #075f87 55%, #0b88a8 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 42px 46px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  z-index: 2;
}

.jgmd-hero:after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

.jgmd-hero > * {
  position: relative;
  z-index: 3;
}

.jgmd-kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #b9ecff;
}

.jgmd-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.22;
  font-weight: 800;
  max-width: 850px;
}

.jgmd-hero p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 860px;
  margin: 18px 0 0 0;
}

.jgmd-publisher {
  margin-top: 22px;
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.jgmd-panel {
  background: #ffffff;
  border: 1px solid #dbe7ee;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 22px rgba(7, 63, 93, 0.06);
  position: relative;
  z-index: 2;
}

.jgmd-panel.feature {
  border-left: 6px solid #0b6f95;
}

.jgmd-panel h2 {
  margin-top: 0;
  color: #073f5d;
  font-size: 24px;
  line-height: 1.3;
}

.jgmd-panel p {
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
}

.jgmd-metrics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 24px;
}

.jgmd-metric {
  background: #f3f9fc;
  border: 1px solid #dbe7ee;
  border-radius: 14px;
  padding: 22px;
}

.jgmd-metric h3 {
  margin: 0 0 10px 0;
  color: #074d70;
  font-size: 18px;
}

.jgmd-metric p {
  margin: 0;
  line-height: 1.65;
  font-size: 15px;
}

.jgmd-strip {
  background: #0a334c;
  color: #ffffff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.jgmd-strip h2 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 23px;
}

.jgmd-strip p {
  margin: 0;
  line-height: 1.75;
  font-size: 16px;
}

.jgmd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.jgmd-button {
  display: inline-block;
  background: #0b6f95;
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: 7px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
}

.jgmd-button.secondary {
  background: #ffffff;
  color: #0b5f89 !important;
  border: 1px solid #0b6f95;
}

.jgmd-author-box {
  width: 320px !important;
  max-width: 320px !important;
  background: #ffffff;
  border: 1px solid #dbe7ee;
  border-radius: 14px;
  padding: 22px 24px;
  border-top: 6px solid #0b6f95;
  position: sticky;
  top: 18px;
  box-shadow: 0 8px 22px rgba(7, 63, 93, 0.08);
  z-index: 2;
}

.jgmd-author-box h2 {
  margin: 0 0 16px 0;
  color: #073f5d;
  font-size: 22px;
  line-height: 1.3;
}

.jgmd-author-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jgmd-author-box li {
  border-bottom: 1px solid #e7eef3;
  padding: 9px 0;
  line-height: 1.35;
}

.jgmd-author-box li:last-child {
  border-bottom: none;
}

.jgmd-author-box a {
  color: #075f87;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.jgmd-author-box a:hover {
  text-decoration: underline;
}

.jgmd-mini-note {
  background: #f3f9fc;
  border: 1px solid #dbe7ee;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
}

.jgmd-mini-note h3 {
  margin: 0 0 8px 0;
  color: #073f5d;
  font-size: 17px;
}

.jgmd-mini-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .pkp_structure_main,
  .jgmd-home {
    width: auto !important;
    max-width: 100% !important;
  }

  .jgmd-layout {
    display: block !important;
  }

  .jgmd-main,
  .jgmd-side,
  .jgmd-author-box {
    width: auto !important;
    max-width: 100% !important;
  }

  .jgmd-author-box {
    position: static;
    margin-top: 24px;
  }

  .jgmd-metrics {
    grid-template-columns: 1fr !important;
  }

  .jgmd-hero h1 {
    font-size: 30px;
  }
}
