/* ===========================
   Home Page Specific Styles
   =========================== */

/* Owl Carousel Testimonials Customization */
.testimonials-carousel.owl-carousel {
  padding: 0;
}

.testimonials-carousel .owl-stage-outer {
  padding: 20px 0 40px 0;
  overflow: visible;
}

.testimonials-carousel .owl-item {
  padding: 0 10px;
  display: flex;
  align-items: stretch;
  height: auto;
}

.testimonials-carousel .owl-item > div {
  width: 100%;
  display: flex;
}

.testimonials-carousel .owl-item .bg-gradient-to-br {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.testimonials-carousel .owl-item .flex.items-center.space-x-4 {
  margin-top: auto;
  align-items: center;
}

.testimonials-carousel .owl-item .flex.items-center.space-x-4 > div:first-child {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-wrapper-new {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-carousel .owl-dots {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
}

.testimonials-carousel .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  border: none;
}

.testimonials-carousel .owl-dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(91, 89, 196, 0.25);
}

.testimonials-carousel .owl-dot.active {
  background: #5b59c4;
  transform: scale(1.2);
}

/* Custom Radio Button Styling for Forms */
input[type="radio"] {
  outline: none;
  border: 2px solid #5b59c4;
  background: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="radio"]:checked {
  background: #5b59c4;
  border-color: #5b59c4;
  box-shadow: inset 0 0 0 3px white;
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 89, 196, 0.25);
}

input[type="radio"]:hover {
  border-color: #4a478f;
}

/* Text Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stretched Link Utility (for card links) */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================
   Custom Animations
   =========================== */

/* Floating animations for background elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delay-1 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes float-delay-2 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Spinning animations */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-very-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse-slow {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* Bar growing animations */
@keyframes grow-bar-1 {
  0%, 100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes grow-bar-2 {
  0%, 100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes grow-bar-3 {
  0%, 100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

/* SVG draw animation */
@keyframes draw {
  0% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  50%, 100% {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
  }
}

/* Ping animation */
@keyframes ping-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* Animation utility classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay-1 {
  animation: float-delay-1 7s ease-in-out infinite 1s;
}

.animate-float-delay-2 {
  animation: float-delay-2 8s ease-in-out infinite 2s;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-spin-very-slow {
  animation: spin-very-slow 30s linear infinite;
}

.animate-spin-reverse-slow {
  animation: spin-reverse-slow 25s linear infinite;
}

.animate-grow-bar-1 {
  animation: grow-bar-1 3s ease-in-out infinite;
}

.animate-grow-bar-2 {
  animation: grow-bar-2 3s ease-in-out 0.3s infinite;
}

.animate-grow-bar-3 {
  animation: grow-bar-3 3s ease-in-out 0.6s infinite;
}

.animate-draw {
  animation: draw 4s ease-in-out infinite;
}

.animate-ping-slow {
  animation: ping-slow 2s ease-in-out infinite;
}
