/*Home Page Start*/
    /*hero section*/
        .slider-fade {
  position: relative;
  width: 100%;
  height: 500px; /* or set your preferred height */
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.nav .prev { left: 20px; }
.nav .next { right: 20px; }

@media (max-width: 768px) {
  .slider-fade {
    height: 350px; /* Let height be defined by image */
  }
}

@media (max-width: 500px) {
  .slider-fade {
    height: 150px;
  }
}
/*hero section end*/

/*info section*/
/* Wrapper to center content with padding */
.info-wrapper {
  padding: 0 10%;
  background: #fff;
  font-family: sans-serif;
}

/* Flexbox container for columns */
.info-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 0;
}

.info-col {
  flex: 1;
  min-width: 250px;
}

/* Headings and more link */
h3 {
  font-size: 20px;
  margin-bottom: 10px;
  position: relative;
}

.more-btn {
  font-size: 14px;
  background-color: #A42A2B;
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  text-decoration: none;
  float: right;
}

/* News section */
.news-item {
  border-bottom: 1px dashed #ccc;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.date {
  color: #888;
  font-size: 14px;
  margin: 0;
}

/* Profile button */
.center-btn {
  text-align: center;
  margin-top: 20px;
}

.profile-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #A42A2B;
  background-color: #fff;
  color: #A42A2B;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.profile-btn:hover {
  background-color: #A42A2B;
  color: #fff;
}

/* Social icons */
.icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.icon i {
  font-size: 28px;
  margin-bottom: 5px;
}

.icon:hover {
  color: #A42A2B;
}

/* Responsive: stack columns below 500px */
@media screen and (max-width: 500px) {
  .info-section {
    flex-direction: column;
  }

  .info-col {
    width: 100%;
  }

  .more-btn {
    float: none;
    display: inline-block;
    margin-left: 10px;
  }
}
/*info section end*/

/*industry Slider*/
.industry-carousel {
  padding: 30px 5%;
  background: #f8f8f8;
  font-family: sans-serif;
}

.carousel-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.carousel-nav {
  background: #eaeaea;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-nav:hover {
  background: #ccc;
}

.carousel-view {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  gap: 10px; /* adds spacing between items */
  padding: 0 5px; /* left-right padding to align with edge spacing */
}

.carousel-item {
  flex: 0 0 20%;
  position: relative;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
  box-sizing: border-box;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Responsive: 3 items below 992px, 2 below 768px, 1 below 500px */
@media screen and (max-width: 992px) {
  .carousel-item {
    flex: 0 0 33.33%;
  }
}

@media screen and (max-width: 768px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}

@media screen and (max-width: 500px) {
  .carousel-item {
    flex: 0 0 100%;
  }
}
@media screen and (max-width: 767px) {
  .carousel-header {
    
    text-align: center;
  }

  .carousel-header h2 {
    margin: 10px 0;
  }
}
/*industry Slider end*/

/*Counter Box Start*/
.counter-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f5f5f5;
  padding: 40px 5%;
  font-family: sans-serif;
  text-align: center;
}

.counter-box {
  flex: 0 0 24%;
  margin: 10px 0;
}

.counter-box h2 {
  font-size: 32px;
  color: #D96D6D;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.counter-box p {
  color: #888;
  margin-top: 8px;
}

/* Responsive for screens below 500px */
@media screen and (max-width: 500px) {
  .counter-box {
    flex: 0 0 100%;
  }
}
/*Counter Box End*/

/*bearing slider start*/
.brg-slider-container-slider {
      overflow: hidden;
      width: 100%;
      background: #fff;
      padding: 20px 0;
    }

    .brg-slider-track-slider {
      display: flex;
      width: fit-content;
      animation: brg-scroll-left-slider 40s linear infinite;
    }

    .brg-slide-slider {
      flex: 0 0 auto;
      width: 250px;
      margin: 0 15px;
      text-align: center;
    }

    .brg-slide-slider img {
      width: 100%;
      height: auto;
      max-height: 200px;
      object-fit: contain;
    }

    .brg-slide-slider h4 {
      font-size: 16px;
      color: #000;
      margin-top: 10px;
    }

    @keyframes brg-scroll-left-slider {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }

    @media (max-width: 768px) {
      .brg-slide-slider {
        width: 180px;
        margin: 0 10px;
      }
    }

    @media (max-width: 480px) {
      .brg-slide-slider {
        width: 140px;
      }
    }
/*bearing slider end*/
/*Home Page End*/

/*Header Start*/
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
    }

    header {
      background-color: white;
      border-top: 5px solid #1c1e7c; /* Deep blue top border */
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 30px;
      position: relative;
      box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.3);
    }

    .logo {
      flex: 0 0 30%;
    }

    .logo img {
      max-height: 40px;
    }

    nav {
      flex: 0 0 70%;

    }

    .nav-links {
      display: flex;
      justify-content: flex-end;
      gap: 30px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: black;
      font-size: 16px;
      position: relative;
    }

    .nav-links a.active::after {
      content: '';
      position: absolute;
      width: 100%;
      height: 2px;
      background-color: #1c1e7c;
      bottom: -5px;
      left: 0;
    }

    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 25px;
      height: 18px;
      cursor: pointer;
    }

    .hamburger span {
      height: 3px;
      width: 100%;
      background-color: #1c1e7c; /* Blue hamburger */
      border-radius: 2px;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        position: absolute;
        top: 65px;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 15px 30px;
        gap: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      }

      .nav-links.active {
        display: flex;
      }

      .hamburger {
        display: flex;
      }

      nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
      }
    }
/*Header End*/

/*Footer Start*/
.footer {
  background: #191a2c;
  color: #fff;
  padding: 40px ;
  font-family: sans-serif;
  margin: 0;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.footer-col {
  flex: 0 0 23%;
  min-width: 220px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Responsive: 2 columns on tablets */
@media screen and (max-width: 768px) {
  .footer-col {
    flex: 0 0 48%;
  }
}

/* 1 column on mobile */
@media screen and (max-width: 500px) {
  .footer-col {
    flex: 0 0 100%;
  }
}
/*Footer End*/