:root {
  --bg: #fff9ee;
  --dark: #000000;
  --accent: #9b1e21;
  --card: #ffffff;
  --muted: #6b7280;
  --ring: rgba(0, 0, 0, 0.08);
}
.info-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.info-card {
  flex: 1;
  min-width: 200px;
  background: #fff9ee;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
.info-card:hover {
  transform: translateY(-5px);
}
/* .info-card.green{background:linear-gradient(135deg,#1b873f,#218838);color:#fff} */
.info-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
}
.info-card .number {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: #9b1e21;
}

.nh-wrap {
  background: var(--bg);
  padding: 16px;
}
.nh-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .nh-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.nh-sidebar {
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 4px;
  padding: 16px;
  top: 12px;
}
.nh-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.nh-pill {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--dark);
}
.nh-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nh-filter-title {
  font-weight: 700;
  color: var(--dark);
  margin: 6px 0 8px 0;
}
.nh-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--dark);
}
.nh-check input {
  accent-color: var(--accent);
}
.nh-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

/* Cards grid */
.nh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .nh-grid {
    grid-template-columns: 1fr;
  }
}

.nh-card {
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.nh-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: normal;
  padding: 0px 0 15px 0;
  background: var(--bg);
}
.nh-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #efe2e3;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.nh-title {
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.2;
  font-size: 16px;
}
.nh-sub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nh-desc {
  color: var(--dark);
  font-size: 14px;
  margin: 10px 0 12px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  position: relative;
}
.nh-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nh-fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.6em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg));
}
.nh-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}

.nh-images {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* smooth swipe */
  scrollbar-width: none;
}
.nh-images::-webkit-scrollbar {
  display: none;
}

/* Show exactly 2 images per view */
.nh-img {
  flex: 0 0 calc(50% - 5px); /* 2 images per row with gap */
  aspect-ratio: 16 / 9; /* keep nice video/photo ratio */
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--ring);
  background: var(--bg);
  border: 1px solid var(--ring) !important;
}
.nh-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}
/* Strip scrollbars but allow horizontal swipe */
@media (min-width: 950px) {
  .nh-img {
    width: 300px;
    flex: 0 0 300px; /* override the flex-basis */
    max-width: 300px; /* optional, keeps safety */
  }
}

.nh-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0;
}
.nh-page {
  border: 1px solid var(--ring);
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.nh-page[aria-current="page"],
.nh-page.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nh-page[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.nh-pager .nh-gap {
  padding: 0 4px;
  color: var(--muted);
}

.chart-wrapper {
  display: flex;
  flex-wrap: nowrap; /* keep in one row */
  align-items: stretch; /* equal height if possible */
  gap: 16px;
  margin-bottom: 10px; /* space between chart and banner */
}

/* Right column: image */
.chart-wrapper .nat-banner {
  flex: 1 1 calc(40% - 8px); /* subtract half the gap */
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  flex-direction: column;
  background-color: var(--bg);
  /* Remove fixed height to keep responsive, or make it relative */
  height: auto;
  max-height: 500px; /* optional cap */
  border: 1px solid var(--ring);
}

.chart-wrapper .nat-banner img {
  width: 100%;
  height: auto; /* maintain aspect ratio */
  max-height: 90%; /* fit inside banner box */
  object-fit: contain;
}

.nat-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .nat-charts {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .chart-wrapper .nat-chart-box {
    flex: 1 1 calc(60% - 8px); /* subtract half the gap */
    min-width: 0; /* allow shrinking */
  }
}

@media (min-width: 900px) {
  .chart-wrapper .nat-chart-box {
    flex: 1 1 calc(60% - 8px); /* subtract half the gap */
    min-width: 0; /* allow shrinking */
  }
}

@media (max-width: 900px) {
  .chart-wrapper {
    flex-direction: column;
  }
  .chart-wrapper .nat-banner {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .chart-wrapper .nat-banner {
    max-height: none; /* let image take natural height on small screens */
  }
}

.nat-chart-box {
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 0;
  padding: 16px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  position: relative; /* required for Chart.js sizing */
  height: 500px;
  max-height: 500px; /* fixed height (you can tweak it or use %/vh) */
}
.nat-chart-box h3 {
  margin-top: 0;
}
.nat-chart-box canvas {
  position: absolute; /* stretch to container */
  top: 60px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  height: calc(100% - 80px) !important;
}

/* slider for image scroll */
.nat-slider {
  position: relative;
  max-width: 980px;
  padding: 0 44px; /* space for nav buttons */
}

.nat-track {
  display: flex;
  overflow-x: hidden; /* hide manual scrollbar */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  max-width: 90%;
  margin: auto;
}

.nat-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.nat-slide img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.nat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px !important;
  height: 36px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  line-height: 36px;
  font-size: 22px !important;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

.nat-nav:hover,.nat-nav:focus  {
  opacity: 1;
  background-color: transparent !important;
  color: var(--accent) !important;
}
.nat-prev {
  left: 20px;
}
.nat-next {
  right: 20px;
}
