.menu-item-has-children:hover > .sub-menu {
    display: block !important;
}

.sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    /* border: 1px solid #ccc; */
    z-index: 999;
    min-width: 200px;
    list-style: none;
}

.menu-item-has-children {
    position: relative;
}


/* single machine page css  */
    .machine-container {
        margin: 0 auto;
    }
    /* Hero Section */
    .machine-hero {
        min-height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .machine-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.8;
        background: url(https://moiengineering.com/wp-content/uploads/2025/04/header-banner.jpg);
        background-position: center left;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: -1;
    }

    .machine-hero h1 {
        color: white;
        display: inline-block;
        padding: 10px 20px;
        border-radius: 5px;
        z-index: 999;
    }
    /* Product Overview */
    .machine-section {
        padding: 40px 20px;
        margin: auto;
        min-width: 100% !important;
    }
    .machine-two-column {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .machine-two-column > div {
        flex: 1;
        min-width: 280px;
    }
    .machine-two-column img {
        width: 100%;
        border-radius: 5px;
    }
    h2 {
        margin-top: 0;
    }
    /* Features & Benefits */
    .machine-features-benefits {
        background-color: #F5F5F5;
        background-image: url("https://moiengineering.com/wp-content/uploads/2025/04/map-bg.png");
        background-position: top center;
        background-repeat: no-repeat;
        background-size: contain;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items:start;
    }
    .machine-features-benefits > div {
        flex: 1;
        min-width: 280px;
        background: #ffffff;
        padding: 20px;
        border-radius: 5px;
    }
    .machine-features-benefits .machine-middle-image {
        background: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .machine-features-benefits .machine-middle-image img {
        max-width: 100%;
        border-radius: 5px;
    }
    /* Technical Specs */
    .machine-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }
    .machine-table th, .machine-table td {
        text-align: left;
        padding: 10px;
        border: 1px solid #ddd;
    }
    .machine-table th {
        background: #f0f0f0;
    }
    /* Three Columns */
    .machine-three-col {
        background-color: #F5F5F5;
        background-image: url("https://moiengineering.com/wp-content/uploads/2025/04/map-bg.png");
        background-position: top center;
        background-repeat: no-repeat;
        background-size: contain;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 30px;
    }
    .machine-three-col > div {
        flex: 1;
        min-width: 280px;
        background: #ffffff;
        padding: 20px;
        border-radius: 5px;
    }
    /* Responsive */
    @media (max-width: 768px) {
        .machine-hero h1 {
            font-size: 1.8rem;
        }
    }

    /* machine category template css */
    /* General Styles */
.machine-product-hero,
.machine-product-intro,
.machine-product-products {
  /* font-family: Arial, sans-serif; */
  color: #333;
  margin: 0;
}

/* Hero Section */
.machine-product-hero {
  background: url(https://moiengineering.com/wp-content/uploads/2025/04/header-banner.jpg);
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.machine-product-hero h1 {
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 999;
}

/* Intro Section */
.machine-product-intro {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.machine-product-intro-text {
  flex: 1;
  min-width: 300px;
}
.machine-product-intro-image {
  flex: 1;
  min-width: 300px;
}
.machine-product-intro-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* Products Grid */
.machine-product-products {
  padding: 40px 20px;
  background: #f9f9f9;
}
.machine-product-products h2 {
  text-align: center;
  margin-bottom: 30px;
}
.machine-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.machine-product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.machine-product-card img {
  width: 100%;
  height: auto;
}
.machine-product-card p {
  padding: 10px;
  font-weight: bold;
}

.rev-slider-button {
  font-family: Roboto;
  font-size: 12px;
  font-weight: 500;
  color: #fff !important;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 2px;
  background: #1589db;
  line-height:20px;
}

.rev-slider-button:hover {
  background-color: #000;
  color: #fff;
  opacity: 1;
  cursor: pointer;
}

.rev-wrapper {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex-wrap: wrap;
}