/* ================================================
   CURSOR HOVER EFFECT FOR DODAIF CARD
   ================================================ */

/* Blinking cursor - default centered position */
#card-dodaif2.dodaif-promo2 .cursor {
  position: absolute;
  width: 3px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.35);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: blink 1.15s step-end infinite;
  transition: left 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* x-axis only, y stays put */
}

/* Hover state — slides left, vertical position unchanged */
#card-dodaif2.dodaif-promo2:hover .cursor {
  left: 50px;
  transform: translate(0, -50%); /* keep -50% y so vertical center holds */
}

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

/* Typewriter text container */
#card-dodaif2.dodaif-promo2 .typewriter-text {
  position: absolute;
  top: 50%;
  left: 73px; /* 50px cursor + 20px gap + 3px cursor width */
  transform: translateY(-50%);
  z-index: 10;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.75); /* white at 75% opacity */
  font-weight: 400;
  letter-spacing: 0.025em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#card-dodaif2.dodaif-promo2:hover .typewriter-text {
  opacity: .95;
}

/* Individual characters */
.typewriter-text span {
  opacity: 0;
  display: inline-block;
}

.typewriter-text span.typed {
  opacity: 1;
  animation: charAppear 0.1s ease forwards;
}

@keyframes charAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  #card-dodaif2.dodaif-promo2 .typewriter-text {
    font-size: 48px;
    left: 68px;
  }
}

@media (max-width: 600px) {
  #card-dodaif2.dodaif-promo2 .typewriter-text {
    font-size: 36px;
    left: 63px;
  }

  #card-dodaif2.dodaif-promo2 .cursor {
    height: 80px;
  }
}