/* Scientific publications — cards & filters */

/* ── Filters panel ── */
.page-pub .pub-filters-panel {
  margin-bottom: 32px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(26, 38, 60, 0.07);
}

.page-pub .pub-filters-panel__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-pub .pub-filters-panel__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b7280;
}

.page-pub .pub-filters-panel__search-row {
  display: flex;
  align-items: stretch;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-pub .pub-filters-panel__search-row:focus-within {
  border-color: #485bff;
  box-shadow: 0 0 0 3px rgba(72, 91, 255, 0.12);
  background: #fff;
}

.page-pub .pub-filters-panel__search-icon {
  flex-shrink: 0;
  margin: 14px 0 14px 16px;
}

.page-pub .pub-filters-panel__search-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #1a263c;
  background: transparent;
}

.page-pub .pub-filters-panel__search-btn {
  flex-shrink: 0;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #485bff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.page-pub .pub-filters-panel__search-btn:hover {
  background: #3749e0;
}

.page-pub .pub-filters-panel__controls {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(140px, 1.4fr) minmax(160px, 1.6fr) auto;
  gap: 16px 20px;
  align-items: end;
}

.page-pub .pub-filters-panel__control select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  font-size: 15px;
  line-height: 1.35;
  color: #1a263c;
  background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.page-pub .pub-filters-panel__control select:hover,
.page-pub .pub-filters-panel__control select:focus {
  border-color: #485bff;
  outline: none;
  background-color: #fff;
}

.page-pub .pub-filters-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 2px;
}

.page-pub .pub-filters-panel__apply {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #485bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.page-pub .pub-filters-panel__apply:hover {
  background: #3749e0;
}

.page-pub .pub-filters-panel__reset {
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #485bff;
  background: #fff;
  border: 1px solid #485bff;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.page-pub .pub-filters-panel__reset:hover {
  color: #fff;
  background: #485bff;
}

.page-pub .pub-filters-panel__result {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f0f2f6;
  font-size: 16px;
  line-height: 25px;
  color: #606060;
}

.page-pub .pub-filters-panel__result strong {
  color: #1a263c;
  font-weight: 700;
}

/* ── Cards grid ── */
.page-pub .pub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-bottom: 40px;
  align-items: stretch;
}

.page-pub .pub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #eceef4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 38, 60, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-pub .pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(72, 91, 255, 0.14);
  border-color: #d8dcff;
}

.page-pub .pub-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px 16px;
  text-decoration: none;
  background: linear-gradient(145deg, #3d4fd9 0%, #485bff 45%, #6b7aff 100%);
}

.page-pub .pub-card__year {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-pub .pub-card__type {
  position: absolute;
  left: 0;
  bottom: 16px;
  max-width: 90%;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  background: #d3985c;
  border-radius: 0 8px 8px 0;
}

.page-pub .pub-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
}

.page-pub .pub-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a263c;
}

.page-pub .pub-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-pub .pub-card__title a:hover {
  color: #485bff;
}

.page-pub .pub-card__authors {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #606060;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-pub .pub-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 10px;
}

.page-pub .pub-card__ext-link {
  font-size: 13px;
  font-weight: 600;
  color: #485bff;
  text-decoration: none;
}

.page-pub .pub-card__ext-link:hover {
  text-decoration: underline;
}

.page-pub .pub-card__ext-link--sdg {
  color: #2e7d32;
}

.page-pub .pub-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f2f6;
}

.page-pub .pub-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-pub .pub-card__metrics span {
  font-size: 12px;
  font-weight: 600;
  color: #485bff;
  background: rgba(72, 91, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.page-pub .pub-card .news__body-main-link {
  margin: 0;
}

/* ── Detail / author pages ── */
.page-pub-inner .pub-back {
  margin-bottom: 30px;
}

.page-pub-inner .science-info {
  margin-bottom: 40px;
}

.page-pub-inner .science-info__item .pub-stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: #485bff;
  text-align: center;
}

.page-pub-inner .pub-meta-block {
  margin-bottom: 30px;
}

.page-pub-inner .pub-meta-block h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a263c;
}

.page-pub-inner .pub-authors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-pub-inner .pub-authors a {
  color: #485bff;
  font-size: 16px;
  line-height: 25px;
  text-decoration: none;
}

.page-pub-inner .pub-authors a:hover {
  text-decoration: underline;
}

.page-pub-inner .pub-sdg-anchor {
  scroll-margin-top: 96px;
}

.page-pub-inner .pub-meta-row {
  font-size: 16px;
  line-height: 25px;
  color: #606060;
  margin-bottom: 12px;
}

.page-pub-inner .pub-meta-row strong {
  color: #1a263c;
}

.page-pub-inner .pub-field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-pub-inner .pub-field-tags span {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #f0f2ff;
  color: #485bff;
}

.page-pub-inner .pub-scopus-link {
  color: #485bff;
  font-weight: 600;
  text-decoration: none;
}

.page-pub-inner .pub-scopus-link:hover {
  text-decoration: underline;
}

.page-pub-inner .pub-sdg-tags span {
  background: #e8f4ea;
  color: #1b5e20;
}

.page-pub-inner .pub-sdg-raw {
  font-size: 15px;
  line-height: 1.55;
  color: #606060;
  margin: 0;
}

.page-pub .pub-year-group {
  margin-bottom: 32px;
}

.page-pub .pub-year-group__title {
  font-size: 22px;
  font-weight: 700;
  color: #485bff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eaccac;
}

.page-pub .science-list li a {
  color: #1a263c;
  font-weight: 500;
  text-decoration: none;
}

.page-pub .science-list li a:hover {
  color: #485bff;
}

.page-pub .science-list .pub-list-meta {
  display: block;
  font-size: 14px;
  color: #606060;
  margin-top: 4px;
  font-weight: 400;
}

/* ── Pagination (page__pagination) ── */
.page-pub .pub-pagination {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.page-pub .pub-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: #fafafa;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 6px 16px;
  margin: 0;
  list-style: none;
}

.page-pub .pub-pagination .page-item {
  list-style: none;
}

.page-pub .pub-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #9c9c9c;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.page-pub .pub-pagination .page-link:hover {
  background: #dbdbdb;
  color: #1a263c;
}

.page-pub .pub-pagination .page-item.active .page-link {
  background: #485bff;
  color: #fff;
}

.page-pub .pub-pagination .page-item.active .page-link:hover {
  background: #3749e0;
  color: #fff;
}

.page-pub .pub-pagination .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.page-pub .pub-pagination__info {
  margin: 0;
  font-size: 14px;
  color: #606060;
  text-align: center;
}

@media (max-width: 1200px) {
  .page-pub .pub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .page-pub-inner .pub-authors {
    grid-template-columns: 1fr;
  }

  .page-pub .pub-filters-panel__controls {
    grid-template-columns: 1fr 1fr;
  }

  .page-pub .pub-filters-panel__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .page-pub .pub-filters-panel {
    padding: 18px 16px;
  }

  .page-pub .pub-filters-panel__search-row {
    flex-direction: column;
    border-radius: 10px;
    overflow: visible;
    border: none;
    background: transparent;
    gap: 10px;
  }

  .page-pub .pub-filters-panel__search-row:focus-within {
    box-shadow: none;
  }

  .page-pub .pub-filters-panel__search-icon {
    display: none;
  }

  .page-pub .pub-filters-panel__search-row input {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
  }

  .page-pub .pub-filters-panel__search-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
  }

  .page-pub .pub-filters-panel__controls {
    grid-template-columns: 1fr;
  }

  .page-pub .pub-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
