/* Nabd: pulse border, floating keyframes, section underline - reuse from original theme */

.tp-pulse-border::after,
.tp-pulse-border::before {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  animation: borderanimate2 2s linear infinite;
  animation-delay: 0s;
  transition: all 0.3s ease-out 0s;
  z-index: 99;
}

.tp-pulse-border::before {
  animation-delay: 1s;
}

@keyframes borderanimate2 {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

@keyframes section-animation {
  0% { width: 0; }
  15% { width: 100%; }
  85% { opacity: 1; }
  90% { width: 100%; opacity: 0; }
  100% { width: 0; opacity: 0; }
}

@keyframes section-highlight {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes tpupdown {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

@keyframes tpleftright {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}

.nabd-float-up {
  animation: tpupdown 1s infinite alternate;
}

.nabd-float-lr {
  animation: tpleftright 1s infinite alternate;
}

/* Hero floating decorative images (reuse theme positions) */
.nabd-hero__img-1 {
  position: absolute;
  top: 16%;
  left: -5%;
  animation: tpupdown 1s infinite alternate;
}
@media (min-width: 1024px) {
  .nabd-hero__img-1 { left: -12%; }
}
@media (min-width: 1280px) {
  .nabd-hero__img-1 { left: -20%; }
}
.nabd-hero__img-2 {
  position: absolute;
  top: 25%;
  right: -5%;
  animation: tpleftright 1s infinite alternate;
}
@media (min-width: 1024px) {
  .nabd-hero__img-2 { right: -12%; }
}
@media (min-width: 1280px) {
  .nabd-hero__img-2 { right: -20%; }
}

/* Animated underline for headline highlight */
.nabd-title-highlight {
  position: relative;
  display: inline-block;
}
.nabd-title-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 4px;
  background: var(--nabd-gold, #c9a227);
  animation: section-highlight 1s ease-out 0.5s both;
  max-width: 100%;
}
.nabd-wrap [dir="rtl"] .nabd-title-highlight::after {
  left: auto;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .nabd-float-up,
  .nabd-float-lr,
  .nabd-hero__img-1,
  .nabd-hero__img-2,
  .tp-pulse-border::after,
  .tp-pulse-border::before {
    animation: none;
  }
  .nabd-title-highlight::after {
    animation: none;
    width: 100%;
  }
  .animate-pulse {
    animation: none;
  }
}
