@media (min-width: 900px) and (max-width: 992px) {
  .container {
    max-width: 90% !important;
  }
}

@media (min-width: 769px) {
  .hero-content {
    width: 45% !important;
  }
}

@media (max-width: 500px) {
  #brics-initiatives-slider .splide__track {
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  #ndb-knowledge-products {
    padding: 1rem;
  }

  .ndb-scroll-pane {
    padding: 0;
  }

  .ndb-slider .splide__slide,
  .evaluation-rail .splide__slide,
  .thematic-rail .splide__slide {
    width: 100%;
    max-width: 100%;
  }

  .ndb-product-card,
  .evaluation-rail .ndb-eval-card {
    width: 100%;
    border-radius: 24px;
  }

  .ndb-product-card,
  .evaluation-rail .ndb-eval-card,
  .evaluation-rail .splide__slide {
    height: 289px;
  }

  .thematic-rail .ndb-theme-card,
  .thematic-rail .splide__slide {
    height: auto;
  }

  .thematic-rail .ndb-theme-title,
  .thematic-rail .ndb-theme-body,
  .evaluation-rail .ndb-eval-copy {
    padding: 1.3rem;
  }

  .thematic-rail .ndb-theme-title,
  .thematic-rail .ndb-theme-body {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .thematic-rail .ndb-theme-title {
    border-top-right-radius: 24px;
    border-bottom-left-radius: 0;
  }

  .thematic-rail .ndb-theme-body {
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
  }

  .thematic-rail .ndb-theme-title h3,
  .evaluation-rail .ndb-eval-copy h3 {
    font-size: 1.35rem;
  }

  .thematic-rail .ndb-theme-body p,
  .evaluation-rail .ndb-eval-copy p {
    font-size: 0.72rem;
  }

  #country-factsheet {
    top: 0;
    margin-top: 0.5rem;
  }

  .country-factsheet-shell {
    padding: 1rem;
  }

  .country-factsheet-card {
    --country-card-height: 340px;
    --country-factsheet-padding: 1rem;
    width: 100%;
    height: 340px;
  }

  #country-factsheet-slider .splide__slide {
    width: 100%;
    height: 340px;
  }

  .country-card-name {
    display: block;
    opacity: 1;
    transform: translateY(0);
    font-size: 1.25rem;
  }

  .country-factsheet-details {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    padding: 1rem;
  }

  .country-factsheet-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .country-factsheet-financing-label {
    font-size: 0.85rem;
  }

  .country-factsheet-financing-value {
    font-size: 1.45rem;
    margin: 0.3rem 0 0.9rem;
  }

  .country-factsheet-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .country-factsheet-cta {
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }

  #country-factsheet-slider .splide__arrow--prev {
    left: 0.35rem;
  }

  #country-factsheet-slider .splide__arrow--next {
    right: 0.35rem;
  }
}

@media (max-width: 991.98px) {
  .ndb-products-shell {
    flex-direction: column;
  }

  .ndb-products-tabs {
    flex: 0 0 0 !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .ndb-products-tabs .nav-link {
    border: none;
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .ndb-products-tabs .nav-link.active,
  .ndb-products-tabs .show > .nav-link {
    border: none;
  }

  .ndb-slider .splide__slide,
  .evaluation-rail .splide__slide,
  .thematic-rail .splide__slide {
    width: 100%;
    max-width: 100%;
  }

  .thematic-rail .ndb-theme-card {
    flex-direction: column;
    height: auto !important;
  }

  .thematic-rail .splide__slide {
    height: auto;
  }

  .thematic-rail .ndb-theme-title,
  .thematic-rail .ndb-theme-body {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
  }

  .thematic-rail .ndb-theme-title {
    border-top-right-radius: 24px;
    border-bottom-left-radius: 0;
  }

  .thematic-rail .ndb-theme-body {
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
  }

  .evaluation-rail .ndb-eval-card,
  .evaluation-rail .splide__slide {
    width: 100% !important;
    max-width: 100% !important;
    height: 289px !important;
  }

  .thematic-rail .ndb-theme-title,
  .thematic-rail .ndb-theme-body,
  .evaluation-rail .ndb-eval-copy {
    padding: 1.8rem;
  }

  .thematic-rail .ndb-theme-title h3,
  .evaluation-rail .ndb-eval-copy h3 {
    font-size: 1.65rem;
  }

  #country-factsheet {
    top: -6px;
  }

  .country-factsheet-shell {
    padding: 1.2rem;
  }

  .country-factsheet-card {
    --country-card-height: 420px;
    --country-factsheet-padding: 1.3rem;
    width: 100%;
    height: 420px;
  }

  #country-factsheet-slider .splide__slide {
    width: 100%;
    height: 420px;
  }

  .country-card-name {
    display: block;
    opacity: 1;
    transform: translateY(0);
    font-size: 1.4rem;
  }

  .country-factsheet-details {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    padding: 1.3rem;
  }

  .country-factsheet-title {
    font-size: 1.55rem;
    margin-bottom: 1.45rem;
  }

  .country-factsheet-financing-label {
    font-size: 0.95rem;
  }

  .country-factsheet-financing-value {
    font-size: 1.75rem;
    margin: 0.35rem 0 1.15rem;
  }

  .country-factsheet-cta {
    padding: 0.74rem 1.2rem;
    font-size: 0.82rem;
  }

  #country-factsheet-slider .splide__arrow--prev {
    left: 0.45rem;
  }

  #country-factsheet-slider .splide__arrow--next {
    right: 0.45rem;
  }

  .nav-search-bar {
    width: 90%;
    left: 0;
    right: 0;
    margin: auto;
  }
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .country-factsheet-card:hover,
  .country-factsheet-card:focus-visible {
    width: min(980px, calc(58vw - 2.2rem), calc(100vw - 4rem));
    box-shadow: 0 18px 40px rgba(34, 74, 99, 0.24);
  }

  .country-factsheet-card:hover {
    z-index: 5;
  }
}

