/* ============================================================
  NEB Junction – Custom Theme Stylesheet
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --neb-dark: #282828;
  --neb-olive: #5c5c3d;
  --neb-lime: #d4e157;
  --neb-green: #4caf82;
  --neb-teal: #4cc4ff;
  --neb-blue: #29b6f6;
  --neb-brand-blue: #0073e6;
  --neb-purple: #7e57c2;
  --neb-white: #ffffff;
  --neb-light-bg: #f2f2f2;
  --neb-text: #282828;
  --neb-text-muted: #6b6b55;
  --font-main: "Titillium Web", "Arial", sans-serif;
}

/* ── Page-wide width constraint (1320px, sections with white bg) ── */
.neb-colorbar,
.neb-events,
.neb-kb-preview,
.neb-map,
.neb-faq,
.neb-funding,
.neb-partners,
.neb-footer {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections with non-white backgrounds are full-bleed;
   their __inner / __card wrappers centre the content. */

/* ── Base Overrides ─────────────────────────────────────────── */
body {
  font-family: var(--font-main) !important;
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* Text utility classes */
.text-medium {
  font-size: 1.1rem;
  line-height: 1.56rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  letter-spacing: 0.0078em;
}

.text-small {
  font-size: 1rem;
  line-height: 1.44rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  letter-spacing: 0.02em;
}

/* ── Typography Scale (Desktop) ─────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6,
.neb-nav,
.neb-header,
.neb-btn,
.neb-gem-card__title,
.neb-news-card__title,
.neb-project-card__name,
.neb-impact__title,
.neb-welcome__title,
.neb-kb-preview__title {
  text-align: left;
}

h1 {
  font-family: var(--font-main) !important;
  font-size: 5.4rem;
  line-height: 5.5rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0;
}

h2 {
  font-family: var(--font-main) !important;
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  vertical-align: middle;
  margin: 0;
}

/* Global H2-equivalent for all BEM __title classes.
  Specific __title rules further down override this where needed
   (e.g. card titles at 21px, hero titles at larger sizes). */
[class*="__title"] {
  font-family: var(--font-main);
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

@media (max-width: 768px) {
  h1 {
    font-family: var(--font-main) !important;
    font-size: 2.19rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: var(--neb-dark);
    margin: 0;
  }

  h2 {
    font-family: var(--font-main) !important;
    font-size: 1.75rem;
    line-height: 2.13rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--neb-dark);
    margin: 0;
  }

  h3 {
    font-family: var(--font-main) !important;
    font-size: 1.13rem;
    line-height: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--neb-dark);
    margin: 0;
  }

  body {
    font-family: var(--font-main) !important;
    font-size: 1.13rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--neb-text);
    text-align: justify;
    vertical-align: middle;
    overflow-x: hidden;
    letter-spacing: 0.02em;
  }

  .text-small {
    font-size: 0.88rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--neb-text);
    text-align: justify;
    letter-spacing: 0.02em;
  }

  h2,
  [class*="__title"] {
    font-size: 1.75rem;
    line-height: 2.13rem;
  }

  h4,
  [class*="__subtitle"] {
    font-size: 1.125rem;
    line-height: 1.62rem;
    letter-spacing: 0;
  }
}

h3 {
  font-family: var(--font-main) !important;
  font-size: 1.9rem;
  line-height: 2.6rem;
  font-weight: 400;
  color: var(--neb-dark);
  vertical-align: middle;
  margin: 0;
}

h3.bold,
h3 strong {
  font-weight: 700;
}

