.hero {
    display: flex;
    min-height: 100vh;
    padding: 120px 5% 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

/* Machinery Hero Section */
.machinery-hero {
  position: relative;
  min-height: 70vh;
  padding: 120px 5% 40px 5%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible !important;
}

.machinery-hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 100%;
  background: url('assets/image copy.png') no-repeat right top/contain;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.machinery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-bottom: 2.5rem;
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.machinery-hero-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  margin-left: 2.5rem;
}

.machinery-hero-icon {
  width: 64px;
  height: 64px;
  min-width: 48px;
  object-fit: contain;
}

.machinery-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #334897;
  letter-spacing: 1px;
  line-height: 1.1;
  margin: 0;
}

.machinery-hero-highlight {
  color: #334897;
  display: inline-block;
}

.machinery-hero-desc {
  text-align: center;
  margin: 2rem auto 0 auto;
  max-width: 900px;
  background: none;
  font-size: 1.08rem;
  color: #363636;
}

.machinery-cta-button {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  font-size: 1.15rem;
  background: #273c75;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(39,60,117,0.10);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  outline: none;
  letter-spacing: 0.01em;
  text-decoration: none !important;
}

.machinery-cta-button:hover {
  background: #1e2e56;
  box-shadow: 0 4px 16px 0 rgba(39,60,117,0.18);
  transform: scale(1.07);
}

/* Centered image row with white background */
.machinery-hero-image-row-bg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 98%;
  min-height: 540px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 24px rgba(51,72,151,0.10);
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  margin: 0 auto 2.5rem auto;
  max-width: 1300px;
  position: relative;
  z-index: 3;
  overflow: visible !important;
}

.machinery-hero-flex-heading,
.machinery-hero-image-row-bg h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #334897;
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
  letter-spacing: 0.5px;
  padding-left: 0.1rem;
}

.machinery-hero-image-row {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 1.7rem;
  min-height: 220px;
  overflow: visible !important;
}

.machinery-hero-img {
  width: 240px;
  height: 320px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(51,72,151,0.10);
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.machinery-hero-img:hover {
  transform: scale(1.07);
}

.machinery-hero-desc {
  text-align: left;
  margin: 0.5rem 0 0 0;
  max-width: 100%;
  background: none;
  font-size: 1.15rem;
  color: #363636;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .machinery-hero {
    padding: 100px 3% 30px 3%;
  }
  .machinery-hero-bg-hex,
  .machinery-hero-bg-img {
    width: 350px;
    right: 0;
  }
  .machinery-hero-content {
    max-width: 100%;
    padding: 2rem 1rem 1.5rem 1rem;
  }
  .machinery-hero-title {
    font-size: 2rem;
  }
  .machinery-hero-icon {
    width: 48px;
    height: 48px;
  }
  .machinery-hero-image-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
  }
  .machinery-hero-img {
    width: 22vw;
    min-width: 120px;
    max-width: 160px;
    height: 120px;
    flex: 1 1 0;
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .machinery-hero {
    padding: 70px 2% 20px 2%;
  }
  .machinery-hero-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .machinery-hero-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-left: 0.2rem;
  }
  .machinery-hero-title {
    font-size: 1.7rem;
  }
  .machinery-hero-icon {
    width: 80px;
    height: 80px;
  }
  .machinery-hero-image-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: center;
  }
  .machinery-hero-img {
    width: 90vw;
    max-width: 350px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .machinery-hero {
    padding: 40px 1% 10px 1%;
  }
  .machinery-hero-content {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 10px;
  }
  .machinery-hero-title {
    font-size: 2rem;
  }
  .machinery-hero-icon {
    width: 80px;
    height: 80px;
  }
  .machinery-hero-img {
    width: 90px;
    height: 70px;
    border-radius: 8px;
  }
  .machinery-hero-bg-hex,
  .machinery-hero-bg-img {
    display: none;
  }
  .machinery-hero-image-row {
    gap: 0.5rem;
  }
}

@media (max-width: 900px), (max-width: 700px), (max-width: 600px) {
  .machinery-hero-bg-hex,
  .machinery-hero-bg-img {
    width: 600px;
    height: 100%;
    background-size: contain;
    display: block;
  }
}

@media (max-width: 900px) {
  .machinery-hero-image-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.3vw;
  }
  .machinery-hero-img {
    width: 22vw;
    min-width: 100px;
    max-width: 140px;
    height: 100px;
    flex: 1 1 0;
    margin-bottom: 0;
  }
  .machinery-hero-desc {
    width: 100%;
    clear: both;
  }
}

@media (max-width: 600px) {
  .machinery-hero {
    padding: 70px 2% 20px 2%;
  }
  .machinery-hero-title {
    font-size: 1.2rem;
  }
  .machinery-hero-icon {
    width: 40px;
    height: 40px;
  }
  .machinery-hero-image-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2vw;
    margin-bottom: 0.7rem;
  }
  .machinery-hero-img {
    width: 48%;
    max-width: 180px;
    height: 120px;
    border-radius: 7px;
    margin-bottom: 2vw;
    margin-right: 0;
    margin-left: 0;
    object-fit: cover;
    flex: 0 0 48%;
  }
  .machinery-hero-desc {
    font-size: 0.93rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    text-align: left;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    width: 100%;
    clear: both;
  }
  .machinery-hero-heading-row {
    margin-top: 90px;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    margin-left: 0.1rem;
    justify-content: flex-start;
    margin-bottom: 0.7rem;
  }
  .machinery-hero-image-row-bg h2 {
    font-size: 1rem;
  }
}

@media (min-width: 701px) {
  .machinery-hero-heading-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2.5rem;
  }
}

@media (min-width: 1025px) {
  .machinery-hero-image-row {
    flex-wrap: nowrap;
    gap: 2.5rem;
  }
  .machinery-hero-img {
    width: 220px;
    height: 300px;
  }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .machinery-hero-image-row {
    flex-wrap: wrap;
    gap: 1.2rem;
  }
  .machinery-hero-img {
    width: 180px;
    height: 160px;
  }
}