/* ============================================================
   Science Act – Minimal Custom Stylesheet for OJS 3.x
   Clean & Professional Card Style + Auto Images (JS)
   ============================================================ */

/* ---------- 1. Change only the "BLOCK TITLE" text ---------- */
.pkp_structure_sidebar .pkp_block:first-of-type .title,
.pkp_structure_sidebar .pkp_block:first-child .title {
  font-size: 0 !important;
  line-height: 0 !important;
}
.pkp_structure_sidebar .pkp_block:first-of-type .title::before,
.pkp_structure_sidebar .pkp_block:first-child .title::before {
  content: "Highly Accessed Articles";
  font-size: 1.05rem !important;
  margin-left: -10px;
  margin-right: -10px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  line-height: 1.4 !important;
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  margin-bottom: 6px;
}

/* ---------- 2. Replace footer branding text ---------- */
.pkp_brand_footer {
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative;
  min-height: 2.2rem;
  text-align: center;
}
.pkp_brand_footer img {
  display: none !important;
}
.pkp_brand_footer a {
  font-size: 0 !important;
}
.pkp_brand_footer::after {
  content: "Science Act Platform";
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.5;
  padding: 0.5rem 0;
}

/* ---------- 3. Banner under Highly Accessed Articles ---------- */
.pkp_structure_sidebar .pkp_block:first-of-type::after {
  content: "";
  display: block;
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  aspect-ratio: 9 / 32;
  background-image: url("https://i.postimg.cc/7LHKyHg2/22d0a030-9746-4918-846e-23748d76a5fa.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 1.5rem;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- 4. Hide "About the Journal" heading ---------- */
.pkp_structure_main h2 {
  display: none !important;
}

/* ---------- 5. Clean Professional Card Style ---------- */

.pkp_structure_sidebar .most_read {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Balanced professional card */
.pkp_structure_sidebar .most_read_article {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0px;
  padding: 16px 10px 14px 10px;
  margin-bottom: 16px !important;
  margin-left: -10px;
  margin-right: -10px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.pkp_structure_sidebar .most_read_article:hover {
  border-color: #d4d4d4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.pkp_structure_sidebar .most_read_article:last-child {
  margin-bottom: 0 !important;
}

/* Title – Classic Academic */
.pkp_structure_sidebar .most_read_article_title a {
  color: #111111 !important;
  font-weight: 700 !important;
  font-size: 1.00rem !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
  letter-spacing: -0.01em;
  display: block;
}

.pkp_structure_sidebar .most_read_article_title a:hover {
  color: #000000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* View count */
.pkp_structure_sidebar .most_read_article_journal {
  color: #555555 !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  margin-top: 7px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Image style (will be inserted by JavaScript) */
.pkp_structure_sidebar .most_read_article_cover {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  background-color: #f7f7f7;
}