/* Reset default body and html padding/margin */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  overflow-x: hidden; /* Prevent sideways scroll */
}

/* Apply box-sizing border-box globally */
*, *::before, *::after {
  box-sizing: border-box;
}
.control-automation-product {
    width: 100vw;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden !important;
    box-sizing: border-box;
  }
  
  .control-automation-product h1 {
    color: #0d3281;
    font-size: 5.5rem; /* Default font size for large screens */
    margin: 10px 0;
    font-weight: bold;
  }
  
  .control-automation-product h2 {
    color: #0d3281;
    font-size: 3rem; /* Default font size for large screens */
    /* margin: 10px 0; */
  }
  
  /* Media Queries */
  
  /* For large tablets and small laptops (1000px - 1200px) */
  @media (max-width: 1200px) and (min-width: 1000px) {
    .control-automation-product h1 {
      font-size: 4.5rem; /* Reduce font size */
    }
  
    .control-automation-product h2 {
      font-size: 2.5rem; /* Reduce font size */
    }
  }
  
  /* For tablets (760px - 1000px) */
  @media (max-width: 1000px) and (min-width: 760px) {
  
  
    .control-automation-product h1 {
      font-size: 3.5rem; /* Smaller font size for tablets */
    }
  
    .control-automation-product h2 {
      font-size: 2rem; /* Smaller font size for tablets */
    }
  }
  
  /* For mobile devices (320px - 760px) */
  @media (max-width: 760px) {
    .control-automation-product {
      /* padding: 15px; */
      text-align: center;
    }
  
    .control-automation-product h1 {
      font-size: 2.5rem; /* Adjust font size for smaller screens */
    }
  
    .control-automation-product h2 {
      font-size: 1.5rem; /* Adjust font size for smaller screens */
    }
  }
  
  /* For very small screens (less than 320px) */
  @media (max-width: 320px) {
    .control-automation-product h1 {
      font-size: 2rem; /* Further reduce font size */
    }
  
    .control-automation-product h2 {
      font-size: 1.2rem; /* Further reduce font size */
    }
  }
  
  
  .home-control-automation {
    text-align: center;
    align-items: center;
    background-image: url(../images/control-automation/back3.jfif);
    background-repeat: no-repeat;
    background-size: 1400px; /* Ensure the full image is visible */
    background-position: center center; /* Center the image */
    background-attachment: fixed; /* Keeps the image fixed (optional) */
    color: #fff;
    /* min-height: 70vh; */
    /* padding: 0px 20px; */
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .home-control-automation h1 {
    font-size: 7rem;
    text-align: center;
    /* margin-top: 19rem; */
  }
  
  /* Media Queries */
  
  /* For screen sizes between 1000px and 1200px */
  @media (max-width: 1200px) and (min-width: 1000px) {
    .home-control-automation {
      /* min-height: 60vh; */
      padding: 40px 15px;
      background-size: contain; /* Ensure the full image is visible */
    }
  
    .home-control-automation h1 {
      font-size: 5.5rem;
      margin-top: 15rem;
    }
  }
  
  /* For screen sizes between 760px and 1000px */
  @media (max-width: 1000px) and (min-width: 760px) {
    .home-control-automation {
      min-height: 30vh;
      padding: 30px 15px;
      background-size: contain; /* Ensure the full image is visible */
    }
  
    .home-control-automation h1 {
      font-size: 4.5rem;
      margin-top: 10rem;
    }
  }
  
  /* For screen sizes 760px and below */
  @media (max-width: 760px) {
    .home-control-automation {
      min-height: 25vh;
      padding: 20px;
      background-size: contain; /* Ensure the full image is visible */
      background-position: center top; /* Adjust the position for smaller screens */
    }
  
    .home-control-automation h1 {
      font-size: 3rem;
      margin-top: 10rem;
    }
  }
  
  /* For very small screens (320px) */
  @media (max-width: 320px) {
    .home-control-automation {
      min-height: 35vh;
      padding: 15px;
      background-size: contain; /* Ensure the full image is visible */
      background-position: center top; /* Fine-tune position for very small screens */
    }
  
    .home-control-automation h1 {
      font-size: 2.5rem;
      /* margin-top: 6rem; */
    }
  }
  