/* ==========================================================================
   NX TYPE EFFECT (Bottom-Aligned Underline Cursor)
   ========================================================================== */
.nx-type-effect {
  position: relative !important;
  display: inline-flex !important;
  align-items: baseline !important;    /* Kunci seluruh elemen duduk di garis bawah teks */
  vertical-align: middle !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Sembunyikan layer clone lama */
.nx-type-effect .tw-clone {
  display: none !important;
}

/* Karakter Huruf */
.nx-type-effect .char {
  display: inline-block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

.nx-type-effect .char.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Kursor Underline di Bawah Teks */
.nx-type-effect .type-underline {
  display: inline-block !important;
  width: 0.55em;
  height: 2px;
  background-color: currentColor;
  margin-left: 2px;
  vertical-align: baseline !important;
  align-self: flex-end !important;
  margin-bottom: 0.15em !important;
  animation: nx-tw-blink 0.8s infinite;
}

@keyframes nx-tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Elementor Editor Safe Mode */
body.elementor-editor-active .nx-type-effect .char,
body.elementor-editor-preview .nx-type-effect .char {
  opacity: 1 !important;
  visibility: visible !important;
}
body.elementor-editor-active .nx-type-effect .type-underline,
body.elementor-editor-preview .nx-type-effect .type-underline {
  display: none !important;
}