/* Partner Testimonial Carousel Styles */

.partner-testimonial-carousel {
  padding: 0px 0 60px;
}

/* Clean carousel layout */

/* CAROUSEL SLIDES - 2 TESTIMONIALS SIDE BY SIDE */
.carousel-slide {
  display: flex !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  gap: 30px !important;
}

/* TESTIMONIAL ITEMS WITHIN EACH SLIDE */
.carousel-slide .partner-testimonial-item {
  flex: 1 !important;
  width: calc(50% - 5px) !important;
}

.partner-testimonial-carousel .inner-container {
  margin: 0 auto;
  display: block !important;
}

.testimonial-carousel-heading {
  text-align: center;
  margin-bottom: 40px;
}

.testimonial-carousel-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.testimonial-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-carousel-track {
  display: flex !important;
  transition: transform 0.3s ease;
  width: 100% !important;
}

.partner-testimonial-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  padding: 40px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: inline-block !important;
  width: 100% !important;
  font-size: 1rem !important;
  white-space: normal !important;
  vertical-align: top !important;
}

/* Target the Drupal paragraph wrapper that might be interfering */
.testimonial-carousel-track .paragraph--type--partner-testimonial-item {
  flex: 0 0 calc(50% - 15px) !important;
  min-width: calc(50% - 15px) !important;
  max-width: calc(50% - 15px) !important;
  width: calc(50% - 15px) !important;
  display: block !important;
}

.testimonial-carousel-track > div {
  display: inline-block !important;
  width: 50% !important;
  vertical-align: top !important;
  /* margin: 10px !important; */
  font-size: 1rem !important;
  white-space: normal !important;
}

/* Testimonial Content */
.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Company Logo */
.testimonial-logo {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-logo img {
  max-height: 150px;
  max-width: 350px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-testimonial-item:hover .testimonial-logo img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Testimonial Quote */
.testimonial-quote {
  margin-bottom: 25px;
  font-size: 3.5rem;
  line-height: 1.3;
  color: #555;
  font-style: italic;
  flex: 1;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
}

/* Attribution */
.testimonial-attribution {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  margin-top: auto;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.testimonial-title {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Carousel Navigation */
.testimonial-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  gap: 20px;
  height: 50px;
}

.carousel-btn {
  background: #C05010;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #C05010;
  transform: scale(1.1);
}

.carousel-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 0px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: #2073A2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .partner-testimonial-item {
    flex: 0 0 100%;
    padding: 30px 20px;
  }
  
  .testimonial-carousel-track {
    gap: 20px;
  }
  
  .partner-testimonial-carousel {
    padding: 40px 0;
  }
  
  .testimonial-carousel-heading h2 {
    font-size: 2rem;
  }
}