h4 {
  font-family: var(--font-main) !important;
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

/* Global H4-equivalent for all BEM __subtitle classes.
  Specific __subtitle rules further down override this where needed
   (e.g. hero subtitle at smaller size/lighter weight). */
[class*="__subtitle"] {
  font-family: var(--font-main);
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

h5,
h6 {
  font-family: var(--font-main) !important;
  font-weight: 600;
  color: var(--neb-dark);
  margin-top: 0;
}

a {
  color: var(--neb-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--neb-lime);
  color: var(--neb-dark);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ── Header / Navigation ─────────────────────────────────────── */
.neb-header {
  background: var(--neb-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.neb-header__inner {
  width: 100%;
  padding: 0rem 1rem 0rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin: 1rem;
}

.neb-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.neb-header__logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.neb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hamburger toggle – hidden on desktop */
.neb-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.neb-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* Active (open) state – top/bottom bars form an X */
.neb-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.neb-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.neb-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.neb-nav__item {
  color: var(--neb-text);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.15s,
    background 0.15s;
}

.neb-nav__item:hover {
  color: var(--neb-teal);
  background: transparent;
  text-decoration: none;
}

.neb-nav__item--active {
  color: var(--neb-dark);
  font-weight: 600;
  background: var(--neb-teal);
  border-radius: 60.71px;
  padding: 3px 15px 4px;
}

.neb-nav__item--active:hover {
  color: var(--neb-dark);
  background: var(--neb-teal);
}

/* ── Nav Knowledge Base dropdown ───────────────────────────── */
.neb-nav__dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.neb-nav__dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  padding: 0;
}

.neb-nav__dd--active .neb-nav__dd__btn {
  font-weight: 600;
  background: var(--neb-teal);
  border-radius: 60.71px;
  padding: 3px 15px 4px;
  color: var(--neb-dark);
}

.neb-nav__dd__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.neb-nav__dd.open .neb-nav__dd__chevron {
  transform: rotate(180deg);
}

.neb-nav__dd__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 12px;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.12);
}

.neb-nav__dd__panel[hidden] {
  display: none;
}

.neb-nav__dd__link {
  display: block;
  padding: 10px 20px;
  color: var(--neb-dark);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.15s, background 0.15s;
}

.neb-nav__dd__link:hover,
.neb-nav__dd__link--active {
  color: var(--neb-teal);
  background: transparent;
}

/* ── Front Page Hero ────────────────────────────────────────── */
.neb-hero {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 60%, #1e88e5 100%);
  color: var(--neb-white);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 0 150px;
}

.neb-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  padding: 182px 50px 48px;
  width: 100%;
  box-sizing: border-box;
}

.neb-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.neb-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(38, 198, 218, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.neb-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.neb-hero__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.neb-hero__dots {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

.neb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.neb-hero__logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.neb-logo-bubbles {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-template-rows: repeat(2, 24px);
  gap: 5px;
  align-content: center;
}

.neb-logo-bubbles .neb-bubble {
  width: 24px;
  height: 24px;
}

.neb-bubble {
  border-radius: 50%;
  display: block;
}

.neb-bubble--lg {
  width: 28px;
  height: 28px;
}

.neb-bubble--md {
  width: 22px;
  height: 22px;
}

.neb-bubble--sm {
  width: 16px;
  height: 16px;
}

.neb-bubble--xs {
  width: 12px;
  height: 12px;
}

.bubble-lime {
  background: var(--neb-lime);
}

.bubble-green {
  background: var(--neb-green);
}

.bubble-teal {
  background: var(--neb-teal);
}

.bubble-blue {
  background: var(--neb-blue);
}

.bubble-purple {
  background: var(--neb-purple);
}

.bubble-dark {
  background: rgba(255, 255, 255, 0.25);
}

.neb-logo-text {
  font-family: var(--font-main) !important;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--neb-white);
  line-height: 1;
}

.neb-logo-text span {
  color: var(--neb-lime);
}

.neb-footer__logo-img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.neb-hero__tagline {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.neb-hero__title {
  font-size: 87px;
  line-height: 88px;
  font-weight: 700;
  letter-spacing: -0.0098em;
  color: var(--neb-white);
  align-self: flex-start;
}

.neb-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto 40px;
}

.neb-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 50px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.neb-btn {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.neb-btn--primary {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

.neb-btn--primary:hover {
  background: #c8d94f;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-btn--outline {
  background: transparent;
  color: var(--neb-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.neb-btn--outline:hover {
  border-color: var(--neb-lime);
  color: var(--neb-lime);
  text-decoration: none;
}

.neb-btn--outline-light {
  background: transparent;
  color: var(--neb-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.neb-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neb-white);
  color: var(--neb-white);
  text-decoration: none;
}

.neb-btn--secondary {
  background: var(--neb-dark);
  color: var(--neb-white);
}

.neb-btn--secondary:hover {
  background: var(--neb-olive);
  color: var(--neb-white);
  text-decoration: none;
}

.neb-btn--card {
  background: transparent;
  color: var(--neb-teal);
  border: 1px solid var(--neb-teal);
  padding: 10px 20px;
  font-size: 0.88rem;
}

.neb-btn--card:hover {
  background: var(--neb-teal);
  color: var(--neb-white);
  text-decoration: none;
}

/* Pill button: white bg, blue text — used on coloured (hero/newsletter) backgrounds */
.neb-btn--pill-white {
  background: var(--neb-white);
  color: var(--neb-brand-blue);
  border-radius: 100px;
  font-weight: 600;
  font-size: 19, 99px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
}

.neb-btn--pill-white:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--neb-brand-blue);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Pill button: white bg, dark/black text — used on light (white/light-bg) backgrounds */
.neb-btn--pill {
  background: var(--neb-white);
  color: var(--neb-dark);
  border-radius: 100px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 1.3rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.neb-btn--pill:hover {
  background: var(--neb-light-bg);
  color: var(--neb-dark);
  text-decoration: none;
  border-color: rgba(0, 0, 0, 0.25);
}

.neb-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Color Bar ──────────────────────────────────────────────── */
.neb-colorbar {
  display: flex;
  height: 6px;
}

.neb-colorbar span {
  flex: 1;
}

.neb-colorbar .c1 {
  background: var(--neb-lime);
}

.neb-colorbar .c2 {
  background: var(--neb-green);
}

.neb-colorbar .c3 {
  background: var(--neb-teal);
}

.neb-colorbar .c4 {
  background: var(--neb-blue);
}

.neb-colorbar .c5 {
  background: var(--neb-purple);
}

/* ── Section shared typography ──────────────────────────────── */
.neb-section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neb-green);
  margin-bottom: 12px;
}

.neb-section-eyebrow--light {
  color: var(--neb-lime);
}

.neb-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.neb-section-title--light {
  color: var(--neb-white);
}

.neb-section-body body{
  text-align: left;
  margin-bottom: 16px;
}

.neb-section-body--light {
  color: rgba(255, 255, 255, 0.85);
}

.neb-section-subtitle {
  font-size: 1.05rem;
  color: var(--neb-text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

.neb-section-header {
  text-align: center;
  margin-bottom: 52px;
}

/* ── Welcome Section ────────────────────────────────────────── */
.neb-welcome {
  padding: 6rem 2.5rem 6rem;
  margin-top: 10rem;
  background: var(--neb-light-bg);
}

.neb-welcome__inner {
  max-width: 1210px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 9fr 11fr;
  column-gap: 90px;
  row-gap: 0;
  align-items: stretch;
}

.neb-welcome__text {
  align-self: start;
}

.neb-welcome__title {
  margin-bottom: 20px;
}

.neb-welcome__cta {
  grid-column: 1;
  margin-top: 8px;
  background: var(--neb-light-bg);
  align-self: start;
  justify-self: start;
}

.neb-welcome__values {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.neb-value-card {
  background: var(--neb-white);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.neb-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.neb-value-icon--beautiful {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

.neb-value-icon--sustainable {
  background: #b2dfdb;
  color: #2e6b5e;
}

.neb-value-icon--inclusive {
  background: var(--neb-green);
  color: var(--neb-white);
}

.neb-value-icon-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.neb-value-content {
  flex: 1;
}

.neb-value-card h4 {
  margin: 0 0 4px 0;
}

.neb-value-card p body{
  margin: 0;
}

/* ── NEB Junction News ──────────────────────────────────────── */
.neb-news {
  padding: 0 40px 30px;
  background: var(--neb-white);
  max-width: 1320px;
  margin: 150px auto;
}

.neb-news__inner {
  max-width: 1210px;
  margin: 0 auto;
}

.neb-news__header {
  margin-bottom: 8px;
}

/* Extend carousel-wrap into section padding so arrows sit outside cards */
.neb-news .neb-carousel-wrap,
.neb-funding-cards .neb-carousel-wrap {
  margin-left: -48px;
  margin-right: -48px;
}

.neb-news__title {
  margin: 0;
}

.neb-news__view-all {
  display: inline-block;
  font-size: 21px;
  font-weight: 600;
  color: var(--neb-dark);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.neb-news__view-all:hover {
  color: var(--neb-teal);
  text-decoration: none;
}

.neb-events__footer {
  margin-top: 24px;
}

.neb-events__empty {
  padding: 24px 0;
  color: var(--neb-text-muted);
  font-size: 1rem;
}

.neb-news-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border: 1.15px solid #282828;
  aspect-ratio: 10 / 11.7;
}

.neb-news-card__badge {
  display: inline-block;
  align-self: flex-end;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 48.75px;
  background: #0073e5;
  color: var(--neb-white);
}

.neb-news-card__badge--project {
  background: #11a6a6;
  color: var(--neb-white);
}

.neb-news-card__badge--funding {
  background: #453366;
  color: var(--neb-white);
}

.neb-news-card__badge--event,
.neb-news-card__badge--story {
  background: #11a6a6;
  color: var(--neb-white);
}

.neb-news-card__title {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #282828;
  margin: 0;
}

.neb-news-card__text {
  font-size: 16px;
  line-height: 23px;
  color: #282828;
  font-weight: 400;
  margin: 0;
  flex: 1;
  text-align: justify;
}

/* Mobile: also in carousel */
@media (max-width: 768px) {
  .neb-news {
    padding: 48px 24px;
    margin: 0;
  }

  .neb-news-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
    max-width: 320px;
    aspect-ratio: unset;
  }

  .neb-news .neb-carousel-wrap,
  .neb-funding-cards .neb-carousel-wrap {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Looking for Funding cards ──────────────────────────────── */
.neb-funding-cards {
  padding: 0 40px 30px;
  background: var(--neb-white);
  max-width: 1320px;
  margin: 150px auto;
}

.neb-funding-cards__inner {
  max-width: 1232px;
  margin: 0 auto;
}

.neb-funding-cards__header {
  margin-bottom: 28px;
}

.neb-funding-cards__title {
  margin: 0 0 10px;
}

.neb-funding-cards__desc {
  font-size: 21px;
  color: var(--neb-text-muted);
  font-weight: 400;
  margin: 0;
  line-height: 28px;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neb-news-card__badge--funding {
  background: #4a3060;
  color: var(--neb-white);
}

.neb-funding-card__status {
  font-size: 0.8rem;
  color: var(--neb-text-muted);
  font-weight: 400;
  margin-top: auto;
}

@media (max-width: 768px) {
  .neb-funding-cards {
    padding: 3rem 1.5rem;
    margin: 0;
  }

  .neb-news .neb-gem-carousel,
  .neb-funding-cards .neb-gem-carousel {
    align-items: flex-start;
  }

  .neb-funding-card__status {
    margin-top: 0;
  }
}

/* ── Newsletter ─────────────────────────────────────────────── */
.neb-newsletter {
  background: #e4f249;
  padding: 40px;
}

.neb-newsletter__card {
  background: var(--neb-white);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 6fr;
  max-width: 1232px;
  margin: 0 auto;
}

.neb-newsletter__text {
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.neb-newsletter__title {
  margin: 0;
  text-align: left;
}

.neb-newsletter__sub {
  font-size: 21px;
  line-height: 28px;
  color: #282828;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.neb-newsletter__image {
  padding: 30px 30px 30px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.neb-newsletter__image img {
  width: 60%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .neb-newsletter__card {
    grid-template-columns: 1fr;
  }

  .neb-newsletter__image {
    min-height: 220px;
  }

  .neb-newsletter__text {
    padding: 32px 24px;
  }
}

/* ── Upcoming Events ────────────────────────────────────────── */
.neb-events {
  padding: 0 40px 30px;
  margin-top: 150px;
  background: var(--neb-white);
}

.neb-events__inner {
  max-width: 1232px;
  margin: 0 auto;
}

.neb-events__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.neb-events__title {
  margin: 0;
}

.neb-events__rule {
  border: none;
  border-top: 1px solid #282828;
  margin: 16px 0 0;
}

.neb-events__view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-dark);
  white-space: nowrap;
  text-decoration: none;
}

.neb-events__view-all:hover {
  color: var(--neb-teal);
  text-decoration: none;
}

.neb-events__list {
  display: flex;
  flex-direction: column;
}

/* Desktop: flat list rows with dividers */
.neb-event-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #282828;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  transition: none;
}

.neb-event-card:hover {
  text-decoration: none;
}

.neb-event-card:hover .neb-event-card__title {
  color: var(--neb-teal);
}

.neb-event-card__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 10px 6px 6px;
}

.neb-event-card__day {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  white-space: nowrap;
}

.neb-event-card__month {
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-text-muted);
  white-space: nowrap;
  text-align: right;
}

.neb-event-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neb-event-card__tags {
  margin-top: 10px;
}

.neb-event-card__title {
  font-size: 1.875rem;
  line-height: 2.5625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
  transition: color 0.15s;
}

.neb-event-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.neb-event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--neb-text-muted);
}

.neb-event-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.neb-event-card__arrow {
  display: none;
}

.neb-tag--category {
  background: #e4f249 !important;
  color: #282828 !important;
  font-size: 0.875rem;
  line-height: 1.17rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  display: inline-block;
  text-align: left;
}

/* Meta item icons via ::before */
.neb-event-card__meta-item {
  position: relative;
  padding-left: 1.25rem;
}

.neb-event-card__meta-item::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.neb-event-card__meta-item--external::before {
  background-image: url('/themes/custom/nebjunction/images/icon-external.svg');
}

.neb-event-card__meta-item--location::before {
  background-image: url('/themes/custom/nebjunction/images/icon-location.svg');
}

.neb-event-card__meta-item--streaming::before {
  background-image: url('/themes/custom/nebjunction/images/icon-streaming.svg');
}

/* Mobile: flat list layout like desktop */
@media (max-width: 768px) {
  .neb-events {
    padding: 3rem 1.5rem;
    margin: 0;
  }

  .neb-events__rule {
    margin-bottom: 0;
  }

  .neb-event-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: start;
    gap: 12px;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #282828;
    margin-bottom: 0;
  }

  .neb-event-card__date {
    align-items: flex-end;
    padding: 4px 8px 4px 0;
  }

  .neb-event-card__day {
    font-size: 1.75rem;
    line-height: 2.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .neb-event-card__month {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .neb-event-card__title {
    font-size: 1.125rem;
    line-height: 1.5rem;
    margin-bottom: 4px;
  }

  .neb-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex-direction: column;
  }

  .neb-event-card__tags {
    align-items: flex-start;
  }

  .neb-event-card__meta-item {
    font-size: 0.8rem;
  }

  .neb-event-card__arrow {
    display: none;
  }
}

/* ── Knowledge Base Preview ─────────────────────────────────── */
.neb-kb-preview {
  padding: 0 2rem 2rem;
  margin-top: 10rem;
  background: var(--neb-white);
}

.neb-kb-preview__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.neb-kb-preview__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.neb-kb-preview__title {
  margin: 0;
  padding-left: 3.4rem;
}

.neb-kb-gem-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0em;
  color: var(--neb-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.neb-kb-gem-link:hover {
  color: var(--neb-teal);
  text-decoration: none;
}

.neb-kb-gem-link__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: block;
}

/* Carousel wrapper with arrow buttons */
.neb-carousel-wrap {
  position: relative;
  padding: 0 48px;
}

.neb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition:
    background 0.15s,
    color 0.15s;
}

.neb-carousel-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.neb-carousel-btn--prev {
  left: 6px;
}

.neb-carousel-btn--next {
  right: 6px;
}

/* Carousel: always horizontal scroll, 3 cards on desktop */
.neb-gem-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 6px;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 2px 6px 6px;
  box-sizing: border-box;
}

.neb-gem-carousel::-webkit-scrollbar {
  display: none;
}

/* Each card = (100% − 2 gaps) / 3  →  exact third, no rounding drift */
.neb-gem-card,
.neb-project-card,
.neb-news-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.neb-gem-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  border: 1.15px solid #282828;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  aspect-ratio: 10 / 11.7;
}

.neb-gem-card a:hover,
.neb-gem-card a:hover * {
  text-decoration: none;
}

.neb-gem-card__img-wrap {
  position: relative;
  padding: 12px 12px 0;
}

.neb-gem-card__img-placeholder {
  height: 180px;
  width: 100%;
  border-radius: 8px;
}

.neb-gem-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.neb-gem-card__bookmark {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: url("/themes/custom/nebjunction/images/Bookmark_Green.png")
    center/contain no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.neb-gem-card__bookmark img {
  display: none;
}

.neb-gem-card__body {
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.neb-gem-card__title {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

.neb-gem-card__text body.text-small{
  margin: 0;
  flex: 1;
}

.neb-gem-card__tag {
  font-size: 16px;
  color: #282828;
  font-weight: 400;
  line-height: 23px;
  margin-top: auto;
}

.neb-gem-card__title a,
.neb-gem-card__title a:visited {
  color: #282828;
}

/* Sub-sections within KB preview */
.neb-kb-subsection {
  margin-top: 48px;
}

.neb-kb-subsection .neb-gem-carousel {
  margin-top: 20px;
}

/* Align heading and footer button with the first carousel card
   (carousel wrap adds 48px padding for arrow buttons) */
.neb-kb-subsection .neb-kb-gem-link,
.neb-kb-subsection__footer {
  padding-left: 3.4rem;
}

.neb-kb-subsection__footer {
  margin-top: 20px;
}

/* Share your Knowledge – desktop two-column layout */
.neb-kb-subsection--share {
  overflow: visible;
  display: grid;
  grid-template-columns: 3fr 3rem 2fr;
  min-height: 300px;
  position: relative;
  margin-top: 15rem;
  margin-bottom: 2rem;
}

.neb-kb-subsection--share::before,
.neb-kb-subsection--share::after {
  content: "";
  position: absolute;
  width: 100vw;
  height: 1px;
  background: #282828;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.neb-kb-subsection--share::before {
  top: 0;
}

.neb-kb-subsection--share::after {
  bottom: 0;
}

.neb-share__left {
  padding: 3.4rem 3.4rem 3.4rem 3.4rem;
  background: var(--neb-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.neb-share__left .neb-btn--pill {
  margin-top: 12px;
  align-self: flex-start;
  border: 1px solid #1a1a1a;
}

.neb-share__title {
  margin: 0;
}

.neb-share__text {
  font-size: 21px;
  color: var(--neb-text);
  font-weight: 400;
  line-height: 28px;
  margin: 0;
}

.neb-share__right {
  grid-column: 3;
  position: relative;
  overflow: hidden;
}

.neb-share__right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative stacked cards */
.neb-share__deco-card {
  position: absolute;
  background: var(--neb-white);
  border-radius: 14px;
  padding: 20px;
  width: 270px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  color: var(--neb-text-muted);
  line-height: 1.55;
}

.neb-share__deco-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.neb-share__deco-card p {
  margin: 0 0 14px;
}

.neb-share__deco-card span,
.neb-share__deco-card small {
  font-size: 0.75rem;
  color: var(--neb-text-muted);
  display: block;
}

.neb-share__deco-card--back {
  transform: rotate(-7deg);
  left: 10%;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
}

.neb-share__deco-card--front {
  transform: rotate(5deg);
  right: 8%;
  top: 50%;
  translate: 0 -55%;
  z-index: 2;
}

.neb-share__deco-img {
  height: 150px;
  background: linear-gradient(135deg, #c8d8e8, #a0b8cc);
  border-radius: 10px;
  margin-bottom: 14px;
}

/* Desktop: hide mobile-only CTA */
.neb-share__cta--mobile {
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .neb-kb-subsection--share {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    margin-top: 3rem;
  }

  .neb-share__left {
    padding: 1.5rem 0rem 1rem;
  }

  .neb-share__right {
    grid-column: auto;
    min-height: 260px;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .neb-kb-subsection--share::before,
  .neb-kb-subsection--share::after {
    display: none;
  }

  /* Button order: hide desktop button, show after image */
  .neb-share__cta--desktop {
    display: none;
  }

  .neb-share__cta--mobile {
    display: block;
    margin-top: 1.75rem;
  }
}

/* Project cards (text-only, no image) */
a.neb-project-card,
a.neb-project-card:hover,
a.neb-project-card:hover *,
a.neb-news-card,
a.neb-news-card:hover,
a.neb-news-card:hover * {
  color: inherit;
  text-decoration: none;
}
a.neb-news-card:hover .neb-news-card__badge {
  color: var(--neb-white);
}

.neb-project-card {
  background: #fff;
  border-radius: 16px;
  padding: 68px 24px 24px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
  border: 1.15px solid #282828;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.neb-project-card .neb-gem-card__bookmark {
  position: absolute;
  top: 16px;
  right: 16px;
  background-image: url("/themes/custom/nebjunction/images/Bookmark_Lime.png");
}

.neb-project-card .neb-gem-card__bookmark:hover {
  background-image: url("/themes/custom/nebjunction/images/Bookmark_Lime.png");
}

.neb-project-card__name {
  font-size: 21px;
  font-weight: 600;
  line-height: 28px;
  color: var(--neb-dark);
  margin: 0;
  padding-right: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.neb-project-card__text {
  font-size: 16px;
  line-height: 23px;
  color: #282828;
  font-weight: 400;
  margin: 0;
  flex: 1;
  text-align: justify;
}

.neb-project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 35px;
}

.neb-project-card__meta span {
  font-size: 16px;
  line-height: 23px;
  color: #282828;
  font-weight: 400;
}

/* Mobile: horizontal scroll with snap */
@media (max-width: 768px) {
  .neb-gem-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
    /* hide scrollbar */
    scrollbar-width: none;
  }

  .neb-gem-carousel::-webkit-scrollbar {
    display: none;
  }

  .neb-gem-card,
  .neb-project-card,
  .neb-news-card {
    flex: 0 0 82vw;
    max-width: 320px;
    aspect-ratio: unset;
  }

  .neb-carousel-btn {
    display: none;
  }
}

.neb-kb-preview__footer {
  margin-top: 40px;
}

.neb-kb-card {
  background: var(--neb-white);
  border-radius: 8px;
  padding: 32px 28px;
  border-top: 4px solid var(--neb-teal);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.neb-kb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.neb-kb-card--gems {
  border-top-color: var(--neb-lime);
}

.neb-kb-card--projects {
  border-top-color: var(--neb-teal);
}

.neb-kb-card--share {
  border-top-color: var(--neb-green);
}

.neb-kb-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--neb-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neb-teal);
}

.neb-kb-card--gems .neb-kb-card__icon {
  color: var(--neb-lime);
  background: rgba(212, 225, 87, 0.1);
}

.neb-kb-card--projects .neb-kb-card__icon {
  color: var(--neb-teal);
  background: rgba(38, 198, 218, 0.1);
}

.neb-kb-card--share .neb-kb-card__icon {
  color: var(--neb-green);
  background: rgba(76, 175, 130, 0.1);
}

.neb-kb-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 0;
}

.neb-kb-card__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--neb-text-muted);
  font-weight: 300;
  flex-grow: 1;
}

.neb-kb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neb-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--neb-light-bg);
  color: var(--neb-text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.neb-kb-cta {
  text-align: center;
  margin-top: 44px;
}

/* ── Intro Section (legacy) ─────────────────────────────────── */
.neb-intro {
  background: var(--neb-light-bg);
  padding: 64px 40px;
  text-align: center;
}

.neb-intro__inner {
  max-width: 820px;
  margin: 0 auto;
}

.neb-intro__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neb-green);
  margin-bottom: 16px;
}

.neb-intro__text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--neb-text);
  font-weight: 300;
}

/* ── Features Grid (legacy) ─────────────────────────────────── */
.neb-features {
  padding: 72px 40px;
  background: var(--neb-white);
}

.neb-features__header {
  text-align: center;
  margin-bottom: 52px;
}

.neb-features__title {
  font-size: 1.9rem;
  color: var(--neb-dark);
  margin-bottom: 12px;
}

.neb-features__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--neb-text-muted);
}

