.targets-section {
  width: min(96vw, 1280px);
  padding: clamp(16px, 4vw, 50px);
  margin: 100px auto 0;
  text-align: justify;
  background-color: rgba(0, 0, 0, 0.35);
  color: white;
  border-radius: 0.25rem;
}

.card_image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.card_content {
  overflow-wrap: anywhere;
}

/* мобилни корекции */
@media (max-width: 768px) {
  .targets-section {
    margin-top: 70px;           
  }

  .cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 0;
  }
  .cards_item, .card {
    width: 100% !important;
  }
}

/* таблет */
@media (min-width: 769px) and (max-width: 1199px) {
  .cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

/* Pagination controls for publications */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.pagination button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.pagination button.active {
  background: #2e7;
  color: #fff;
  border-color: #2e7;
}
.pagination button[disabled] {
  opacity: 0.5;
  cursor: default;
}
