/* Custom CSS for ESG Icon Hover Effects */
.swiper-slide .service-icon i[data-lucide] {
  transition: color 0.3s ease, stroke 0.3s ease;
  color: #1E8A8A;
  stroke: #1E8A8A;
}

.swiper-slide:hover .service-icon i[data-lucide] {
  color: #ffffff;
  stroke: #ffffff;
}

.swiper-slide .service-icon svg {
  transition: color 0.3s ease, stroke 0.3s ease;
}

.swiper-slide:hover .service-icon svg {
  color: #ffffff;
  stroke: #ffffff;
}

/* ESG Animated Text Styles */
.esg-animated-text {
  text-align: center;
  margin-top: 20px;
}

.rotating-phrases {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-phrases .phrase {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--tj-color-heading);
  background: linear-gradient(135deg, #1e8a8a, #9c27b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.5px;
}

.rotating-phrases .phrase.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .rotating-phrases .phrase {
    font-size: 1.1rem;
  }

  .rotating-phrases {
    height: 50px;
  }

  .heading-wrap-content {
    flex-direction: column !important;
    align-items: center !important;
  }

  .esg-animated-text {
    margin-top: 30px !important;
  }
}

/* Circle text layering and rotation fix */
.circle-text-wrap {
}

.circle-text {
  animation: rotateOnly 10s linear infinite !important;
  transform-origin: center center !important;
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  z-index: 3 !important;
  background-color: transparent !important;
}



.circle-icon svg {
  color: white !important;
  z-index: 2 !important;
}

@keyframes rotateOnly {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Removed FOUC prevention - GSAP autoAlpha handles visibility */

/* Fix: Service title span hover color */
.h10-service .service-item.style-4:hover .service-content .title span {
  color: #ffffff !important;
}
