/* Styling for the testimonial section */
body {
  font-family: "Roboto", serif;
}

#testimonial {
  background-color: #f8f9fa;
  padding: 60px 0;
}

#testimonial h5 {
  font-weight: bold;
  color: #007bff; /* Blue color for the heading */
}

.card {
  background-color: #222; /* Dark background for card */
  color: white;
  border-radius: 8px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 20px;
}

.card-body h6 {
  font-size: 1.2rem;
  color: #fff;
}

.card-body p {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.6;
}

.carousel-item {
  transition: transform 0.5s ease;
}

.carousel-indicators li {
  background-color: #007bff;
  border-radius: 50%;
}

.carousel-indicators .active {
  background-color: #0056b3;
}

.carousel-inner {
  padding-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-item {
    text-align: center;
  }
}

#productCarousel {
  margin: 50px auto;
  max-width: 100%;
}

.carousel-inner {
  padding: 20px 0;
}

/* Card styling */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 300px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
  text-align: center;
}

.product_name {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.rate i {
  color: #f1c40f;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #e74c3c;
}

.discount {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.add {
  margin-top: 15px;
  padding: 8px;
  font-size: 0.9rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.add:hover {
  background-color: #2980b9;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #333;
}

/* Responsive grid */
@media (max-width: 767px) {
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .add {
    font-size: 0.8rem;
  }
}

@media (max-width: 991px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Smaller card adjustments */
.col-sm-4 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

.carousel-title {
  margin-bottom: 155px;
  color: white;
}

/* Add animation to the heading */
.animated-heading {
  font-size: 2.5rem;
  /* Adjust font size */
  font-weight: bold;
  color: #fff;
  /* White text color */
  text-transform: uppercase;
  opacity: 0;
  /* Start with opacity 0 (invisible) */
  transform: translateY(20px);
  /* Start the heading slightly below */
  animation: slideInFade 2s forwards;
  /* Animation applied */
  text-align: center;
  /* Center the heading */
}

/* Define the animation */
@keyframes slideInFade {
  0% {
    opacity: 0;
    /* Invisible at the start */
    transform: translateY(20px);
    /* Slightly lower position */
  }

  100% {
    opacity: 1;
    /* Fully visible at the end */
    transform: translateY(0);
    /* Move to original position */
  }
}


    /* Make carousel products responsive */
    @media (max-width: 767px) {
        /* On small screens, display only 1 product per slide */
        #productCarousel .col-6 {
            width: 100%;
        }
    }

    @media (max-width: 991px) {
        /* On medium screens (tablets), display 2 products per slide */
        #productCarousel .col-sm-4 {
            width: 50%;
        }
    }

    /* On larger screens, display 3 products per slide */
    @media (min-width: 992px) {
        #productCarousel .col-md-4 {
            width: 33.33%;
        }
    }

    /* Adjust carousel controls on small screens */
    @media (max-width: 767px) {
        .carousel-control-prev-icon, .carousel-control-next-icon {
            background-color: #FF5733;
            border-radius: 50%;
            padding: 10px;
        }
    }

    .card-img-top {
      height: 100px;
  }

      /* For small screens, make each testimonial card full-width */
      @media (max-width: 767px) {
        .carousel-item .col-12 {
            width: 100%; /* Full width on small devices */
        }
    }

    /* For medium screens (tablets), make each testimonial card 50% width */
    @media (min-width: 768px) and (max-width: 991px) {
        .carousel-item .col-sm-6 {
            width: 50%; /* Two cards per slide on tablets */
        }
    }

    /* For larger screens (desktop), display two cards per slide */
    @media (min-width: 992px) {
        .carousel-item .col-md-6 {
            width: 50%; /* Two cards per slide on desktop */
        }
    }