.neb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1210px;
  margin: 0 auto;
}

.neb-card {
  background: var(--neb-white);
  border-radius: 8px;
  padding: 32px 28px;
  border-top: 4px solid var(--neb-teal);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.neb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.neb-card--lime {
  border-top-color: var(--neb-lime);
}

.neb-card--green {
  border-top-color: var(--neb-green);
}

.neb-card--teal {
  border-top-color: var(--neb-teal);
}

.neb-card--blue {
  border-top-color: var(--neb-blue);
}

.neb-card--purple {
  border-top-color: var(--neb-purple);
}

.neb-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.neb-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 10px;
}

.neb-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--neb-text-muted);
  font-weight: 300;
}

/* ── NEB Pillars (legacy) ───────────────────────────────────── */
.neb-pillars {
  background: var(--neb-dark);
  color: var(--neb-white);
  padding: 72px 40px;
}

.neb-pillars__header {
  text-align: center;
  margin-bottom: 48px;
}

.neb-pillars__title {
  font-size: 1.9rem;
  color: var(--neb-lime);
  margin-bottom: 12px;
}

.neb-pillars__subtitle {
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

.neb-pillars-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.neb-pillar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.neb-pillar__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 12px;
}

.neb-pillar__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Projects Map ───────────────────────────────────────────── */
.neb-map {
  padding: 0 40px 30px;
  margin-top: 150px;
  background: var(--neb-white);
}

