/* Carousel Styling */
.carousel-inner {
  margin-top: 3%;
  margin-bottom: 4%;
  padding: 0 3% 0 3%;
}

@media (max-width: 576px) {
  .carousel-inner {
    margin-top: 2%;
    margin-bottom: 3%;
    padding: 0;
    min-height: max-content;
  }
}

.mb-4 {
  font-weight: bold;
}

.row {
  gap: 10px;
  justify-content: center;
}

.container {
  max-width: 100%;
}

/* Brand Logo Container */
.brand-logo-container {
  padding: 25px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.brand-logo-wrapper {
  display: flex;
  animation: marquee 120s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.brand-logo {
  height: 90px;
  margin-right: 100px;
}

/* Featured Products Wrapper */
.featured-products-wrapper {
  background-color: white;
  width: 100%;
  padding: 30px 20px 45px;
  margin-bottom: 30px;
}

.container.my-4 {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Card Styling */
.card {
  display: flex;                 /* Use flexbox for layout */
  flex-direction: column;        /* Stack items vertically */
  justify-content: space-between; /* Push footer to the bottom */
  border-radius: 15px;
  height: 100%;                  /* Ensure card takes full height */
  overflow: hidden;              /* Prevent image overflow */
}

.card:hover {
  transform: scale(1.03); /* Hover effect */
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 10px 18px #154a9e; /* Add a slightly stronger shadow */
}

.image-wrapper {
  display: flex;                 /* Use flexbox for image centering */
  justify-content: center;       /* Horizontally center the image */
  align-items: center;           /* Vertically center the image */
  height: 250px;                 /* Adjust height as needed for your design */
  background-color: #f8f8f8;     /* Optional: Add a light background for contrast */
  overflow: hidden;              /* Ensure the image stays inside the wrapper */
}

.card-img-top {
  width: 100%;                    /* Ensure the image fits the width of the container */
  height: auto;                   /* Maintain aspect ratio */
  object-fit: contain;            /* Maintain aspect ratio and avoid cropping */
}

/* Updated Card Body Styling */
.card-body {
  display: flex;                 /* Use flexbox for layout */
  flex-direction: column;        /* Stack title and text vertically */
  justify-content: center;       /* Vertically center the content */
  text-align: center;            /* Center-align title and text */
  flex-grow: 1;                  /* Ensure it takes available space */
  padding: 10px;                 /* Optional: Add padding for spacing */
}

.card-footer {
  background-color: #FFF;        /* Maintain white background */
  border-top: none;              /* Remove border */
  text-align: center;
  padding: 10px 0;
  margin-top: auto;              /* Ensure footer stays at the bottom of the card */
}

.btn-primary-footer {
  background-color: #1A54C0;
  padding: 10px 30px;
  border-radius: 74px;
  color: #FFFFFF;
}

.btn-primary-footer:hover {
  background-color: #154a9e;
  transform: scale(1.03); /* Hover effect */
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;            /* Adjust margin for spacing */
  overflow: hidden;               /* Hide overflowing text */
  text-overflow: ellipsis;        /* Add ellipsis for long text */
}

.card-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-body {
    gap: 5px; /* Reduce gap between items */
  }

  .card-title {
    font-size: 14px;
  }

  .card-text {
    font-size: 12px;
  }

  .card-body .btn {
    font-size: 12px;
    max-width: 80%; /* Full width for smaller screens */
    margin-right: 28%;
  }
}