/*
 * Worxogo Testimonial Carousel Widget CSS
 *
 * Elementor Testimonial Carousel Widget Styles
 */

/* Equal height for Elementor container layout when using testimonial widgets */
.elementor-widget-worxogo-single-testimonial {
  min-height: 400px;
}

.elementor-widget-worxogo-single-testimonial .elementor-widget-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.single-testimonial-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  min-height: 350px;
}

/* ===== TESTIMONIAL CAROUSEL SECTION ===== */
.testimonial-carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 20px;
  width: 100%;
}

.testimonial-carousel-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  color: #290074;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
}

.testimonial-carousel-title span,
.testimonial-carousel-title .title-highlight {
  color: #4000a9;
}

.testimonial-carousel {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin-bottom: 40px;
  padding: 0 60px;
}

.testimonial-carousel-container {
  display: flex;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hide scrollbar */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  align-items: stretch; /* Ensure all cards have equal height */
  min-height: 400px; /* Set minimum height for consistency */
}

/* Disable animations on smaller devices */
@media (max-width: 1024px) {
  .testimonial-carousel-container {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .testimonial-carousel .testimonial-card {
    scroll-snap-align: none;
    transition: none;
  }
}

.testimonial-carousel-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.testimonial-carousel .testimonial-card {
  background: #ffffff;
  border-style: solid;
  border-color: #b1b1af;
  border-width: 1px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  flex: 1; /* Take up equal space within the container */
  position: relative;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 30px;
  scroll-snap-align: start;
  box-sizing: border-box;
  min-height: 380px; /* Ensure minimum height */
}

.testimonial-carousel .testimonial-card:last-child {
  margin-right: 0;
}

.testimonial-carousel .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Disable hover animations on smaller devices */
@media (max-width: 1024px) {
  .testimonial-carousel .testimonial-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.testimonial-card__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex: 1;
  position: relative;
}

.testimonial-card__header {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.testimonial-card__avatar {
  background: #b1b1af;
  border-radius: 60px;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.testimonial-card__image {
  width: 60px;
  height: 60px;
  position: absolute;
  left: 0px;
  top: 0px;
  object-fit: cover;
  aspect-ratio: 1;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  position: relative;
}

.testimonial-card__name {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-weight: 700;
  font-size: 16px !important;
  line-height: 150%;
  margin: 0;
}

.testimonial-card__title {
  color: #323232;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  margin: 0;
}

.testimonial-card__quote {
  color: #616160;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 15px;
  line-height: 150%;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  flex: 1;
  margin: 0;
}

.testimonial-card__logo {
  opacity: 1;
  flex-shrink: 0;
  width: 200px;
  height: 48px;
  position: relative;
  overflow: hidden;
}

.testimonial-card__logo-image {
  width: 70%;
  position: absolute;
  right: 60%;
  left: 0%;
  bottom: 19.7%;
  top: 18.75%;
  overflow: visible;
}

.testimonial-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.testimonial-carousel-nav.prev {
  left: 10px;
}

.testimonial-carousel-nav.next {
  right: 10px;
}

.carousel-nav-button {
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.carousel-nav-button:hover {
  transform: none;
}

.carousel-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #b1b1af;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
  background-color: #8b5cf6;
}

.carousel-dot.active {
  background-color: #4000a9;
  transform: scale(1.2);
}

/* Testimonial Carousel View All Button - Primary button styling */
.testimonial-carousel-section .worxogo-hero-button-primary {
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8) inset;
  border-radius: 60px;
  background: radial-gradient(
    54.93% 131.82% at 49.74% 140.91%,
    #e100ff 0%,
    #4000a9 100%
  );
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-top: none;
  color: white !important;
  position: relative;
  z-index: 2;
  padding: 12px 24px;
  gap: 8px;
}

.testimonial-carousel-section .worxogo-hero-button-primary:hover {
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8) inset,
    0px 10px 20px rgba(202, 22, 248, 0.8);
  transform: translateY(-1px);
  color: white !important;
}

/* Disable dot animations on smaller devices */
@media (max-width: 1024px) {
  .carousel-dot {
    transition: none;
  }

  .carousel-dot:hover {
    transform: none;
    background-color: #b1b1af;
  }

  .carousel-dot.active {
    transform: none;
    background-color: #4000a9;
  }
}

/* Testimonial Carousel Responsive Styles */
@media (max-width: 1024px) {
  .testimonial-carousel {
    padding: 0 20px;
  }

  .testimonial-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    margin-right: 30px;
    padding: 30px;
    scroll-snap-align: start;
  }
}

/* Show 2 cards on desktop, 1 on tablet and mobile */
@media (min-width: 769px) {
  .testimonial-carousel-container {
    justify-content: flex-start;
  }

  .testimonial-carousel .testimonial-card {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

  /* Ensure arrows are visible on tablet (769px+) */
  .testimonial-carousel-nav {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .testimonial-carousel-section {
    padding: 60px 20px;
  }

  .testimonial-carousel-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .testimonial-carousel-section .worxogo-hero-button-primary {
    padding: 10px 20px;
    font-size: 14px;
  }

  .testimonial-carousel {
    padding: 0 50px;
  }

  .testimonial-carousel .testimonial-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 30px;
    scroll-snap-align: start;
    box-sizing: border-box;
    min-height: 300px; /* Ensure minimum height on mobile */
  }

  /* Ensure arrows are visible on tablet (769px+) */
  .testimonial-carousel-nav {
    display: block !important;
  }

  .testimonial-card__content {
    gap: 30px;
  }

  .testimonial-card__quote {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .testimonial-carousel-section {
    padding: 40px 15px;
  }

  .testimonial-carousel {
    padding: 0 20px;
  }

  .testimonial-carousel-section .worxogo-hero-button-primary {
    padding: 8px 16px;
    font-size: 12px;
  }

  .testimonial-carousel-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .testimonial-carousel .testimonial-card {
    padding: 20px;
    gap: 20px;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .testimonial-card__content {
    gap: 20px;
  }

  .testimonial-card__header {
    gap: 8px;
  }

  .testimonial-card__avatar,
  .testimonial-card__image {
    width: 50px;
    height: 50px;
  }

  .testimonial-card__name,
  .testimonial-card__title {
    font-size: 14px;
  }

  .testimonial-card__quote {
    font-size: 13px;
  }
  /* Ensure arrows are visible on tablet (769px+) */
  .testimonial-carousel-nav {
    display: none !important;
  }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }
}

/* Animation for scroll effect */
.testimonial-carousel-section.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-carousel-section.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Disable scroll animations on smaller devices */
@media (max-width: 1024px) {
  .testimonial-carousel-section.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}
