aside {
  height: fit-content;
}

/* ── Banner overrides for brics initiatives page ── */
.page-node-type-listing-page-brics-initiatives .page-cover-banner {
  min-height: 465px;
}

.pagination__btn[aria-disabled="true"],
.pagination__btn--next[aria-disabled="true"] {
  opacity: 0.35;
  color: var(--secondary-text-color);
  cursor: not-allowed;
}

.pagination__btn[aria-disabled="false"],
.pagination__btn--next[aria-disabled="false"] {
  color: var(--primary-color);
}

.pagination__btn[aria-disabled="true"]:hover,
.pagination__btn--next[aria-disabled="true"]:hover {
  opacity: 0.35;
  color: var(--secondary-text-color);
  cursor: not-allowed;
}

.pagination__btn {
  color: var(--primary-color);
}

.pagination .pagination__btn:not([aria-disabled="true"]):hover {
  color: var(--primary-hover-color);
}

/* ── Working group card grid ── */
.wgc-grid {
  list-style: none;
  padding: 50px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 48px;
}

.wgc-grid__item {
  min-height: 220px;
}

.wgc-listing-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 220px;
  padding: 32px;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 24px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease,
    color 250ms ease;
  overflow: hidden;
}

.wgc-listing-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
}

/* Per-sector colored hover fills — keyed to Drupal URL alias last segment */
.wgc-listing-card[data-sector="clean-energy-energy-efficiency"]:hover {
  background: #37935D;
  box-shadow: 0 12px 28px -10px rgba(0, 176, 80, 0.4);
}
.wgc-listing-card[data-sector="climate-change-disaster-resilience"]:hover {
  background: #00AEC1;
  box-shadow: 0 12px 28px -10px rgba(0, 144, 216, 0.4);
}
.wgc-listing-card[data-sector="infrastructure-financing"]:hover {
  background: #C84C1C;
  box-shadow: 0 12px 28px -10px rgba(232, 90, 16, 0.4);
}
.wgc-listing-card[data-sector="transport-infrastructure"]:hover {
  background: #FFCE3B;
  box-shadow: 0 12px 28px -10px rgba(91, 106, 191, 0.4);
}
.wgc-listing-card[data-sector="manufacturing"]:hover {
  background: #9E4292;
  box-shadow: 0 12px 28px -10px rgba(0, 217, 228, 0.4);
}
.wgc-listing-card[data-sector="agribusiness"]:hover {
  background: #9FE416;
  box-shadow: 0 12px 28px -10px rgba(159, 228, 22, 0.4);
}
.wgc-listing-card[data-sector="science-technology-innovation"]:hover {
  background: #FFAE00;
  box-shadow: 0 12px 28px -10px rgba(255, 174, 0, 0.4);
}
.wgc-listing-card[data-sector="social-infrastructure"]:hover {
  background: #BD38FF;
  box-shadow: 0 12px 28px -10px rgba(189, 56, 255, 0.4);
}
.wgc-listing-card[data-sector="inclusiveness"]:hover {
  background: #FE9F76;
  box-shadow: 0 12px 28px -10px rgba(254, 159, 118, 0.4);
}
.wgc-listing-card[data-sector="digital-infrastructure"]:hover {
  background: #00D9E4;
  box-shadow: 0 12px 28px -10px rgba(0, 217, 228, 0.4);
}
.wgc-listing-card[data-sector="environmental-protection"]:hover {
  background: #37935d;
  box-shadow: 0 12px 28px -10px rgba(0, 176, 80, 0.4);
}
.wgc-listing-card[data-sector="water-and-sanitation"]:hover {
  background: #00aec1;
  box-shadow: 0 12px 28px -10px rgba(0, 144, 216, 0.4);
}

/* Title color on hover */
.wgc-listing-card[data-sector]:hover .wgc-listing-card__title {
  color: var(--text-color);
}
.wgc-listing-card[data-sector="clean-energy-energy-efficiency"]:hover
  .wgc-listing-card__title,
