/* =========================================================
   PAGE WIDTH
========================================================= */
.pkp_structure_page {
  max-width: 1300px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* =========================================================
   HOMEPAGE / GENERAL JUSTIFY
========================================================= */
.homepage_about {
  text-align: justify;
}

/* =========================================================
   ABSTRACT + REFERENCES (JUSTIFY + BOX)
========================================================= */
.article-summary .abstract,
.item.abstract p,
.pkp_structure_main .abstract p,
div.abstract,
div.abstract p,
section.abstract,
section.item.abstract,
.article-details .abstract,
.article-summary .abstract {
  text-align: justify !important;
}

/* Abstract box */
.item.abstract,
.article-summary .abstract,
.article-details .abstract,
.pkp_structure_main .abstract {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  border: 1px solid #ddd;
}

/* References box */
.item.references,
.article-summary .references,
.article-details .references,
.pkp_structure_main .references,
.citation-list {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  border: 1px solid #ddd;
  text-align: justify;
}

/* Titles */
.item.abstract .title,
.item.references .title,
.article-details .references h2,
.article-details .references h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Page title justify */
.page_title {
  text-align: justify !important;
}

/* =========================================================
   INDEXING (SPRINGER STYLE)
========================================================= */
.ojs-indexing-single {
  margin: 30px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.ojs-indexing-single details {
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.ojs-indexing-single summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 22px;
  color: #000;
}

.ojs-indexing-single summary::-webkit-details-marker {
  display: none;
}

.ojs-indexing-single summary::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  color: #0077b6;
  transition: transform 0.2s ease;
}

.ojs-indexing-single details[open] summary::before {
  transform: rotate(90deg);
}

.ojs-indexing-single summary:hover {
  text-decoration: underline;
}

.ojs-indexing-single p {
  margin: 10px 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* Two-column springer grid */
.springer-indexing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  font-family: Arial, Helvetica, sans-serif;
}

.springer-indexing details {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.springer-indexing summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 22px;
}

.springer-indexing summary::-webkit-details-marker {
  display: none;
}

.springer-indexing summary::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.springer-indexing details[open] summary::before {
  transform: rotate(90deg);
}

.springer-indexing p {
  margin: 10px 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

@media (max-width: 768px) {
  .springer-indexing {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PDF GALLEY BLINK
========================================================= */
@keyframes galleyBlink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

a[href*="/article/view/"][href$=".pdf"],
a.galley-link.pdf,
a.obj_galley_link.pdf {
  animation: galleyBlink 1.0s infinite linear;
}

a[href*="/article/view/"][href$=".pdf"]:hover,
a.galley-link.pdf:hover,
a.obj_galley_link.pdf:hover {
  animation: none;
  opacity: 1;
}

/* =========================================================
   HIDE OJS FOOTER BRAND
========================================================= */
.pkp_brand_footer {
  display: none !important;
}

/* =========================================================
   LINK HOVER (SITE-WIDE)
   (If this causes layout issues later, tell me & I’ll scope it)
========================================================= */
a {
  transition: transform 0.3s ease-in-out;
}

a:hover {
  transform: translateY(3px);
}

/* Sidebar titles bounce */
@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

.pkp_block .title {
  display: inline-block;
  cursor: pointer;
}

.pkp_block .title:hover {
  animation: bounce 0.3s ease;
}

/* =========================================================
   ABOUT + KEYWORDS BLOCK STYLE
========================================================= */
.pkp_block.block_custom.about,
.pkp_block.block_custom.keywords {
  margin-left: -10px;
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0;
}

/* =========================================================
   MOST READ: justify
========================================================= */
.pkp_block.block_most_read ul li a {
  text-align: justify;
  display: block;
}

.block_most_read .title,
.block_most_read a {
  text-align: justify;
}

/* =========================================================
   ARTICLES GRID (CARD VIEW)  ✅ FIXED BRACE
========================================================= */
.obj_issue_toc .articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* =========================================================
   ARTICLE CARD
========================================================= */
.obj_article_summary {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 18px 20px;
  min-height: 200px;

  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background-color: #f2f2f2;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease-in-out;
}

.obj_article_summary:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.obj_article_summary .title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;

  text-align: justify;
  text-justify: inter-word;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.obj_article_summary .title a,
.obj_article_summary .title a:visited,
.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
  color: #000000;
  text-decoration: none;
}

/* GALLEY BUTTON */
.obj_article_summary .galleys_links {
  margin-top: auto;
}

.obj_article_summary .galleys_links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;

  border-radius: 6px;
  border: none;
  text-decoration: none;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease-in-out;
}

.obj_article_summary .galleys_links a:hover {
  background-color: #245b6d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   ABSTRACT VIEWS (YOUR CUSTOM BUTTON WITH EMOJI)
========================================================= */
.abstractViews,
.item.abstractViews,
.pk_article_details .abstractViews {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background-color: #0073e6;
  color: #ffffff;

  padding: 8px 14px;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 600;

  cursor: default;
  margin-bottom: 12px;

  transition: background-color 0.25s ease;
}

.abstractViews::before,
.item.abstractViews::before {
  content: "👁";
  font-size: 16px;
  line-height: 1;
}

.abstractViews:hover {
  background-color: #005bb5;
}