@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);

/* --- Variables and Base Styles (Desktop) --- */
.testimonials-carousel-wrapper {
  --color-primary: #ff8100;
  --color-dark: #0f2440;
  --color-light: #fafafa;
  min-height: auto;
  background-color: var(--color-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 60px 0;
  width: 100%;
  color: var(--color-light);
  overflow: hidden;
}

.testimonials-carousel-wrapper .carousel-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  
  /* Use padding for space around arrows on desktop */
  padding: 0 40px; 
}

/* --- CAROUSEL TRACK (Using Flexbox + Scroll-Snap) --- */
.testimonials-carousel-wrapper .card-carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  
  /* Key Scroll-Snap Properties for Centering */
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* iOS support */
  
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials-carousel-wrapper .card-carousel::-webkit-scrollbar {
  display: none;
}

/* --- CARD STYLES (Includes Scroll-Snap Target) --- */
.testimonials-carousel-wrapper figure.snip1157 {
  font-family: "Raleway", Arial, sans-serif;
  position: relative;
  overflow: hidden;
  color: #333;
  text-align: left;
  flex-shrink: 0;

  /* Key Scroll-Snap Target */
  scroll-snap-align: center; 

  /* Desktop Widths */
  width: 30vw;
  max-width: 400px;
  min-width: 300px;
  margin: 0 15px; 

  /* Other Styles */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(70%);
  transform: scale(0.9);
  opacity: 0.6;
  border-radius: 12px;
  background: #fafafa;
}

.testimonials-carousel-wrapper figure.snip1157.active {
  filter: brightness(100%);
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Card Content (unchanged) */
.testimonials-carousel-wrapper figure.snip1157 img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  margin: 30px 0 0 20px;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.testimonials-carousel-wrapper figure.snip1157 blockquote {
  padding: 25px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  font-style: italic;
  background: transparent;
}

.testimonials-carousel-wrapper figure.snip1157 .author {
  position: absolute;
  bottom: 35px;
  padding: 0 20px 0 110px;
  margin: 0;
  text-transform: uppercase;
  width: 100%;
}

.testimonials-carousel-wrapper figure.snip1157 .author h5 {
  opacity: 1;
  margin: 0;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 16px;
}

.testimonials-carousel-wrapper figure.snip1157 .author h5 span {
  font-weight: 600;
  text-transform: none;
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}


/* --- Arrows --- */
.testimonials-carousel-wrapper .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-carousel-wrapper .nav-arrow:hover {
  background: var(--color-primary);
}

.testimonials-carousel-wrapper .left-arrow {
  left: 0px; /* Position relative to container padding */
}

.testimonials-carousel-wrapper .right-arrow {
  right: 0px; /* Position relative to container padding */
}

/* --- Dots --- */
.testimonials-carousel-wrapper .carousel-nav {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonials-carousel-wrapper .dot {
  height: 10px;
  width: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonials-carousel-wrapper .dot.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}


/* --- RESPONSIVENESS (Tablet/Medium Screens - Max Width 768px) --- */
@media (max-width: 768px) {
  .testimonials-carousel-wrapper {
    padding: 40px 0;
  }

  .testimonials-carousel-wrapper .carousel-container {
    /* Increase padding to ensure arrows have space and cards don't touch edges */
    padding: 0 40px; 
  }
  
  .testimonials-carousel-wrapper figure.snip1157 {
    width: 85vw; 
    min-width: 80vw; 
    margin: 0 10px; 
    opacity: 0.4; 
    transform: scale(0.9);
    filter: none; 
  }

  .testimonials-carousel-wrapper figure.snip1157.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .testimonials-carousel-wrapper figure.snip1157.active blockquote {
      font-size: 1rem;
      padding: 30px 20px 20px 20px; 
  }

  /* Arrows are already visible and positioned correctly at 0px due to container padding */
  .testimonials-carousel-wrapper .nav-arrow {
    background: var(--color-primary); 
  }
}

/* --- RESPONSIVENESS (Small Screens - Max Width 480px) --- */
@media (max-width: 480px) {
  .testimonials-carousel-wrapper .carousel-container {
    padding: 0 30px; /* Slightly less padding on very small screens */
  }

  .testimonials-carousel-wrapper figure.snip1157 {
    width: 90vw;
    min-width: 85vw;
    margin: 0 5px; 
  }
}