.neb-map__container {
  max-width: 1210px;
  margin: 0 auto 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  min-height: 480px;
  background: #e8e8e0;
  position: relative;
}

/* Leaflet map */
#neb-leaflet-map {
  width: 100%;
  height: 480px;
  border-radius: 8px;
}

.neb-map__container > div {
  width: 100% !important;
  min-height: 480px !important;
}

.neb-map__cta {
  text-align: center;
  margin-top: 8px;
}

/* ── Funding Navigator ──────────────────────────────────────── */
.neb-funding {
  background: var(--neb-dark);
  padding: 0 40px 30px;
  margin-top: 150px;
}

.neb-funding__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.neb-funding__icon {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neb-funding__text {
  flex: 1;
}

/* ── CTA Banner (legacy) ────────────────────────────────────── */
.neb-cta {
  background: linear-gradient(90deg, var(--neb-teal) 0%, var(--neb-blue) 100%);
  padding: 0 40px 30px;
  margin-top: 150px;
  text-align: center;
}

.neb-cta__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neb-white);
  margin-bottom: 12px;
}

.neb-cta__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 28px;
}

.neb-cta .neb-btn--primary {
  background: var(--neb-white);
  color: var(--neb-dark);
}

.neb-cta .neb-btn--primary:hover {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

/* ── Results & Impact ───────────────────────────────────────── */
.neb-impact {
  background: var(--neb-light-bg);
  padding: 6rem 2.5rem 6rem;
  margin-top: 10rem;
}

.neb-impact__inner {
  max-width: 1210px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.neb-impact__title {
  margin: 0 0 16px;
}

.neb-impact__desc {
  font-size: 1.3rem;
  line-height: 1.75rem;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.neb-impact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .neb-impact {
    background: var(--neb-white);
    padding: 3.5rem 0;
    margin-top: 0rem;
  }

  .neb-impact__header {
    padding: 0 1.5rem;
  }

  .neb-impact__cards {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    background: var(--neb-light-bg);
    padding: 1.5rem;
  }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.neb-faq {
  padding: 0 40px 30px;
  background: var(--neb-white);
  max-width: 1320px;
  margin: 150px auto;
}

.neb-faq__inner {
  max-width: 1232px;
  margin: 0 auto;
}

.neb-faq__title {
  margin: 0 0 40px;
  text-align: left;
}

.neb-faq__list {
  display: flex;
  flex-direction: column;
}

.neb-faq__item {
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 1px solid #282828;
  overflow: visible;
}

.neb-faq__item:last-child {
  border-bottom: 1px solid #282828;
}

.neb-faq__question {
  padding: 20px 0;
  font-size: 21px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
  text-align: left;
}

.neb-faq__question::-webkit-details-marker {
  display: none;
}

.neb-faq__question::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--neb-dark);
  flex-shrink: 0;
  margin-left: 24px;
}

.neb-faq__item[open] .neb-faq__question::after {
  content: "−";
}

.neb-faq__question:hover {
  color: var(--neb-teal);
}

.neb-faq__answer {
  padding: 0 0 24px;
}

.neb-faq__answer p {
  font-size: 18px;
  line-height: 25px;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.neb-faq__answer ul {
  margin: 0 0 12px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.neb-faq__answer li {
  font-size: 18px;
  line-height: 25px;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Partners ───────────────────────────────────────────────── */
.neb-partners {
  padding: 50px 40px 100px;
  background: var(--neb-white);
  text-align: center;
  overflow: hidden;
}

.neb-partners .neb-section-eyebrow {
  margin-bottom: 28px;
}

.neb-partners__track {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.neb-partners__logos {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: neb-scroll 28s linear infinite;
}

.neb-partners__logos:hover {
  animation-play-state: paused;
}

@keyframes neb-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.neb-partner-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.neb-partner-logo--lg {
  height: 72px;
  max-width: 200px;
}

.neb-partners__eu {
  margin-top: 28px;
  color: var(--neb-text-muted);
  font-size: 0.8rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Follow Us ──────────────────────────────────────────────── */
.neb-follow {
  background: var(--neb-white);
  padding: 0;
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
  margin: 150px auto;
}

.neb-follow__card {
  background: var(--neb-light-bg);
  max-width: 1232px;
  margin: 0 auto;
  padding: 40px;
}

.neb-follow__title {
  margin: 0 0 24px;
  text-align: left;
}

.neb-follow__img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.neb-follow__handle {
  font-size: 18px;
  line-height: 25px;
  color: var(--neb-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 16px 0 0;
  text-align: left;
}

/* ── Footer ─────────────────────────────────────────────────── */
.neb-footer {
  background: var(--neb-white);
}

.neb-footer__inner {
  max-width: 1210px;
  margin: 0 auto;
  padding: 40px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.neb-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.neb-footer__logo-img {
  height: 36px;
  width: auto;
}

.neb-footer__social-label {
  font-size: 0.88rem;
  color: var(--neb-text-muted);
  font-weight: 400;
}

.neb-footer__email {
  font-size: 1rem;
  font-weight: 400;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-footer__email:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

.neb-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.neb-footer__nav,
.neb-footer__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neb-footer__nav li a,
.neb-footer__social-list li a {
  font-size: 1.3125rem;
  line-height: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.neb-footer__nav li a:hover,
.neb-footer__social-list li a:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

.neb-footer__divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

.neb-footer__legal-text {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-text);
  margin: 0;
  text-align: left;
}

.neb-footer__bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}

.neb-footer__bottom p {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-text-muted);
  margin: 0;
}

.neb-footer__bottom p + p::before {
  content: ", ";
}

.neb-footer__eu-funding-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.neb-footer__ec-logo {
  flex-shrink: 0;
  height: auto;
  max-width: 200px;
  width: auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .neb-header__logo-img {
    height: 2rem;
    width: auto;
  }

  .neb-welcome__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .neb-welcome__values {
    grid-column: auto;
    grid-row: auto;
    background: var(--neb-light-bg);
    padding: 1.5rem;
  }

  .neb-value-card {
    padding: 0.875rem 1rem;
  }

  .neb-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .neb-funding__inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .neb-funding__icon {
    margin: 0 auto;
  }

  .neb-funding__text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .neb-header__inner {
    margin: 0.9rem;
  }

  .neb-header__logo-img {
    height: 2rem;
    width: auto;
  }

  .neb-nav__toggle {
    display: flex;
  }

  .neb-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--neb-white);
    padding: 12px 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .neb-nav.neb-nav--open {
    display: flex;
  }

  .neb-nav__item {
    padding: 12px 16px;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 8px;
  }

  /* KB dropdown: full-width column, button styled like other nav items */
  .neb-nav__dd {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .neb-nav__dd__btn {
    justify-content: center;
    padding: 12px 16px;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 8px;
    width: 100%;
  }

  .neb-nav__dd--active .neb-nav__dd__btn {
    padding: 12px 16px;
    border-radius: 8px;
  }

  /* Inline dropdown – no floating box */
  .neb-nav__dd__panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .neb-nav__dd__panel[hidden] {
    display: none;
  }

  .neb-nav__dd__link {
    padding: 12px 16px;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 8px;
    background: var(--neb-light-bg);
    color: var(--neb-text);
  }

  .neb-hero {
    min-height: 0;
    margin-bottom: 0;
  }

  .neb-hero__inner {
    padding: 32px 20px;
  }

  .neb-hero__title {
    font-size: 35px;
    line-height: 40px;
  }

  h1 {
    font-size: 35px;
    line-height: 40px;
    font-weight: 700;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
    font-weight: 600;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-weight: 600;
    letter-spacing: 0em;
  }

  h4 {
    font-size: 1.125rem;
    line-height: 1.62rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  body {
    font-size: 1.125rem;
    line-height: 1.62rem;
  }

  .neb-btn {
    font-size: 1.125rem;
    line-height: 1.62rem;
    letter-spacing: 0;
  }

  .text-small {
    font-size: 14px;
    line-height: 20px;
  }

  .neb-welcome {
    background: var(--neb-white);
    margin-top: 1rem;
    padding: 3.5rem 0;
  }

  .neb-welcome__text {
    padding: 0 1.5rem;
  }

  .neb-welcome__cta {
    background: var(--neb-white);
    margin-top: 0.75rem;
    margin-left: 1.5rem;
  }

  .neb-kb-preview,
  .neb-funding,
  .neb-partners,
  .neb-features,
  .neb-intro,
  .neb-pillars,
  .neb-cta,
  .neb-funding-cards {
    padding: 3.5rem 1.5rem;
  }

  .neb-faq {
    padding: 3.5rem 1.5rem;
    margin: 0;
  }

  .neb-newsletter {
    padding: 28px 24px;
    margin: 150px auto;
  }

  .neb-newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .neb-events {
    padding: 100px 24px;
  }

  .neb-event-card {
    gap: 16px;
    padding: 16px 20px;
  }

  .neb-section-title {
    font-size: 1.6rem;
  }

  .neb-hero__title {
    font-size: 1.7rem;
  }

  .neb-footer__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .neb-footer__nav li a {
    font-size: 0.875rem;
    line-height: 1.4375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: left;
    display: block;
  }

  .neb-footer__social-list li a {
    font-size: 0.875rem;
    line-height: 1.4375rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: right;
    display: block;
  }

  .neb-footer__legal-text {
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: justify;
  }

  .neb-footer__eu-funding-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1rem;
  }

  .neb-footer__ec-logo {
    max-width: 160px;
  }

  .neb-footer__bottom {
    padding: 1rem 0;
    flex-direction: column;
    text-align: left;
  }

  .neb-footer__bottom p {
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: justify;
  }

  /* ── KB Preview mobile overrides ── */
  .neb-kb-preview {
    margin-top: 2rem;
  }

  .neb-kb-preview__title {
    padding-left: 0;
  }

  .neb-kb-subsection .neb-kb-gem-link,
  .neb-kb-subsection__footer {
    padding-left: 0;
  }

  .neb-kb-subsection .neb-carousel-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Drupal region wrappers cleanup ─────────────────────────── */
.neb-page-front .layout-container {
  max-width: 100%;
  padding: 0;
}

.neb-page-front .region-content .block-system-main-block {
  padding: 0;
}

.neb-page-front article.node--type-page {
  padding: 0;
}

.neb-page-front .node__content > *:first-child {
  margin-top: 0;
}

/* ── Gems Listing Page (/gems) ──────────────────────────────── */
.neb-gems-header {
  max-width: 1210px;
  margin: 0 auto;
  padding: 56px 40px 24px;
}

.neb-gems-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.neb-gems-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0;
}

.neb-gems-subtitle {
  font-size: 1.05rem;
  color: var(--neb-text-muted);
  font-weight: 300;
  margin: 0;
}

/* ── Gems Filter – new design ───────────────────────────────── */
.neb-flt-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #1a1a1a;
  border-radius: 100px;
  padding: 10px 20px;
  background: #fff;
  width: 280px;
  margin-bottom: 12px;
}

.neb-flt-search__input {
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font-main);
  flex: 1;
  background: transparent;
  color: #1a1a1a;
}

.neb-flt-search__input::placeholder {
  color: #888;
  opacity: 1;
}

.neb-flt-search svg {
  color: #1a1a1a;
  flex-shrink: 0;
}

.neb-flt-search__clear {
  color: #1a1a1a;
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.neb-flt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.neb-flt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.neb-flt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #1a1a1a;
  border-radius: 100px;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.neb-flt-action-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.neb-flt-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.neb-flt-icon-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

.neb-flt-icon-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.neb-flt-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Custom dropdown pill */
.neb-flt-dd {
  position: relative;
}

.neb-flt-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #1a1a1a;
  border-radius: 100px;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 400;
  padding: 8px 20px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.neb-flt-dd__btn--active,
.neb-flt-dd.open .neb-flt-dd__btn {
  background: #1a1a1a;
  color: #fff;
}

.neb-flt-dd__btn--active svg,
.neb-flt-dd.open .neb-flt-dd__btn svg {
  stroke: #fff;
}

.neb-flt-dd__btn svg {
  transition: transform 0.2s;
  stroke: #1a1a1a;
}

.neb-flt-dd.open .neb-flt-dd__btn svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.neb-flt-dd__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1.5px solid #1a1a1a;
  border-radius: 12px;
  padding: 8px 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.12);
}

.neb-flt-dd.open .neb-flt-dd__panel {
  display: block;
}

.neb-flt-dd__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 18px;
  color: var(--neb-dark);
  transition: background 0.1s;
}

.neb-flt-dd__option:hover {
  background: #eeeffd;
}

.neb-flt-dd__option {
  text-align: left;
}

.neb-flt-dd__option span {
  text-align: left;
}

.neb-flt-dd__option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #5865f2;
  flex-shrink: 0;
  cursor: pointer;
}

.neb-flt-dd__option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.neb-flt-dd__option input[type="checkbox"]:checked {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.neb-flt-dd__option input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Gems Filter Wrapper ────────────────────────────────────── */
.neb-gems-filter-wrap {
  margin-bottom: 32px;
}

/* Toggle button */
.neb-filter-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.neb-filter-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neb-brand-blue);
  background: transparent;
  border: 1.5px solid var(--neb-brand-blue);
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  font-family: var(--font-main);
}

.neb-filter-toggle__btn:hover {
  background: var(--neb-brand-blue);
  color: var(--neb-white);
}

/* Variant A: search bar + dropdowns */
.neb-filter-bar__form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
}

