/* ============================================================
   NEWS PAGE — scoped under .np
   ============================================================ */

.np { font-family: var(--ip-font-body); color: var(--ip-charcoal); background: var(--ip-white); }
.np *, .np *::before, .np *::after { box-sizing: border-box; }
.np img { max-width: 100%; display: block; }
.np a { color: inherit; text-decoration: none; }

.np-container {
  width: 100%;
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 24px;
}
.np-section { padding: var(--ip-pad-section) 0; }

/* ============================================================
   FILTER STRIP + SEARCH
   ============================================================ */
.np-toolbar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: -32px auto 56px;
  padding: 20px 28px;
  background: var(--ip-white);
  border-radius: 14px;
  box-shadow: var(--ip-shadow-card);
  position: relative;
  z-index: 2;
}
.np-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}
.np-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--ip-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ip-charcoal);
  background: var(--ip-concrete);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ip-ease);
}
.np-pill:hover {
  background: var(--ip-white);
  border-color: var(--ip-orange);
  color: var(--ip-orange);
}
.np-pill.is-active {
  background: var(--ip-navy);
  color: var(--ip-white);
  border-color: var(--ip-navy);
}

.np-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ip-concrete);
  border-radius: 999px;
  padding: 6px 10px 6px 16px;
  min-width: 240px;
}
.np-search input {
  border: 0;
  background: transparent;
  font-family: var(--ip-font-body);
  font-size: 14px;
  color: var(--ip-charcoal);
  outline: none;
  min-width: 0;
  flex: 1;
}
.np-search input::placeholder { color: var(--ip-mute); }
.np-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ip-orange);
  color: var(--ip-white);
  cursor: pointer;
  transition: background .25s var(--ip-ease);
}
.np-search button:hover { background: var(--ip-orange-700); }
.np-search svg { width: 16px; height: 16px; }

/* ============================================================
   NEWS GRID
   ============================================================ */
.np-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
@media (max-width: 1024px) { .np-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .np-grid { grid-template-columns: 1fr; } }

.np-card {
  display: flex;
  flex-direction: column;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-card);
  overflow: hidden;
  transition: transform .3s var(--ip-ease), box-shadow .3s var(--ip-ease), border-color .3s var(--ip-ease);
}
.np-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ip-shadow-lift);
  border-color: rgba(242,122,26,.3);
}
.np-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ip-concrete);
}
.np-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ip-ease);
}
.np-card:hover .np-card-img img { transform: scale(1.06); }
.np-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--ip-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ip-white);
  background: var(--ip-orange);
  border-radius: 4px;
}

.np-card-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.np-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--ip-font-body);
  font-size: 12px;
  color: var(--ip-mute);
  letter-spacing: 0.3px;
}
.np-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.np-card-meta svg { width: 13px; height: 13px; }

.np-card-title {
  font-family: var(--ip-font-sub);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ip-navy);
  margin: 0;
}
.np-card-title a { color: inherit; transition: color .2s var(--ip-ease); }
.np-card-title a:hover { color: var(--ip-orange); }

.np-card-excerpt {
  font-family: var(--ip-font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ip-mute);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--ip-font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ip-orange);
}
.np-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ip-ease);
}
.np-card:hover .np-card-link svg { transform: translateX(4px); }

/* ============================================================
   STATE / EMPTY / LOADING
   ============================================================ */
.np-state {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  color: var(--ip-mute);
  font-family: var(--ip-font-body);
  font-size: 16px;
}
.np-state svg { width: 32px; height: 32px; color: var(--ip-orange); margin-bottom: 12px; }
.np-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--ip-line);
  border-top-color: var(--ip-orange);
  border-radius: 50%;
  animation: np-spin 0.9s linear infinite;
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGINATION
   ============================================================ */
.np-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}
.np-pagination button,
.np-pagination .np-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-family: var(--ip-font-display);
  font-size: 14px;
  font-weight: 700;
  background: var(--ip-white);
  border: 1.5px solid var(--ip-line);
  color: var(--ip-charcoal);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s var(--ip-ease);
}
.np-pagination button:hover:not(:disabled) {
  border-color: var(--ip-orange);
  color: var(--ip-orange);
}
.np-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.np-pagination .np-page-current {
  background: var(--ip-navy);
  border-color: var(--ip-navy);
  color: var(--ip-white);
  cursor: default;
}

/* ============================================================
   RECENT POSTS BAND
   ============================================================ */
.np-recent {
  background: var(--ip-concrete);
}
.np-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) { .np-recent-grid { grid-template-columns: 1fr; } }
.np-recent-item {
  display: block;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-radius-card);
  padding: 20px 22px;
  transition: transform .25s var(--ip-ease), box-shadow .25s var(--ip-ease);
}
.np-recent-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ip-shadow-card);
}
.np-recent-item h6 {
  font-family: var(--ip-font-sub);
  font-size: 16px;
  font-weight: 600;
  color: var(--ip-navy);
  margin: 0 0 6px;
  line-height: 1.4;
}
.np-recent-item p {
  font-family: var(--ip-font-body);
  font-size: 13.5px;
  color: var(--ip-mute);
  margin: 0;
  line-height: 1.55;
}
