:root {
  --nv-promo-ink: #08110c;
  --nv-promo-green: #37e875;
  --nv-promo-line: rgba(255, 255, 255, .15);
}

html.nv-promo-open,
html.nv-promo-open body {
  overflow: hidden;
}

.nv-promo-layer,
.nv-promo-layer * {
  box-sizing: border-box;
}

.nv-promo-bar {
  position: fixed;
  z-index: 2100;
  top: 88px;
  left: 0;
  right: 0;
  color: #fff;
  background: #071b10;
  border-block: 1px solid rgba(55, 232, 117, .28);
  box-shadow: 0 14px 38px rgba(2, 15, 8, .16);
}

body.admin-bar .nv-promo-bar { top: 120px; }

.nv-promo-bar__inner {
  position: relative;
  width: min(1440px, calc(100% - 64px));
  min-height: 54px;
  margin: auto;
  padding: 10px 50px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.nv-promo-bar__tag {
  flex: 0 0 auto;
  color: var(--nv-promo-green);
  font: 600 10px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .17em;
}

.nv-promo-bar strong {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.nv-promo-bar a {
  flex: 0 0 auto;
  color: var(--nv-promo-green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nv-promo-bar a span { margin-left: 8px; }

.nv-promo-bar button {
  position: absolute;
  right: 0;
  top: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  font: 300 22px/28px Arial, sans-serif;
  cursor: pointer;
}

.nv-promo-overlay {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  background: rgba(3, 10, 6, .76);
  backdrop-filter: blur(12px);
  transition: opacity .22s ease, visibility .22s ease;
}

.nv-promo-overlay[hidden] { display: none; }
.nv-promo-overlay.is-visible { opacity: 1; visibility: visible; }

.nv-promo-card {
  position: relative;
  overflow: auto;
  width: min(980px, 100%);
  max-height: min(700px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(55,232,117,.13), transparent 38%),
    #06160d;
  border: 1px solid rgba(98, 241, 144, .36);
  border-radius: 4px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .44);
  outline: none;
  transform: translateY(18px) scale(.985);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}

.nv-promo-overlay.is-visible .nv-promo-card { transform: none; }
.nv-promo-card--text { width: min(650px, 100%); grid-template-columns: 1fr; }
.nv-promo-card--image-only {
  width: min(980px, 100%);
  grid-template-columns: 1fr;
  max-height: calc(100dvh - 64px);
}

.nv-promo-card__close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(3, 14, 8, .68);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  font: 300 27px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nv-promo-card__close:hover,
.nv-promo-card__close:focus-visible {
  background: #134a29;
  border-color: var(--nv-promo-green);
  transform: rotate(4deg);
}

.nv-promo-card__visual {
  min-height: 520px;
  margin: 0;
  background: #0a180f;
  border-right: 1px solid var(--nv-promo-line);
}

.nv-promo-card__visual picture { width: 100%; height: 100%; display: block; }
.nv-promo-card__image-link { width: 100%; height: 100%; display: block; }
.nv-promo-card__image-link:focus-visible { outline: 3px solid var(--nv-promo-green); outline-offset: -3px; }

.nv-promo-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.nv-promo-card--image-only .nv-promo-card__visual {
  min-height: 0;
  border: 0;
}
.nv-promo-card--image-only .nv-promo-card__visual img {
  height: auto;
  max-height: calc(100dvh - 66px);
}

.nv-promo-card__content {
  min-width: 0;
  padding: clamp(64px, 7vw, 92px) clamp(34px, 5vw, 64px) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.nv-promo-card--font-system .nv-promo-card__content { font-family: Tahoma, Arial, sans-serif; }

.nv-promo-card__eyebrow {
  margin-bottom: 22px;
  color: var(--nv-promo-green);
  font: 600 10px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .18em;
}

.nv-promo-card h2 {
  margin: 0;
  color: #fff;
  font: 500 clamp(34px, 4.2vw, 58px)/.98 "IBM Plex Sans Thai", sans-serif;
  letter-spacing: -.045em;
}

.nv-promo-card--font-system h2 { font-family: Tahoma, Arial, sans-serif; }

.nv-promo-card--title-compact h2 { font-size: clamp(28px, 3.4vw, 44px); }
.nv-promo-card--title-large h2 { font-size: clamp(38px, 5vw, 68px); }
.nv-promo-card--weight-regular h2 { font-weight: 400; }
.nv-promo-card--weight-bold h2 { font-weight: 600; }

.nv-promo-card__content > p {
  margin: 25px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.72;
}
.nv-promo-card--body-compact .nv-promo-card__content > p { font-size: 14px; }
.nv-promo-card--body-large .nv-promo-card__content > p { font-size: 18px; }

.nv-promo-card__cta {
  min-height: 54px;
  margin-top: 31px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #04110a;
  background: var(--nv-promo-green);
  border: 1px solid var(--nv-promo-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.nv-promo-card__cta:hover,
.nv-promo-card__cta:focus-visible { color: #fff; background: transparent; }

.nv-promo-card__content > small {
  margin-top: 17px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  line-height: 1.5;
}

.nv-promo-layer.is-preview::after {
  content: "ADMIN PREVIEW";
  position: fixed;
  z-index: 2500;
  right: 18px;
  bottom: 18px;
  padding: 8px 11px;
  color: #06140b;
  background: var(--nv-promo-green);
  font: 700 9px/1 "Space Grotesk", sans-serif;
  letter-spacing: .12em;
}

@media (max-width: 1024px) {
  .nv-promo-overlay { padding: 22px; }
  .nv-promo-card { grid-template-columns: 1fr; width: min(720px, 100%); }
  .nv-promo-card__visual { min-height: 0; height: min(46dvh, 410px); border-right: 0; border-bottom: 1px solid var(--nv-promo-line); }
  .nv-promo-card__content { padding: 34px 42px 36px; }
  .nv-promo-card--image-only .nv-promo-card__visual { height: auto; }
}

@media (max-width: 782px) {
  .nv-promo-bar { top: 70px; }
  body.admin-bar .nv-promo-bar { top: 116px; }
  .nv-promo-bar__inner {
    width: calc(100% - 28px);
    justify-content: flex-start;
    gap: 10px;
  }
  .nv-promo-bar__tag { display: none; }
  .nv-promo-bar strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .nv-promo-bar a { margin-left: auto; font-size: 12px; }
  .nv-promo-overlay { padding: 16px; align-items: end; }
  .nv-promo-card {
    max-height: calc(100dvh - 32px);
    grid-template-columns: 1fr;
    overflow-y: auto;
    border-radius: 4px 4px 0 0;
  }
  .nv-promo-card__visual {
    min-height: 0;
    height: min(42vh, 330px);
    border-right: 0;
    border-bottom: 1px solid var(--nv-promo-line);
  }
  .nv-promo-card__content { padding: 35px 25px 27px; }
  .nv-promo-card__eyebrow { margin-bottom: 14px; }
  .nv-promo-card h2 { font-size: clamp(30px, 10vw, 43px); }
  .nv-promo-card--title-compact h2 { font-size: clamp(26px, 8vw, 36px); }
  .nv-promo-card--title-large h2 { font-size: clamp(34px, 11vw, 48px); }
  .nv-promo-card__content > p { margin-top: 17px; font-size: 14px; }
  .nv-promo-card--body-compact .nv-promo-card__content > p { font-size: 13px; }
  .nv-promo-card--body-large .nv-promo-card__content > p { font-size: 16px; }
  .nv-promo-card__cta { margin-top: 22px; }
  .nv-promo-card__close { top: 14px; right: 14px; }
  .nv-promo-card--image-only { width: 100%; }
  .nv-promo-card--image-only .nv-promo-card__visual { height: auto; }
  .nv-promo-card--image-only .nv-promo-card__visual img { max-height: calc(100dvh - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .nv-promo-overlay,
  .nv-promo-card,
  .nv-promo-card__close { transition: none; }
}