.neb-filter-bar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(21, 101, 192, 0.35);
  border-radius: 100px;
  padding: 8px 16px;
  flex: 0 0 200px;
}

.neb-filter-bar__input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: var(--font-main);
  flex: 1;
  background: transparent;
  color: var(--neb-dark);
}

.neb-filter-bar__clear {
  color: var(--neb-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Dropdown pills */
.neb-filter-dropdown {
  position: relative;
  border: 1.5px solid rgba(21, 101, 192, 0.35);
  border-radius: 100px;
  overflow: hidden;
}

.neb-filter-dropdown--active {
  background: rgba(21, 101, 192, 0.08);
  border-color: var(--neb-brand-blue);
}

.neb-filter-dropdown__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: var(--font-main);
}

.neb-filter-dropdown__label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-brand-blue);
  white-space: nowrap;
  pointer-events: none;
  min-width: 160px;
}

/* Variant B: tag pill click filter */
.neb-filter-tags {
  padding: 16px 0;
  border-top: 1px solid #282828;
}

.neb-filter-tags__group {
  margin-bottom: 20px;
}

.neb-filter-tags__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neb-text-muted);
  margin-bottom: 10px;
}

.neb-filter-tags__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.neb-filter-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  background: rgba(21, 101, 192, 0.85);
  color: var(--neb-white);
  transition: background 0.15s;
}

