/* ================================================================
   NATIONAL PARKS & PROTECTED AREAS
   Uses the shared tokens from styles.css (--red, --dark-blue, etc.)
================================================================ */

/* ── Hero ── */
.np-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image: url("/images/StoriesfromNepal/BardiaNationalPark.jpg");
  background-size: cover;
  background-position: center 50%;
}
.np-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 22, 51, 0.85) 0%,
    rgba(0, 22, 51, 0.55) 55%,
    rgba(0, 22, 51, 0.35) 100%
  );
}
.np-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 90px 24px 26px;
  color: #fff;
}
.np-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.np-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  line-height: 1.6;
}

/* ── Stats strip ── */
.np-stats-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-grey);
  padding: 28px 0;
}
.np-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.np-stat {
  text-align: center;
}
.np-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.1;
}
.np-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-grey);
}

/* ── Grid ── */
.np-section {
  padding: 72px 0 80px;
}
.np-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.np-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 26px;
  border: 1px solid #e8ecf2;
  border-radius: var(--radius-md);
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  /* Offset for the fixed header when linked to by #slug */
  scroll-margin-top: 90px;
}
.np-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.np-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.np-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.np-card-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--light-grey);
  color: var(--dark-grey);
  white-space: nowrap;
}
.np-card-badge--unesco {
  background: rgba(200, 16, 46, 0.1);
  color: var(--red);
}
.np-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark-blue);
  margin: 0 0 6px;
  line-height: 1.3;
}
.np-card-meta {
  font-size: 0.75rem;
  color: var(--mid-grey);
  margin: 0 0 12px;
  line-height: 1.5;
}
.np-card-area {
  font-weight: 600;
  color: var(--dark-grey);
}
.np-card-desc {
  font-size: 0.86rem;
  color: var(--dark-grey);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.np-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.np-chip {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  color: var(--mid-grey);
}
.np-card-link {
  margin-top: 14px;
  gap: 6px;
}

/* ── Permits footer note ── */
.np-permits {
  background: var(--dark-blue);
  color: #fff;
  padding: 56px 0 64px;
}
.np-permits-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.np-permits-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0 0 24px;
}
.np-permits .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.np-permits .btn-secondary:hover {
  background: #fff;
  color: var(--dark-blue);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .np-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .np-grid {
    grid-template-columns: 1fr;
  }
  .np-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
  .np-section {
    padding: 48px 0 56px;
  }
}