@media (max-width: 500px) {
  #country-factsheet {
    top: 0;
    margin-top: 0.5rem;
  }

  .country-factsheet-shell {
    padding: 1rem;
  }

  #country-factsheet-slider .splide__track {
    overflow: hidden;
  }

  #country-factsheet-slider .splide__slide {
    width: 100%;
    height: 340px;
  }

  .country-factsheet-card {
    --country-card-height: 340px;
    --country-factsheet-padding: 1rem;
    width: 100%;
    height: 340px;
  }

  .country-card-name {
    display: block;
    font-size: 1.25rem;
  }

  .country-factsheet-details {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    padding: 1rem;
  }

  .country-factsheet-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .country-factsheet-financing-label {
    font-size: 0.85rem;
  }

  .country-factsheet-financing-value {
    font-size: 1.45rem;
    margin: 0.3rem 0 0.9rem;
  }

  .country-factsheet-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .country-factsheet-cta {
    padding: 0.65rem 1rem;
    font-size: 0.78rem;
  }

  #country-factsheet-slider .splide__arrow--prev {
    left: -0.6rem;
  }

  #country-factsheet-slider .splide__arrow--next {
    right: -0.6rem;
  }
}

@media (min-width: 500.02px) and (max-width: 991.98px) {
  #country-factsheet {
    top: -6px;
  }

  .country-factsheet-shell {
    padding: 1.2rem;
  }

  #country-factsheet-slider .splide__track {
    overflow: hidden;
  }

  #country-factsheet-slider .splide__slide {
    width: 100%;
    height: 420px;
  }

  .country-factsheet-card {
    --country-card-height: 420px;
    --country-factsheet-padding: 1.3rem;
    width: 100%;
    height: 420px;
  }

  .country-card-name {
    display: block;
    font-size: 1.4rem;
  }

  .country-factsheet-details {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    padding: 1.3rem;
  }

  .country-factsheet-title {
    font-size: 1.55rem;
    margin-bottom: 1.45rem;
  }

  .country-factsheet-financing-label {
    font-size: 0.95rem;
  }

  .country-factsheet-financing-value {
    font-size: 1.75rem;
    margin: 0.35rem 0 1.15rem;
  }

  .country-factsheet-cta {
    padding: 0.74rem 1.2rem;
    font-size: 0.82rem;
  }

  #country-factsheet-slider .splide__arrow--prev {
    left: -0.6rem;
  }

  #country-factsheet-slider .splide__arrow--next {
    right: -0.6rem;
  }
}

@media (max-width: 500px) {
  #brand-logo {
    height: 22px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #brand-logo {
    height: 22px;
  }
}

@media (max-width: 600px) {
  #top-main-menu-bar .brics-initiatives-menu,
  #top-main-menu-bar .country-factsheets-menu {
    grid-template-rows: unset;
    grid-template-columns: 1fr;
  }

  #top-main-menu-bar .dropdown-menu .view-all-item {
    grid-row: auto;
  }

  #top-main-menu-bar .ndb-knowledge-inner {
    flex-direction: column;
  }

  #top-main-menu-bar .ndb-category-sidebar {
    flex-direction: row;
    min-width: unset;
    border-right: none;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    gap: 0;
  }

  #top-main-menu-bar .ndb-cat-btn {
    border-bottom: none;
    border-right: 1px solid var(--navbar-border-color);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    font-size: 11px;
  }

  #top-main-menu-bar .ndb-cat-btn:last-child {
    border-right: none;
  }

  #top-main-menu-bar .ndb-panel {
    grid-template-columns: 1fr;
  }
}

