/* News Manager — homepage "News & Events" section ([news_manager_home]) */
.nmh-news {
  --nmh-ink: #16262A;
  --nmh-muted: #5B7370;
  --nmh-border: #E7EEEC;
  --nmh-accent: #2E86C7;
  --nmh-accent-dark: #1C5E86;
  --nmh-accent-soft: #E7F1FB;
  --nmh-green-soft: #DDF6EA;
  --nmh-green-dark: #1F7A57;
  --nmh-gradient: linear-gradient(120deg, #3B9FD9 0%, #2FBE8B 100%);

  --nmh-max: 1200px;
  --nmh-pad: clamp(16px, 4vw, 32px);
  --nmh-sticky-top: 24px;            /* raise this if your site has a fixed header */
  --nmh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Full-screen background; the script refines the width to the exact window. */
  display: block;
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  box-sizing: border-box;
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
  background: #FFFFFF;
  color: var(--nmh-ink);
  font-family: var(--nmh-font);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.nmh-news *,
.nmh-news *::before,
.nmh-news *::after { box-sizing: border-box; }
.nmh-news [hidden] { display: none !important; }

.nmh-news .nmh-inner {
  width: 100%;
  max-width: calc(var(--nmh-max) + var(--nmh-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--nmh-pad);
}

/* Header */
.nmh-news .nmh-header { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.nmh-news .nmh-header h2 {
  font-family: inherit; font-weight: 800; font-size: clamp(30px, 4.2vw, 40px);
  margin: 0 0 12px; padding: 0; line-height: 1.2; letter-spacing: -0.01em;
  text-transform: none; color: var(--nmh-ink);
}
.nmh-news .nmh-header p { margin: 0; padding: 0; color: var(--nmh-muted); font-size: 15px; line-height: 1.6; }

/* Filters */
.nmh-news .nmh-filters-outer { display: flex; justify-content: center; margin-bottom: 44px; }
.nmh-news .nmh-filters {
  display: inline-flex; gap: 6px; background: #F3F7F6; border: 1px solid var(--nmh-border);
  border-radius: 999px; padding: 6px; max-width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nmh-news .nmh-filters::-webkit-scrollbar { display: none; }
.nmh-news .nmh-chip {
  appearance: none; -webkit-appearance: none; border: none; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4;
  text-transform: none; letter-spacing: 0; color: var(--nmh-muted);
  margin: 0; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; box-shadow: none;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nmh-news .nmh-chip:hover:not(.is-active) { color: var(--nmh-accent-dark); background: rgba(255, 255, 255, 0.7); }
.nmh-news .nmh-chip.is-active { background: var(--nmh-gradient); color: #fff; box-shadow: 0 8px 18px -8px rgba(46, 134, 199, 0.55); }
.nmh-news .nmh-chip:focus-visible { outline: 2px solid var(--nmh-accent); outline-offset: 2px; }

/* Two-column layout */
.nmh-news .nmh-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* Sticky featured card */
.nmh-news .nmh-featured {
  position: sticky; top: var(--nmh-sticky-top); align-self: start;
  padding: clamp(22px, 2.6vw, 32px); border-radius: 24px;
  background: linear-gradient(120deg, #C9E2F6 0%, #E1EFFA 42%, #D3F4E3 100%);
}
.nmh-news .nmh-badge {
  display: inline-block; padding: 7px 14px; font-size: 12.5px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.02em; color: var(--nmh-accent-dark); background: #fff; border-radius: 999px;
}
.nmh-news .nmh-featured-title {
  margin: 20px 0 16px; padding: 0; font-family: inherit; font-weight: 800;
  font-size: clamp(24px, 2.5vw, 31px); line-height: 1.2; letter-spacing: -0.015em;
  text-transform: none; color: var(--nmh-ink);
}
.nmh-news .nmh-featured-text {
  margin: 0 0 16px; padding: 0; font-size: clamp(15px, 1.3vw, 16px); line-height: 1.6; color: #445F5C;
}
.nmh-news .nmh-featured-date { display: block; margin: 0 0 24px; font-size: 14px; line-height: 1.3; color: #445F5C; }
.nmh-news .nmh-featured-link,
.nmh-news .nmh-featured-link:link,
.nmh-news .nmh-featured-link:visited {
  display: inline-block; padding: 0 0 2px; font-size: 14.5px; font-weight: 700; line-height: 1.3;
  color: var(--nmh-accent-dark) !important; text-decoration: none !important;
  border-bottom: 2px solid var(--nmh-accent); box-shadow: none;
}
.nmh-news .nmh-featured-link:hover { color: var(--nmh-accent) !important; }

/* List */
.nmh-news .nmh-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nmh-border); }
.nmh-news .nmh-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 24px); margin: 0; padding: clamp(18px, 2vw, 26px) 0;
  list-style: none; border-bottom: 1px solid var(--nmh-border);
}
.nmh-news .nmh-item-date { padding-top: 3px; font-size: 14px; line-height: 1.4; color: var(--nmh-muted); }

.nmh-news .nmh-tag {
  display: inline-block; margin: 0 0 10px; padding: 6px 11px; font-size: 12.5px; font-weight: 700;
  line-height: 1; letter-spacing: 0.01em; border-radius: 999px;
}
.nmh-news .nmh-tag--news        { background: var(--nmh-accent-soft); color: var(--nmh-accent-dark); }
.nmh-news .nmh-tag--webinar     { background: var(--nmh-green-soft);  color: var(--nmh-green-dark); }
.nmh-news .nmh-tag--conference  { background: #D3E8F8; color: var(--nmh-accent-dark); }
.nmh-news .nmh-tag--seminar     { background: #E0F1EC; color: #226B57; }
.nmh-news .nmh-tag--opportunity { background: #FFF0D2; color: #86560A; }
.nmh-news .nmh-tag--other       { background: var(--nmh-accent-soft); color: var(--nmh-accent-dark); }

.nmh-news .nmh-item-title,
.nmh-news .nmh-item-title:link,
.nmh-news .nmh-item-title:visited {
  display: block; margin: 0 0 8px; padding: 0; font-family: inherit; font-weight: 700;
  font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.35; letter-spacing: -0.005em;
  color: var(--nmh-ink) !important; text-decoration: none !important;
}
.nmh-news .nmh-item-title:hover {
  color: var(--nmh-accent-dark) !important; text-decoration: underline !important; text-underline-offset: 3px;
}
.nmh-news .nmh-item-desc { margin: 0; padding: 0; font-size: clamp(14.5px, 1.25vw, 15.5px); line-height: 1.6; color: var(--nmh-muted); }

.nmh-news .nmh-empty {
  margin: 0; padding: 32px 0; font-size: 15px; color: var(--nmh-muted);
  list-style: none; border-bottom: 1px solid var(--nmh-border);
}

/* "Show older items" */
.nmh-news .nmh-more {
  appearance: none; -webkit-appearance: none; display: inline-block; margin: 28px 0 0;
  background: #fff; border: 1.5px solid var(--nmh-accent); color: var(--nmh-accent-dark);
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4;
  text-transform: none; letter-spacing: 0; padding: 10px 26px; border-radius: 999px;
  cursor: pointer; box-shadow: none; transition: background .2s ease;
}
.nmh-news .nmh-more:hover,
.nmh-news .nmh-more:focus { background: var(--nmh-accent-soft); color: var(--nmh-accent-dark); }
.nmh-news .nmh-more:focus-visible { outline: 2px solid var(--nmh-accent); outline-offset: 2px; }
.nmh-news .nmh-item-title:focus-visible,
.nmh-news .nmh-featured-link:focus-visible { outline: 2px solid var(--nmh-accent); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1024px) {
  .nmh-news .nmh-layout { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
  .nmh-news .nmh-item { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nmh-news .nmh-layout { grid-template-columns: minmax(0, 1fr); }
  .nmh-news .nmh-featured { position: static; }
  .nmh-news .nmh-featured-text { max-width: 60ch; }
}
@media (max-width: 640px) {
  .nmh-news .nmh-header { margin-bottom: 30px; }
  .nmh-news .nmh-filters-outer { margin-bottom: 32px; }
  .nmh-news .nmh-item { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .nmh-news .nmh-item-date { padding-top: 0; }
  .nmh-news .nmh-more { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .nmh-news * { transition: none !important; } }
