.article-link {
  text-decoration: none;
}

.article-meta {
  font-family: 'abel', sans-serif;
  font-size: 1rem;
  /* 16px equivalent */
  color: rgba(0, 0, 0, 0.75);
}

/* Articles Grid */
.newspaper-articles-grid {
  border-radius: 45px;
  margin-top: 50px;
}

.newspaper-article-card {
  margin-bottom: 2rem;
}

.newspaper-article-title {
  font-family: 'Abril Fatface', serif;
  font-weight: 400; /* Regular */
  font-size: 25px; /* Adjust based on your design */
  line-height: 150%; /* ▲ 150% */
  margin-bottom: 2rem;
  text-align: center;
}

.article-excerpt {
  font-family: "Luxurious Roman", serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1.5rem;
}

.read-more {
  text-decoration: none;
  color: inherit;
}

.jump-to-pub {
    display: block;
    margin: auto;
    margin-top: -50px;
    margin-bottom: -50px;
    transform: rotate(90deg);
}

.documents-explanation p {
    font-family: "Luxurious Roman", serif;
    font-size: 1.3rem;
    color: #767B00;
}

/* Filter Form */
.newspaper-filter-form {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #8E8E8E;
  border-radius: 45px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-input,
.filter-select,
.filter-date {
  width: 100%;
  padding: 0.5rem;
  font-family: "Inter", sans-serif;
  border: 1px solid #000;
  border-radius: 4px;
  background-color: #fff;
  min-height: 38px;
  box-sizing: border-box;
}

#search-input {
  min-height: 100px;
}

.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.filter-select[multiple] {
  min-height: 100px;
  background-image: none;
}

.date-range {
  grid-column: span 2;
}

.date-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.filter-button {
  padding: 0.5rem 1rem;
  font-family: "Inter", sans-serif;
  border: 1px solid #000;
  cursor: pointer;
  border-radius: 100px;
}

.filter-button.apply {
  background-color: #000;
  color: white;
}

.filter-button.reset {
  background-color: transparent;
  color: #000;
  text-decoration: none;
}

.filter-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 8px;
}

.date-label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #666;
  margin: 0 5px;
}

.filter-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
  font-style: italic;
}

/* Pagination */
.figma-pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
  font-family: "Kelly Slab", sans-serif;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination-arrow:hover:not([disabled]) {
  background-color: #f5f5f5;
  border-color: #ddd;
}

.pagination-arrow[disabled] {
  color: #ccc;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
}

.page-number {
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.page-number:hover {
  background-color: #f5f5f5;
}

.page-number.active {
  background-color: #CBD054;
  color: white;
  border-radius: 8px;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .date-range {
    grid-column: span 1;
  }
}