/* Mobile navbar — when hamburger is active */
@media (max-width: 991px) {
  #top-main-menu-bar {
    border-radius: 24px;
    padding: 12px 20px;
  }

  #top-main-menu-bar.navbar-expanded,
  #top-main-menu-bar:has(.navbar-collapse.show) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  #top-main-menu-bar .navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
    padding: 4px 8px;
    color: var(--text-color);
  }

  #top-main-menu-bar .navbar-toggler:focus {
    box-shadow: none;
  }

  #top-main-menu-bar .navbar-collapse {
    background: var(--navbar-bg-color);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 0.5rem 0 1rem;
  }

  #top-main-menu-bar .navbar-nav {
    margin-left: 0;
    width: 100%;
    align-items: flex-start !important;
  }

  #top-main-menu-bar .navbar-nav .nav-item {
    width: 100%;
    text-align: left;
  }

  /* Mobile dropdowns: inline, not floating */
  #top-main-menu-bar .brics-initiatives-menu,
  #top-main-menu-bar .ndb-knowledge-menu,
  #top-main-menu-bar .country-factsheets-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    grid-auto-flow: row;
    padding: 0.5rem 1rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #top-main-menu-bar .ndb-knowledge-menu {
    min-width: unset;
  }

  #top-main-menu-bar .ndb-knowledge-inner {
    flex-direction: column;
  }

  #top-main-menu-bar .ndb-category-sidebar {
    flex-direction: row;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--navbar-border-color);
    padding: 0.5rem 0;
    overflow-x: auto;
    gap: 0;
  }

  #top-main-menu-bar .ndb-cat-btn {
    border-bottom: none;
    border-right: 1px solid var(--navbar-border-color);
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
    font-size: 11px;
  }

  #top-main-menu-bar .ndb-cat-btn:last-child {
    border-right: none;
  }

  #top-main-menu-bar .ndb-content-area {
    padding: 0.5rem 0;
  }

  #top-main-menu-bar .ndb-panel {
    grid-template-columns: 1fr;
  }

  #ask-bnkp-button {
    margin: 0.5rem 1rem 0;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 575.98px) {
  .breadcrumb-trail a:not(:last-of-type):not(:first-of-type),
  .breadcrumb-sep:not(:first-of-type) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .list-search-wrap {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 991.98px) {
  .list-search-spacer {
    margin-top: 72px;
  }
}

@media (max-width: 767.98px) {
  .brics-search-spacer {
    margin-top: 48px;
  }
  #heroCarousel .carousel-item img {
    object-fit: cover;
  }

  .country-factsheet-metrics span {
    font-size: 12px !important;
  }

  .country-factsheet-metrics strong {
    font-size: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .brics-search-spacer {
    margin-top: 32px;
  }
}

@media (max-width: 375px) {
  .brics-search-spacer {
    margin-top: 24px;
  }
  #brics-initiatives-slider .splide__pagination {
    bottom: -3.5rem !important;
  }
}
@media (max-width: 768px) {
  .list-search-wrap {
    width: 100%;
    max-width: 100%;
  }
  .wgc-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 24px;
    padding-top: 24px;
  }
  .wgc-listing-card {
    height: auto;
    min-height: 160px;
    padding: 20px;
    gap: 14px;
  }
  .wgc-listing-card__icon-wrap {
    height: 48px;
  }
  .wgc-listing-card__icon {
    max-height: 48px;
  }
  .wgc-listing-card__title {
    font-size: 15px;
  }
  .page-detail-main-area.page-detail-card {
    border-radius: 0 100px 0 100px !important;
    padding-left: 25px !important;
  }
}

@media (max-width: 480px) {
  .wgc-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .wgc-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 599.5px) {
  .wgc-grid {
    grid-template-columns: 1fr !important;
  }
  section.page-detail-main {
    padding: 1rem !important;
  }
}

@media (min-width: 576px) {
  .breadcrumb-current {
    max-width: 160px;
  }
}

@media (min-width: 768px) {
  .breadcrumb-current {
    max-width: 260px;
  }
}

@media (min-width: 992px) {
  .breadcrumb-current {
    max-width: none;
  }
}

@media (max-width: 450px) {
  .faq-detail-page-main {
    margin-top: -175px !important;
  }
}