.neb-filter-pill:hover {
  background: var(--neb-brand-blue);
  text-decoration: none;
  color: var(--neb-white);
}

.neb-filter-pill--outline {
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  color: var(--neb-text);
}

.neb-filter-pill--outline:hover {
  border-color: var(--neb-brand-blue);
  color: var(--neb-brand-blue);
  background: transparent;
}

.neb-filter-pill--active {
  background: var(--neb-brand-blue) !important;
  color: var(--neb-white) !important;
  border-color: var(--neb-brand-blue) !important;
}

/* ── Gems Filter Bar ────────────────────────────────────────── */
.neb-gems-filters {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 40px 32px;
}

.neb-filter-form {
  background: #f5f7fa;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.neb-filter-form__fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
}

.neb-filter-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  flex: 1;
}

.neb-filter-select label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neb-text-muted);
}

.neb-filter-select select {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--neb-dark);
  background: var(--neb-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

.neb-filter-select select:focus {
  outline: none;
  border-color: var(--neb-brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.neb-filter-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1px;
}

.neb-filter__clear {
  font-size: 0.875rem;
  color: var(--neb-text-muted);
  text-decoration: underline;
  white-space: nowrap;
}

.neb-filter__clear:hover {
  color: var(--neb-brand-blue);
}

.neb-gems-empty {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 40px 80px;
  color: var(--neb-text-muted);
}

.neb-gems-grid {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Mobile filter toggle: hidden on desktop */
.neb-flt-mobile-toggle {
  display: none;
}

/* ── Gem cards in listing use the same style as the landing page carousel ── */
/* .neb-gem-card base styles are defined in the carousel section above       */

/* Image link covers the full image wrap */
.neb-gem-card__img-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}

@media (max-width: 768px) {
  .neb-gems-header,
  .neb-gems-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .neb-gems-header {
    padding-top: 40px;
  }

  /* ── Mobile filter toggle button ── */
  .neb-flt-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #1a1a1a;
    border-radius: 100px;
    background: var(--neb-white);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neb-dark);
    cursor: pointer;
    margin-bottom: 16px;
  }

  .neb-flt-mobile-toggle.is-active {
    background: var(--neb-light-bg);
  }

  /* Hide filter bar until toggle is pressed */
  .neb-filter-bar {
    display: none;
  }

  .neb-filter-bar.is-open {
    display: block;
  }

  /* Stack filter dropdowns full-width */
  .neb-flt-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .neb-flt-row {
    flex-direction: column !important;
    display: flex !important;
    gap: 8px;
  }

  .neb-flt-dd {
    width: 100%;
  }

  .neb-flt-dd__btn {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
  }

  .neb-flt-dd__panel {
    position: static;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    margin-top: 4px;
    border-radius: 8px;
  }

  .neb-flt-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 0;
  }

  .neb-flt-tags-btn {
    display: none;
  }

  .neb-flt-search {
    flex: 1 1 100%;
  }

  /* Cards in listing: fill full column width, auto height */
  .neb-gems-grid .neb-gem-card {
    max-width: none;
    flex: none;
    height: auto;
  }
}

/* ── NEB Gem Detail Page – redesigned ──────────────────────── */
.neb-gem-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  position: relative;
}

.neb-gem-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.neb-gem-detail__back:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

/* Nav row wrapping back link + badge */
.neb-gem-detail__nav {
  position: relative;
  margin-bottom: 8px;
}

