.gov-search-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 70px;
}

.gov-search-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #9ca3af;
  font-size: 13px;
}

.gov-search-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.gov-search-breadcrumb a::after {
  content: ">";
  margin-left: 8px;
  color: #c4c4c4;
}

.gov-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.gov-search-form__field label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.gov-search-form input,
.gov-search-form select {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  padding: 0 14px;
}

.gov-search-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gov-search-button,
.gov-search-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gov-search-button {
  border: 1px solid #45105d;
  background: #45105d;
  color: #fff;
}

.gov-search-reset {
  border: 1px solid #7b2a91;
  background: #fff;
  color: #45105d;
}

.gov-search-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gov-search-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.gov-search-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.gov-search-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border: 1px solid rgba(69, 16, 93, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #45105d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.gov-search-card__tag--gov-knowledge {
  border-color: rgba(59, 130, 246, 0.24);
  color: #1d4ed8;
}

.gov-search-card__tag--gov-procurement {
  border-color: rgba(180, 83, 9, 0.24);
  color: #92400e;
}

.gov-search-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2edf5, #e5e7eb);
}

.gov-search-card__body {
  padding: 16px 16px 14px;
}

.gov-search-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.gov-search-card__title a {
  color: #111827;
  text-decoration: none;
}

.gov-search-card__summary {
  min-height: 44px;
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.55;
}

.gov-search-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #9ca3af;
  font-size: 13px;
}

.gov-search-card__meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.gov-search-pagination {
  margin-top: 28px;
  text-align: center;
}

.gov-search-empty {
  margin: 40px 0;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 900px) {
  .gov-search-form,
  .gov-search-card-grid {
    grid-template-columns: 1fr;
  }

  .gov-search-form__actions {
    justify-content: flex-start;
  }
}
