/**
 * Habereta — Tender list (/tender-list/)
 */

.habereta-tender-list-page {
  background: var(--hb-bg, #f1f5f9);
  font-family: var(--hb-font, "Inter", "Noto Sans Ethiopic", system-ui, sans-serif);
  color: var(--hb-text, #0f172a);
}

.habereta-tender-list-page .apus-breadcrumb,
.habereta-tender-list-page .breadcrumb,
.habereta-tender-list-page .page-title,
.habereta-tender-list-page #apus-breadscrumb,
.habereta-tender-list-page .entry-header,
.habereta-tender-list-page .page-header {
  display: none !important;
}

.habereta-tender-list-page #main-container.hb-tender-list-page,
.habereta-tender-list-page #main-container.inner {
  padding: 0;
  margin: 0;
  max-width: none;
  background: transparent;
}

.hb-tender-list {
  padding: 20px var(--hb-gutter, 20px) 64px;
}

.hb-tender-list__hero {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 22px 20px;
  border: 1px solid #dbe4f5;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: 0 8px 24px rgba(15, 39, 79, 0.05);
}

.hb-tender-list__eyebrow {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hb-tender-list__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.hb-tender-list__lead {
  margin: 0;
  max-width: 42rem;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

.hb-tender-list__search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.hb-tender-list__search input[type="search"] {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.hb-tender-list__search input[type="search"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hb-tender-list__search .hb-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hb-tender-list__search .hb-btn:hover {
  background: #1d4ed8;
}

.hb-tender-list__search-selects {
  display: none;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hb-tender-list__search-selects select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.hb-tender-list__search-selects select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hb-tender-list__layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.hb-tender-list__filters {
  display: grid;
  gap: 14px;
}

.hb-tender-list__filter-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.hb-tender-list__filter-title {
  margin: 0 8px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.hb-tender-list__filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}

.hb-tender-list__filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}

.hb-tender-list__filter-list a:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.hb-tender-list__filter-list a.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.hb-tender-list__filter-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-tender-list__filter-count {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.hb-tender-list__main {
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* WP Job Board toolbar */
.habereta-tender-list-page .jobs-listing-wrapper > .results-count,
.habereta-tender-list-page .jobs-listing-wrapper .job-results-count,
.habereta-tender-list-page .results-filter-wrapper,
.habereta-tender-list-page .jobs-ordering-wrapper,
.habereta-tender-list-page .before-loop-wrapper,
.habereta-tender-list-page .listings-topbar,
.habereta-tender-list-page .topbar-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf4;
  background: #fafbfd;
  font-size: 14px;
  color: #64748b;
}

.habereta-tender-list-page .listings-topbar select,
.habereta-tender-list-page .topbar-filter select,
.habereta-tender-list-page .jobs-ordering select,
.habereta-tender-list-page .per-page select {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 4px 10px;
  color: #0f172a;
}

.habereta-tender-list-page .filter-btn,
.habereta-tender-list-page .btn-show-filter,
.habereta-tender-list-page .filter-in-sidebar,
.habereta-tender-list-page .results-filter-wrapper {
  display: none !important;
}

.hb-tender-archive__list {
  display: block;
  margin: 0;
}

.hb-tender-archive__list > .row {
  margin: 0;
}

.hb-tender-archive__item {
  margin: 0;
  width: 100%;
  float: none !important;
  padding: 0 !important;
}

.habereta-tender-list-page .hb-feed-item.is-new,
.habereta-tender-list-page .hb-tender-card.is-new {
  box-shadow: inset 3px 0 0 #2563eb;
}

.hb-tender-list__active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #dbe4f5;
  border-radius: 14px;
  background: #fff;
}

.hb-tender-list__active-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.hb-tender-list__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hb-tender-list__chip:hover {
  background: #dbeafe;
}

.hb-tender-list__clear {
  margin-left: auto;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hb-tender-list__clear:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.hb-tender-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8edf4;
  background: #fafbfd;
}

.hb-tender-list__sort-label {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.hb-tender-list__sort {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hb-tender-list__sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hb-tender-list__sort-link:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.hb-tender-list__sort-link.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.habereta-tender-list-page .hb-feed-item {
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
}

.habereta-tender-list-page .hb-feed-item:last-child {
  border-bottom: 0;
}

.habereta-tender-list-page .hb-feed-item:hover {
  background: #fafbfd;
}

.habereta-tender-list-page .hb-tender-card {
  padding: 18px 18px 16px;
}

.habereta-tender-list-page .hb-tender-card__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .habereta-tender-list-page .hb-tender-card__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.habereta-tender-list-page .layout-job,
.habereta-tender-list-page .job-list,
.habereta-tender-list-page article.map-item {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hb-tender-archive__empty {
  padding: 36px 20px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.habereta-tender-list-page .apus-pagination,
.habereta-tender-list-page .pagination,
.habereta-tender-list-page .job-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 18px 16px 20px;
  border-top: 1px solid #e8edf4;
  background: #fff;
}

.habereta-tender-list-page .apus-pagination a,
.habereta-tender-list-page .apus-pagination span,
.habereta-tender-list-page .pagination a,
.habereta-tender-list-page .pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.habereta-tender-list-page .apus-pagination .current,
.habereta-tender-list-page .pagination .current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

@media (min-width: 992px) {
  .hb-tender-list {
    padding-top: 28px;
  }

  .hb-tender-list__hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    align-items: end;
    padding: 26px 28px;
  }

  .hb-tender-list__layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
  }

  .hb-tender-list__filter-list {
    max-height: 420px;
  }
}

@media (max-width: 991px) {
  .hb-tender-list__filters {
    display: none;
  }

  .hb-tender-list__search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hb-tender-list__search-selects {
    display: grid;
  }

  .hb-tender-list__search input[type="search"],
  .hb-tender-list__search .hb-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hb-tender-list__hero {
    padding: 18px 16px;
  }
}

/* In-app alerts (web) */
.hb-in-app-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  color: #1e3a8a;
}

.hb-in-app-banner__icon {
  flex-shrink: 0;
  color: #2563eb;
  margin-top: 1px;
}

.hb-in-app-banner__text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.habereta-tender-list-page .hb-feed-item.is-new {
  box-shadow: inset 3px 0 0 #2563eb;
}

.habereta-tender-list-page .hb-feed-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.45;
  font-weight: 700;
}

.habereta-tender-list-page .hb-feed-item__title a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.habereta-tender-list-page .hb-feed-item__title a:hover {
  color: #1e3a8a;
}

.habereta-tender-list-page .hb-feed-item__new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
