/* Manufacturing components shared by Home and /manufacturing.
   Global typography, navigation, footer, buttons and shared content remain in the main stylesheet. */


.section-padding-manu {
  padding-top: 120px;
}


.section-padding-oem {
  padding-top: 120px;
}


.manu-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  /* Background occupies 1/4 (25%) of the section height */
  z-index: 1;
  /* Places the background behind other elements */
  overflow: hidden;
  /* Ensures any overflow is hidden */
  display: flex;
  /* Enables centering of child elements */
  align-items: center;
  /* Centers the image vertically */
  justify-content: center;
  /* Centers the image horizontally */
}


.manu-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image fills the container while maintaining aspect ratio */
  object-position: center;
  /* Centers the image within the container */
}


.manu-content {
  position: relative;
  z-index: 2;
  /* Places content above the background */
  margin-top: 15%;
  text-align: left;
  align-items: center;
  padding: 20px;
}

@media (max-width: 1024px) {
  .manu-background {
    height: 30%;
    /* Background height for tablet screens */
  }


  .manu-content {
    margin-top: 35%;
    /* Dynamically adjusts to match background height */
  }
}

@media (max-width: 768px) {
  .manu-background {
    height: 30%;
    /* Reduced background height for smaller screens */
  }


  .manu-content {
    margin-top: 35%;
    /* Matches the height of the background */
  }
}



/*---------------------------------------
  testimonial           
-----------------------------------------*/
.testimonial-slider {
  background-color: white;
  padding: 2em 0 2em 0;
}



.testimonial-title h2 {
  padding-bottom: 0.5em;
}


.manu-icon {
  margin-top: auto;
  /* Push to the bottom */
}


.manu-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}


.manu-card {
  margin: 0 0.5em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  /* Ensures cards stretch to fit their container */
  display: flex;
  flex-direction: column;
}


.manu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


.manu-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
}


.manu-card .content {
  padding: 20px;
  flex-grow: 1;
  /* Ensures content stretches to fill available space */
}


.manu-card .tag {
  border-radius: 100px;
  color: var(--p-color);
  background-color: var(--section-bg-color);
  font-size: 15px;
  font-weight: var(--font-weight-light);
  padding: 2px 10px;
  display: inline-block;
  vertical-align: top;
  margin-right: 7px;
  margin-bottom: 10px;
}


.manu-card .cate {
  border-radius: 100px;
  color: var(--white-color);
  background-color: var(--primary-color);
  padding: 0px 4px;
  display: inline-block;
  vertical-align: top;
}


.manu-card h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}


.manu-card p {
  font-size: 1rem;
  color: #777;
}


.manu-card .price {
  padding: 0 20px 0 20px;
  font-size: 1rem;
  color: #222;
}


.manu-card .note {
  font-size: 0.8rem;
  color: #777;
}

#carouselExampleControls .carousel-item {
  margin-bottom: 1.5rem;
  /* Adds space below each card */
}

#carouselExampleControls .carousel-control-prev,
#carouselExampleControls .carousel-control-next {
  background-color: none;
  opacity: 1;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  top: 50%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  /* Smooth transition for hover effect */
  box-shadow: none;
  /* No shadow by default */
}

#carouselExampleControls .carousel-control-prev:hover,
#carouselExampleControls .carousel-control-next:hover {
  transform: scale(1.1);
  /* Slight scaling effect */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);

}

#carouselExampleControls .carousel-control-prev-icon,
#carouselExampleControls .carousel-control-next-icon {
  background-color: transparent;
  /* Remove background for icons */
  color: #000;
  /* Set icon color */
  font-size: 2rem;
}

@media (min-width: 576px) {
  #carouselExampleControls .carousel-item {
    margin-right: 0;
    flex: 0 0 50%;
    display: block;
  }

  #carouselExampleControls .carousel-inner {
    display: flex;
    padding-bottom: 1.5rem;
    /* Adjust space for smaller screens */
  }
}


/*---------------------------------------
packaging        
-----------------------------------------*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}


.grid-item {
  margin: 0 0.5em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  /* Ensures cards stretch to fit their container */
  display: flex;
  flex-direction: column;
}


.grid-item:hover {
  transform: translateY(-5px);
}


.grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
}


.grid-item h3 {
  font-size: 1.2rem;
  color: #333;
}


.grid-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0 0;
}


.grid-item .tag {
  border-radius: 100px;
  color: var(--p-color);
  background-color: var(--section-bg-color);
  font-size: 15px;
  font-weight: var(--font-weight-light);
  padding: 2px 10px;
  display: inline-block;
  vertical-align: top;
  margin: 10px;
}


.grid-item .price {
  padding: 0 20px 0 20px;
  font-size: 1rem;
  color: #222;
}


.grid-offer {
  margin: 0 0.5em;
  background: #f6f6f8;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  /* Ensures cards stretch to fit their container */
  display: flex;
  flex-direction: column;
  padding: 20px;
}


.grid-offer:hover {
  transform: translateY(-5px);
}


.grid-offer p {
  font-size: 1.1rem;
  color: #666;
  margin: 10px 0 0;
}


.grid-offer h4 {
  font-size: 30px;
  text-align: left;
  text-transform: uppercase;
}


.grid-offer h5 {
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
  margin: 10px;
}


.grid-offer img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  /* Ensures the image does not exceed the container's width */
  height: auto;
  /* Maintains the aspect ratio */
  object-fit: contain;
  /* Ensures the image fits well within the space */
}


.services-oem {
  background: white;
}

@media screen and (max-width: 991px) {

  .section-padding-manu {
    padding-top: 80px;
  }


  .section-padding-oem {
    padding-top: 80px;
  }
}

/* Home teaser uses shared cards while keeping its own content sizing. */
#section_4.services-oem .manufacturing-moq {
  display: inline-block;
  color: #185447;
  background: #edf5f0;
  border: 1px solid #caddd1;
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px
}

#section_4.services-oem .article-card h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .5px;
  margin: 0 0 12px
}

#section_4.services-oem .article-card p {
  line-height: 1.7
}

#section_4.services-oem .social-icon {
  margin-bottom: 24px
}

@media(max-width:991px) {
  #section_4.services-oem .article-card {
    margin-bottom: 20px
  }
}