/* Badge — absolute top-right of the article */
.neb-gem-detail__type-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  background: #282828;
  color: #fff;
}

.neb-gem-detail__type-badge--take-action,
.neb-gem-detail__type-badge--learn-get-inspired,
.neb-gem-detail__type-badge--learn,
.neb-gem-detail__type-badge--inspire,
.neb-gem-detail__type-badge--case-study,
.neb-gem-detail__type-badge--resource {
  background: #282828;
  color: #fff;
}

/* Header */
.neb-gem-detail__header {
  padding: 8px 0 24px;
}

.neb-gem-detail__title {
  margin-bottom: 8px;
  /* font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.02em;*/
}

.neb-gem-detail__subtitle {
  color: var(--neb-text-muted);
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-align: justify;
}

/* Two-column: image + info card */
.neb-gem-detail__top-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  margin: 24px 0;
  align-items: start;
}

.neb-gem-slideshow {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.neb-gem-slide {
  display: none;
}

.neb-gem-slide--active {
  display: block;
}

.neb-gem-detail__header-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.neb-gem-slide__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transition: background 0.15s;
}

.neb-gem-slide__btn:hover {
  background: var(--neb-white);
}

.neb-gem-slide__btn--prev {
  left: 10px;
}

.neb-gem-slide__btn--next {
  right: 10px;
}

.neb-gem-slide__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.neb-gem-slide__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s;
}

.neb-gem-slide__dot--active {
  background: var(--neb-white);
}

.neb-gem-detail__img-credits {
  font-size: 0.75rem;
  color: var(--neb-text-muted);
  margin-top: 6px;
}

/* Info card (right column) */
.neb-gem-detail__info-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.neb-gem-detail__info-type-label {
  color: var(--neb-text-muted);
  text-align: right;
  align-self: flex-end;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 18.53px;
  line-height: 29.69px;
  letter-spacing: 0.0078em;
  text-transform: uppercase;
}

.neb-gem-detail__info-type {
  color: var(--neb-dark);
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.0039em;
}

.neb-gem-detail__info-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  row-gap: 8px;
  margin: 0;
  border-top: 1px solid var(--neb-light-bg);
  padding-top: 12px;
}

.neb-gem-detail__info-row {
  display: contents;
}

.neb-gem-detail__info-row dt {
  color: var(--neb-dark);
  font-family: Titillium Web;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.002em;
}

.neb-gem-detail__info-row dd {
  color: var(--neb-text);
  margin: 0;
  font-family: Titillium Web;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.002em;
}

.neb-gem-detail__related {
  border-top: 1px solid var(--neb-light-bg);
  padding-top: 12px;
  font-size: 0.88rem;
}

.neb-gem-detail__related a {
  color: var(--neb-teal);
  font-weight: 600;
  text-decoration: none;
}

.neb-gem-detail__info-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--neb-light-bg);
  padding-top: 12px;
  margin-top: 4px;
}

.neb-gem-detail__info-links .neb-btn--pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  justify-content: center;
}

/* Tags row */
.neb-gem-detail__tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.neb-gem-detail__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid #282828;
  color: var(--neb-text-muted);
  background: transparent;
}

/* Accordion sections */
.neb-gem-detail__sections {
  display: flex;
  flex-direction: column;
}

.neb-gem-section-acc {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.neb-gem-section-acc:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.neb-gem-section-acc__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.neb-gem-section-acc__head::-webkit-details-marker {
  display: none;
}

.neb-gem-section-acc__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.neb-gem-section-acc__title {
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
}

.neb-gem-section-acc__nut {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.4375rem;
  letter-spacing: 0.02em;
  color: var(--neb-text-muted);
}

.neb-gem-section-acc__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neb-text-muted);
  margin-top: 1px;

  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: 3.125rem;
  line-height: 3.68375rem;
  letter-spacing: 0;
}

.neb-gem-section-acc__icon::after {
  content: "+";
}

.neb-gem-section-acc[open] .neb-gem-section-acc__icon::after {
  content: "−";
}

.neb-gem-section-acc__body {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--neb-text);

  /* font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.720625rem;
  letter-spacing: 0.002em;
  text-align: justify; */
}

.neb-gem-section-acc__body p {
  margin-bottom: 12px;
}

.neb-gem-section-acc__body ul,
.neb-gem-section-acc__body ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.neb-gem-section-acc__body li {
  margin-bottom: 6px;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.720625rem;
  letter-spacing: 0.002em;
  text-align: justify;
}

/* Bottom actions */
.neb-gem-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #282828;
}

.neb-gem-detail__actions .neb-btn--pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.neb-gem-detail__save-btn {
  border: 1.5px solid #282828;
  background: transparent;
  color: var(--neb-dark);
  font-family: var(--font-main);
}

.neb-gem-detail__funding-note {
  font-size: 0.82rem;
  color: var(--neb-text-muted);
  margin-top: 16px;
  font-weight: 300;
}

.neb-tag--group {
  background: rgba(76, 175, 130, 0.1);
  color: #2e7d5e;
}

@media (max-width: 768px) {
  .neb-gem-detail {
    padding: 24px 24px 60px;
  }

  .neb-gem-detail__top-grid {
    grid-template-columns: 1fr;
  }

  .neb-gem-detail__info-card {
    display: none;
  }

  .neb-gem-slide__btn {
    display: none;
  }

  .neb-gem-detail__tag {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.17rem;
    letter-spacing: 0.0078em;
    text-align: center;
  }

  .neb-gem-detail__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
  }

  .neb-gem-detail__type-badge {
    position: static;
    order: 2;
    align-self: flex-end;
  }

  .neb-gem-detail__back {
    order: 1;
    margin-bottom: 0;
  }
}

/* ── Similar Content section (gem detail) ───────────────────── */
.neb-similar {
  border-top: 1px solid #282828;
  margin-top: 0;
  padding: 60px 0 80px;
}

.neb-similar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.neb-similar__title {
  margin-bottom: 32px;
}

.neb-similar__carousel {
  /* inherits .neb-gem-carousel scroll-snap layout */
}

@media (max-width: 768px) {
  .neb-similar__inner {
    padding: 0;
  }

  .neb-similar__title {
    padding: 0 24px;
  }

  .neb-similar .neb-carousel-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Project Map ─────────────────────────────────────────────── */
.neb-pmap {
  position: relative;
  height: calc(100vh - 64px);
  width: 100%;
  background: #f2f2f2;
}

.neb-pmap__map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #f2f2f2;
}

.neb-pmap__map.leaflet-container,
.neb-pmap .leaflet-container {
  background: #f2f2f2 !important;
}

/* Detail panel — overlays the map on the right, no own background */
.neb-pmap__panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(16px);
  right: max(16px, calc((100% - 1320px) / 2));
  width: 400px;
  max-height: calc(100% - 48px);
  z-index: 800;
  background: transparent;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.neb-pmap__panel--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.neb-pmap__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: color 0.15s;
}

.neb-pmap__close:hover {
  color: var(--neb-dark);
}

.neb-pmap-card__gem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.neb-pmap-card__gem-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neb-pmap-card__gem-icon-img {
  width: 28px;
  height: 28px;
}

.neb-pmap-card__gem-link {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-pmap-card__gem-link:not(.neb-pmap-card__gem-link--plain):hover {
  text-decoration: underline;
}

.neb-pmap-card__gem-link--plain {
  cursor: default;
}

.neb-pmap-card__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.neb-pmap-card__link {
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-arrow {
  font-family: "Inter", sans-serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 29.15px;
  letter-spacing: 0.03;
}

.neb-pmap-card__link:hover {
  text-decoration: underline;
}

.neb-pmap-card__top-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.neb-pmap-card__bookmark-btn {
  width: 40px;
  height: 40px;
  background: url("/themes/custom/nebjunction/images/Bookmark_Lime.png")
    center/contain no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
}

.neb-pmap-card__bookmark-btn img {
  display: none;
}

.neb-pmap-card__close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}

.neb-pmap-card__close-btn:hover {
  background: #e0e0e0;
  color: var(--neb-dark);
}

.neb-pmap-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.neb-pmap__panel .neb-pmap-card__title {
  margin: 0;
  padding-right: 80px;
  font-size: revert;
  line-height: revert;
  font-weight: revert;
  letter-spacing: revert;
}

.neb-pmap-card__desc {
  font-family: "Titillium Web", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.0078em;
  text-align: justify;
  color: var(--neb-text-muted);
  margin: 0;
}

.neb-pmap-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid #282828;
  padding-top: 10px;
}