.wgc-listing-card[data-sector="climate-change-disaster-resilience"]:hover
  .wgc-listing-card__title,
.wgc-listing-card[data-sector="infrastructure-financing"]:hover
  .wgc-listing-card__title,
.wgc-listing-card[data-sector="social-infrastructure"]:hover
  .wgc-listing-card__title {
  color: var(--contrast-text-color);
}

.wgc-listing-card[data-sector="water-and-sanitation"]:hover .wgc-listing-card__title {
  color: var(--contrast-text-color);
}
.wgc-listing-card[data-sector="environmental-protection"]:hover .wgc-listing-card__title {
  color: var(--contrast-text-color);
}

.wgc-listing-card[data-sector="manufacturing"]:hover .wgc-listing-card__title {
  color: var(--contrast-text-color);
}

/* Icon filters on colored hover states */
.wgc-listing-card[data-sector="clean-energy-energy-efficiency"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="climate-change-disaster-resilience"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="infrastructure-financing"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="social-infrastructure"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="manufacturing"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="water-and-sanitation"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="environmental-protection"]:hover
.wgc-listing-card__icon-wrap {
  filter: brightness(0) invert(1) saturate(100%);
}

.wgc-listing-card[data-sector="transport-infrastructure"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="agribusiness"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="science-technology-innovation"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="inclusiveness"]:hover
  .wgc-listing-card__icon-wrap,
.wgc-listing-card[data-sector="digital-infrastructure"]:hover
  .wgc-listing-card__icon-wrap {
  filter: brightness(0);
}

.list-search__input::placeholder {
  color: var(--contrast-text-color);
  font-weight: 600;
}

.path-node.page-node-type-listing-page-country .breadcrumb-current {
  margin-left: 0;
  color: var(--contrast-text-color);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 400;
  transition: color 0.2s;
  font-size: 12px;
}

.breadcrumbs.mt-4.mb-5 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  max-width: 100%;
  margin-bottom: 1rem !important;
  margin-top: 2rem !important;
  padding: 4px 0;
  border-radius: 6px;
  overflow: hidden;
}

.path-node.page-node-type-listing-page-brics-initiatives .list-search-spacer {
  margin-top: 54px;
}

.path-node.page-node-type-listing-page-brics-initiatives
  .breadcrumb-trail
  .breadcrumb-current {
  color: var(--contrast-text-color);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 400;
  flex-shrink: 0;
  transition: color 0.2s;
  font-size: 12px;
  margin-left: 0;
}

.path-node.page-node-type-listing-page-brics-initiatives .list-search__clear {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color var(--transition-fast);
}

/* display:flex above overrides the [hidden] attribute; this restores it */
.path-node.page-node-type-listing-page-brics-initiatives
  .list-search__clear[hidden] {
  display: none !important;
}

.path-node.page-node-type-listing-page-brics-initiatives
  .list-search__clear:hover {
  color: #ffffff;
}

.path-node.page-node-type-listing-page-brics-initiatives
  .section.page-detail-main {
  z-index: 300;
}

.path-node.page-node-type-listing-page-brics-initiatives
  .brics-init-page
  .page-title {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 35px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--contrast-text-color);
  padding-left: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.wgc-listing-card__icon-wrap {
  height: 68px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.wgc-listing-card__icon {
  display: block;
  max-height: 68px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  transition: filter 250ms ease;
}

.wgc-listing-card__title {
  font-family: Montserrat, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-color);
  margin: 0;
  flex: 1;
}

/* ── Responsive grid ── */
@media (max-width: 991.98px) {
  .wgc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .wgc-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .wgc-listing-card {
    height: auto;
    min-height: 160px;
  }
}
/* search input area */
.tp-paper-search {
  background: var(--background-color);
  border: 1px solid #e5e7eb;
  padding: 0 17px;
  height: 56px;
  box-shadow: 0 2px 1.25px rgba(0, 0, 0, 0.06);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.tp-paper-search:focus-within {
  border-color: var(--section-title-color);
  box-shadow: 0 0 0 3px rgba(0, 121, 193, 0.15);
}

.tp-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 25.5px;
  color: var(--primary-text-color);
  text-transform: uppercase;
  background: transparent;
  min-width: 0;
}

