
/* ── Filter Bar ────────────────────────────────────────────────── */
.ni-filter-bar {
  background: var(--sky-bg, #d7e7f2);
  padding: 0;
  margin-bottom: 48px;
  border-top: 1px solid #113156;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ni-filter-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Desktop Category Tabs ─────────────────────────────────────── */
.ni-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

/* Sliding indicator */
.ni-filter-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--orange, #fc9a23);
  pointer-events: none;
  transform: translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ni-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--navy, #113156);
  font-family: "calluna-sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 36px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ni-tab:hover {
  color: var(--orange, #fc9a23);
}

.ni-tab.active {
  color: var(--navy, #113156);
}

/* ── Mobile Category Filter ────────────────────────────────────── */

/* Hidden on desktop */
.ni-mobile-category-filter {
  display: none;
}

/* ── Search ────────────────────────────────────────────────────── */
.ni-search-wrap {
  display: flex;
  align-items: center;
  align-self: center;
  border: 1px solid #aac3d5;
  border-radius: 4px;
  padding: 8px 14px;
  gap: 8px;
  background: #fff;
  min-width: 220px;
  margin-right: 4px;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .ni-search-wrap {
    display: none;
  }
}
.ni-search-wrap input[type="search"] {
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  font-family: "calluna-sans", sans-serif;
}

.ni-search-wrap input[type="search"]::placeholder {
  color: #aaa;
}

.ni-search-btn {
  background: none;
  border: none;
  color: var(--navy, #113156);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.ni-search-btn:hover {
  color: var(--orange, #fc9a23);
}

/* ── Mobile Filter Layout ──────────────────────────────────────── */
@media (max-width: 767.98px) {
  .ni-filter-bar {
    padding: 16px 0;
    height: auto;
    overflow: visible;
  }

  .ni-filter-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
  }

  /* Hide desktop tabs */
  .ni-tabs {
    display: none;
  }

  /* Show mobile dropdown */
  .ni-mobile-category-filter {
    display: block;
    position: relative;
    width: 100%;
  }

  .ni-mobile-category-filter .ni-filter-select {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 10px 44px 10px 14px;
    border: 1px solid #aac3d5;
    border-radius: 4px;
    background-color: #fff;
    color: var(--navy, #113156);
    font-family: "calluna-sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
      linear-gradient(
        45deg,
        transparent 50%,
        var(--navy, #113156) 50%
      ),
      linear-gradient(
        135deg,
        var(--navy, #113156) 50%,
        transparent 50%
      );

    background-position:
      calc(100% - 19px) 50%,
      calc(100% - 14px) 50%;

    background-size:
      5px 5px,
      5px 5px;

    background-repeat: no-repeat;
  }

  .ni-mobile-category-filter .ni-filter-select:hover {
    border-color: var(--navy, #113156);
  }

  .ni-mobile-category-filter .ni-filter-select:focus {
    border-color: var(--navy, #113156);
    outline: 2px solid rgba(17, 49, 86, 0.2);
    outline-offset: 1px;
  }

  .ni-mobile-category-filter .ni-filter-select::-ms-expand {
    display: none;
  }

  .ni-search-wrap {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .ni-search-wrap input[type="search"] {
    min-width: 0;
  }
}

/* ── Grid ──────────────────────────────────────────────────────── */
.ni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

@media (max-width: 991px) {
  .ni-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── Card ──────────────────────────────────────────────────────── */
.ni-card {
  display: flex;
  flex-direction: column;
}

.ni-card-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #e5e9f0;
  margin-bottom: 30px;
}

.ni-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ni-card-img-wrap:hover img {
  transform: scale(1.03);
}

.ni-card-img-placeholder {
  width: 100%;
  height: 100%;
  background:
    #dce3ec
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3C/svg%3E")
    center / cover;
}

.ni-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ni-card-meta {
  font-size: 14px;
  font-weight: 500;
  color: #218ec2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ni-card-sep {
  color: #000000;
  font-weight: 400;
  margin: 0 5px;
}

.ni-card-date {
  color: #808080;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.ni-card-title {
  font-family: "calluna-sans", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 34px;
  margin-bottom: 24px;
  color: var(--navy, #003063);
}

.ni-card-title a {
  color: inherit;
  text-decoration: none;
}

.ni-card-title a:hover {
  color: var(--orange, #f7ab22);
}

.ni-card-excerpt {
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  margin-bottom: 24px;
  flex: 1;
}

.ni-card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy, #003063);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.ni-card-link:hover {
  color: var(--orange, #f7ab22);
  text-decoration: none !important;
}

.ni-card-link i {
  font-size: 10px;
  transition: transform 0.2s;
}

.ni-card-link:hover i {
  transform: translateX(3px);
}

/* ── Load More ─────────────────────────────────────────────────── */
.ni-load-more-wrap {
  text-align: center;
  margin-top: 56px;
}

.ni-load-more {
  background: transparent;
  border: 2px solid var(--orange, #f7ab22);
  color: var(--navy, #003063);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 48px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.ni-load-more:hover {
  background: var(--orange, #f7ab22);
  color: #fff;
}

.ni-load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── No Results ────────────────────────────────────────────────── */
.ni-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-size: 16px;
  padding: 40px 0;
}
.ni-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
}

.ni-filter-indicator {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--orange, #fc9a23);
  pointer-events: none;
  transform: translateX(0);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.ni-tab {
  position: relative;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
}

/* Do not use the tab border for the active bar */
.ni-tab.active {
  border-bottom-color: transparent !important;
}

@media (max-width: 767.98px) {
  .ni-tabs {
    display: none;
  }
}