.neb-pmap-card__meta span,
.neb-pmap-card__award {
  font-size: 0.82rem;
  color: var(--neb-text-muted);
}

.neb-pmap-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  border-top: 1px solid #282828;
  padding-top: 12px;
}

.neb-pmap-card__funding {
  background: var(--neb-lime);
  color: var(--neb-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Project Map Filters ──────────────────────────────────────── */
.neb-pmap-filters {
  position: absolute;
  top: 16px;
  left: 17px;
  padding: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.neb-pmap-filter {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1.5px solid #ccc;
  border-radius: 100px;
  padding: 6px 32px 6px 16px;
  font-size: 21px;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  line-height: 28.87px;
  letter-spacing: 0.0234em;
  color: var(--neb-dark);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s;
}

.neb-pmap-filter:focus,
.neb-pmap-filter:hover {
  border-color: #28afaf;
  outline: none;
}

.neb-pmap-filter--open,
.neb-pmap-filter--active {
  border-color: #28afaf;
}

.neb-pmap-filter--active {
  background-color: #edfaf8;
}

.neb-pmap-filter-dropdown {
  position: relative;
}

.neb-pmap-filter__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  z-index: 2000;
  padding: 6px 0;
  max-height: 280px;
  overflow-y: auto;
}

.neb-pmap-filter__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: "Titillium Web", sans-serif;
  font-size: 16px;
  color: var(--neb-dark);
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.neb-pmap-filter__item:hover {
  background: #f0faf9;
}

.neb-pmap-filter__item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #bbb;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}

.neb-pmap-filter__item input[type="checkbox"]:checked {
  border-color: #28afaf;
  background: #28afaf;
  box-shadow: inset 0 0 0 3px #fff;
}

.neb-pmap-filter__reset {
  width: 36px;
  height: 36px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    color 0.15s;
  margin-left: 4px;
}

.neb-pmap-filter__reset:hover,
.neb-pmap-filter__reset--active {
  border-color: #28afaf;
  color: #28afaf;
}

/* Map legend */
.neb-pmap__legend {
  position: absolute;
  bottom: 28px;
  left: 17px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--neb-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.neb-pmap__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neb-pmap__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 4px;
}

.neb-pmap__legend-dot--project {
  background: #1a1a1a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

.neb-pmap__legend-dot--area {
  background: #E4F249;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E4F249;
}

/* Mobile filter button — hidden on desktop */
.neb-pmap-filter-mobile-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 100px;
  padding: 7px 16px;
  font-family: "Titillium Web", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--neb-dark);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 768px) {
  /* ── Map container ────────────────────────────────── */
  .neb-pmap {
    height: calc(100svh - 56px);
  }

  /* ── Filter bar ───────────────────────────────────── */
  .neb-pmap-filters {
    top: 12px;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    padding: 0 12px;
    gap: 8px;
    flex-wrap: nowrap;
    z-index: 1100;
  }

  .neb-pmap-filter-mobile-btn {
    display: inline-flex;
  }

  .neb-pmap-filters .neb-pmap-filter-dropdown {
    display: none;
  }

  .neb-pmap-filters.neb-pmap-filters--open {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter-mobile-btn {
    border-color: #28afaf;
    color: #28afaf;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter-dropdown {
    display: block;
    width: 100%;
  }

  .neb-pmap-filters.neb-pmap-filters--open
    .neb-pmap-filter-dropdown
    .neb-pmap-filter {
    width: 100%;
    box-sizing: border-box;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter__reset {
    align-self: flex-start;
  }

  /* ── Panel as bottom sheet ────────────────────────── */
  .neb-pmap__panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.14);
    z-index: 2000;
    background: #fff;
    padding: 0;
    gap: 0;
    opacity: 1;
    pointer-events: none;
  }

  /* Drag handle */
  .neb-pmap__panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    margin: 12px auto 8px;
    flex-shrink: 0;
  }

  /* Peek: shows title + description only */
  .neb-pmap__panel--peek {
    transform: translateY(calc(100% - 260px)) !important;
    pointer-events: auto;
    overflow: hidden;
  }

  .neb-pmap__panel--peek .neb-pmap-card__meta,
  .neb-pmap__panel--peek .neb-pmap-card__actions,
  .neb-pmap__panel--peek .neb-pmap-card__gem-row {
    display: none !important;
  }

  /* Full open */
  .neb-pmap__panel--open {
    transform: translateY(0) !important;
    pointer-events: auto;
    overflow-y: auto;
  }

  /* Card typography on mobile */
  .neb-pmap-card {
    padding: 14px;
  }

  .neb-pmap__panel .neb-pmap-card__title {
    padding-right: 52px;
  }

  .neb-pmap-card__desc {
    font-size: 14px;
    line-height: 21px;
  }
}

.neb-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 3rem 1.5rem;
  text-align: center;
}
.neb-coming-soon p {
  font-size: 1.15rem;
  color: #555;
  max-width: 480px;
}

/* Marker cluster badge */
.neb-pmap-cluster {
  width: 38px;
  height: 38px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.neb-pmap-cluster span {
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* Custom Leaflet marker — size set dynamically via JS iconSize */
.neb-pmap-marker {
  outline: none;
}

.neb-pmap-marker span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #28afaf;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

.neb-pmap-marker--active span {
  background: #1a1a1a;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #1a1a1a;
}

@media (max-width: 768px) {
  .neb-pmap {
    height: calc(100vh - 64px);
  }

  .neb-pmap__panel {
    width: calc(100% - 32px);
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-height: 55%;
  }
}

/* ── Login Page ─────────────────────────────────────────────── */
.neb-login-overlay {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 60%, #1e88e5 100%);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
}

.neb-login-wrap {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.neb-login-card {
  background: var(--neb-white);
  border-radius: 12px;
  padding: 48px 40px 40px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.neb-login-card__logo {
  text-align: center;
  margin-bottom: 28px;
}

.neb-login-card__logo img {
  height: 52px;
  width: auto;
}

.neb-login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0 0 6px;
  text-align: center;
}

.neb-login-card__subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--neb-text-muted);
  text-align: center;
  margin: 0 0 28px;
}

/* Drupal form elements inside login card */
.neb-login-card .form-item {
  margin-bottom: 18px;
}

.neb-login-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neb-dark);
  margin-bottom: 6px;
}

.neb-login-card input[type="text"],
.neb-login-card input[type="password"],
.neb-login-card input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--neb-dark);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.neb-login-card input[type="text"]:focus,
.neb-login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--neb-brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.neb-login-card input[type="submit"],
.neb-login-card .button {
  width: 100%;
  padding: 12px;
  background: var(--neb-brand-blue);
  color: var(--neb-white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.neb-login-card input[type="submit"]:hover,
.neb-login-card .button:hover {
  background: #1976d2;
}

.neb-login-card .item-list {
  display: none;
}

.neb-login-footer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

.neb-login-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* ── Default page main content area ────────────────────────── */
.neb-page-main {
  min-height: 60vh;
  max-width: 1210px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

@media (max-width: 768px) {
  .neb-page-main {
    padding: 0 1.5rem;
  }
}

.neb-page-main:has(.neb-pmap) {
  padding: 0;
  max-width: none;
  min-height: 0;
}

/* Gems and gem detail pages handle their own max-width/padding */
.neb-page-main .neb-gems-header,
.neb-page-main .neb-gems-filters,
.neb-page-main .neb-gems-grid,
.neb-page-main .neb-gem-detail,
.neb-page-main .neb-similar {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Override Leaflet's default gray background */
#neb-project-map.leaflet-container {
  background: #fff;
}
