/* Nestle888 launch: "new brand" strip, partnership jump links and the
   banner cell in the 888 Partnership grid. A new file rather than an edit to
   site.css/home.css, because /assets/* is cached for a year (see _headers). */

.n8-strip {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 6px;
  color: #F3F3F3;
}
.n8-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 2px solid var(--e-global-color-secondary, #00FF0C);
  border-radius: 10px;
  background-color: var(--e-global-color-35a5abf, #00501B);
}
.n8-strip__logo {
  flex: 0 0 auto;
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 10px;
}
.n8-strip__text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.n8-strip__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--e-global-color-accent, #F6D000);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 2px;
  text-transform: uppercase;
}
.n8-strip__btn {
  flex: 0 0 auto;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #00503E;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.n8-strip__btn:hover,
.n8-strip__btn:focus { background: var(--e-global-color-accent, #F6D000); color: #000; }

.n8-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}
.n8-jump__label { color: #F3F3F3; }
.n8-jump a {
  padding: 6px 14px;
  border: 2px solid var(--e-global-color-ed9736e, #189500);
  border-radius: 999px;
  color: #FFFFFF;
  text-decoration: none;
}
.n8-jump a:hover,
.n8-jump a:focus { background: var(--e-global-color-35a5abf, #00501B); color: #FFFFFF; }

/* keep jump targets clear of the sticky header */
#elite-group, #bonusking-partnership, #bolaking-partnership, #partnership-888, #nestle888 {
  scroll-margin-top: 110px;
}

/* banner cell beside the Nestle888 card in the 888 Partnership grid */
.n8-banner-cell { display: flex; align-items: center; justify-content: center; }
.n8-banner {
  display: block;
  width: 100%;
  max-width: 300px;
  border: 2px solid var(--e-global-color-secondary, #00FF0C);
  border-radius: 15px;
  overflow: hidden;
}
.n8-banner img { display: block; width: 100%; height: auto; }

/* the RM88 banner box in the 888 grid fills its row, so it is the same height as the cards beside
   it; the picture keeps its shape, centred (its corners are transparent) */
.n8-banner-cell { align-items: stretch; }
.n8-banner-cell .n8-banner {
  position: relative;
  flex: 1 1 auto;
  max-width: none;
  box-shadow: 0 0 10px 0 rgba(30, 99, 58, 0.5);
}
.n8-banner-cell .n8-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 888 Partnership grid: 4 cards a row from tablet up (was 5), so the wide banners show larger */
@media (min-width: 768px) {
  .elementor-189 .elementor-element.elementor-element-78c6a7c { --e-con-grid-template-columns: repeat(4, 1fr); }
}

/* red "Grand Opening" ribbon across the top-left corner of the NEW strip, with a glow pulse,
   a light sweep and a bouncing arrow to draw the eye. Opacity/transform only (no reflow, no
   layout shift); stops under prefers-reduced-motion. Take it off once the launch is over. */
.n8-strip__inner {
  position: relative;
  overflow: hidden;
  padding-left: 88px;
}
.n8-ribbon {
  position: absolute;
  top: 30px;
  left: -50px;
  z-index: 3;
  width: 180px;
  padding: 4px 0;
  background: #E3101E;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.n8-strip__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(100, 252, 130, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: n8-glow 1.6s ease-in-out infinite alternate;
}
.n8-strip__inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  z-index: 4;
  width: 25%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) skewX(-20deg);
  pointer-events: none;
  animation: n8-sweep 4.5s ease-in-out 1s infinite;
}
.n8-strip__arrow {
  display: inline-block;
  animation: n8-bounce 1.1s ease-in-out infinite;
}
@keyframes n8-glow { to { opacity: 1; } }
@keyframes n8-sweep { 0% { transform: translateX(0) skewX(-20deg); } 35%, 100% { transform: translateX(620%) skewX(-20deg); } }
@keyframes n8-bounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .n8-strip__inner::before, .n8-strip__inner::after, .n8-strip__arrow { animation: none; }
  .n8-strip__inner::after { display: none; }
}

@media (max-width: 767px) {
  .n8-strip__inner { flex-wrap: wrap; gap: 10px; }
  .n8-strip__logo { width: 48px; height: 48px; }
  .n8-strip__text { flex-basis: calc(100% - 62px); font-size: 14px; }
  .n8-strip__btn { width: 100%; text-align: center; }
  .n8-strip__inner { padding-left: 14px; }
  .n8-strip__logo { margin-left: 54px; }
  .n8-strip__text { flex-basis: calc(100% - 116px); }
  .n8-ribbon { top: 24px; left: -38px; width: 140px; padding: 3px 0; font-size: 8px; letter-spacing: 0.6px; }
  .n8-jump { font-size: 13px; gap: 6px; }
  .n8-jump a { padding: 5px 10px; }
}