.tp-search-input::placeholder {
  color: var(--tertiary-text-color);
  font-weight: 700;
  text-transform: uppercase;
}

.tp-search-btn {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tertiary-text-color);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* filter area  */
.tp-filter {
  background: var(--background-color);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.tp-filter-summary {
  list-style: none;
  padding: 16px 20px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease;
}

.tp-filter-summary::-webkit-details-marker {
  display: none;
}

.tp-filter-label {
  font-weight: 500;
  font-size: 11px;
  color: var(--tertiary-text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tp-filter-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  margin: 0 -20px;
  padding: 14px 20px;
}

.tp-filter-value {
  font-weight: 700;
  font-size: 20px;
  color: var(--section-title-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-filter-chevron {
  color: var(--primary-text-color);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.tp-filter[open] .tp-filter-chevron {
  transform: rotate(180deg);
}

.tp-filter-options {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid #e5e7eb;
  max-height: 240px;
  overflow-y: auto;
}

.tp-filter-options li:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.tp-filter-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 14px;
  color: var(--primary-text-color);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.tp-filter-option:hover {
  background: var(--background-color);
  color: var(--section-title-color);
}

.tp-filter-option.is-selected,
.tp-filter-option[aria-selected="true"] {
  background: rgba(0, 121, 193, 0.08);
  color: var(--section-title-color);
  font-weight: 600;
}

.tp-list {
  display: flex;
  flex-direction: column;
  background: var(--background-color);
}

.tp-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease;
}
.tp-item-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-item-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(32%) sepia(84%) saturate(1662%)
    hue-rotate(177deg) brightness(92%) contrast(101%);
}

.tp-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tp-item-title {
  min-width: 0;
  font-weight: 700;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  text-transform: capitalize;
}

.tp-item:hover .tp-item-title {
  color: var(--section-title-color);
}

.tp-item:hover {
  border-bottom: 1px solid #0079c1;
}

.tp-item-date {
  margin: 0;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: #7b7b7b;
  white-space: nowrap;
}

.tp-item-description {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  margin: 0;
  -webkit-line-clamp: 2;
  color: var(--primary-text-color);
  line-clamp: 2;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  text-transform: capitalize;
}

.tp-item-link-container {
  margin-top: 4px;
}

@media (max-width: 575.98px) {
  .tp-item {
    gap: 14px;
  }

  .tp-item-icon {
    width: 48px;
    height: 48px;
  }

  .tp-item-title {
    font-size: 17px;
    line-height: 24px;
  }
}

.tp-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  padding: 0;
  border: none;
  background: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: var(--scroll-dot-color);
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease;
}

.tp-item-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--scroll-dot-color);
}

.tp-item-link:hover,
.tp-item-link:hover svg {
  color: var(--ndb-brand-color);
  text-decoration: underline;
}

/* ─── Pagination ────────────────────────────────────────────── */
.tp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tp-pg-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--secondary-text-color);
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.tp-pg-arrow:not([disabled]) {
  color: var(--scroll-dot-color);
}

.tp-pg-arrow:hover:not([disabled]) {
  background: #f7f1af;
}

.tp-pg-arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.tp-pg-numbers {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tp-pg-num {
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--secondary-text-color);
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.tp-pg-num:hover:not(.is-active) {
  background: var(--background-color);
  color: var(--scroll-dot-color);
}

.tp-pg-num.is-active,
.tp-pg-num[aria-current="page"] {
  background: var(--background-color);
  border-color: var(--scroll-dot-color);
  color: var(--primary-text-color);
  font-weight: 600;
}
@media (max-width: 500px) {
  .tp-pg-numbers {
    width: 70%;
    margin: auto;
    overflow-x: scroll;
  }
}
