/* GMOJ OJS Custom Style - Version 2 */

body {
  background: #f4f7fb;
  font-family: "Lato", Arial, sans-serif;
  color: #1f2933;
}

/* Header and navigation */
.navbar,
.navbar-default,
.navbar-inverse {
  background: #071f33 !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.navbar-brand,
.navbar a {
  color: #ffffff !important;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.navbar-nav > li > a {
  font-weight: 600;
}

.navbar-nav > li > a:hover {
  color: #d7b35a !important;
}

/* Main layout */
.container {
  max-width: 1180px;
}

.page_index_journal {
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff;
  border-radius: 22px;
  padding: 42px 50px;
  margin-top: 34px;
  margin-bottom: 36px;
  box-shadow: 0 16px 42px rgba(7, 31, 51, 0.08);
}

.page_index_journal .page,
.page_index_journal .cmp_notification,
.page_index_journal .journal_description {
  width: 100% !important;
  max-width: 100% !important;
}

.page_index_journal p {
  max-width: 980px;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2933;
}

.page_index_journal p:first-child {
  font-size: 18px;
}

.page_index_journal strong {
  color: #071f33;
}

/* Main content + right sidebar
   Do not force the main column to 100%.
   Do not hide .col-md-3 / .col-md-4 because OJS uses them for the right sidebar. */
.pkp_structure_content,
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pkp_structure_main,
.main,
main,
.row .col-md-8,
.row .col-md-9 {
  width: 70% !important;
  max-width: 70% !important;
  flex: 0 0 70% !important;
}

.pkp_structure_sidebar,
.sidebar,
aside,
.row .col-md-4,
.row .col-md-3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 30% !important;
  max-width: 30% !important;
  flex: 0 0 30% !important;
  padding-left: 28px;
}

.pkp_structure_sidebar .block,
.sidebar .block,
aside .block {
  background: #ffffff;
  border: 1px solid #e3e9f0;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(7, 31, 51, 0.07);
}

.pkp_structure_sidebar .block_title,
.sidebar .block_title,
aside .block_title {
  color: #071f33 !important;
  font-size: 18px;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 12px;
}

/* Homepage image */
.homepage_image,
.homepageImage,
img.homepage_image,
img.homepageImage {
  width: 100%;
  border-radius: 24px;
  margin-top: 32px;
  margin-bottom: 26px;
  box-shadow: 0 18px 45px rgba(7, 31, 51, 0.16);
}

/* Custom hero section */
.gjom-hero {
  background: linear-gradient(135deg, #071f33 0%, #123f63 100%);
  border-radius: 26px;
  padding: 64px 50px;
  margin: 34px 0 32px;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(7, 31, 51, 0.18);
}

.gjom-hero-inner {
  max-width: 900px;
}

.gjom-label {
  display: inline-block;
  background: rgba(215, 179, 90, 0.16);
  color: #f3d47b;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.gjom-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  color: #ffffff !important;
  font-size: 46px;
  line-height: 1.14;
  font-weight: 800;
}

.gjom-hero p {
  max-width: 850px;
  font-size: 18px;
  line-height: 1.75;
  color: #e7eef7 !important;
  margin-bottom: 28px;
}

.gjom-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.gjom-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.gjom-btn.primary {
  background: #d7b35a;
  color: #071f33 !important;
}

.gjom-btn.secondary {
  background: #ffffff;
  color: #071f33 !important;
}

.gjom-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* Custom content sections */
.gjom-about,
.gjom-scope,
.gjom-info {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 26px;
  box-shadow: 0 12px 34px rgba(7, 31, 51, 0.08);
}

.gjom-about h2,
.gjom-scope h2 {
  margin-top: 0;
  color: #071f33 !important;
  font-size: 30px;
  font-weight: 800;
}

.gjom-about p {
  max-width: 920px;
  font-size: 17px;
  line-height: 1.75;
}

.gjom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gjom-card {
  background: #f6f8fb;
  border: 1px solid #e3e9f0;
  border-radius: 16px;
  padding: 22px;
  color: #071f33;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(7, 31, 51, 0.05);
}

.gjom-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gjom-info h3 {
  margin-top: 0;
  color: #071f33 !important;
  font-size: 21px;
  font-weight: 800;
}

.gjom-info p {
  line-height: 1.65;
}

/* Buttons and forms */
.btn,
.btn-primary,
.btn-default,
button {
  border-radius: 10px !important;
  font-weight: 700;
}

.btn-primary {
  background: #071f33 !important;
  border-color: #071f33 !important;
}

.btn-primary:hover {
  background: #d7b35a !important;
  border-color: #d7b35a !important;
  color: #071f33 !important;
}

input[type="text"],
input[type="search"] {
  border-radius: 8px;
  border: 1px solid #d8dee8;
  padding: 8px 10px;
}

/* Footer */
.gjom-footer {
  background: #071f33;
  color: #ffffff;
  padding: 42px 34px;
  margin-top: 40px;
}

.gjom-footer-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.gjom-footer h3,
.gjom-footer h4 {
  color: #ffffff !important;
  margin-top: 0;
  font-weight: 800;
}

.gjom-footer p {
  color: #e7eef7 !important;
  line-height: 1.65;
  margin-bottom: 8px;
}

.gjom-footer a {
  color: #d7b35a !important;
  font-weight: 700;
}

.pkp_brand_footer,
.footer-branding,
img[src*="ojs_brand"] {
  opacity: 0.28;
  transform: scale(0.8);
  transform-origin: left center;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .page_index_journal {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .page_index_journal p {
    font-size: 16px;
  }

  .gjom-hero {
    padding: 38px 24px;
    border-radius: 18px;
  }

  .gjom-hero h1 {
    font-size: 32px;
  }

  .gjom-hero p {
    font-size: 16px;
  }

  .gjom-grid,
  .gjom-info,
  .gjom-footer-grid {
    grid-template-columns: 1fr;
  }

  .gjom-about,
  .gjom-scope,
  .gjom-info {
    padding: 24px;
  }

  .pkp_structure_content,
  .row {
    display: block;
  }

  .pkp_structure_main,
  .main,
  main,
  .row .col-md-8,
  .row .col-md-9,
  .pkp_structure_sidebar,
  .sidebar,
  aside,
  .row .col-md-4,
  .row .col-md-3 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0;
  }

  .pkp_structure_sidebar,
  .sidebar,
  aside {
    margin-top: 24px;
  }

  .navbar-brand {
    font-size: 16px;
  }
}
