/* Services Section Styles */
.services {
  padding: 0px 0;
  text-align: center;
  background-color: #f9f9f9;
}

.section-title {
  font-size: 36px;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #666;
}

.services-carousel-container {
  position: relative;
  padding: 0 80px; /* Add padding to the left and right */
  overflow: hidden;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 300px;
  text-align: left;
}

.service-image {
  width: 100%;
  height: auto;
  display: block;
}

.service-info {
  padding: 20px;
}

.service-info h3 {
  font-size: 24px;
  margin: 0 0 10px;
  color: #333;
}

.service-info p {
  font-size: 16px;
  margin: 0;
  color: #666;
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.left-btn {
  left: 10px;
  padding-left: 20px;
}

.right-btn {
  right: 10px;
  padding-right: 20px;
}

.scroll-btn img {
  width: 30px;
  height: 30px;
}

.services-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.services-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.service-card {
  flex: 0 0 auto;
  margin: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 300px;
  text-align: left;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0px; /* Adjust as needed */
}

.pipework-image {
  width: 70px; /* Keep the size intact */
  margin-right: 10px; /* Add some space between the image and text */
  transform: rotate(180deg); /* Rotate the image 180 degrees clockwise */
}

.tap-image {
  width: 70px; /* Keep the size intact */
  margin-left: 10px; /* Add some space between the text and image */
  position: relative;
  margin-top: 60px;
}

.title-container {
  text-align: center;
}

.section-title {
  font-size: 36px; /* Keep the size intact */
  margin-bottom: 5px; /* Reduce space between h2 and h3 */
}

.section-subtitle {
  font-size: 16px; /* Adjust size as needed */
  font-weight: normal; /* Make the text not bold */
  margin: 0;
  color: #666; /* Adjust color as needed */
}

/* Adjust number of visible cards based on screen size */
@media (max-width: 1024px) {
  .service-card {
    max-width: 45%; /* Show 2 cards per row */
  }
}

@media (max-width: 768px) {
  .service-card {
    max-width: 70%; /* Show 1 card per row */
  }

  .section-title {
    font-size: 24px; /* Decrease size on smaller screens */
  }

  .section-subtitle {
    font-size: 14px; /* Decrease size on smaller screens */
  }

  .pipework-image, .tap-image {
    width: 50px; /* Decrease image size on smaller screens */
  }
}

@media (max-width: 480px) {
  .service-card {
    max-width: 100%; /* Show 1 card per row */
  }

  .section-title {
    font-size: 18px; /* Further decrease size on smaller screens */
  }

  .section-subtitle {
    font-size: 12px; /* Further decrease size on smaller screens */
  }

  .pipework-image, .tap-image {
    width: 40px; /* Further decrease image size on smaller screens */
  }
}
