/* Journal Referee cover cards */
#journal_referee .journal-ref-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

#journal_referee .view-list.view-list-item.jr-source-hidden {
  display: none !important;
}

#journal_referee .jr-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 251, 0.96));
  box-shadow:
    0 12px 26px rgba(17, 24, 39, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#journal_referee .jr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 110px at 100% 0%, rgba(0, 124, 72, 0.08), transparent 70%),
    radial-gradient(180px 100px at 0% 100%, rgba(14, 165, 233, 0.06), transparent 72%);
  pointer-events: none;
}

#journal_referee .jr-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 124, 72, 0.18);
  box-shadow:
    0 22px 40px rgba(17, 24, 39, 0.16),
    0 0 0 1px rgba(0, 124, 72, 0.08);
}

#journal_referee .jr-card-main {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

#journal_referee .jr-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(140deg, rgba(22, 28, 36, 0.95), rgba(43, 54, 68, 0.95));
  overflow: hidden;
}

#journal_referee .jr-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

#journal_referee .jr-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.01);
  transition: transform 260ms ease;
}

#journal_referee .jr-card:hover .jr-card-media img {
  transform: scale(1.04);
}

#journal_referee .jr-card-footer {
  position: relative;
  z-index: 1;
  min-height: 58px;
  padding: 0.8rem 0.9rem 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 251, 253, 0.94));
}

#journal_referee .jr-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  font-size: 0.96rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.01em;
}

#journal_referee .jr-card-ext {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(17, 24, 39, 0.58);
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

#journal_referee .jr-card-ext:hover {
  background: rgba(0, 124, 72, 0.85);
  border-color: rgba(184, 255, 230, 0.4);
}

#journal_referee .see-all {
  margin-top: 0.25rem;
}

@media (min-width: 1400px) {
  #journal_referee .journal-ref-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  #journal_referee .journal-ref-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #journal_referee .journal-ref-card-grid {
    grid-template-columns: 1fr;
  }
}
