/* WOW.js-style initial state (hidden until scroll reveal) */
.wow.wow-pending {
  visibility: hidden;
}

.why-section .wow.wow-pending,
[data-wow-immediate].wow-pending {
  visibility: visible;
}

.wow.wow-pending.animate__animated {
  visibility: visible;
}

/* Legacy animate.css v3 alias used in hero */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animated.animate__zoomIn {
  animation-name: zoomIn;
}

/* Hero loads immediately */
.hero-section .animate__animated,
.hero-section .animated {
  visibility: visible;
}

.why-section {
  position: relative;
  z-index: 5;
}

/* About section graph arrow */
.graph__wrapper {
  display: block;
  width: 315px;
  height: 107px;
}

.graph__wrapper svg {
  display: block;
  width: 315px;
  height: 107px;
  overflow: visible;
}

.path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 3s linear forwards;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.dashed {
  stroke-dasharray: 5, 12;
}

#arrow {
  animation: arrow 1s linear forwards;
  animation-iteration-count: infinite;
  opacity: 0;
}

@keyframes arrow {
  to {
    opacity: 1;
  }
}

/* Testimonial carousel (Owl Carousel parity) */
.testimonial-carousel {
  overflow: hidden;
}

.testimonial-stage {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-stage::-webkit-scrollbar {
  display: none;
}

.testimonial-carousel .testimonial-item {
  flex: 0 0 calc(100% - 2rem);
  scroll-snap-align: center;
  transition: 0.5s;
  opacity: 0.85;
  transform: scale(0.94);
}

@media (min-width: 576px) {
  .testimonial-carousel .testimonial-item {
    flex-basis: calc(100% - 2rem);
  }
}

@media (min-width: 768px) {
  .testimonial-carousel .testimonial-item {
    flex-basis: calc(50% - 13px);
  }
}

@media (min-width: 992px) {
  .testimonial-carousel .testimonial-item {
    flex-basis: calc(33.333% - 17px);
  }
}

.testimonial-carousel .testimonial-item.is-center {
  opacity: 1;
  transform: scale(1);
  background: var(--light) !important;
  border-color: var(--light) !important;
}

.testimonial-carousel .testimonial-item.is-center * {
  color: #888888 !important;
}

.testimonial-carousel .testimonial-item.is-center h6 {
  color: var(--dark) !important;
}

.testimonial-stage.is-autoplaying {
  scroll-behavior: smooth;
}
