/* =========================
   UoNJLL OJS Custom CSS
   ========================= */

/* Base typography */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background-color: #f8f9fb;
}

/* Main layout wrappers */
.pkp_structure_content {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.pkp_structure_main {
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
}

/* Header */
.pkp_structure_head {
  background: #256ba0;
  border-bottom: 4px solid #d4af37;
}

.pkp_site_name .is_text,
.pkp_site_name a {
  color: #ffffff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

/* Navigation */
.pkp_navigation_primary_row {
  background: #120303;
}

.pkp_navigation_primary_row .navigationPrimary a {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pkp_navigation_primary_row .navigationPrimary a:hover,
.pkp_navigation_primary_row .navigationPrimary a:focus {
  color: #d4af37 !important;
}

/* Dropdown menus */
.pkp_navigation_primary .dropdown-menu {
  background: #ffffff;
  border: 1px solid #ddd;
}

.pkp_navigation_primary .dropdown-menu a {
  color: #222 !important;
}

.pkp_navigation_primary .dropdown-menu a:hover {
  background-color: #f3f3f3;
  color: #256ba0 !important;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: Georgia, "Times New Roman", serif;
  color: #256ba0;
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.7rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.3rem;
}

/* Links */
a {
  color: #256ba0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #a00022;
  text-decoration: underline;
}

/* Buttons */
.obj_issue_toc .galleys_links a,
.obj_article_summary .read_more,
.cmp_button,
button,
input[type="submit"] {
  background: #256ba0;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.obj_issue_toc .galleys_links a:hover,
.obj_article_summary .read_more:hover,
.cmp_button:hover,
button:hover,
input[type="submit"]:hover {
  background: #5c0012;
}

/* =========================
   Enhanced Card Styling
   ========================= */

.obj_issue_summary,
.obj_article_summary {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.obj_article_summary::before,
.obj_issue_summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #256ba0;
  opacity: 0.9;
}

.obj_article_summary:hover,
.obj_issue_summary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 40, 80, 0.10);
  border-color: #d9dee7;
}

/* Article titles */
.obj_article_summary .title a,
.cmp_article_list h3 a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  color: #1f2a37;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.obj_article_summary .title a:hover,
.cmp_article_list h3 a:hover {
  color: #256ba0;
}

/* Issue titles */
.obj_issue_summary .title a {
  font-size: 1.25rem;
  color: #1f2a37;
}

/* Sidebar */
.pkp_structure_sidebar {
  font-size: 0.95rem;
}

.pkp_block {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.7rem;
  width: 100%;
  max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #256ba0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 107, 160, 0.10);
}

/* Footer */
.pkp_structure_footer_wrapper {
  background: #222;
  color: #eee;
  padding-top: 2rem;
}

.pkp_structure_footer_wrapper a {
  color: #d4af37;
}

.pkp_footer_content {
  font-size: 0.95rem;
}

/* Current issue cover spacing */
.current_issue .cover,
.obj_issue_summary .cover {
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.cmp_breadcrumbs ol li a {
  color: #256ba0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
}

table th {
  background: #f3f3f3;
  font-weight: 700;
}

/* =========================
   Two-column article layout
   ========================= */

.cmp_article_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Individual article cards */
.obj_article_summary {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title spacing */
.obj_article_summary .title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Authors styling */
.obj_article_summary .authors {
  font-size: 0.92rem;
  color: #5f6b7a;
  margin-bottom: 0.6rem;
}

/* Meta styling */
.obj_article_summary .meta,
.obj_article_summary .pages {
  font-size: 0.88rem;
  color: #7a8594;
}

/* Abstract styling */
.obj_article_summary .abstract {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.6rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more button alignment */
.obj_article_summary .read_more {
  margin-top: auto;
  align-self: flex-start;
}

/* Improve spacing inside cards */
.obj_article_summary > *:not(:last-child),
.obj_issue_summary > *:not(:last-child) {
  margin-bottom: 0.5rem;
}

/* =========================
   Article page layout fix
   ========================= */

.page_article .pkp_structure_content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.page_article .pkp_structure_main {
  flex: 1 1 auto;
  min-width: 0;
}

.page_article .pkp_structure_sidebar {
  flex: 0 0 300px;
  width: 300px;
  font-size: 0.95rem;
}

.page_article .pkp_block {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* =========================
   Responsive adjustments
   ========================= */

@media (max-width: 991px) {
  .page_article .pkp_structure_content {
    display: block;
  }

  .page_article .pkp_structure_main {
    margin-bottom: 2rem;
  }

  .page_article .pkp_structure_sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pkp_structure_main {
    padding: 1rem;
  }

  .pkp_site_name .is_text,
  .pkp_site_name a {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .cmp_article_list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Polished Issue Header
   ========================= */

/* Main header container */
.page_issue .issue_description,
.page_issue .issue_summary,
.page_index_journal .current_issue {

  background: linear-gradient(135deg, #ffffff 0%, #f2f7fc 100%);
  border: 1px solid #e6e9ef;
  border-radius: 14px;

  padding: 1.8rem;
  margin-bottom: 2rem;

  box-shadow: 0 8px 24px rgba(20, 40, 80, 0.06);

  position: relative;
  overflow: hidden;
}

/* Accent top bar (matches your blue theme) */
.page_issue .issue_description::before,
.page_issue .issue_summary::before,
.page_index_journal .current_issue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #256ba0;
}

/* Issue title */
.page_issue h1,
.page_index_journal .current_issue h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  color: #1f2a37;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Add subtle divider under title */
.page_issue h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #256ba0;
  margin-top: 8px;
  border-radius: 2px;
}

/* Volume / issue metadata */
.page_issue .published,
.page_issue .issue_meta,
.page_issue .current_issue_title {
  font-size: 0.95rem;
  color: #5f6b7a;
  margin-bottom: 0.8rem;
}

/* Description text */
.page_issue .issue_description p,
.page_index_journal .current_issue p {
  color: #444;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Cover image styling */
.page_issue .cover img,
.page_index_journal .current_issue img {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  margin-top: 1rem;
}

/* Improve internal spacing */
.page_issue .issue_description > *:not(:last-child),
.page_issue .issue_summary > *:not(:last-child) {
  margin-bottom: 0.6rem;
}

/* Optional: align cover + text nicely if both exist */
.page_issue .issue_description,
.page_index_journal .current_issue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Add breathing space before article list */
.page_issue .sections {
  margin-top: 1rem;
}

