/* ==========================================================
   SHARED DARK SECTION DECOR
   Background treatment based on Home .offer-banner:
   subtle grid, colored glows, floating pet shapes and sparkles.
   ========================================================== */

.dark-section-surface {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

.dark-section-surface > .dark-section-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dark-section-surface > :not(.dark-section-decor) {
  position: relative;
  z-index: 2;
}

.dark-section-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .82;
}

.dark-section-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .72;
  animation: sharedDarkGlowPulse 7s ease-in-out infinite;
}

.dark-section-glow-primary {
  width: 720px;
  height: 720px;
  top: -360px;
  right: -250px;
  background: radial-gradient(circle,
    rgba(255, 59, 105, 0.25) 0%,
    rgba(255, 106, 26, 0.15) 34%,
    transparent 67%);
}

.dark-section-glow-secondary {
  width: 620px;
  height: 620px;
  left: -240px;
  bottom: -330px;
  background: radial-gradient(circle,
    rgba(32, 199, 217, 0.20) 0%,
    rgba(200, 240, 0, 0.12) 38%,
    transparent 68%);
  animation-delay: 3.5s;
}

.dark-section-shapes {
  position: absolute;
  inset: 0;
}

.dark-section-shapes > span {
  position: absolute;
  color: rgba(244,240,231,0.075);
  animation: sharedDarkShapeFloat 15s ease-in-out infinite;
}

.dark-section-shapes > span:nth-child(1) {
  top: 9%;
  left: 4%;
  width: 74px;
  height: 74px;
}
.dark-section-shapes > span:nth-child(2) {
  left: 14%;
  bottom: 12%;
  width: 58px;
  height: 58px;
  animation-delay: 2.5s;
}
.dark-section-shapes > span:nth-child(3) {
  top: 20%;
  right: 9%;
  width: 92px;
  height: 92px;
  animation-delay: 5s;
}
.dark-section-shapes > span:nth-child(4) {
  right: 18%;
  bottom: 8%;
  width: 56px;
  height: 56px;
  animation-delay: 7.5s;
}
.dark-section-shapes > span:nth-child(5) {
  top: 43%;
  left: 46%;
  width: 66px;
  height: 66px;
  animation-delay: 1.5s;
}
.dark-section-shapes > span:nth-child(6) {
  top: 5%;
  left: 61%;
  width: 48px;
  height: 48px;
  animation-delay: 4s;
}

.dark-decor-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.dark-section-sparkles {
  position: absolute;
  inset: 0;
}

.dark-section-sparkles i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid-lime, #C8F000);
  box-shadow: 0 0 12px currentColor;
  color: var(--acid-lime, #C8F000);
  animation: sharedDarkSparkle 3.2s ease-in-out infinite;
}

.dark-section-sparkles i:nth-child(1) { top: 15%; left: 20%; }
.dark-section-sparkles i:nth-child(2) { top: 62%; left: 35%; animation-delay: .8s; color: var(--electric-cyan, #20C7D9); background: currentColor; }
.dark-section-sparkles i:nth-child(3) { top: 31%; right: 25%; animation-delay: 1.6s; color: var(--vivid-orange, #FF6A1A); background: currentColor; }
.dark-section-sparkles i:nth-child(4) { top: 76%; right: 40%; animation-delay: .4s; }
.dark-section-sparkles i:nth-child(5) { top: 47%; left: 55%; animation-delay: 1.2s; color: var(--electric-cyan, #20C7D9); background: currentColor; }
.dark-section-sparkles i:nth-child(6) { top: 85%; left: 10%; animation-delay: 2s; color: var(--hot-coral, #FF3B69); background: currentColor; }
.dark-section-sparkles i:nth-child(7) { top: 24%; right: 15%; animation-delay: .65s; }
.dark-section-sparkles i:nth-child(8) { top: 51%; left: 80%; animation-delay: 1.45s; color: var(--vivid-orange, #FF6A1A); background: currentColor; }

@keyframes sharedDarkGlowPulse {
  0%,100% { transform: scale(1); opacity: .56; }
  50% { transform: scale(1.13); opacity: .88; }
}

@keyframes sharedDarkShapeFloat {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(20px,-28px) rotate(12deg); }
  66% { transform: translate(-16px,18px) rotate(-10deg); }
}

@keyframes sharedDarkSparkle {
  0%,100% { opacity: 0; transform: scale(0); }
  50% { opacity: .9; transform: scale(1.55); }
}

/* The pre-footer already had its own decorative layer.
   Hide that older layer so the new offer-banner treatment stays clean. */
.dark-section-surface.newsletter > .newsletter-bg-decor {
  display: none !important;
}

/* Products special offers already had blob elements. Keep content, suppress
   the old background blobs so only one decoration system is visible. */
.dark-section-surface.special-offers > .special-offers-bg {
  display: none !important;
}

@media (max-width: 700px) {
  .dark-section-grid {
    background-size: 42px 42px;
  }

  .dark-section-shapes > span {
    opacity: .72;
    transform: scale(.82);
  }

  .dark-section-glow-primary {
    width: 500px;
    height: 500px;
    top: -260px;
    right: -240px;
  }

  .dark-section-glow-secondary {
    width: 440px;
    height: 440px;
    left: -220px;
    bottom: -240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dark-section-glow,
  .dark-section-shapes > span,
  .dark-section-sparkles i {
    animation: none !important;
  }
}


/* Webinars now uses the same offer-banner-inspired decoration */
.dark-section-surface.webinars > .webinars-bg-decor {
  display: none !important;
}

.dark-section-surface.webinars {
  background:
    linear-gradient(135deg, var(--deep-blue, #0B3558) 0%, #091E31 55%, var(--ink-black, #111514) 100%) !important;
}

/* generic social icons; no third-party brand marks */
.social-generic-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.social-links a:hover {
  background: linear-gradient(135deg, var(--electric-cyan, #20C7D9), var(--acid-lime, #C8F000)) !important;
  color: var(--ink-black, #111514) !important;
  border-color: transparent !important;
}
